| Demo HCI Implementation for WiMOD-LR Devices V2.0.3

Functions
FreqCalc_SX1280.c File Reference
`#include "FreqCalc_SX1280.h"`
Include dependency graph for FreqCalc_SX1280.c:

## 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...

## Function Documentation

## ◆ 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