sensormultilevelv10

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CommandGet cc.CommandID = 0x04
View Source
const CommandReport cc.CommandID = 0x05
View Source
const CommandSupportedGetScale cc.CommandID = 0x03
View Source
const CommandSupportedGetSensor cc.CommandID = 0x01
View Source
const CommandSupportedScaleReport cc.CommandID = 0x06
View Source
const CommandSupportedSensorReport cc.CommandID = 0x02

Variables

This section is empty.

Functions

func NewGet

func NewGet() cc.Command

func NewReport

func NewReport() cc.Command

func NewSupportedGetScale

func NewSupportedGetScale() cc.Command

func NewSupportedGetSensor

func NewSupportedGetSensor() cc.Command

func NewSupportedScaleReport

func NewSupportedScaleReport() cc.Command

func NewSupportedSensorReport

func NewSupportedSensorReport() cc.Command

Types

type Get

type Get struct {
	SensorType byte

	Properties1 struct {
		Scale byte
	}
}

<no value>

func (Get) CommandClassID

func (cmd Get) CommandClassID() cc.CommandClassID

func (Get) CommandID

func (cmd Get) CommandID() cc.CommandID

func (Get) CommandIDString

func (cmd Get) CommandIDString() string

func (*Get) MarshalBinary

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

func (*Get) UnmarshalBinary

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

type Report

type Report struct {
	SensorType byte

	Level struct {
		Size byte

		Scale byte

		Precision byte
	}

	SensorValue []byte
}

<no value>

func (Report) CommandClassID

func (cmd Report) CommandClassID() cc.CommandClassID

func (Report) CommandID

func (cmd Report) CommandID() cc.CommandID

func (Report) CommandIDString

func (cmd Report) CommandIDString() string

func (*Report) MarshalBinary

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

func (*Report) UnmarshalBinary

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

type SupportedGetScale

type SupportedGetScale struct {
	SensorType byte
}

<no value>

func (SupportedGetScale) CommandClassID

func (cmd SupportedGetScale) CommandClassID() cc.CommandClassID

func (SupportedGetScale) CommandID

func (cmd SupportedGetScale) CommandID() cc.CommandID

func (SupportedGetScale) CommandIDString

func (cmd SupportedGetScale) CommandIDString() string

func (*SupportedGetScale) MarshalBinary

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

func (*SupportedGetScale) UnmarshalBinary

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

type SupportedGetSensor

type SupportedGetSensor struct {
}

<no value>

func (SupportedGetSensor) CommandClassID

func (cmd SupportedGetSensor) CommandClassID() cc.CommandClassID

func (SupportedGetSensor) CommandID

func (cmd SupportedGetSensor) CommandID() cc.CommandID

func (SupportedGetSensor) CommandIDString

func (cmd SupportedGetSensor) CommandIDString() string

func (*SupportedGetSensor) MarshalBinary

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

func (*SupportedGetSensor) UnmarshalBinary

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

type SupportedScaleReport

type SupportedScaleReport struct {
	SensorType byte

	Properties1 struct {
		ScaleBitMask byte
	}
}

<no value>

func (SupportedScaleReport) CommandClassID

func (cmd SupportedScaleReport) CommandClassID() cc.CommandClassID

func (SupportedScaleReport) CommandID

func (cmd SupportedScaleReport) CommandID() cc.CommandID

func (SupportedScaleReport) CommandIDString

func (cmd SupportedScaleReport) CommandIDString() string

func (*SupportedScaleReport) MarshalBinary

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

func (*SupportedScaleReport) UnmarshalBinary

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

type SupportedSensorReport

type SupportedSensorReport struct {
	BitMask []byte
}

<no value>

func (SupportedSensorReport) CommandClassID

func (cmd SupportedSensorReport) CommandClassID() cc.CommandClassID

func (SupportedSensorReport) CommandID

func (cmd SupportedSensorReport) CommandID() cc.CommandID

func (SupportedSensorReport) CommandIDString

func (cmd SupportedSensorReport) CommandIDString() string

func (*SupportedSensorReport) MarshalBinary

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

func (*SupportedSensorReport) UnmarshalBinary

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

Jump to

Keyboard shortcuts

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