mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-14 03:43:42 +00:00
examples: use shorter names for Lora radio functions
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -13,20 +13,20 @@ type SimLoraRadio struct {
|
||||
func (sr *SimLoraRadio) Reset() {
|
||||
}
|
||||
|
||||
func (sr *SimLoraRadio) LoraTx(pkt []uint8, timeoutMs uint32) error {
|
||||
func (sr *SimLoraRadio) Tx(pkt []uint8, timeoutMs uint32) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (sr *SimLoraRadio) LoraRx(timeoutMs uint32) ([]uint8, error) {
|
||||
func (sr *SimLoraRadio) Rx(timeoutMs uint32) ([]uint8, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (sr *SimLoraRadio) SetLoraFrequency(freq uint32) {}
|
||||
func (sr *SimLoraRadio) SetLoraIqMode(mode uint8) {}
|
||||
func (sr *SimLoraRadio) SetLoraCodingRate(cr uint8) {}
|
||||
func (sr *SimLoraRadio) SetLoraBandwidth(bw uint8) {}
|
||||
func (sr *SimLoraRadio) SetLoraCrc(enable bool) {}
|
||||
func (sr *SimLoraRadio) SetLoraSpreadingFactor(sf uint8) {}
|
||||
func (sr *SimLoraRadio) SetFrequency(freq uint32) {}
|
||||
func (sr *SimLoraRadio) SetIqMode(mode uint8) {}
|
||||
func (sr *SimLoraRadio) SetCodingRate(cr uint8) {}
|
||||
func (sr *SimLoraRadio) SetBandwidth(bw uint8) {}
|
||||
func (sr *SimLoraRadio) SetCrc(enable bool) {}
|
||||
func (sr *SimLoraRadio) SetSpreadingFactor(sf uint8) {}
|
||||
|
||||
func firmwareVersion() string {
|
||||
return "simulator " + currentVersion()
|
||||
|
||||
Reference in New Issue
Block a user