Versions in this module Expand all Collapse all v0 v0.0.2 Mar 8, 2023 v0.0.1 Mar 8, 2023 Changes in this version + const DefaultFPort + var ErrNoPayloadForCID = errors.New("lorawan/applayer/multicastsetup: no payload for given CID") + func GetMcAppSKey(mcKey lorawan.AES128Key, mcAddr lorawan.DevAddr) (lorawan.AES128Key, error) + func GetMcKEKey(mcRootKey lorawan.AES128Key) (lorawan.AES128Key, error) + func GetMcNetSKey(mcKey lorawan.AES128Key, mcAddr lorawan.DevAddr) (lorawan.AES128Key, error) + func GetMcRootKeyForAppKey(appKey lorawan.AES128Key) (lorawan.AES128Key, error) + func GetMcRootKeyForGenAppKey(genAppKey lorawan.AES128Key) (lorawan.AES128Key, error) + type CID byte + const McClassBSessionAns + const McClassBSessionReq + const McClassCSessionAns + const McClassCSessionReq + const McGroupDeleteAns + const McGroupDeleteReq + const McGroupSetupAns + const McGroupSetupReq + const McGroupStatusAns + const McGroupStatusReq + const PackageVersionAns + const PackageVersionReq + func (i CID) String() string + type Command struct + CID CID + Payload CommandPayload + func (c *Command) UnmarshalBinary(uplink bool, data []byte) error + func (c Command) MarshalBinary() ([]byte, error) + func (c Command) Size() int + type CommandPayload interface + MarshalBinary func() (data []byte, err error) + Size func() int + UnmarshalBinary func(data []byte) error + func GetCommandPayload(uplink bool, c CID) (CommandPayload, error) + type Commands []Command + func (c *Commands) UnmarshalBinary(uplink bool, data []byte) error + func (c Commands) MarshalBinary() ([]byte, error) + type McClassBSessionAnsPayload struct + StatusAndMcGroupID McClassBSessionAnsPayloadStatusAndMcGroupID + TimeToStart *uint32 + func (p *McClassBSessionAnsPayload) UnmarshalBinary(data []byte) error + func (p McClassBSessionAnsPayload) MarshalBinary() ([]byte, error) + func (p McClassBSessionAnsPayload) Size() int + type McClassBSessionAnsPayloadStatusAndMcGroupID struct + DRError bool + FreqError bool + McGroupID uint8 + McGroupUndefined bool + type McClassBSessionReqPayload struct + DLFrequency uint32 + DR uint8 + McGroupIDHeader McClassBSessionReqPayloadMcGroupIDHeader + SessionTime uint32 + TimeOutPeriodicity McClassBSessionReqPayloadTimeOutPeriodicity + func (p *McClassBSessionReqPayload) UnmarshalBinary(data []byte) error + func (p McClassBSessionReqPayload) MarshalBinary() ([]byte, error) + func (p McClassBSessionReqPayload) Size() int + type McClassBSessionReqPayloadMcGroupIDHeader struct + McGroupID uint8 + type McClassBSessionReqPayloadTimeOutPeriodicity struct + Periodicity uint8 + TimeOut uint8 + type McClassCSessionAnsPayload struct + StatusAndMcGroupID McClassCSessionAnsPayloadStatusAndMcGroupID + TimeToStart *uint32 + func (p *McClassCSessionAnsPayload) UnmarshalBinary(data []byte) error + func (p McClassCSessionAnsPayload) MarshalBinary() ([]byte, error) + func (p McClassCSessionAnsPayload) Size() int + type McClassCSessionAnsPayloadStatusAndMcGroupID struct + DRError bool + FreqError bool + McGroupID uint8 + McGroupUndefined bool + type McClassCSessionReqPayload struct + DLFrequency uint32 + DR uint8 + McGroupIDHeader McClassCSessionReqPayloadMcGroupIDHeader + SessionTime uint32 + SessionTimeOut McClassCSessionReqPayloadSessionTimeOut + func (p *McClassCSessionReqPayload) Size() int + func (p *McClassCSessionReqPayload) UnmarshalBinary(data []byte) error + func (p McClassCSessionReqPayload) MarshalBinary() ([]byte, error) + type McClassCSessionReqPayloadMcGroupIDHeader struct + McGroupID uint8 + type McClassCSessionReqPayloadSessionTimeOut struct + TimeOut uint8 + type McGroupDeleteAnsPayload struct + McGroupIDHeader McGroupDeleteAnsPayloadMcGroupIDHeader + func (p *McGroupDeleteAnsPayload) UnmarshalBinary(data []byte) error + func (p McGroupDeleteAnsPayload) MarshalBinary() ([]byte, error) + func (p McGroupDeleteAnsPayload) Size() int + type McGroupDeleteAnsPayloadMcGroupIDHeader struct + McGroupID uint8 + McGroupUndefined bool + type McGroupDeleteReqPayload struct + McGroupIDHeader McGroupDeleteReqPayloadMcGroupIDHeader + func (p *McGroupDeleteReqPayload) UnmarshalBinary(data []byte) error + func (p McGroupDeleteReqPayload) MarshalBinary() ([]byte, error) + func (p McGroupDeleteReqPayload) Size() int + type McGroupDeleteReqPayloadMcGroupIDHeader struct + McGroupID uint8 + type McGroupSetupAnsPayload struct + McGroupIDHeader McGroupSetupAnsPayloadMcGroupIDHeader + func (p *McGroupSetupAnsPayload) UnmarshalBinary(data []byte) error + func (p McGroupSetupAnsPayload) MarshalBinary() ([]byte, error) + func (p McGroupSetupAnsPayload) Size() int + type McGroupSetupAnsPayloadMcGroupIDHeader struct + IDError bool + McGroupID uint8 + type McGroupSetupReqPayload struct + MaxMcFCnt uint32 + McAddr lorawan.DevAddr + McGroupIDHeader McGroupSetupReqPayloadMcGroupIDHeader + McKeyEncrypted [16]byte + MinMcFCnt uint32 + func (p *McGroupSetupReqPayload) UnmarshalBinary(data []byte) error + func (p McGroupSetupReqPayload) MarshalBinary() ([]byte, error) + func (p McGroupSetupReqPayload) Size() int + type McGroupSetupReqPayloadMcGroupIDHeader struct + McGroupID uint8 + type McGroupStatusAnsPayload struct + Items []McGroupStatusAnsPayloadItem + Status McGroupStatusAnsPayloadStatus + func (p *McGroupStatusAnsPayload) UnmarshalBinary(data []byte) error + func (p McGroupStatusAnsPayload) MarshalBinary() ([]byte, error) + func (p McGroupStatusAnsPayload) Size() int + type McGroupStatusAnsPayloadItem struct + McAddr lorawan.DevAddr + McGroupID uint8 + type McGroupStatusAnsPayloadStatus struct + AnsGroupMask [4]bool + NbTotalGroups uint8 + type McGroupStatusReqPayload struct + CmdMask McGroupStatusReqPayloadCmdMask + func (p *McGroupStatusReqPayload) UnmarshalBinary(data []byte) error + func (p McGroupStatusReqPayload) MarshalBinary() ([]byte, error) + func (p McGroupStatusReqPayload) Size() int + type McGroupStatusReqPayloadCmdMask struct + RegGroupMask [4]bool + type PackageVersionAnsPayload struct + PackageIdentifier uint8 + PackageVersion uint8 + func (p *PackageVersionAnsPayload) UnmarshalBinary(data []byte) error + func (p PackageVersionAnsPayload) MarshalBinary() ([]byte, error) + func (p PackageVersionAnsPayload) Size() int