Documentation ¶
Index ¶
- Constants
- func NewGet() cc.Command
- func NewReport() cc.Command
- func NewSet() cc.Command
- func NewStartLevelChange() cc.Command
- func NewStopLevelChange() cc.Command
- type Get
- type Report
- type Set
- type StartLevelChange
- func (cmd StartLevelChange) CommandClassID() cc.CommandClassID
- func (cmd StartLevelChange) CommandID() cc.CommandID
- func (cmd StartLevelChange) CommandIDString() string
- func (cmd *StartLevelChange) MarshalBinary() (payload []byte, err error)
- func (cmd *StartLevelChange) UnmarshalBinary(data []byte) error
- type StopLevelChange
- func (cmd StopLevelChange) CommandClassID() cc.CommandClassID
- func (cmd StopLevelChange) CommandID() cc.CommandID
- func (cmd StopLevelChange) CommandIDString() string
- func (cmd *StopLevelChange) MarshalBinary() (payload []byte, err error)
- func (cmd *StopLevelChange) UnmarshalBinary(data []byte) error
Constants ¶
View Source
const CommandGet cc.CommandID = 0x02
View Source
const CommandReport cc.CommandID = 0x03
View Source
const CommandSet cc.CommandID = 0x01
View Source
const CommandStartLevelChange cc.CommandID = 0x04
View Source
const CommandStopLevelChange cc.CommandID = 0x05
Variables ¶
This section is empty.
Functions ¶
func NewStartLevelChange ¶
func NewStopLevelChange ¶
Types ¶
type Get ¶
type Get struct { }
<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 {
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 {
Value byte
}
<no value>
func (Set) CommandClassID ¶
func (cmd Set) CommandClassID() cc.CommandClassID
func (Set) CommandIDString ¶
func (*Set) MarshalBinary ¶
func (*Set) UnmarshalBinary ¶
type StartLevelChange ¶
<no value>
func (StartLevelChange) CommandClassID ¶
func (cmd StartLevelChange) CommandClassID() cc.CommandClassID
func (StartLevelChange) CommandID ¶
func (cmd StartLevelChange) CommandID() cc.CommandID
func (StartLevelChange) CommandIDString ¶
func (cmd StartLevelChange) CommandIDString() string
func (*StartLevelChange) MarshalBinary ¶
func (cmd *StartLevelChange) MarshalBinary() (payload []byte, err error)
func (*StartLevelChange) UnmarshalBinary ¶
func (cmd *StartLevelChange) UnmarshalBinary(data []byte) error
type StopLevelChange ¶
type StopLevelChange struct { }
<no value>
func (StopLevelChange) CommandClassID ¶
func (cmd StopLevelChange) CommandClassID() cc.CommandClassID
func (StopLevelChange) CommandID ¶
func (cmd StopLevelChange) CommandID() cc.CommandID
func (StopLevelChange) CommandIDString ¶
func (cmd StopLevelChange) CommandIDString() string
func (*StopLevelChange) MarshalBinary ¶
func (cmd *StopLevelChange) MarshalBinary() (payload []byte, err error)
func (*StopLevelChange) UnmarshalBinary ¶
func (cmd *StopLevelChange) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.