| Demo HCI Implementation for WiMOD-LR Devices V1.3.1

- Main Page
- Classes
- Files

- File List
- File Members

FreqCalc.h
1 //------------------------------------------------------------------------------
31 //------------------------------------------------------------------------------
32
33 #ifndef ARDUINO_UTILS_FREQCALC_H_
34 #define ARDUINO_UTILS_FREQCALC_H_
35
36
37 #include <stdint.h>
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 void FreqCalc_calcFreqToRegister(uint32_t freq, uint8_t* msb, uint8_t* mid, uint8_t* lsb);
44 uint32_t FreqCalc_calcRegisterToFreq(uint8_t msb, uint8_t mid, uint8_t lsb);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50
51 #endif /* ARDUINO_UTILS_FREQCALC_H_ */
FreqCalc_calcFreqToRegister
void FreqCalc_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.
Definition: FreqCalc.c:45
FreqCalc_calcRegisterToFreq
uint32_t FreqCalc_calcRegisterToFreq(uint8_t msb, uint8_t mid, uint8_t lsb)
Translates given register values to a carrier frequency.
Definition: FreqCalc.c:68