common

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: BSD-3-Clause Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const VERSION = "0.0.1"

Variables

This section is empty.

Functions

func CurrentVersion

func CurrentVersion() string

func FirmwareVersion

func FirmwareVersion() string

func Lorarx

func Lorarx() ([]byte, error)

func SetupLora

func SetupLora() (lora.Radio, error)

do simulator setup here

Types

type SimLoraRadio

type SimLoraRadio struct {
}

func (*SimLoraRadio) LoraConfig

func (sr *SimLoraRadio) LoraConfig(cnf lora.Config)

func (*SimLoraRadio) Reset

func (sr *SimLoraRadio) Reset()

func (*SimLoraRadio) Rx

func (sr *SimLoraRadio) Rx(timeoutMs uint32) ([]uint8, error)

func (*SimLoraRadio) SetBandwidth

func (sr *SimLoraRadio) SetBandwidth(bw uint8)

func (*SimLoraRadio) SetCodingRate

func (sr *SimLoraRadio) SetCodingRate(cr uint8)

func (*SimLoraRadio) SetCrc

func (sr *SimLoraRadio) SetCrc(enable bool)

func (*SimLoraRadio) SetFrequency

func (sr *SimLoraRadio) SetFrequency(freq uint32)

func (*SimLoraRadio) SetHeaderType added in v0.27.0

func (sr *SimLoraRadio) SetHeaderType(headerType uint8)

func (*SimLoraRadio) SetIqMode

func (sr *SimLoraRadio) SetIqMode(mode uint8)

func (*SimLoraRadio) SetPreambleLength added in v0.27.0

func (sr *SimLoraRadio) SetPreambleLength(pLen uint16)

func (*SimLoraRadio) SetPublicNetwork added in v0.27.0

func (sr *SimLoraRadio) SetPublicNetwork(enabled bool)

func (*SimLoraRadio) SetSpreadingFactor

func (sr *SimLoraRadio) SetSpreadingFactor(sf uint8)

func (*SimLoraRadio) SetSyncWord added in v0.27.0

func (sr *SimLoraRadio) SetSyncWord(syncWord uint16)

func (*SimLoraRadio) SetTxPower added in v0.27.0

func (sr *SimLoraRadio) SetTxPower(txPower int8)

func (*SimLoraRadio) Tx

func (sr *SimLoraRadio) Tx(pkt []uint8, timeoutMs uint32) error

Jump to

Keyboard shortcuts

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