I made a fork of a generic library that was developed with support for RFM95 LoRa module that I found online. I Made a few changes and made it compatible with hardware limitations of the MAX32620FTHR and MAX32630FTHR module.
Dependents: MAX326xxFTHR_LoRa_RFM95 MAX326xxFTHR_LoRa_PingPong MAX326xxFTHR_RFM95_LoRa_PingPong MAX326xxFTHR_LoRa_RFM95_PingPong_Example ... more
Fork of SX1276GenericLib by
Diff: sx1276/sx1276.cpp
- Revision:
- 34:07e89f23c734
- Parent:
- 33:5db0d1e716b1
- Child:
- 38:d9189d958db8
--- a/sx1276/sx1276.cpp Mon May 01 18:56:35 2017 +0200 +++ b/sx1276/sx1276.cpp Sat May 06 11:52:23 2017 +0200 @@ -12,6 +12,13 @@ Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin */ + +/* + * additional development to make it more generic across multiple os versions + * (c) 2017 Helmut Tschemernjak + * 30826 Garbsen (Hannover) Germany + */ + #include "sx1276.h" const FskBandwidth_t SX1276::FskBandwidths[] = @@ -41,15 +48,7 @@ }; -SX1276::SX1276( 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 ) - : Radio( events ), - spi( mosi, miso, sclk ), - nss( nss ), - reset( reset ), - dio0( dio0 ), dio1( dio1 ), dio2( dio2 ), dio3( dio3 ), dio4( dio4 ), dio5( dio5 ), - isRadioActive( false ) +SX1276::SX1276( RadioEvents_t *events) : Radio( events ), isRadioActive( false ) { wait_ms( 10 ); this->rxtxBuffer = new uint8_t[RX_BUFFER_SIZE];