Skip to content

Commit f9d3713

Browse files
committed
Update Matter files
1 parent c452731 commit f9d3713

File tree

2 files changed

+204
-0
lines changed

2 files changed

+204
-0
lines changed

examples/tv-app/tv-common/tv-app.matter

+110
Original file line numberDiff line numberDiff line change
@@ -2007,6 +2007,99 @@ cluster UserLabel = 65 {
20072007
readonly attribute int16u clusterRevision = 65533;
20082008
}
20092009

2010+
/** This cluster provides an interface for passing messages to be presented by a device. */
2011+
cluster Messages = 151 {
2012+
revision 3;
2013+
2014+
enum FutureMessagePreferenceEnum : enum8 {
2015+
kAllowed = 0;
2016+
kIncreased = 1;
2017+
kReduced = 2;
2018+
kDisallowed = 3;
2019+
kBanned = 4;
2020+
}
2021+
2022+
enum MessagePriorityEnum : enum8 {
2023+
kLow = 0;
2024+
kMedium = 1;
2025+
kHigh = 2;
2026+
kCritical = 3;
2027+
}
2028+
2029+
bitmap Feature : bitmap32 {
2030+
kReceivedConfirmation = 0x1;
2031+
kConfirmationResponse = 0x2;
2032+
kConfirmationReply = 0x4;
2033+
kProtectedMessages = 0x8;
2034+
}
2035+
2036+
bitmap MessageControlBitmap : bitmap8 {
2037+
kConfirmationRequired = 0x1;
2038+
kResponseRequired = 0x2;
2039+
kReplyMessage = 0x4;
2040+
kMessageConfirmed = 0x8;
2041+
kMessageProtected = 0x10;
2042+
}
2043+
2044+
struct MessageResponseOptionStruct {
2045+
optional int32u messageResponseID = 0;
2046+
optional char_string<32> label = 1;
2047+
}
2048+
2049+
struct MessageStruct {
2050+
octet_string<16> messageID = 0;
2051+
MessagePriorityEnum priority = 1;
2052+
MessageControlBitmap messageControl = 2;
2053+
nullable epoch_s startTime = 3;
2054+
nullable int16u duration = 4;
2055+
char_string<256> messageText = 5;
2056+
optional MessageResponseOptionStruct responses[] = 6;
2057+
}
2058+
2059+
info event MessageQueued = 0 {
2060+
octet_string messageID = 0;
2061+
}
2062+
2063+
info event MessagePresented = 1 {
2064+
octet_string messageID = 0;
2065+
}
2066+
2067+
info event MessageComplete = 2 {
2068+
octet_string messageID = 0;
2069+
optional nullable int32u responseID = 1;
2070+
optional nullable char_string reply = 2;
2071+
nullable FutureMessagePreferenceEnum futureMessagesPreference = 3;
2072+
}
2073+
2074+
readonly attribute MessageStruct messages[] = 0;
2075+
readonly attribute octet_string activeMessageIDs[] = 1;
2076+
readonly attribute command_id generatedCommandList[] = 65528;
2077+
readonly attribute command_id acceptedCommandList[] = 65529;
2078+
readonly attribute event_id eventList[] = 65530;
2079+
readonly attribute attrib_id attributeList[] = 65531;
2080+
readonly attribute bitmap32 featureMap = 65532;
2081+
readonly attribute int16u clusterRevision = 65533;
2082+
2083+
request struct PresentMessagesRequestRequest {
2084+
octet_string<16> messageID = 0;
2085+
MessagePriorityEnum priority = 1;
2086+
MessageControlBitmap messageControl = 2;
2087+
nullable epoch_s startTime = 3;
2088+
nullable int16u duration = 4;
2089+
char_string<256> messageText = 5;
2090+
optional MessageResponseOptionStruct responses[] = 6;
2091+
}
2092+
2093+
request struct CancelMessagesRequestRequest {
2094+
octet_string messageIDs[] = 0;
2095+
}
2096+
2097+
/** Command for requesting messages be presented */
2098+
fabric command PresentMessagesRequest(PresentMessagesRequestRequest): DefaultSuccess = 0;
2099+
/** Command for cancelling message present requests */
2100+
fabric command CancelMessagesRequest(CancelMessagesRequestRequest): DefaultSuccess = 1;
2101+
}
2102+
20102103
/** Attributes and commands for configuring the measurement of relative humidity, and reporting relative humidity measurements. */
20112104
cluster RelativeHumidityMeasurement = 1029 {
20122105
revision 3;
@@ -3433,6 +3526,23 @@ endpoint 1 {
34333526
callback attribute clusterRevision;
34343527
}
34353528

3529+
server cluster Messages {
3530+
emits event MessageQueued;
3531+
emits event MessagePresented;
3532+
emits event MessageComplete;
3533+
callback attribute messages;
3534+
callback attribute activeMessageIDs;
3535+
callback attribute generatedCommandList;
3536+
callback attribute acceptedCommandList;
3537+
callback attribute eventList;
3538+
callback attribute attributeList;
3539+
ram attribute featureMap default = 0;
3540+
ram attribute clusterRevision default = 3;
3541+
3542+
handle command PresentMessagesRequest;
3543+
handle command CancelMessagesRequest;
3544+
}
3545+
34363546
server cluster WakeOnLan {
34373547
ram attribute MACAddress;
34383548
ram attribute featureMap default = 0;

examples/tv-casting-app/tv-casting-common/tv-casting-app.matter

+94
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,99 @@ cluster FixedLabel = 64 {
14851485
readonly attribute int16u clusterRevision = 65533;
14861486
}
14871487

1488+
/** This cluster provides an interface for passing messages to be presented by a device. */
1489+
cluster Messages = 151 {
1490+
revision 3;
1491+
1492+
enum FutureMessagePreferenceEnum : enum8 {
1493+
kAllowed = 0;
1494+
kIncreased = 1;
1495+
kReduced = 2;
1496+
kDisallowed = 3;
1497+
kBanned = 4;
1498+
}
1499+
1500+
enum MessagePriorityEnum : enum8 {
1501+
kLow = 0;
1502+
kMedium = 1;
1503+
kHigh = 2;
1504+
kCritical = 3;
1505+
}
1506+
1507+
bitmap Feature : bitmap32 {
1508+
kReceivedConfirmation = 0x1;
1509+
kConfirmationResponse = 0x2;
1510+
kConfirmationReply = 0x4;
1511+
kProtectedMessages = 0x8;
1512+
}
1513+
1514+
bitmap MessageControlBitmap : bitmap8 {
1515+
kConfirmationRequired = 0x1;
1516+
kResponseRequired = 0x2;
1517+
kReplyMessage = 0x4;
1518+
kMessageConfirmed = 0x8;
1519+
kMessageProtected = 0x10;
1520+
}
1521+
1522+
struct MessageResponseOptionStruct {
1523+
optional int32u messageResponseID = 0;
1524+
optional char_string<32> label = 1;
1525+
}
1526+
1527+
struct MessageStruct {
1528+
octet_string<16> messageID = 0;
1529+
MessagePriorityEnum priority = 1;
1530+
MessageControlBitmap messageControl = 2;
1531+
nullable epoch_s startTime = 3;
1532+
nullable int16u duration = 4;
1533+
char_string<256> messageText = 5;
1534+
optional MessageResponseOptionStruct responses[] = 6;
1535+
}
1536+
1537+
info event MessageQueued = 0 {
1538+
octet_string messageID = 0;
1539+
}
1540+
1541+
info event MessagePresented = 1 {
1542+
octet_string messageID = 0;
1543+
}
1544+
1545+
info event MessageComplete = 2 {
1546+
octet_string messageID = 0;
1547+
optional nullable int32u responseID = 1;
1548+
optional nullable char_string reply = 2;
1549+
nullable FutureMessagePreferenceEnum futureMessagesPreference = 3;
1550+
}
1551+
1552+
readonly attribute MessageStruct messages[] = 0;
1553+
readonly attribute octet_string activeMessageIDs[] = 1;
1554+
readonly attribute command_id generatedCommandList[] = 65528;
1555+
readonly attribute command_id acceptedCommandList[] = 65529;
1556+
readonly attribute event_id eventList[] = 65530;
1557+
readonly attribute attrib_id attributeList[] = 65531;
1558+
readonly attribute bitmap32 featureMap = 65532;
1559+
readonly attribute int16u clusterRevision = 65533;
1560+
1561+
request struct PresentMessagesRequestRequest {
1562+
octet_string<16> messageID = 0;
1563+
MessagePriorityEnum priority = 1;
1564+
MessageControlBitmap messageControl = 2;
1565+
nullable epoch_s startTime = 3;
1566+
nullable int16u duration = 4;
1567+
char_string<256> messageText = 5;
1568+
optional MessageResponseOptionStruct responses[] = 6;
1569+
}
1570+
1571+
request struct CancelMessagesRequestRequest {
1572+
octet_string messageIDs[] = 0;
1573+
}
1574+
1575+
/** Command for requesting messages be presented */
1576+
fabric command PresentMessagesRequest(PresentMessagesRequestRequest): DefaultSuccess = 0;
1577+
/** Command for cancelling message present requests */
1578+
fabric command CancelMessagesRequest(CancelMessagesRequestRequest): DefaultSuccess = 1;
1579+
}
1580+
14881581
/** This cluster provides an interface for managing low power mode on a device that supports the Wake On LAN protocol. */
14891582
cluster WakeOnLan = 1283 {
14901583
revision 1;
@@ -2763,6 +2856,7 @@ endpoint 1 {
27632856
binding cluster OnOff;
27642857
binding cluster LevelControl;
27652858
binding cluster Descriptor;
2859+
binding cluster Messages;
27662860
binding cluster WakeOnLan;
27672861
binding cluster Channel;
27682862
binding cluster TargetNavigator;

0 commit comments

Comments
 (0)