common

package
v0.0.0-...-0087ba1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

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) SetIqMode

func (sr *SimLoraRadio) SetIqMode(mode uint8)

func (*SimLoraRadio) SetSpreadingFactor

func (sr *SimLoraRadio) SetSpreadingFactor(sf uint8)

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