diff options
Diffstat (limited to 'software/avr.lib/cc1101.h')
-rw-r--r-- | software/avr.lib/cc1101.h | 71 |
1 files changed, 69 insertions, 2 deletions
diff --git a/software/avr.lib/cc1101.h b/software/avr.lib/cc1101.h index ffb886e..ec676e4 100644 --- a/software/avr.lib/cc1101.h +++ b/software/avr.lib/cc1101.h @@ -52,8 +52,71 @@ void cc1101_rx(void); void cc1101_tx(void); cc1101_state_t cc1101_get_state(void); -void cc1101_set_freq_hz(uint32_t hz); -uint32_t cc1101_get_freq_hz(void); +uint8_t cc1101_get_iocfg0(void); +void cc1101_set_iocfg0(uint8_t iocfg); +uint8_t cc1101_get_iocfg1(void); +void cc1101_set_iocfg1(uint8_t iocfg); +uint8_t cc1101_get_iocfg2(void); +void cc1101_set_iocfg2(uint8_t iocfg); + +uint8_t cc1101_get_fifothr(void); +void cc1101_set_fifothr(uint8_t fifothr); + +uint16_t cc1101_get_sync(void); +void cc1101_set_sync(uint16_t sync); +uint8_t cc1101_get_pktlen(void); +void cc1101_set_pktlen(uint8_t len); +uint16_t cc1101_get_pktctrl(void); +void cc1101_set_pktctrl(uint16_t ctrl); +uint8_t cc1101_get_addr(void); +void cc1101_set_addr(uint8_t addr); + +uint8_t cc1101_get_channr(void); +void cc1101_set_channr(uint8_t nr); +uint8_t cc1101_get_iffreq(void); +void cc1101_set_iffreq(uint8_t iffreq); +uint8_t cc1101_get_freq_offset(void); +void cc1101_set_freq_offset(uint8_t freqoff); +uint32_t cc1101_get_freq(void); +void cc1101_set_freq(uint32_t freq); +uint8_t cc1101_get_deviatn(void); +void cc1101_set_deviatn(uint8_t dev); +uint64_t cc1101_get_modemcfg(void); +void cc1101_set_modemcfg(uint64_t cfg); + +uint32_t cc1101_get_mcsm(void); +void cc1101_set_mcsm(uint32_t cfg); + +uint8_t cc1101_get_foccfg(void); +void cc1101_set_foccfg(uint8_t cfg); +uint8_t cc1101_get_bscfg(void); +void cc1101_set_bscfg(uint8_t cfg); +uint32_t cc1101_get_agcctrl(void); +void cc1101_set_agcctrl(uint32_t ctrl); +uint16_t cc1101_get_worevt(void); +void cc1101_set_worevt(uint16_t timeout); +uint8_t cc1101_get_worctrl(void); +void cc1101_set_worctrl(uint8_t ctrl); + +uint16_t cc1101_get_frend(void); +void cc1101_set_frend(uint16_t cfg); +uint32_t cc1101_get_fscal(void); +void cc1101_set_fscal(uint32_t cal); +uint16_t cc1101_get_rcctrl(void); +void cc1101_set_rcctrl(uint16_t ctrl); + +uint8_t cc1101_get_fstest(void); +void cc1101_set_fstest(uint8_t test); +uint8_t cc1101_get_pstest(void); +void cc1101_set_pstest(uint8_t test); +uint8_t cc1101_get_agctest(void); +void cc1101_set_agctest(uint8_t test); +uint8_t cc1101_get_test0(void); +void cc1101_set_test0(uint8_t test); +uint8_t cc1101_get_test1(void); +void cc1101_set_test1(uint8_t test); +uint8_t cc1101_get_test2(void); +void cc1101_set_test2(uint8_t test); uint8_t cc1101_get_partnum(void); uint8_t cc1101_get_chip_version(void); @@ -67,4 +130,8 @@ uint8_t cc1101_get_rx_bytes(void); void cc1101_dump_register(void); + +uint32_t cc1101_get_freq_hz(void); +void cc1101_set_freq_hz(uint32_t hz); + #endif |