Files
drivers/examples/lora/atcmd/radio.go
T
2023-01-08 14:31:25 +01:00

22 lines
395 B
Go

package main
import (
"errors"
)
var (
errRadioNotFound = errors.New("radio not found")
)
type LoraRadio interface {
Reset()
LoraTx(pkt []uint8, timeoutMs uint32) error
LoraRx(timeoutMs uint32) ([]uint8, error)
SetLoraFrequency(freq uint32)
SetLoraIqMode(mode uint8)
SetLoraCodingRate(cr uint8)
SetLoraBandwidth(bw uint8)
SetLoraCrc(enable bool)
SetLoraSpreadingFactor(sf uint8)
}