Documentation ¶
Index ¶
- Constants
- func CurrentVersion() string
- func FirmwareVersion() string
- func Lorarx() ([]byte, error)
- func SetupLora() (lora.Radio, error)
- type SimLoraRadio
- func (sr *SimLoraRadio) LoraConfig(cnf lora.Config)
- func (sr *SimLoraRadio) Reset()
- func (sr *SimLoraRadio) Rx(timeoutMs uint32) ([]uint8, error)
- func (sr *SimLoraRadio) SetBandwidth(bw uint8)
- func (sr *SimLoraRadio) SetCodingRate(cr uint8)
- func (sr *SimLoraRadio) SetCrc(enable bool)
- func (sr *SimLoraRadio) SetFrequency(freq uint32)
- func (sr *SimLoraRadio) SetHeaderType(headerType uint8)
- func (sr *SimLoraRadio) SetIqMode(mode uint8)
- func (sr *SimLoraRadio) SetPreambleLength(pLen uint16)
- func (sr *SimLoraRadio) SetPublicNetwork(enabled bool)
- func (sr *SimLoraRadio) SetSpreadingFactor(sf uint8)
- func (sr *SimLoraRadio) SetSyncWord(syncWord uint16)
- func (sr *SimLoraRadio) SetTxPower(txPower int8)
- func (sr *SimLoraRadio) Tx(pkt []uint8, timeoutMs uint32) error
Constants ¶
View Source
const VERSION = "0.0.1"
Variables ¶
This section is empty.
Functions ¶
func CurrentVersion ¶
func CurrentVersion() string
func FirmwareVersion ¶
func FirmwareVersion() string
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) 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)
Click to show internal directories.
Click to hide internal directories.