Skip to content

Commit

Permalink
regenerate all
Browse files Browse the repository at this point in the history
  • Loading branch information
fessehaeve committed Apr 26, 2023
1 parent 6066ef3 commit eb2404b
Show file tree
Hide file tree
Showing 28 changed files with 134 additions and 5,489 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1870,6 +1870,7 @@ server cluster EthernetNetworkDiagnostics = 55 {
command ResetCounts(): DefaultSuccess = 0;
}

/** Accurate time is required for a number of reasons, including scheduling, display and validating security materials. */
server cluster TimeSynchronization = 56 {
enum GranularityEnum : ENUM8 {
kNoTimeGranularity = 0;
Expand Down Expand Up @@ -1916,18 +1917,6 @@ server cluster TimeSynchronization = 56 {
kTimeSyncClient = 0x8;
}

struct TrustedTimeSourceStruct {
fabric_idx fabricIndex = 0;
node_id nodeID = 1;
endpoint_no endpoint = 2;
}

struct TimeZoneStruct {
int32s offset = 0;
epoch_us validAt = 1;
optional char_string<64> name = 2;
}

struct DSTOffsetStruct {
int32s offset = 0;
epoch_us validStarting = 1;
Expand All @@ -1939,6 +1928,18 @@ server cluster TimeSynchronization = 56 {
endpoint_no endpoint = 1;
}

struct TimeZoneStruct {
int32s offset = 0;
epoch_us validAt = 1;
optional char_string<64> name = 2;
}

struct TrustedTimeSourceStruct {
fabric_idx fabricIndex = 0;
node_id nodeID = 1;
endpoint_no endpoint = 2;
}

info event DSTTableEmpty = 0 {
}

Expand Down Expand Up @@ -2008,6 +2009,9 @@ server cluster TimeSynchronization = 56 {
command access(invoke: administer) SetDefaultNTP(SetDefaultNTPRequest): DefaultSuccess = 5;
}

/** This cluster exposes interactions with a switch device, for the purpose of using those interactions by other devices.
Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags.
Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */
server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
Expand Down Expand Up @@ -5005,14 +5009,14 @@ endpoint 0 {
emits event TimeFailure;
emits event MissingTrustedTimeSource;
ram attribute UTCTime;
ram attribute granularity;
ram attribute timeSource;
ram attribute granularity default = 0x00;
ram attribute timeSource default = 0x00;
callback attribute trustedTimeSource;
callback attribute defaultNTP;
callback attribute timeZone default = 1;
callback attribute DSTOffset;
ram attribute localTime default = 1;
ram attribute timeZoneDatabase;
ram attribute timeZoneDatabase default = 0;
ram attribute timeZoneListMaxSize default = 3;
ram attribute DSTOffsetListMaxSize;
callback attribute generatedCommandList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,7 @@ server cluster EthernetNetworkDiagnostics = 55 {
command ResetCounts(): DefaultSuccess = 0;
}

/** Accurate time is required for a number of reasons, including scheduling, display and validating security materials. */
server cluster TimeSynchronization = 56 {
enum GranularityEnum : ENUM8 {
kNoTimeGranularity = 0;
Expand Down Expand Up @@ -1474,18 +1475,6 @@ server cluster TimeSynchronization = 56 {
kTimeSyncClient = 0x8;
}

struct TrustedTimeSourceStruct {
fabric_idx fabricIndex = 0;
node_id nodeID = 1;
endpoint_no endpoint = 2;
}

struct TimeZoneStruct {
int32s offset = 0;
epoch_us validAt = 1;
optional char_string<64> name = 2;
}

struct DSTOffsetStruct {
int32s offset = 0;
epoch_us validStarting = 1;
Expand All @@ -1497,6 +1486,18 @@ server cluster TimeSynchronization = 56 {
endpoint_no endpoint = 1;
}

struct TimeZoneStruct {
int32s offset = 0;
epoch_us validAt = 1;
optional char_string<64> name = 2;
}

struct TrustedTimeSourceStruct {
fabric_idx fabricIndex = 0;
node_id nodeID = 1;
endpoint_no endpoint = 2;
}

info event DSTTableEmpty = 0 {
}

Expand Down Expand Up @@ -1566,6 +1567,9 @@ server cluster TimeSynchronization = 56 {
command access(invoke: administer) SetDefaultNTP(SetDefaultNTPRequest): DefaultSuccess = 5;
}

/** This cluster exposes interactions with a switch device, for the purpose of using those interactions by other devices.
Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags.
Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */
server cluster Switch = 59 {
bitmap SwitchFeature : BITMAP32 {
kLatchingSwitch = 0x1;
Expand Down Expand Up @@ -2444,14 +2448,14 @@ endpoint 0 {
emits event TimeFailure;
emits event MissingTrustedTimeSource;
ram attribute UTCTime;
ram attribute granularity;
ram attribute timeSource;
ram attribute granularity default = 0x00;
ram attribute timeSource default = 0x00;
callback attribute trustedTimeSource;
callback attribute defaultNTP;
callback attribute timeZone default = 1;
callback attribute DSTOffset;
ram attribute localTime;
ram attribute timeZoneDatabase;
ram attribute timeZoneDatabase default = 0;
ram attribute timeZoneListMaxSize default = 3;
ram attribute DSTOffsetListMaxSize;
callback attribute generatedCommandList;
Expand Down
61 changes: 36 additions & 25 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,7 @@ client cluster EthernetNetworkDiagnostics = 55 {
command ResetCounts(): DefaultSuccess = 0;
}

/** Accurate time is required for a number of reasons, including scheduling, display and validating security materials. */
client cluster TimeSynchronization = 56 {
enum GranularityEnum : ENUM8 {
kNoTimeGranularity = 0;
Expand Down Expand Up @@ -2079,18 +2080,6 @@ client cluster TimeSynchronization = 56 {
kTimeSyncClient = 0x8;
}

struct TrustedTimeSourceStruct {
fabric_idx fabricIndex = 0;
node_id nodeID = 1;
endpoint_no endpoint = 2;
}

struct TimeZoneStruct {
int32s offset = 0;
epoch_us validAt = 1;
optional char_string<64> name = 2;
}

struct DSTOffsetStruct {
int32s offset = 0;
epoch_us validStarting = 1;
Expand All @@ -2102,6 +2091,18 @@ client cluster TimeSynchronization = 56 {
endpoint_no endpoint = 1;
}

struct TimeZoneStruct {
int32s offset = 0;
epoch_us validAt = 1;
optional char_string<64> name = 2;
}

struct TrustedTimeSourceStruct {
fabric_idx fabricIndex = 0;
node_id nodeID = 1;
endpoint_no endpoint = 2;
}

info event DSTTableEmpty = 0 {
}

Expand All @@ -2122,16 +2123,17 @@ client cluster TimeSynchronization = 56 {

readonly attribute nullable epoch_us UTCTime = 0;
readonly attribute GranularityEnum granularity = 1;
readonly attribute TimeSourceEnum timeSource = 2;
readonly attribute optional TimeSourceEnum timeSource = 2;
readonly attribute nullable TrustedTimeSourceStruct trustedTimeSource[] = 3;
readonly attribute nullable char_string<128> defaultNTP = 4;
readonly attribute TimeZoneStruct timeZone[] = 5;
readonly attribute DSTOffsetStruct DSTOffset[] = 6;
readonly attribute nullable epoch_us localTime = 7;
readonly attribute TimeZoneDatabaseEnum timeZoneDatabase = 8;
readonly attribute boolean NTPServerAvailable = 9;
readonly attribute int8u timeZoneListMaxSize = 10;
readonly attribute int8u DSTOffsetListMaxSize = 11;
readonly attribute optional nullable char_string<128> defaultNTP = 4;
readonly attribute optional TimeZoneStruct timeZone[] = 5;
readonly attribute optional DSTOffsetStruct DSTOffset[] = 6;
readonly attribute optional nullable epoch_us localTime = 7;
readonly attribute optional TimeZoneDatabaseEnum timeZoneDatabase = 8;
readonly attribute optional boolean NTPServerAvailable = 9;
readonly attribute optional int8u timeZoneListMaxSize = 10;
readonly attribute optional int8u DSTOffsetListMaxSize = 11;
readonly attribute optional boolean supportsDNSResolve = 12;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
Expand All @@ -2153,6 +2155,10 @@ client cluster TimeSynchronization = 56 {
TimeZoneStruct timeZone[] = 0;
}

response struct SetTimeZoneResponse = 3 {
boolean DSTOffsetRequired = 0;
}

request struct SetDSTOffsetRequest {
DSTOffsetStruct DSTOffset[] = 0;
}
Expand All @@ -2161,17 +2167,22 @@ client cluster TimeSynchronization = 56 {
nullable CHAR_STRING<128> defaultNTP = 0;
}

response struct SetTimeZoneResponse = 3 {
boolean DSTOffsetRequired = 0;
}

/** This command MAY be issued by Administrator to set the time. */
command access(invoke: administer) SetUtcTime(SetUtcTimeRequest): DefaultSuccess = 0;
/** This command SHALL set TrustedTimeSource. */
fabric command access(invoke: administer) SetTrustedTimeSource(SetTrustedTimeSourceRequest): DefaultSuccess = 1;
/** This command SHALL set TimeZone. */
command access(invoke: manage) SetTimeZone(SetTimeZoneRequest): SetTimeZoneResponse = 2;
/** This command SHALL set DSTOffset. */
command access(invoke: manage) SetDSTOffset(SetDSTOffsetRequest): DefaultSuccess = 4;
/** This command is used to set DefaultNTP. */
command access(invoke: administer) SetDefaultNTP(SetDefaultNTPRequest): DefaultSuccess = 5;
}

/** This Cluster serves two purposes towards a Node communicating with a Bridge: indicate that the functionality on
the Endpoint where it is placed (and its Parts) is bridged from a non-CHIP technology; and provide a centralized
collection of attributes that the Node MAY collect to aid in conveying information regarding the Bridged Device to a user,
such as the vendor name, the model name, or user-assigned name. */
client cluster BridgedDeviceBasicInformation = 57 {
critical event StartUp = 0 {
INT32U softwareVersion = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5784,6 +5784,20 @@ public Map<String, Map<String, InteractionInfo>> getReadAttributeMap() {
readTimeSynchronizationInteractionInfo.put(
"readDSTOffsetListMaxSizeAttribute",
readTimeSynchronizationDSTOffsetListMaxSizeAttributeInteractionInfo);
Map<String, CommandParameterInfo> readTimeSynchronizationSupportsDNSResolveCommandParams =
new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readTimeSynchronizationSupportsDNSResolveAttributeInteractionInfo =
new InteractionInfo(
(cluster, callback, commandArguments) -> {
((ChipClusters.TimeSynchronizationCluster) cluster)
.readSupportsDNSResolveAttribute(
(ChipClusters.BooleanAttributeCallback) callback);
},
() -> new ClusterInfoMapping.DelegatedBooleanAttributeCallback(),
readTimeSynchronizationSupportsDNSResolveCommandParams);
readTimeSynchronizationInteractionInfo.put(
"readSupportsDNSResolveAttribute",
readTimeSynchronizationSupportsDNSResolveAttributeInteractionInfo);
Map<String, CommandParameterInfo> readTimeSynchronizationGeneratedCommandListCommandParams =
new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readTimeSynchronizationGeneratedCommandListAttributeInteractionInfo =
Expand Down
21 changes: 18 additions & 3 deletions src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eb2404b

Please sign in to comment.