Low-level driver for nrf24l01+ transceiver.
More...
Go to the source code of this file.
|
#define | INITIAL_ADDRESS_WIDTH 5 |
|
#define | NRF24L01P_MAX_DATA_LENGTH 32 |
|
#define | INITIAL_RF_CHANNEL 5 |
|
#define | INITIAL_RX_POWER_0dB 0 |
|
|
#define | DELAY_CS_TOGGLE_US 2 |
|
#define | DELAY_AFTER_FUNC_US 2 |
|
#define | DELAY_CE_HIGH_US (20) |
|
#define | DELAY_CHANGE_PWR_MODE_US (1500) |
|
#define | DELAY_CHANGE_TXRX_US (130) |
|
#define | DELAY_CE_START_US (5) |
|
#define | DELAY_DATA_ON_AIR (1300) |
|
|
#define | CMD_R_REGISTER 0x00 |
|
#define | CMD_W_REGISTER 0x20 |
|
#define | CMD_R_RX_PAYLOAD 0x61 |
|
#define | CMD_W_TX_PAYLOAD 0xa0 |
|
#define | CMD_FLUSH_TX 0xe1 |
|
#define | CMD_FLUSH_RX 0xe2 |
|
#define | CMD_REUSE_TX_PL 0xe3 |
|
#define | CMD_R_RX_PL_WID 0x60 |
|
#define | CMD_W_ACK_PAYLOAD 0xa8 |
|
#define | CMD_W_TX_PAYLOAD_NOACK 0xb0 |
|
#define | CMD_NOOP 0xff |
|
#define | REGISTER_MASK 0x1F |
|
|
#define | REG_CONFIG 0x00 |
|
#define | REG_EN_AA 0x01 |
|
#define | REG_EN_RXADDR 0x02 |
|
#define | REG_SETUP_AW 0x03 |
|
#define | REG_SETUP_RETR 0x04 |
|
#define | REG_RF_CH 0x05 |
|
#define | REG_RF_SETUP 0x06 |
|
#define | REG_STATUS 0x07 |
|
#define | REG_OBSERVE_TX 0x08 |
|
#define | REG_RPD 0x09 |
|
#define | REG_RX_ADDR_P0 0x0a |
|
#define | REG_RX_ADDR_P1 0x0b |
|
#define | REG_RX_ADDR_P2 0x0c |
|
#define | REG_RX_ADDR_P3 0x0d |
|
#define | REG_RX_ADDR_P4 0x0e |
|
#define | REG_RX_ADDR_P5 0x0f |
|
#define | REG_TX_ADDR 0x10 |
|
#define | REG_RX_PW_P0 0x11 |
|
#define | REG_RX_PW_P1 0x12 |
|
#define | REG_RX_PW_P2 0x13 |
|
#define | REG_RX_PW_P3 0x14 |
|
#define | REG_RX_PW_P4 0x15 |
|
#define | REG_RX_PW_P5 0x16 |
|
#define | REG_FIFO_STATUS 0x17 |
|
#define | REG_DYNPD 0x1c |
|
#define | REG_FEATURE 0x1d |
|
|
#define | ENAA_P0 0x01 |
|
#define | ENAA_P1 0x02 |
|
#define | ENAA_P2 0x04 |
|
#define | ENAA_P3 0x08 |
|
#define | ENAA_P4 0x10 |
|
#define | ENAA_P5 0x20 |
|
|
#define | MASK_RX_DR 0x40 |
|
#define | MASK_TX_DS 0x20 |
|
#define | MASK_MAX_RT 0x10 |
|
#define | EN_CRC 0x08 |
|
#define | CRCO 0x04 |
|
#define | PWR_UP 0x02 |
|
#define | PRIM_RX 0x01 |
|
|
#define | RX_DR 0x40 |
|
#define | TX_DS 0x20 |
|
#define | MAX_RT 0x10 |
|
#define | RX_P_NO 0x0e |
|
#define | TX_FULL 0x01 |
|
#define | ALL_INT_MASK 0x70 |
|
|
#define | RF_SETUP_CONT_WAVE (1 << 7) |
|
#define | RF_SETUP_RF_DR_LOW (1 << 5) |
|
#define | RF_SETUP_PLL_LOCK (1 << 4) |
|
#define | RF_SETUP_RF_DR_HIGH (1 << 3) |
|
#define | RF_SETUP_RF_PWR (3 << 1) |
|
|
#define | DYNPD_DPL_P5 (1 << 5) |
|
#define | DYNPD_DPL_P4 (1 << 4) |
|
#define | DYNPD_DPL_P3 (1 << 3) |
|
#define | DYNPD_DPL_P2 (1 << 2) |
|
#define | DYNPD_DPL_P1 (1 << 1) |
|
#define | DYNPD_DPL_P0 (1 << 0) |
|
|
#define | FEATURE_EN_DPL (1 << 2) |
|
#define | FEATURE_EN_ACK_PAY (1 << 1) |
|
#define | FEATURE_EN_DYN_ACK (1 << 0) |
|