lib

package
v0.0.0-...-3192b2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 12 Imported by: 0

README

Range Type
0xFFFF_FFFF_FFFF_xxxx Group Node ID
0xFFFF_FFFF_0000_0000 to
0xFFFF_FFFF_FFFE_FFFF
Reserved for future use
0xFFFF_FFFE_xxxx_xxxx Temporary Local Node ID
0xFFFF_FFFD_xxxx_xxxx CASE Authenticated Tag
0xFFFF_FFFC_xxxx_xxxx to
0xFFFF_FFFC_FFFF_FFFF
Reserved for future use
0xFFFF_FFFB_xxxx_xxxx PAKE key identifiers
0xFFFF_FFF0_0000_0000 to
0xFFFF_FFFA_FFFF_FFFF
Reserved for future use
0x0000_0000_0000_0001 to
0xFFFF_FFEF_FFFF_FFFF
Operational Node ID
0x0000_0000_0000_0000 Unspecified Node ID

Documentation

Index

Constants

View Source
const IPv6MulticastFlagPrefix uint8 = 0x20
View Source
const IPv6MulticastFlagTransient uint8 = 0x30
View Source
const IPv6MulticastPort = 5540
View Source
const KTagIdentifierShift uint32 = 16

Variables

This section is empty.

Functions

func IPV6Multicast

func IPV6Multicast(flag, scope uint8, fid FabricId, gid GroupId) netip.Addr

func IsControlMessage

func IsControlMessage(payloadHeader *raw.PayloadHeader) bool

func IsSecureChannel

func IsSecureChannel(id protocols.Id) bool

func IsSecureMessage

func IsSecureMessage(msgType uint8) bool

func IsStandaloneAck

func IsStandaloneAck(msg uint8) bool

func MakeIPv6PrefixMulticast

func MakeIPv6PrefixMulticast(scope uint8, prefixLength uint8, prefix uint64, gid GroupId) netip.Addr

func MakeIPv6TransientMulticast

func MakeIPv6TransientMulticast(fabricId FabricId, gid GroupId) netip.Addr

func MatterTraceEventScope

func MatterTraceEventScope(mod string, args ...string)

func MatterTraceMessageSent

func MatterTraceMessageSent(payloadHeader *raw.PayloadHeader, packHeader *raw.PacketHeader, msg []byte)

func Multicast

func Multicast(id FabricId, gid GroupId) netip.Addr

Types

type ActionId

type ActionId uint8

type AttributeId

type AttributeId uint32
const InvalidAttributeId AttributeId = 0xFFFF_FFFF

type AttributePersistence

type AttributePersistence struct {
	// contains filtered or unexported fields
}

func NewAttributePersistence

func NewAttributePersistence() *AttributePersistence

func (AttributePersistence) Init

type AttributePersistenceProvider

type AttributePersistenceProvider interface {
	Init(storage store.PersistentStorageDelegate) error
}

type CASEAuthTag

type CASEAuthTag uint32

type CATValues

type CATValues struct {
}

type ClusterId

type ClusterId uint32
const InvalidClusterId ClusterId = 0xFFFF_FFFF

type ClusterStatus

type ClusterStatus uint8

type CommandId

type CommandId uint32
const InvalidCommandId CommandId = 0xFFFF_FFFF

type CompressedFabricId

type CompressedFabricId uint64

func (CompressedFabricId) String

func (f CompressedFabricId) String() string

type DataVersion

type DataVersion uint32

type DeviceTypeId

type DeviceTypeId uint32

type EndpointId

type EndpointId uint16

type EventId

type EventId uint32
const InvalidEventId EventId = 0xFFFF_FFFF

type EventNumber

type EventNumber uint64

type FabricId

type FabricId uint64

func (FabricId) String

func (f FabricId) String() string

type FabricIndex

type FabricIndex uint8
const (
	MinValidFabricIndex FabricIndex = 0x1
)

func UndefinedFabricIndex

func UndefinedFabricIndex() FabricIndex

func (FabricIndex) IsValidFabricIndex

func (index FabricIndex) IsValidFabricIndex() bool

type FieldId

type FieldId uint32
const InvalidFieldId FieldId = 0xFFFF_FFFF

type GroupId

type GroupId uint16

func UndefinedGroupId

func UndefinedGroupId() GroupId

func (GroupId) IsFabric

func (i GroupId) IsFabric() bool

func (GroupId) IsOperationalGroupId

func (i GroupId) IsOperationalGroupId() bool

func (GroupId) IsUniversal

func (i GroupId) IsUniversal() bool

func (GroupId) IsValid

func (i GroupId) IsValid() bool

func (GroupId) NodeId

func (i GroupId) NodeId() NodeId

func (GroupId) String

func (i GroupId) String() string

type InteractionModelRevision

type InteractionModelRevision uint8

type KeysetId

type KeysetId uint16
const InvalidKeysetId KeysetId = 0xFFFF

type ListIndex

type ListIndex uint16

type NodeId

type NodeId uint64
const KTagIdentifierMask NodeId = 0x0000_0000_FFFF_0000
const KTagVersionMask NodeId = 0x0000_0000_0000_FFFF

func NodeIdFromPAKEKeyId

func NodeIdFromPAKEKeyId(aPAKEKeyId PasscodeId) NodeId

func ParseNodeId

func ParseNodeId(data []byte) (NodeId, error)

func ReadNodeId

func ReadNodeId(buf io.Reader) (NodeId, error)

func UndefinedNodeId

func UndefinedNodeId() NodeId

func (NodeId) GroupId

func (aNodeId NodeId) GroupId() GroupId

func (NodeId) IsCASEAuthTag

func (aNodeId NodeId) IsCASEAuthTag() bool

func (NodeId) IsGroupId

func (aNodeId NodeId) IsGroupId() bool

func (NodeId) IsOperationalNodeId

func (aNodeId NodeId) IsOperationalNodeId() bool

func (NodeId) IsPAKEKeyId

func (aNodeId NodeId) IsPAKEKeyId() bool

func (NodeId) IsTemporaryLocalNodeId

func (aNodeId NodeId) IsTemporaryLocalNodeId() bool

func (NodeId) PasscodeId

func (aNodeId NodeId) PasscodeId() PasscodeId

func (NodeId) String

func (aNodeId NodeId) String() string

type PasscodeId

type PasscodeId uint16
const DefaultCommissioningPasscodeId PasscodeId = 0

func PAKEKeyIdFromNodeId

func PAKEKeyIdFromNodeId(aNodeId NodeId) PasscodeId

func (PasscodeId) NodeId

func (p PasscodeId) NodeId() NodeId

type PersistentDataBase

type PersistentDataBase interface {
	Save(base store.PersistentStorageDelegate)
}

type PersistentDataImpl

type PersistentDataImpl struct{}

type ProductId

type ProductId uint16
const ProductIdAnonymous ProductId = 0x0000

type ReferenceCounted

type ReferenceCounted struct {
	// contains filtered or unexported fields
}

func NewReferenceCounted

func NewReferenceCounted(initRefCount int, deleter ReleasedHandler) *ReferenceCounted

func (*ReferenceCounted) ReferenceCount

func (r *ReferenceCounted) ReferenceCount() int

func (*ReferenceCounted) Release

func (r *ReferenceCounted) Release()

func (*ReferenceCounted) Retain

func (r *ReferenceCounted) Retain()

type ReleasedHandler

type ReleasedHandler interface {
	Released()
}

type ScopedNodeId

type ScopedNodeId struct {
	// contains filtered or unexported fields
}

func NewScopedNodeId

func NewScopedNodeId(id NodeId, index FabricIndex) ScopedNodeId

func UndefinedScopedNodeId

func UndefinedScopedNodeId() *ScopedNodeId

func (ScopedNodeId) FabricIndex

func (s ScopedNodeId) FabricIndex() FabricIndex

func (ScopedNodeId) IsOperational

func (s ScopedNodeId) IsOperational() bool

func (ScopedNodeId) LogValue

func (s ScopedNodeId) LogValue() log.Value

func (ScopedNodeId) NodeId

func (s ScopedNodeId) NodeId() NodeId

type SessionResumptionStorage

type SessionResumptionStorage interface {
	Init(delegate store.PersistentStorageDelegate) error
}

type SessionResumptionStorageImpl

type SessionResumptionStorageImpl struct {
	// contains filtered or unexported fields
}

func NewSimpleSessionResumptionStorage

func NewSimpleSessionResumptionStorage() *SessionResumptionStorageImpl

func (*SessionResumptionStorageImpl) Init

type StorageKeyName

type StorageKeyName string

func AttributeValue

func AttributeValue(endpointId EndpointId, clusterId ClusterId, attributeId AttributeId) StorageKeyName

func FabricGroup

func FabricGroup(index FabricIndex, group GroupId) StorageKeyName

func FabricGroupEndpoint

func FabricGroupEndpoint(fabric FabricIndex, group GroupId, endpoint EndpointId) StorageKeyName

func FabricGroupKey

func FabricGroupKey(fabric FabricIndex, index uint16) StorageKeyName

func FabricGroups

func FabricGroups(index FabricIndex) StorageKeyName

func FabricKeyset

func FabricKeyset(fabric FabricIndex, keyset uint16) StorageKeyName

func Formatted

func Formatted(format string, args ...any) StorageKeyName

func (*StorageKeyName) IsInitialized

func (s *StorageKeyName) IsInitialized() bool

func (*StorageKeyName) IsUninitialized

func (s *StorageKeyName) IsUninitialized() bool

func (*StorageKeyName) Name

func (s *StorageKeyName) Name() string

type SubscriptionId

type SubscriptionId uint32

type TransactionId

type TransactionId uint32

type VendorId

type VendorId uint16
const (
	VidCommon       VendorId = 0x0000
	VidUnspecified  VendorId = 0x0000
	VidApple        VendorId = 0x1349
	VidGoogle       VendorId = 0x6006
	VidTest1        VendorId = 0xFFF1
	VidTest2        VendorId = 0xFFF2
	VidTest3        VendorId = 0xFFF3
	VidTest4        VendorId = 0xFFF4
	VidNotSpecified VendorId = 0xFFFF
)

func (VendorId) IsTest

func (id VendorId) IsTest() bool

func (VendorId) IsValidOperationally

func (id VendorId) IsValidOperationally() bool

func (VendorId) String

func (id VendorId) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL