summaryrefslogtreecommitdiff
path: root/software/avr.lib/cc1101.h
diff options
context:
space:
mode:
Diffstat (limited to 'software/avr.lib/cc1101.h')
-rw-r--r--software/avr.lib/cc1101.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/software/avr.lib/cc1101.h b/software/avr.lib/cc1101.h
index 6b981b8..48454b6 100644
--- a/software/avr.lib/cc1101.h
+++ b/software/avr.lib/cc1101.h
@@ -39,6 +39,8 @@ typedef struct {
float freq_corr;
} cc1101_driver_conf_t;
+// high level interface
+
void cc1101_init(cc1101_driver_conf_t conf);
void cc1101_reg_init(void);
void cc1101_soft_reset(void);
@@ -52,6 +54,12 @@ void cc1101_rx(void);
void cc1101_tx(void);
cc1101_state_t cc1101_get_state(void);
+uint32_t cc1101_get_freq_hz(void);
+void cc1101_set_freq_hz(uint32_t hz);
+
+
+// normalized register access
+
uint8_t cc1101_get_iocfg0(void);
void cc1101_set_iocfg0(uint8_t iocfg);
uint8_t cc1101_get_iocfg1(void);
@@ -123,15 +131,14 @@ uint8_t cc1101_get_chip_version(void);
uint8_t cc1101_get_freq_offset_est(void);
uint8_t cc1101_get_lqi(void);
int8_t cc1101_get_rssi(void);
+uint8_t cc1101_get_marcstate(void);
uint16_t cc1101_get_wortime(void);
uint8_t cc1101_get_pkt_status(void);
uint8_t cc1101_get_tx_bytes(void);
uint8_t cc1101_get_rx_bytes(void);
+uint8_t cc1101_get_rcctrl0_status(void);
+uint8_t cc1101_get_rcctrl1_status(void);
void cc1101_dump_register(void);
-
-uint32_t cc1101_get_freq_hz(void);
-void cc1101_set_freq_hz(uint32_t hz);
-
#endif