mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-09-11 17:19:28 +00:00
sx127x: add RadioController interface to match sx126x
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package sx127x
|
||||
|
||||
// SX127X radio transceiver has several pins that control NSS,
|
||||
// and that are signalled when RX or TX operations are completed.
|
||||
// This interface allows the creation of types that can control this
|
||||
type RadioController interface {
|
||||
Init() error
|
||||
SetNss(state bool) error
|
||||
SetupInterrupts(handler func()) error
|
||||
}
|
||||
Reference in New Issue
Block a user