time

package
v0.0.0-...-eab7a3e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CommandDateGet cc.CommandID = 0x03
View Source
const CommandDateReport cc.CommandID = 0x04
View Source
const CommandGet cc.CommandID = 0x01
View Source
const CommandReport cc.CommandID = 0x02

Variables

This section is empty.

Functions

func NewDateGet

func NewDateGet() cc.Command

func NewDateReport

func NewDateReport() cc.Command

func NewGet

func NewGet() cc.Command

func NewReport

func NewReport() cc.Command

func Noop

func Noop()

Types

type DateGet

type DateGet struct {
}

<no value>

func (DateGet) CommandClassID

func (cmd DateGet) CommandClassID() cc.CommandClassID

func (DateGet) CommandID

func (cmd DateGet) CommandID() cc.CommandID

func (DateGet) CommandIDString

func (cmd DateGet) CommandIDString() string

func (*DateGet) MarshalBinary

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

func (*DateGet) UnmarshalBinary

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

type DateReport

type DateReport struct {
	Year uint16

	Month byte

	Day byte
}

<no value>

func (DateReport) CommandClassID

func (cmd DateReport) CommandClassID() cc.CommandClassID

func (DateReport) CommandID

func (cmd DateReport) CommandID() cc.CommandID

func (DateReport) CommandIDString

func (cmd DateReport) CommandIDString() string

func (*DateReport) MarshalBinary

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

func (*DateReport) UnmarshalBinary

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

type Get

type Get struct {
}

<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 {
	Properties1 struct {
		HourLocalTime byte

		RtcFailure bool
	}

	MinuteLocalTime byte

	SecondLocalTime 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

Jump to

Keyboard shortcuts

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