colorcontrolv2

package
v0.0.0-...-02b3c19 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 NewCapabilityGet() cc.Command

func NewCapabilityReport

func NewCapabilityReport() cc.Command

func NewStartCapabilityLevelChange

func NewStartCapabilityLevelChange() cc.Command

func NewStateGet

func NewStateGet() cc.Command

func NewStateReport

func NewStateReport() cc.Command

func NewStateSet

func NewStateSet() cc.Command

func NewStopStateChange

func NewStopStateChange() cc.Command

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) CommandID

func (cmd StateGet) CommandID() cc.CommandID

func (StateGet) CommandIDString

func (cmd StateGet) CommandIDString() string

func (*StateGet) MarshalBinary

func (cmd *StateGet) MarshalBinary() (payload []byte, err error)

func (*StateGet) UnmarshalBinary

func (cmd *StateGet) UnmarshalBinary(data []byte) error

type StateReport

type StateReport struct {
	CapabilityId byte

	State byte
}

<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

type StateSet struct {
	Properties1 struct {
		StateDataLength byte
	}

	DimmingDuration byte
}

<no value>

func (StateSet) CommandClassID

func (cmd StateSet) CommandClassID() cc.CommandClassID

func (StateSet) CommandID

func (cmd StateSet) CommandID() cc.CommandID

func (StateSet) CommandIDString

func (cmd StateSet) CommandIDString() string

func (*StateSet) MarshalBinary

func (cmd *StateSet) MarshalBinary() (payload []byte, err error)

func (*StateSet) UnmarshalBinary

func (cmd *StateSet) UnmarshalBinary(data []byte) error

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

Jump to

Keyboard shortcuts

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