Documentation ¶
Index ¶
- Constants
- func NewCapabilitiesGet() cc.Command
- func NewCapabilitiesReport() cc.Command
- func NewGet() cc.Command
- func NewReport() cc.Command
- func NewSet() cc.Command
- func NewSupportedGet() cc.Command
- func NewSupportedReport() cc.Command
- type CapabilitiesGet
- func (cmd CapabilitiesGet) CommandClassID() cc.CommandClassID
- func (cmd CapabilitiesGet) CommandID() cc.CommandID
- func (cmd CapabilitiesGet) CommandIDString() string
- func (cmd *CapabilitiesGet) MarshalBinary() (payload []byte, err error)
- func (cmd *CapabilitiesGet) UnmarshalBinary(data []byte) error
- type CapabilitiesReport
- func (cmd CapabilitiesReport) CommandClassID() cc.CommandClassID
- func (cmd CapabilitiesReport) CommandID() cc.CommandID
- func (cmd CapabilitiesReport) CommandIDString() string
- func (cmd *CapabilitiesReport) MarshalBinary() (payload []byte, err error)
- func (cmd *CapabilitiesReport) UnmarshalBinary(data []byte) error
- type Get
- type Report
- type Set
- type SupportedGet
- type SupportedReport
- func (cmd SupportedReport) CommandClassID() cc.CommandClassID
- func (cmd SupportedReport) CommandID() cc.CommandID
- func (cmd SupportedReport) CommandIDString() string
- func (cmd *SupportedReport) MarshalBinary() (payload []byte, err error)
- func (cmd *SupportedReport) UnmarshalBinary(data []byte) error
Constants ¶
View Source
const CommandCapabilitiesGet cc.CommandID = 0x09
View Source
const CommandCapabilitiesReport cc.CommandID = 0x0A
View Source
const CommandGet cc.CommandID = 0x02
View Source
const CommandReport cc.CommandID = 0x03
View Source
const CommandSet cc.CommandID = 0x01
View Source
const CommandSupportedGet cc.CommandID = 0x04
View Source
const CommandSupportedReport cc.CommandID = 0x05
Variables ¶
This section is empty.
Functions ¶
func NewCapabilitiesGet ¶
func NewCapabilitiesReport ¶
func NewSupportedGet ¶
func NewSupportedReport ¶
Types ¶
type CapabilitiesGet ¶
type CapabilitiesGet struct { Properties1 struct { SetpointType byte } }
<no value>
func (CapabilitiesGet) CommandClassID ¶
func (cmd CapabilitiesGet) CommandClassID() cc.CommandClassID
func (CapabilitiesGet) CommandID ¶
func (cmd CapabilitiesGet) CommandID() cc.CommandID
func (CapabilitiesGet) CommandIDString ¶
func (cmd CapabilitiesGet) CommandIDString() string
func (*CapabilitiesGet) MarshalBinary ¶
func (cmd *CapabilitiesGet) MarshalBinary() (payload []byte, err error)
func (*CapabilitiesGet) UnmarshalBinary ¶
func (cmd *CapabilitiesGet) UnmarshalBinary(data []byte) error
type CapabilitiesReport ¶
type CapabilitiesReport struct { Properties1 struct { SetpointType byte } Properties2 struct { Size1 byte Scale1 byte Precision1 byte } MinValue []byte Properties3 struct { Size2 byte Scale2 byte Precision2 byte } Maxvalue []byte }
<no value>
func (CapabilitiesReport) CommandClassID ¶
func (cmd CapabilitiesReport) CommandClassID() cc.CommandClassID
func (CapabilitiesReport) CommandID ¶
func (cmd CapabilitiesReport) CommandID() cc.CommandID
func (CapabilitiesReport) CommandIDString ¶
func (cmd CapabilitiesReport) CommandIDString() string
func (*CapabilitiesReport) MarshalBinary ¶
func (cmd *CapabilitiesReport) MarshalBinary() (payload []byte, err error)
func (*CapabilitiesReport) UnmarshalBinary ¶
func (cmd *CapabilitiesReport) UnmarshalBinary(data []byte) error
type Get ¶
type Get struct { Level struct { SetpointType byte } }
<no value>
func (Get) CommandClassID ¶
func (cmd Get) CommandClassID() cc.CommandClassID
func (Get) CommandIDString ¶
func (*Get) MarshalBinary ¶
func (*Get) UnmarshalBinary ¶
type Report ¶
type Report struct { Level struct { SetpointType byte } Level2 struct { Size byte Scale byte Precision byte } Value []byte }
<no value>
func (Report) CommandClassID ¶
func (cmd Report) CommandClassID() cc.CommandClassID
func (Report) CommandIDString ¶
func (*Report) MarshalBinary ¶
func (*Report) UnmarshalBinary ¶
type Set ¶
type Set struct { Level struct { SetpointType byte } Level2 struct { Size byte Scale byte Precision byte } Value []byte }
<no value>
func (Set) CommandClassID ¶
func (cmd Set) CommandClassID() cc.CommandClassID
func (Set) CommandIDString ¶
func (*Set) MarshalBinary ¶
func (*Set) UnmarshalBinary ¶
type SupportedGet ¶
type SupportedGet struct { }
<no value>
func (SupportedGet) CommandClassID ¶
func (cmd SupportedGet) CommandClassID() cc.CommandClassID
func (SupportedGet) CommandID ¶
func (cmd SupportedGet) CommandID() cc.CommandID
func (SupportedGet) CommandIDString ¶
func (cmd SupportedGet) CommandIDString() string
func (*SupportedGet) MarshalBinary ¶
func (cmd *SupportedGet) MarshalBinary() (payload []byte, err error)
func (*SupportedGet) UnmarshalBinary ¶
func (cmd *SupportedGet) UnmarshalBinary(data []byte) error
type SupportedReport ¶
type SupportedReport struct {
BitMask []byte
}
<no value>
func (SupportedReport) CommandClassID ¶
func (cmd SupportedReport) CommandClassID() cc.CommandClassID
func (SupportedReport) CommandID ¶
func (cmd SupportedReport) CommandID() cc.CommandID
func (SupportedReport) CommandIDString ¶
func (cmd SupportedReport) CommandIDString() string
func (*SupportedReport) MarshalBinary ¶
func (cmd *SupportedReport) MarshalBinary() (payload []byte, err error)
func (*SupportedReport) UnmarshalBinary ¶
func (cmd *SupportedReport) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.