sx127x: add RadioController interface to match sx126x

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-01-26 21:37:59 +01:00
committed by Ron Evans
parent f2637a87d2
commit 4a950a4474
4 changed files with 87 additions and 21 deletions
+10
View File
@@ -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
}