SX1261 and sx1262 common library
Dependents: SX126xDevKit SX1262PingPong SX126X_TXonly SX126X_PingPong_Demo ... more
Fork of SX126xLib by
Diff: sx126x-hal.h
- Revision:
- 5:e488e6f185f3
- Parent:
- 4:c6ef863d0b07
- Child:
- 6:1e2345700991
--- a/sx126x-hal.h Mon Sep 04 15:16:44 2017 +0000 +++ b/sx126x-hal.h Fri Mar 09 13:19:45 2018 +0000 @@ -36,7 +36,7 @@ */ SX126xHal( PinName mosi, PinName miso, PinName sclk, PinName nss, PinName busy, PinName dio1, PinName dio2, PinName dio3, PinName rst, - PinName deviceSelect, PinName antSwPower, RadioCallbacks_t *callbacks ); + PinName freqSel, PinName deviceSelect, PinName antSwPower, RadioCallbacks_t *callbacks ); /*! * \brief Destructor for SX126xHal @@ -139,11 +139,19 @@ /*! * \brief Returns the device type * - * \retval 1: SX1261, 0: sx1262 + * \retval 1: SX1261, 0: sx1262 */ virtual uint8_t GetDeviceType( void ); /*! + * \brief Returns the matching frequency + * + * \retval 1: 868 MHz + * 0: 915 MHz + */ + virtual uint8_t GetFreqSelect( void ); + + /*! * \brief RF Switch power on */ virtual void AntSwOn( void ); @@ -163,6 +171,7 @@ InterruptIn *DIO1; //!< The pin connected to DIO1 InterruptIn *DIO2; //!< The pin connected to DIO2 InterruptIn *DIO3; //!< The pin connected to DIO3 + DigitalIn FreqSelect; //!< The pin connected to a pull-up/down to select Frequency of the matching DigitalIn DeviceSelect; //!< The pin connected to a pull-up/down to select device DigitalOut antSwitchPower; //!< The pin connected to the RF Switch Power