Fork with intent to refactor and add support for American 902-928(915) Frequency Bands

Revision:
21:2e496deb7858
Parent:
12:aa5b3bf7fdf4
Child:
22:7f3aab69cca9
--- a/sx1276/sx1276-hal.h	Tue Oct 20 12:58:58 2015 +0000
+++ b/sx1276/sx1276-hal.h	Thu Nov 26 10:39:03 2015 +0000
@@ -33,13 +33,11 @@
     static const RadioRegisters_t RadioRegsInit[];
     
 public:
-    SX1276MB1xAS( void ( *txDone )( ), void ( *txTimeout ) ( ), void ( *rxDone ) ( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ), 
-                  void ( *rxTimeout ) ( ), void ( *rxError ) ( ), void ( *fhssChangeChannel ) ( uint8_t channelIndex ), void ( *cadDone ) ( bool ChannelActivityDetected ),
+    SX1276MB1xAS( RadioEvents_t *events,
             PinName mosi, PinName miso, PinName sclk, PinName nss, PinName reset,
             PinName dio0, PinName dio1, PinName dio2, PinName dio3, PinName dio4, PinName dio5,
             PinName antSwitch ); 
-            SX1276MB1xAS( void ( *txDone )( ), void ( *txTimeout ) ( ), void ( *rxDone ) ( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ),
-                          void ( *rxTimeout ) ( ), void ( *rxError ) ( ), void ( *fhssChangeChannel ) ( uint8_t channelIndex ), void ( *cadDone ) ( bool ChannelActivityDetected ) );
+            SX1276MB1xAS( RadioEvents_t *events );
     virtual ~SX1276MB1xAS( ) { };
     
     protected: