From d130078d79dcd8831d660336fc9d9404bc97bb85 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 23 Feb 2015 21:05:24 +0100 Subject: hhd70: implemented also register writes reads and writes to registers are now normalized --- software/avr.lib/cc1101.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'software/avr.lib/cc1101.h') 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 -- cgit v1.2.3