struct Matter::InteractionModel::CommandPath

Overview

Command path identifying a specific command Supports both list-form [endpoint, cluster, command] and structure-form {0=>endpoint, 1=>cluster, 2=>command} Note: fixed_size: true ensures proper type widths for iOS compatibility

Included Modules

Defined in:

matter/interaction_model/paths.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(endpoint : UInt16, cluster : UInt32, command : UInt32) #

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

[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]
def self.from_tlv(data : Bytes) #

[View source]

Instance Method Detail

def ==(other : CommandPath) : Bool #

[View source]
def cluster : UInt32 #

[View source]
def cluster=(cluster : UInt32) #

[View source]
def command : UInt32 #

[View source]
def command=(command : UInt32) #

[View source]
def endpoint : UInt16 #

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

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

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[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]