2 Copyright (c) 2007 Stefan Engelke <mbox@stefanengelke.de>
4 Permission is hereby granted, free of charge, to any person
5 obtaining a copy of this software and associated documentation
6 files (the "Software"), to deal in the Software without
7 restriction, including without limitation the rights to use, copy,
8 modify, merge, publish, distribute, sublicense, and/or sell copies
9 of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
12 The above copyright notice and this permission notice shall be
13 included in all copies or substantial portions of the Software.
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
28 #define EN_RXADDR 0x02
30 #define SETUP_RETR 0x04
34 #define OBSERVE_TX 0x08
36 #define RX_ADDR_P0 0x0A
37 #define RX_ADDR_P1 0x0B
38 #define RX_ADDR_P2 0x0C
39 #define RX_ADDR_P3 0x0D
40 #define RX_ADDR_P4 0x0E
41 #define RX_ADDR_P5 0x0F
49 #define FIFO_STATUS 0x17
101 /* Instruction Mnemonics */
102 #define R_REGISTER 0x00
103 #define W_REGISTER 0x20
104 #define REGISTER_MASK 0x1F
105 #define ACTIVATE 0x50
106 #define R_RX_PL_WID 0x60
107 #define R_RX_PAYLOAD 0x61
108 #define W_TX_PAYLOAD 0xA0
109 #define W_ACK_PAYLOAD 0xA8
110 #define FLUSH_TX 0xE1
111 #define FLUSH_RX 0xE2
112 #define REUSE_TX_PL 0xE3
115 /* Non-P omissions */
118 /* P model memory Map */
121 /* P model bit Mnemonics */
125 #define RF_PWR_HIGH 2