fhdr

package
v0.3.67 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFOptsDown

func ParseFOptsDown(payload []byte) []commands.Fopter

ParseFOptsDown parses the MAC commands for an downlink frame

NOTE: logs a warning to the console when unknown CID encountered

func ParseFOptsUp

func ParseFOptsUp(payload []byte) []commands.Fopter

ParseFOptsUp parses the MAC commands for an uplink frame

NOTE: logs a warning to the console when unknown CID encountered

Types

type FCtrl

type FCtrl interface {
	ADR() bool
	ACK() bool
	FOptsLen() uint8
}

type FCtrlDown

type FCtrlDown interface {
	FCtrl
	FPending() bool
}

type FCtrlUp

type FCtrlUp interface {
	FCtrl
	ADRACKReq() bool
}

type FHDR

type FHDR interface {
	//String returns a MAC header into a string
	String() string
	//ByteArray returns a MAC header into a byte array
	ByteArray() []byte
	DevAddr() []byte
	FCnt() uint16
	FOpts() []commands.Fopter
}

type FHDRDown

type FHDRDown interface {
	FHDR
	FCtrlDown
}

func NewDown

func NewDown(devaddr []byte, fcnt uint16, fopts []commands.Fopter, adr,
	ack, fpending bool, foptslen uint8) FHDRDown

func ParseDown

func ParseDown(bb []byte) FHDRDown

type FHDRUp

type FHDRUp interface {
	FHDR
	FCtrlUp
}

func NewUp

func NewUp(devaddr []byte, fcnt uint16, fopts []commands.Fopter, adr, ack, adrackreq bool, foptslen uint8) FHDRUp

func ParseUp

func ParseUp(bb []byte) FHDRUp

Jump to

Keyboard shortcuts

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