Skip to content

Commit

Permalink
Generated using ./scripts/tools/zap_regen_all.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcosb committed Oct 2, 2024
1 parent 440f6c4 commit fb2f2b4
Show file tree
Hide file tree
Showing 49 changed files with 8,523 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/zap_clusters.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ Generally regenerate using one of:
| 1294 | 0x50E | AccountLogin |
| 1295 | 0x50F | ContentControl |
| 1296 | 0x510 | ContentAppObserver |
| 1360 | 0x550 | ZoneManagement |
| 1872 | 0x750 | EcosystemInformation |
| 1873 | 0x751 | CommissionerControl |
| 4294048773 | 0xFFF1FC05 | UnitTesting |
Expand Down
118 changes: 118 additions & 0 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -9408,6 +9408,124 @@ provisional cluster ContentAppObserver = 1296 {
command ContentAppMessage(ContentAppMessageRequest): ContentAppMessageResponse = 0;
}

/** This cluster provides an interface to manage regions of interest, or Zones, which can be either manufacturer or user defined. */
provisional cluster ZoneManagement = 1360 {
revision 1;

enum StatusCodeEnum : enum8 {
kZONENOTFOUND = 2;
kZONEINUSE = 3;
}

enum ZoneEventStoppedReasonEnum : enum8 {
kActionStopped = 0;
kTimeout = 1;
}

enum ZoneEventTriggeredReasonEnum : enum8 {
kMotion = 0;
}

enum ZoneSourceEnum : enum8 {
kMfg = 0;
kUser = 1;
}

enum ZoneTypeEnum : enum8 {
kTwoDCARTZone = 0;
}

enum ZoneUseEnum : enum8 {
kMotion = 0;
kPrivacy = 1;
kFocus = 2;
}

bitmap Feature : bitmap32 {
kTwoDimensionalCartesianZone = 0x1;
}

struct TwoDCartesianVertexStruct {
int16u x = 0;
int16u y = 1;
}

struct TwoDCartesianZoneStruct {
char_string<16> name = 0;
ZoneUseEnum use = 1;
TwoDCartesianVertexStruct vertices[] = 2;
optional char_string<9> color = 3;
}

struct ZoneInformationStruct {
int16u zoneID = 0;
ZoneTypeEnum zoneType = 1;
ZoneSourceEnum zoneSource = 2;
}

struct ZoneTriggeringTimeControlStruct {
int16u initialDuration = 0;
int16u augmentationDuration = 1;
int32u maxDuration = 2;
int16u blindDuration = 3;
}

info event ZoneTriggered = 0 {
int16u zones[] = 0;
ZoneEventTriggeredReasonEnum reason = 1;
}

info event ZoneStopped = 1 {
int16u zones[] = 0;
ZoneEventStoppedReasonEnum reason = 1;
}

readonly attribute ZoneSourceEnum supportedZoneSources[] = 0;
readonly attribute optional ZoneInformationStruct zones[] = 1;
attribute ZoneTriggeringTimeControlStruct timeControl[] = 2;
attribute int8u sensitivity = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

request struct CreateTwoDCartesianZoneRequest {
TwoDCartesianZoneStruct zone = 0;
}

response struct CreateTwoDCartesianZoneResponse = 1 {
int16u zoneID = 0;
}

request struct UpdateTwoDCartesianZoneRequest {
int16u zoneID = 0;
TwoDCartesianZoneStruct zone = 1;
}

request struct GetTwoDCartesianZoneRequest {
optional nullable int16u zoneID = 0;
}

response struct GetTwoDCartesianZoneResponse = 4 {
TwoDCartesianZoneStruct zones[] = 0;
}

request struct RemoveZoneRequest {
int16u zoneID = 0;
}

/** This command SHALL create and store a TwoD Cartesian Zone. */
command access(invoke: manage) CreateTwoDCartesianZone(CreateTwoDCartesianZoneRequest): DefaultSuccess = 0;
/** The UpdateTwoDCartesianZone SHALL update a stored TwoD Cartesian Zone. */
command access(invoke: manage) UpdateTwoDCartesianZone(UpdateTwoDCartesianZoneRequest): DefaultSuccess = 2;
/** The GetTwoDCartesianZone SHALL return the TwoD Cartesian Zone for the passed in ZoneID. */
command access(invoke: manage) GetTwoDCartesianZone(GetTwoDCartesianZoneRequest): DefaultSuccess = 3;
/** This command SHALL remove the Zone mapped to the passed in ZoneID. */
command access(invoke: manage) RemoveZone(RemoveZoneRequest): DefaultSuccess = 5;
}

/** Provides extended device information for all the logical devices represented by a Bridged Node. */
provisional cluster EcosystemInformation = 1872 {
revision 1;
Expand Down
Loading

0 comments on commit fb2f2b4

Please sign in to comment.