mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
fa0cf6ec7f
- Remove all default loraconf default initialisation in lorawan examples (Region Settings takes care of this now) - Remove retries while receiving JoinAccept and increase LoraRX to 10s (no need to wait more than 10s) - Add constants for RegionSetting default frequencies - Standardize all lora default configurations in lora examples - Add new AT+LW=NET,(ON|OFF) command in atcmd example
20 lines
452 B
Go
20 lines
452 B
Go
package lora
|
|
|
|
type Radio interface {
|
|
Reset()
|
|
Tx(pkt []uint8, timeoutMs uint32) error
|
|
Rx(timeoutMs uint32) ([]uint8, error)
|
|
SetFrequency(freq uint32)
|
|
SetIqMode(mode uint8)
|
|
SetCodingRate(cr uint8)
|
|
SetBandwidth(bw uint8)
|
|
SetCrc(enable bool)
|
|
SetSpreadingFactor(sf uint8)
|
|
SetPreambleLength(plen uint16)
|
|
SetTxPower(txpow int8)
|
|
SetSyncWord(syncWord uint16)
|
|
SetPublicNetwork(enable bool)
|
|
SetHeaderType(headerType uint8)
|
|
LoraConfig(cnf Config)
|
|
}
|