![]() |
Demo HCI Implementation for WiMOD-LR Devices
V2.0.3
|
#include "FreqCalc_SX1280.h"
Functions | |
| void | FreqCalcSX1280_calcFreqToRegister (uint32_t freq, uint8_t *msb, uint8_t *mid, uint8_t *lsb) |
| Translates a given frequency to the according register values of the TRX. More... | |
| uint32_t | FreqCalcSX1280_calcRegisterToFreq (uint8_t msb, uint8_t mid, uint8_t lsb) |
| Translates given register values to a carrier frequency. More... | |
| void FreqCalcSX1280_calcFreqToRegister | ( | uint32_t | freq, |
| uint8_t * | msb, | ||
| uint8_t * | mid, | ||
| uint8_t * | lsb | ||
| ) |
Translates a given frequency to the according register values of the TRX.
Note: This is not 100% exact. (see formula in TRX datasheet)
| freq | RF mid frequency in Hz |
| msb | pointer where to store the MSB register value |
| mid | pointer where to store the MID register value |
| lsb | pointer where to store the LSB register value |
| uint32_t FreqCalcSX1280_calcRegisterToFreq | ( | uint8_t | msb, |
| uint8_t | mid, | ||
| uint8_t | lsb | ||
| ) |
Translates given register values to a carrier frequency.
Note: This is not 100% exact. (see formula in TRX datasheet) *
| msb | the MSB register value |
| mid | the MID register value |
| lsb | the LSB register value |
| the | corresponding frequency in Hz |