Documentation ¶
Overview ¶
UNP is a framing protocol (commandtype, subsystem, command, payload) for communicating with Texas Instruments radio devices
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandType ¶
type CommandType byte
const ( C_POLL CommandType = iota C_SREQ C_AREQ C_SRSP C_RES0 C_RES1 C_RES2 C_RES3 )
func (CommandType) String ¶
func (i CommandType) String() string
type ErrorCode ¶
type ErrorCode uint8
values documented in https://dev.ti.com/tirex/content/simplelink_cc13x2_sdk_2_30_00_45/docs/zstack/html/zigbee/znp_interface.html
type Frame ¶
type Frame struct { CommandType CommandType Subsystem Subsystem Command byte Payload []byte }
type Unp ¶
type Unp struct { Transceiver io.ReadWriter // contains filtered or unexported fields }
func NewWith8BitsPayloadLength ¶
func NewWith8BitsPayloadLength(transmitter io.ReadWriter) *Unp
func (*Unp) RenderFrame ¶
func (*Unp) WriteFrame ¶
Click to show internal directories.
Click to hide internal directories.