smartnet

package
v0.0.0-...-fff4e01 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SmartnetMagicNumber   uint8  = 0xAC
	SmartnetSyncLength           = 8
	SmartnetFrameLength          = 84
	SmartnetPayloadLength        = 76
	SmartnetDataLength           = 27
	SmartnetCRCLength            = 10
	SmartnetIDXOr         uint16 = 0x33C7
	SmartnetCmdXOr        uint16 = 0x032A
	SmartnetIDInvXOr      uint16 = (^SmartnetIDXOr) & 0xffff
	SmartnetCmdInvXOr     uint16 = ^SmartnetCmdXOr & 0x3ff
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SmartnetAssembler

type SmartnetAssembler struct {
	// contains filtered or unexported fields
}

func NewSmartnetAssembler

func NewSmartnetAssembler(ctx context.Context, systemID int, ch chan op25.OSWPacket, logger zerolog.Logger) *SmartnetAssembler

func (*SmartnetAssembler) Receive

func (s *SmartnetAssembler) Receive(buf []byte)

type SmartnetPacket

type SmartnetPacket struct {
	Address uint16
	Group   uint8
	Command uint16
	RawData [6]byte
}

type SmartnetProcessor

type SmartnetProcessor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(systemID int, dataPacketChan chan op25.OSWPacket, updateChan chan op25.DataPacket, writeAPI api.WriteAPI, logger zerolog.Logger) *SmartnetProcessor

func (*SmartnetProcessor) Start

func (s *SmartnetProcessor) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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