#include <stdint.h>
Go to the source code of this file.
◆ FreqCalcSX1280_calcFreqToRegister()
| 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)
- Parameters
-
| 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 |
◆ FreqCalcSX1280_calcRegisterToFreq()
| 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) *
- Parameters
-
| msb | the MSB register value |
| mid | the MID register value |
| lsb | the LSB register value |
- Return values
-
| the | corresponding frequency in Hz |