package main import ( "errors" ) var ( errRadioNotFound = errors.New("radio not found") errRxTimeout = errors.New("radio RX timeout") ) 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) }