#![allow(unused_imports)]
use crate::dm::conformance::{Clause, Condition, Conform, Conformance};
use crate::dm::meta::{EventPriority, Reporting};
use crate::dm::spec::{Attribute, Cluster, Command, Event, Feature};
use crate::dm::{Access, AccessQualities, AttributeQualities, Privilege};
use crate::error::Result;
use crate::im::{AttributeId, ClusterId, CommandId, EventId};
use crate::tlv::{
ContainerKind, Element, FromTlv, Nullable, Tag, TlvList, TlvReader, TlvWriter, ToTlv, Value,
};
pub const ID: ClusterId = 0x0065;
pub const REVISION: u16 = 1;
pub const PICS: &str = "GC";
pub mod feature {
pub const LISTENER: u32 = 1 << 0;
pub const SENDER: u32 = 1 << 1;
pub const PER_GROUP: u32 = 1 << 2;
}
pub const FEATURES: &[Feature] = &[
Feature {
bit: 0,
code: "LN",
name: "Listener",
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Optional,
when: Condition::Always,
},
],
},
},
Feature {
bit: 1,
code: "SD",
name: "Sender",
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Optional,
when: Condition::Always,
},
],
},
},
Feature {
bit: 2,
code: "PGA",
name: "PerGroup",
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Optional,
when: Condition::Always,
},
],
},
},
];
pub mod attribute {
use crate::im::AttributeId;
pub const MEMBERSHIP: AttributeId = 0x00;
pub const MAX_MEMBERSHIP_COUNT: AttributeId = 0x01;
pub const MAX_MCAST_ADDR_COUNT: AttributeId = 0x02;
pub const USED_MCAST_ADDR_COUNT: AttributeId = 0x03;
pub const FABRIC_UNDER_TEST: AttributeId = 0x04;
}
pub mod command {
use crate::im::CommandId;
pub const JOIN_GROUP: CommandId = 0x00;
pub const LEAVE_GROUP: CommandId = 0x01;
pub const LEAVE_GROUP_RESPONSE: CommandId = 0x02;
pub const UPDATE_GROUP_KEY: CommandId = 0x03;
pub const CONFIGURE_AUXILIARY_ACL: CommandId = 0x04;
pub const GROUPCAST_TESTING: CommandId = 0x05;
}
pub mod event {
use crate::im::EventId;
pub const GROUPCAST_TESTING: EventId = 0x00;
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(u8)]
pub enum GroupcastTestResultEnum {
Success = 0,
GeneralError = 1,
MessageReplay = 2,
FailedAuth = 3,
NoAvailableKey = 4,
SendFailure = 5,
}
impl GroupcastTestResultEnum {
#[must_use]
pub const fn from_value(value: u8) -> Option<Self> {
match value {
0 => Some(Self::Success),
1 => Some(Self::GeneralError),
2 => Some(Self::MessageReplay),
3 => Some(Self::FailedAuth),
4 => Some(Self::NoAvailableKey),
5 => Some(Self::SendFailure),
_ => None,
}
}
#[must_use]
pub const fn value(self) -> u8 {
self as u8
}
}
impl ToTlv for GroupcastTestResultEnum {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
self.value().to_tlv(w, tag)
}
}
impl<'a> FromTlv<'a> for GroupcastTestResultEnum {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
let value = <u8 as FromTlv<'a>>::from_tlv(reader, element)?;
Self::from_value(value).ok_or(crate::Error::new(crate::ErrorCode::TlvOutOfRange))
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(u8)]
pub enum GroupcastTestingEnum {
DisableTesting = 0,
EnableListenerTesting = 1,
EnableSenderTesting = 2,
}
impl GroupcastTestingEnum {
#[must_use]
pub const fn from_value(value: u8) -> Option<Self> {
match value {
0 => Some(Self::DisableTesting),
1 => Some(Self::EnableListenerTesting),
2 => Some(Self::EnableSenderTesting),
_ => None,
}
}
#[must_use]
pub const fn value(self) -> u8 {
self as u8
}
}
impl ToTlv for GroupcastTestingEnum {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
self.value().to_tlv(w, tag)
}
}
impl<'a> FromTlv<'a> for GroupcastTestingEnum {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
let value = <u8 as FromTlv<'a>>::from_tlv(reader, element)?;
Self::from_value(value).ok_or(crate::Error::new(crate::ErrorCode::TlvOutOfRange))
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(u8)]
pub enum MulticastAddrPolicyEnum {
IanaAddr = 0,
PerGroup = 1,
}
impl MulticastAddrPolicyEnum {
#[must_use]
pub const fn from_value(value: u8) -> Option<Self> {
match value {
0 => Some(Self::IanaAddr),
1 => Some(Self::PerGroup),
_ => None,
}
}
#[must_use]
pub const fn value(self) -> u8 {
self as u8
}
}
impl ToTlv for MulticastAddrPolicyEnum {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
self.value().to_tlv(w, tag)
}
}
impl<'a> FromTlv<'a> for MulticastAddrPolicyEnum {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
let value = <u8 as FromTlv<'a>>::from_tlv(reader, element)?;
Self::from_value(value).ok_or(crate::Error::new(crate::ErrorCode::TlvOutOfRange))
}
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct MembershipStruct<'a> {
pub group_id: crate::msg::GroupId,
pub endpoints: Option<TlvList<'a, u16>>,
pub key_set_id: u16,
pub has_auxiliary_acl: Option<bool>,
pub mcast_addr_policy: MulticastAddrPolicyEnum,
pub fabric_index: crate::msg::FabricIndex,
}
impl<'a> ToTlv for MembershipStruct<'a> {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
w.start_structure(tag)?;
self.group_id.to_tlv(w, Tag::Context(0))?;
if let Some(value) = &self.endpoints {
value.to_tlv(w, Tag::Context(1))?;
}
self.key_set_id.to_tlv(w, Tag::Context(2))?;
if let Some(value) = &self.has_auxiliary_acl {
value.to_tlv(w, Tag::Context(3))?;
}
self.mcast_addr_policy.to_tlv(w, Tag::Context(4))?;
self.fabric_index.to_tlv(w, Tag::Context(254))?;
w.end_container()
}
}
impl<'a> FromTlv<'a> for MembershipStruct<'a> {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
if element.value.container() != Some(ContainerKind::Structure) {
return Err(crate::Error::new(crate::ErrorCode::TlvWrongType));
}
let mut group_id = None;
let mut endpoints = None;
let mut key_set_id = None;
let mut has_auxiliary_acl = None;
let mut mcast_addr_policy = None;
let mut fabric_index = None;
loop {
let Some(field) = reader.next_element()? else {
return Err(crate::Error::new(crate::ErrorCode::TlvTruncated));
};
if field.value == Value::EndOfContainer {
break;
}
match field.tag.context() {
Some(0) => group_id = Some(<crate::msg::GroupId>::from_tlv(reader, &field)?),
Some(1) => endpoints = Some(<TlvList<'a, u16>>::from_tlv(reader, &field)?),
Some(2) => key_set_id = Some(<u16>::from_tlv(reader, &field)?),
Some(3) => has_auxiliary_acl = Some(<bool>::from_tlv(reader, &field)?),
Some(4) => {
mcast_addr_policy = Some(<MulticastAddrPolicyEnum>::from_tlv(reader, &field)?)
}
Some(254) => {
fabric_index = Some(<crate::msg::FabricIndex>::from_tlv(reader, &field)?)
}
_ => reader.skip_value(&field)?,
}
}
Ok(Self {
group_id: group_id.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
endpoints,
key_set_id: key_set_id.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
has_auxiliary_acl,
mcast_addr_policy: mcast_addr_policy
.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
fabric_index: fabric_index.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
})
}
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct JoinGroupFields<'a> {
pub group_id: crate::msg::GroupId,
pub endpoints: TlvList<'a, u16>,
pub key_set_id: u16,
pub key: Option<&'a [u8]>,
pub use_auxiliary_acl: Option<bool>,
pub replace_endpoints: Option<bool>,
pub mcast_addr_policy: Option<MulticastAddrPolicyEnum>,
}
impl<'a> ToTlv for JoinGroupFields<'a> {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
w.start_structure(tag)?;
self.group_id.to_tlv(w, Tag::Context(0))?;
self.endpoints.to_tlv(w, Tag::Context(1))?;
self.key_set_id.to_tlv(w, Tag::Context(2))?;
if let Some(value) = &self.key {
value.to_tlv(w, Tag::Context(3))?;
}
if let Some(value) = &self.use_auxiliary_acl {
value.to_tlv(w, Tag::Context(4))?;
}
if let Some(value) = &self.replace_endpoints {
value.to_tlv(w, Tag::Context(5))?;
}
if let Some(value) = &self.mcast_addr_policy {
value.to_tlv(w, Tag::Context(6))?;
}
w.end_container()
}
}
impl<'a> FromTlv<'a> for JoinGroupFields<'a> {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
if element.value.container() != Some(ContainerKind::Structure) {
return Err(crate::Error::new(crate::ErrorCode::TlvWrongType));
}
let mut group_id = None;
let mut endpoints = None;
let mut key_set_id = None;
let mut key = None;
let mut use_auxiliary_acl = None;
let mut replace_endpoints = None;
let mut mcast_addr_policy = None;
loop {
let Some(field) = reader.next_element()? else {
return Err(crate::Error::new(crate::ErrorCode::TlvTruncated));
};
if field.value == Value::EndOfContainer {
break;
}
match field.tag.context() {
Some(0) => group_id = Some(<crate::msg::GroupId>::from_tlv(reader, &field)?),
Some(1) => endpoints = Some(<TlvList<'a, u16>>::from_tlv(reader, &field)?),
Some(2) => key_set_id = Some(<u16>::from_tlv(reader, &field)?),
Some(3) => key = Some(<&'a [u8]>::from_tlv(reader, &field)?),
Some(4) => use_auxiliary_acl = Some(<bool>::from_tlv(reader, &field)?),
Some(5) => replace_endpoints = Some(<bool>::from_tlv(reader, &field)?),
Some(6) => {
mcast_addr_policy = Some(<MulticastAddrPolicyEnum>::from_tlv(reader, &field)?)
}
_ => reader.skip_value(&field)?,
}
}
Ok(Self {
group_id: group_id.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
endpoints: endpoints.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
key_set_id: key_set_id.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
key,
use_auxiliary_acl,
replace_endpoints,
mcast_addr_policy,
})
}
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct LeaveGroupFields<'a> {
pub group_id: crate::msg::GroupId,
pub endpoints: Option<TlvList<'a, u16>>,
}
impl<'a> ToTlv for LeaveGroupFields<'a> {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
w.start_structure(tag)?;
self.group_id.to_tlv(w, Tag::Context(0))?;
if let Some(value) = &self.endpoints {
value.to_tlv(w, Tag::Context(1))?;
}
w.end_container()
}
}
impl<'a> FromTlv<'a> for LeaveGroupFields<'a> {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
if element.value.container() != Some(ContainerKind::Structure) {
return Err(crate::Error::new(crate::ErrorCode::TlvWrongType));
}
let mut group_id = None;
let mut endpoints = None;
loop {
let Some(field) = reader.next_element()? else {
return Err(crate::Error::new(crate::ErrorCode::TlvTruncated));
};
if field.value == Value::EndOfContainer {
break;
}
match field.tag.context() {
Some(0) => group_id = Some(<crate::msg::GroupId>::from_tlv(reader, &field)?),
Some(1) => endpoints = Some(<TlvList<'a, u16>>::from_tlv(reader, &field)?),
_ => reader.skip_value(&field)?,
}
}
Ok(Self {
group_id: group_id.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
endpoints,
})
}
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct LeaveGroupResponseFields<'a> {
pub group_id: crate::msg::GroupId,
pub endpoints: TlvList<'a, u16>,
}
impl<'a> ToTlv for LeaveGroupResponseFields<'a> {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
w.start_structure(tag)?;
self.group_id.to_tlv(w, Tag::Context(0))?;
self.endpoints.to_tlv(w, Tag::Context(1))?;
w.end_container()
}
}
impl<'a> FromTlv<'a> for LeaveGroupResponseFields<'a> {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
if element.value.container() != Some(ContainerKind::Structure) {
return Err(crate::Error::new(crate::ErrorCode::TlvWrongType));
}
let mut group_id = None;
let mut endpoints = None;
loop {
let Some(field) = reader.next_element()? else {
return Err(crate::Error::new(crate::ErrorCode::TlvTruncated));
};
if field.value == Value::EndOfContainer {
break;
}
match field.tag.context() {
Some(0) => group_id = Some(<crate::msg::GroupId>::from_tlv(reader, &field)?),
Some(1) => endpoints = Some(<TlvList<'a, u16>>::from_tlv(reader, &field)?),
_ => reader.skip_value(&field)?,
}
}
Ok(Self {
group_id: group_id.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
endpoints: endpoints.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
})
}
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct UpdateGroupKeyFields<'a> {
pub group_id: crate::msg::GroupId,
pub key_set_id: u16,
pub key: Option<&'a [u8]>,
}
impl<'a> ToTlv for UpdateGroupKeyFields<'a> {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
w.start_structure(tag)?;
self.group_id.to_tlv(w, Tag::Context(0))?;
self.key_set_id.to_tlv(w, Tag::Context(1))?;
if let Some(value) = &self.key {
value.to_tlv(w, Tag::Context(2))?;
}
w.end_container()
}
}
impl<'a> FromTlv<'a> for UpdateGroupKeyFields<'a> {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
if element.value.container() != Some(ContainerKind::Structure) {
return Err(crate::Error::new(crate::ErrorCode::TlvWrongType));
}
let mut group_id = None;
let mut key_set_id = None;
let mut key = None;
loop {
let Some(field) = reader.next_element()? else {
return Err(crate::Error::new(crate::ErrorCode::TlvTruncated));
};
if field.value == Value::EndOfContainer {
break;
}
match field.tag.context() {
Some(0) => group_id = Some(<crate::msg::GroupId>::from_tlv(reader, &field)?),
Some(1) => key_set_id = Some(<u16>::from_tlv(reader, &field)?),
Some(2) => key = Some(<&'a [u8]>::from_tlv(reader, &field)?),
_ => reader.skip_value(&field)?,
}
}
Ok(Self {
group_id: group_id.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
key_set_id: key_set_id.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
key,
})
}
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct ConfigureAuxiliaryACLFields {
pub group_id: crate::msg::GroupId,
pub use_auxiliary_acl: bool,
}
impl ToTlv for ConfigureAuxiliaryACLFields {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
w.start_structure(tag)?;
self.group_id.to_tlv(w, Tag::Context(0))?;
self.use_auxiliary_acl.to_tlv(w, Tag::Context(1))?;
w.end_container()
}
}
impl<'a> FromTlv<'a> for ConfigureAuxiliaryACLFields {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
if element.value.container() != Some(ContainerKind::Structure) {
return Err(crate::Error::new(crate::ErrorCode::TlvWrongType));
}
let mut group_id = None;
let mut use_auxiliary_acl = None;
loop {
let Some(field) = reader.next_element()? else {
return Err(crate::Error::new(crate::ErrorCode::TlvTruncated));
};
if field.value == Value::EndOfContainer {
break;
}
match field.tag.context() {
Some(0) => group_id = Some(<crate::msg::GroupId>::from_tlv(reader, &field)?),
Some(1) => use_auxiliary_acl = Some(<bool>::from_tlv(reader, &field)?),
_ => reader.skip_value(&field)?,
}
}
Ok(Self {
group_id: group_id.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
use_auxiliary_acl: use_auxiliary_acl
.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
})
}
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct GroupcastTestingFields {
pub test_operation: GroupcastTestingEnum,
pub duration_seconds: Option<u16>,
}
impl ToTlv for GroupcastTestingFields {
fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()> {
w.start_structure(tag)?;
self.test_operation.to_tlv(w, Tag::Context(0))?;
if let Some(value) = &self.duration_seconds {
value.to_tlv(w, Tag::Context(1))?;
}
w.end_container()
}
}
impl<'a> FromTlv<'a> for GroupcastTestingFields {
fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self> {
if element.value.container() != Some(ContainerKind::Structure) {
return Err(crate::Error::new(crate::ErrorCode::TlvWrongType));
}
let mut test_operation = None;
let mut duration_seconds = None;
loop {
let Some(field) = reader.next_element()? else {
return Err(crate::Error::new(crate::ErrorCode::TlvTruncated));
};
if field.value == Value::EndOfContainer {
break;
}
match field.tag.context() {
Some(0) => test_operation = Some(<GroupcastTestingEnum>::from_tlv(reader, &field)?),
Some(1) => duration_seconds = Some(<u16>::from_tlv(reader, &field)?),
_ => reader.skip_value(&field)?,
}
}
Ok(Self {
test_operation: test_operation
.ok_or(crate::Error::new(crate::ErrorCode::TlvNotFound))?,
duration_seconds,
})
}
}
pub const ATTRIBUTES: &[Attribute] = &[
Attribute {
id: 0x0000,
name: "Membership",
kind: "list[MembershipStruct]",
access: Access::read_only(Privilege::View).with_qualities(AccessQualities::FABRIC_SCOPED),
qualities: AttributeQualities::NON_VOLATILE,
reporting: Reporting::OnChange,
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
Attribute {
id: 0x0001,
name: "MaxMembershipCount",
kind: "uint16",
access: Access::read_only(Privilege::View),
qualities: AttributeQualities::FIXED,
reporting: Reporting::OnChange,
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
Attribute {
id: 0x0002,
name: "MaxMcastAddrCount",
kind: "uint16",
access: Access::read_only(Privilege::View),
qualities: AttributeQualities::FIXED,
reporting: Reporting::OnChange,
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
Attribute {
id: 0x0003,
name: "UsedMcastAddrCount",
kind: "uint16",
access: Access::read_only(Privilege::View),
qualities: AttributeQualities::FIXED,
reporting: Reporting::OnChange,
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
Attribute {
id: 0x0004,
name: "FabricUnderTest",
kind: "fabric-idx",
access: Access::read_only(Privilege::View),
qualities: AttributeQualities::empty(),
reporting: Reporting::OnChange,
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
];
pub const COMMANDS: &[Command] = &[
Command {
id: 0x00,
name: "JoinGroup",
to_server: true,
response: None,
access: Access::invoke(Privilege::Manage).with_qualities(AccessQualities::FABRIC_SCOPED),
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
Command {
id: 0x01,
name: "LeaveGroup",
to_server: true,
response: Some(0x02),
access: Access::invoke(Privilege::Manage).with_qualities(AccessQualities::FABRIC_SCOPED),
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
Command {
id: 0x02,
name: "LeaveGroupResponse",
to_server: false,
response: None,
access: Access::invoke(Privilege::Operate).with_qualities(AccessQualities::FABRIC_SCOPED),
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
Command {
id: 0x03,
name: "UpdateGroupKey",
to_server: true,
response: None,
access: Access::invoke(Privilege::Manage).with_qualities(AccessQualities::FABRIC_SCOPED),
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
Command {
id: 0x04,
name: "ConfigureAuxiliaryACL",
to_server: true,
response: None,
access: Access::invoke(Privilege::Administer)
.with_qualities(AccessQualities::FABRIC_SCOPED),
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Feature(0),
},
],
},
},
Command {
id: 0x05,
name: "GroupcastTesting",
to_server: true,
response: None,
access: Access::invoke(Privilege::Administer)
.with_qualities(AccessQualities::FABRIC_SCOPED),
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
},
];
pub const EVENTS: &[Event] = &[Event {
id: 0x00,
name: "GroupcastTesting",
priority: EventPriority::Info,
access: Access::read_only(Privilege::Administer)
.with_qualities(AccessQualities::FABRIC_SENSITIVE),
conform: Conform {
clauses: &[
Clause {
verdict: Conformance::Provisional,
when: Condition::Always,
},
Clause {
verdict: Conformance::Mandatory,
when: Condition::Always,
},
],
},
}];
pub const CLUSTER: Cluster = Cluster {
id: ID,
name: "Groupcast",
revision: REVISION,
pics: "GC",
derived_from: None,
features: FEATURES,
attributes: ATTRIBUTES,
commands: COMMANDS,
events: EVENTS,
};