diff options
Diffstat (limited to 'software/avr.lib/cc1101.h')
-rw-r--r-- | software/avr.lib/cc1101.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/software/avr.lib/cc1101.h b/software/avr.lib/cc1101.h index 6e9e657..6f2ec4c 100644 --- a/software/avr.lib/cc1101.h +++ b/software/avr.lib/cc1101.h @@ -23,6 +23,10 @@ #ifndef SPREADAVR_cc1101_h_INCLUDED #define SPREADAVR_cc1101_h_INCLUDED +typedef enum { unknown, sleep, idle, xoff, mancal, fs_wakeup, calibrate, settling, rx, txrx_settling, + rxfifo_overflow, fstxon, tx, rxtx_settling, txfifo_underflow } cc1101_state_t; +char* cc1101_state_to_string(cc1101_state_t); + #define CC1101_FREQ_CORR(xtal) ((float)(xtal/65536.0)) typedef struct { @@ -41,6 +45,7 @@ void cc1101_soft_reset(void); void cc1101_powerdown(void); void cc1101_idle(void); +cc1101_state_t cc1101_get_state(void); void cc1101_set_freq_hz(uint32_t hz); uint32_t cc1101_get_freq_hz(void); |