tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/lora/radio.go (about)

     1  package lora
     2  
     3  type Radio interface {
     4  	Reset()
     5  	Tx(pkt []uint8, timeoutMs uint32) error
     6  	Rx(timeoutMs uint32) ([]uint8, error)
     7  	SetFrequency(freq uint32)
     8  	SetIqMode(mode uint8)
     9  	SetCodingRate(cr uint8)
    10  	SetBandwidth(bw uint8)
    11  	SetCrc(enable bool)
    12  	SetSpreadingFactor(sf uint8)
    13  	SetPreambleLength(plen uint16)
    14  	SetTxPower(txpow int8)
    15  	SetSyncWord(syncWord uint16)
    16  	SetPublicNetwork(enable bool)
    17  	SetHeaderType(headerType uint8)
    18  	LoraConfig(cnf Config)
    19  }