Fork with intent to refactor and add support for American 902-928(915) Frequency Bands
Diff: sx1276/sx1276-hal.h
- Revision:
- 31:e50929bd3f32
- Parent:
- 29:a793ce879585
- Child:
- 34:07e89f23c734
--- a/sx1276/sx1276-hal.h Thu Apr 27 22:33:38 2017 +0200 +++ b/sx1276/sx1276-hal.h Mon May 01 11:43:25 2017 +0200 @@ -17,9 +17,9 @@ #include "sx1276.h" /*! - * \brief Radio hardware registers initialization definition + * @brief Radio hardware registers initialization definition * - * \remark Can be automatically generated by the SX1276 GUI (not yet implemented) + * @remark Can be automatically generated by the SX1276 GUI (not yet implemented) */ #define RADIO_INIT_REGISTERS_VALUE \ { \ @@ -50,13 +50,13 @@ /*! * Antenna switch GPIO pins objects */ - DigitalInOut antSwitch; + DigitalInOut AntSwitch; #ifdef MURATA_ANT_SWITCH - DigitalInOut antSwitchTX; - DigitalInOut antSwitchTXBoost; + DigitalInOut AntSwitchTX; + DigitalInOut AntSwitchTXBoost; #endif - DigitalIn fake; + DigitalIn Fake; private: static const RadioRegisters_t RadioRegsInit[]; @@ -106,6 +106,13 @@ virtual void IoDeInit( void ); /*! + * \brief Sets the radio output power. + * + * @param [IN] power Sets the RF output power + */ + virtual void SetRfTxPower( int8_t power ); + + /*! * @brief Gets the board PA selection configuration * * @param [IN] channel Channel frequency in Hz @@ -128,24 +135,24 @@ /*! * @brief De-initializes the RF Switch I/Os pins interface * - * \remark Needed to decrease the power consumption in MCU lowpower modes + * @remark Needed to decrease the power consumption in MCU lowpower modes */ virtual void AntSwDeInit( void ); /*! * @brief Controls the antena switch if necessary. * - * \remark see errata note + * @remark see errata note * - * @param [IN] rxTx [1: Tx, 0: Rx] + * @param [IN] opMode Current radio operating mode */ - virtual void SetAntSw( uint8_t rxTx ); + virtual void SetAntSw( uint8_t opMode ); public: /*! * @brief Detect the board connected by reading the value of the antenna switch pin */ - virtual uint8_t DetectBoardType( void ); + virtual uint8_t DetectBoardType( void ); /*! * @brief Checks if the given RF frequency is supported by the hardware