Documentation ¶
Index ¶
- Constants
- func NewCapabilityGet() cc.Command
- func NewCapabilityReport() cc.Command
- func NewStartCapabilityLevelChange() cc.Command
- func NewStateGet() cc.Command
- func NewStateReport() cc.Command
- func NewStateSet() cc.Command
- func NewStopStateChange() cc.Command
- type CapabilityGet
- type CapabilityReport
- func (cmd CapabilityReport) CommandClassID() cc.CommandClassID
- func (cmd CapabilityReport) CommandID() cc.CommandID
- func (cmd CapabilityReport) CommandIDString() string
- func (cmd *CapabilityReport) MarshalBinary() (payload []byte, err error)
- func (cmd *CapabilityReport) UnmarshalBinary(data []byte) error
- type StartCapabilityLevelChange
- func (cmd StartCapabilityLevelChange) CommandClassID() cc.CommandClassID
- func (cmd StartCapabilityLevelChange) CommandID() cc.CommandID
- func (cmd StartCapabilityLevelChange) CommandIDString() string
- func (cmd *StartCapabilityLevelChange) MarshalBinary() (payload []byte, err error)
- func (cmd *StartCapabilityLevelChange) UnmarshalBinary(data []byte) error
- type StateGet
- type StateReport
- type StateSet
- type StopStateChange
- func (cmd StopStateChange) CommandClassID() cc.CommandClassID
- func (cmd StopStateChange) CommandID() cc.CommandID
- func (cmd StopStateChange) CommandIDString() string
- func (cmd *StopStateChange) MarshalBinary() (payload []byte, err error)
- func (cmd *StopStateChange) UnmarshalBinary(data []byte) error
Constants ¶
View Source
const CommandCapabilityGet cc.CommandID = 0x01
View Source
const CommandCapabilityReport cc.CommandID = 0x02
View Source
const CommandStartCapabilityLevelChange cc.CommandID = 0x06
View Source
const CommandStateGet cc.CommandID = 0x03
View Source
const CommandStateReport cc.CommandID = 0x04
View Source
const CommandStateSet cc.CommandID = 0x05
View Source
const CommandStopStateChange cc.CommandID = 0x07
Variables ¶
This section is empty.
Functions ¶
func NewCapabilityGet ¶
func NewCapabilityReport ¶
func NewStateGet ¶
func NewStateReport ¶
func NewStateSet ¶
func NewStopStateChange ¶
Types ¶
type CapabilityGet ¶
type CapabilityGet struct { }
<no value>
func (CapabilityGet) CommandClassID ¶
func (cmd CapabilityGet) CommandClassID() cc.CommandClassID
func (CapabilityGet) CommandID ¶
func (cmd CapabilityGet) CommandID() cc.CommandID
func (CapabilityGet) CommandIDString ¶
func (cmd CapabilityGet) CommandIDString() string
func (*CapabilityGet) MarshalBinary ¶
func (cmd *CapabilityGet) MarshalBinary() (payload []byte, err error)
func (*CapabilityGet) UnmarshalBinary ¶
func (cmd *CapabilityGet) UnmarshalBinary(data []byte) error
type CapabilityReport ¶
type CapabilityReport struct {
CapabilityMask uint16
}
<no value>
func (CapabilityReport) CommandClassID ¶
func (cmd CapabilityReport) CommandClassID() cc.CommandClassID
func (CapabilityReport) CommandID ¶
func (cmd CapabilityReport) CommandID() cc.CommandID
func (CapabilityReport) CommandIDString ¶
func (cmd CapabilityReport) CommandIDString() string
func (*CapabilityReport) MarshalBinary ¶
func (cmd *CapabilityReport) MarshalBinary() (payload []byte, err error)
func (*CapabilityReport) UnmarshalBinary ¶
func (cmd *CapabilityReport) UnmarshalBinary(data []byte) error
type StartCapabilityLevelChange ¶
type StartCapabilityLevelChange struct { Properties1 struct { Res1 byte IgnoreStartState bool Updown bool Res2 bool } CapabilityId byte StartState byte }
<no value>
func (StartCapabilityLevelChange) CommandClassID ¶
func (cmd StartCapabilityLevelChange) CommandClassID() cc.CommandClassID
func (StartCapabilityLevelChange) CommandID ¶
func (cmd StartCapabilityLevelChange) CommandID() cc.CommandID
func (StartCapabilityLevelChange) CommandIDString ¶
func (cmd StartCapabilityLevelChange) CommandIDString() string
func (*StartCapabilityLevelChange) MarshalBinary ¶
func (cmd *StartCapabilityLevelChange) MarshalBinary() (payload []byte, err error)
func (*StartCapabilityLevelChange) UnmarshalBinary ¶
func (cmd *StartCapabilityLevelChange) UnmarshalBinary(data []byte) error
type StateGet ¶
type StateGet struct {
CapabilityId byte
}
<no value>
func (StateGet) CommandClassID ¶
func (cmd StateGet) CommandClassID() cc.CommandClassID
func (StateGet) CommandIDString ¶
func (*StateGet) MarshalBinary ¶
func (*StateGet) UnmarshalBinary ¶
type StateReport ¶
<no value>
func (StateReport) CommandClassID ¶
func (cmd StateReport) CommandClassID() cc.CommandClassID
func (StateReport) CommandID ¶
func (cmd StateReport) CommandID() cc.CommandID
func (StateReport) CommandIDString ¶
func (cmd StateReport) CommandIDString() string
func (*StateReport) MarshalBinary ¶
func (cmd *StateReport) MarshalBinary() (payload []byte, err error)
func (*StateReport) UnmarshalBinary ¶
func (cmd *StateReport) UnmarshalBinary(data []byte) error
type StateSet ¶
<no value>
func (StateSet) CommandClassID ¶
func (cmd StateSet) CommandClassID() cc.CommandClassID
func (StateSet) CommandIDString ¶
func (*StateSet) MarshalBinary ¶
func (*StateSet) UnmarshalBinary ¶
type StopStateChange ¶
type StopStateChange struct {
CapabilityId byte
}
<no value>
func (StopStateChange) CommandClassID ¶
func (cmd StopStateChange) CommandClassID() cc.CommandClassID
func (StopStateChange) CommandID ¶
func (cmd StopStateChange) CommandID() cc.CommandID
func (StopStateChange) CommandIDString ¶
func (cmd StopStateChange) CommandIDString() string
func (*StopStateChange) MarshalBinary ¶
func (cmd *StopStateChange) MarshalBinary() (payload []byte, err error)
func (*StopStateChange) UnmarshalBinary ¶
func (cmd *StopStateChange) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.