local copy of sx1276 library
Dependents: SX1276_GPS demo_SX1276_standalone
Fork of SX1276Lib by
Diff: sx1276/sx1276.h
- Revision:
- 16:29f09ac61412
- Parent:
- 13:618826a997e2
--- a/sx1276/sx1276.h Tue Dec 16 10:02:45 2014 +0000 +++ b/sx1276/sx1276.h Tue Jun 16 11:52:30 2015 +0000 @@ -21,7 +21,10 @@ #include "./typedefs/typedefs.h" #define XTAL_FREQ 32000000 -#define FREQ_STEP 61.03515625 +#define FREQ_STEP_MHZ 61.03515625e-6 // 32 / (2^19) +#define FREQ_STEP_KHZ 61.03515625e-3 // 32e3 / (2^19) +#define FREQ_STEP_HZ 61.03515625 // 32e6 / (2^19) +#define FREQ_STEP 61.03515625 // 32e6 / (2^19) #define RX_BUFFER_SIZE 256 @@ -134,6 +137,8 @@ */ virtual void SetChannel( uint32_t freq ); + virtual float GetChannel(void); + /*! * @brief Sets the channels configuration * @@ -346,6 +351,14 @@ */ virtual void Reset( void ) = 0; + /*! + * @brief Gets the board PA selection configuration + * + * @param [IN] channel Channel frequency in Hz + * @retval PaSelect RegPaConfig PaSelect value + */ + + virtual uint8_t GetPaSelect( uint32_t channel ) = 0; //------------------------------------------------------------------------- // Board relative functions //------------------------------------------------------------------------- @@ -379,7 +392,7 @@ * \remark Useful when going in MCU lowpower modes */ virtual void IoDeInit( void ) = 0; - +#if 0 /*! * @brief Gets the board PA selection configuration * @@ -387,6 +400,7 @@ * @retval PaSelect RegPaConfig PaSelect value */ virtual uint8_t GetPaSelect( uint32_t channel ) = 0; +#endif /*! * @brief Set the RF Switch I/Os pins in Low Power mode