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

     1  package sx126x
     2  
     3  // SX126X radio transceiver has several pins that control
     4  // RF_IN, RF_OUT, NSS, and BUSY.
     5  // This interface allows the creation of struct
     6  // that can drive the RF Switch (Used in Lora RX and Lora Tx)
     7  type RadioController interface {
     8  	Init() error
     9  	SetRfSwitchMode(mode int) error
    10  	SetNss(state bool) error
    11  	WaitWhileBusy() error
    12  	SetupInterrupts(handler func()) error
    13  }