summaryrefslogtreecommitdiff
path: root/software/avr.lib/cc1101_defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'software/avr.lib/cc1101_defines.h')
-rw-r--r--software/avr.lib/cc1101_defines.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/software/avr.lib/cc1101_defines.h b/software/avr.lib/cc1101_defines.h
index f1e63aa..6018e60 100644
--- a/software/avr.lib/cc1101_defines.h
+++ b/software/avr.lib/cc1101_defines.h
@@ -120,14 +120,15 @@
//power amplifier table
#define CC1101_REG_PATABLE 0x3E
+#define CC1101_PATABLE_SIZE 8
//data FIFOs
#define CC1101_REG_FIFO 0x3F
+#define CC1101_FIFO_MAX_LEN 64
#define CC1101_ADDR_MAX 0x3F
-
////status byte:
#define CC1101_STATUS_CHIP_NOT_RDY(x) (x & 0b10000000)
#define CC1101_STATUS_IDLE(x) ((x & 0b01110000) == 0b00000000)
@@ -140,8 +141,6 @@
#define CC1101_STATUS_TXFIFO_OVERFLOW(x) ((x & 0b01110000) == 0b01110000)
#define CC1101_STATUS_FIFO_BYTES_AVAILABLE(x) (x & 0b00001111)
-#define CC1101_FIFO_MAX_LEN 64
-
#define CC1101_MARCSTATE_SLEEP 0x00
#define CC1101_MARCSTATE_IDLE 0x01