diff options
author | Christian Pointner <equinox@mur.at> | 2015-02-24 01:57:01 +0100 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2015-02-24 01:57:01 +0100 |
commit | 94a21c38b291c4e174c1f9b2cfd3d3281cd85fa7 (patch) | |
tree | 2afa540f8b5211bd31c315a9aa10d7869f15b389 /software/avr.lib/cc1101_defines.h | |
parent | fixed set_freq and reg_init (diff) |
hhd70: added internal functions for bulk read and write
Diffstat (limited to 'software/avr.lib/cc1101_defines.h')
-rw-r--r-- | software/avr.lib/cc1101_defines.h | 5 |
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 |