summaryrefslogtreecommitdiff
path: root/software/avr.lib/cc1101.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2015-02-17 16:08:29 +0100
committerChristian Pointner <equinox@mur.at>2015-02-17 16:08:29 +0100
commit44dda8f30750d0cb2915e9cfadec4798caf88e0c (patch)
tree76b56ffcc1d43a828778795f6d14862572626a45 /software/avr.lib/cc1101.h
parenthhd70: added idle command (diff)
hhd70: reading state works now
Diffstat (limited to 'software/avr.lib/cc1101.h')
-rw-r--r--software/avr.lib/cc1101.h5
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);