UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
cc1125.h
1 #ifndef __CC112x_H__
2 #define __CC112x_H__
3 
4 #include "../firmware.h"
5 
6 typedef struct
7 {
8  uint16_t addr;
9  uint8_t data;
11 
12 bool cc1125_pollGPIO(uint8_t gpio_pin);
13 void manualCalibration(uint8_t radio_id);
14 void radio_reset_config(uint8_t radio_id, const registerSetting_t *cfg, uint16_t len);
15 uint8_t radio_set_pwr_f(uint8_t radio_id, double *pwr, uint8_t *reg_value);
16 uint8_t radio_set_freq_f(uint8_t radio_id, double *freq);
17 uint8_t radio_set_fsk_param(uint8_t radio_id, uint32_t *symbol_rate, uint32_t *deviation);
18 uint8_t radio_set_rxbw_param(uint8_t radio_id, uint32_t *rxbw);
19 uint8_t radio_set_pwr_reg(uint8_t radio_id, uint8_t reg_value);
20 double radio_pwr_reg_to_dbm(uint8_t reg_value);
21 
22 #endif /* __CC112x_H__ */