struct Matter::Cluster::SceneInfoTlv

Overview

TLV-serializable SceneInfo for FabricSceneInfo attribute

Included Modules

Defined in:

matter/cluster/scenes_management_cluster.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(any : TLV::Any) #

[View source]
def self.new(scene_count : UInt8 = 0_u8, current_scene : UInt8 = 255_u8, current_group : UInt16 = 0_u16, scene_valid : Bool = false, remaining_capacity : UInt8 = 16_u8, fabric_index : UInt8 = 1_u8) #

[View source]

Class Method Detail

def self.from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) #

[View source]
def self.from_slice(bytes : Bytes) #

[View source]
def self.from_tlv(any : TLV::Any) #

[View source]

Instance Method Detail

def current_group : UInt16 #

[View source]
def current_group=(current_group : UInt16) #

[View source]
def current_scene : UInt8 #

[View source]
def current_scene=(current_scene : UInt8) #

[View source]
def fabric_index : UInt8 #

[View source]
def fabric_index=(fabric_index : UInt8) #

[View source]
def remaining_capacity : UInt8 #

[View source]
def remaining_capacity=(remaining_capacity : UInt8) #

[View source]
def scene_count : UInt8 #

[View source]
def scene_count=(scene_count : UInt8) #

[View source]
def scene_valid : Bool #

[View source]
def scene_valid=(scene_valid : Bool) #

[View source]
def to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil #

[View source]
def to_slice : Bytes #

[View source]
def to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any #

[View source]