Optimized high speed nRF24L01+ driver class documentation  1.4.2
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
Macros
nRF24L01.h File Reference

Go to the source code of this file.

Macros

#define NRF_CONFIG   0x00
 
#define EN_AA   0x01
 
#define EN_RXADDR   0x02
 
#define SETUP_AW   0x03
 
#define SETUP_RETR   0x04
 
#define RF_CH   0x05
 
#define RF_SETUP   0x06
 
#define NRF_STATUS   0x07
 
#define OBSERVE_TX   0x08
 
#define CD   0x09
 
#define RX_ADDR_P0   0x0A
 
#define RX_ADDR_P1   0x0B
 
#define RX_ADDR_P2   0x0C
 
#define RX_ADDR_P3   0x0D
 
#define RX_ADDR_P4   0x0E
 
#define RX_ADDR_P5   0x0F
 
#define TX_ADDR   0x10
 
#define RX_PW_P0   0x11
 
#define RX_PW_P1   0x12
 
#define RX_PW_P2   0x13
 
#define RX_PW_P3   0x14
 
#define RX_PW_P4   0x15
 
#define RX_PW_P5   0x16
 
#define FIFO_STATUS   0x17
 
#define DYNPD   0x1C
 
#define FEATURE   0x1D
 
#define MASK_RX_DR   6
 
#define MASK_TX_DS   5
 
#define MASK_MAX_RT   4
 
#define EN_CRC   3
 
#define CRCO   2
 
#define PWR_UP   1
 
#define PRIM_RX   0
 
#define ENAA_P5   5
 
#define ENAA_P4   4
 
#define ENAA_P3   3
 
#define ENAA_P2   2
 
#define ENAA_P1   1
 
#define ENAA_P0   0
 
#define ERX_P5   5
 
#define ERX_P4   4
 
#define ERX_P3   3
 
#define ERX_P2   2
 
#define ERX_P1   1
 
#define ERX_P0   0
 
#define AW   0
 
#define ARD   4
 
#define ARC   0
 
#define PLL_LOCK   4
 
#define CONT_WAVE   7
 
#define RF_DR   3
 
#define RF_PWR   6
 
#define RX_DR   6
 
#define TX_DS   5
 
#define MAX_RT   4
 
#define RX_P_NO   1
 
#define TX_FULL   0
 
#define PLOS_CNT   4
 
#define ARC_CNT   0
 
#define TX_REUSE   6
 
#define FIFO_FULL   5
 
#define TX_EMPTY   4
 
#define RX_FULL   1
 
#define RX_EMPTY   0
 
#define DPL_P5   5
 
#define DPL_P4   4
 
#define DPL_P3   3
 
#define DPL_P2   2
 
#define DPL_P1   1
 
#define DPL_P0   0
 
#define EN_DPL   2
 
#define EN_ACK_PAY   1
 
#define EN_DYN_ACK   0
 
#define R_REGISTER   0x00
 
#define W_REGISTER   0x20
 
#define REGISTER_MASK   0x1F
 
#define ACTIVATE   0x50
 
#define R_RX_PL_WID   0x60
 
#define R_RX_PAYLOAD   0x61
 
#define W_TX_PAYLOAD   0xA0
 
#define W_ACK_PAYLOAD   0xA8
 
#define FLUSH_TX   0xE1
 
#define FLUSH_RX   0xE2
 
#define REUSE_TX_PL   0xE3
 
#define RF24_NOP   0xFF
 
#define LNA_HCURR   0
 
#define RPD   0x09
 
#define W_TX_PAYLOAD_NO_ACK   0xB0
 
#define RF_DR_LOW   5
 
#define RF_DR_HIGH   3
 
#define RF_PWR_LOW   1
 
#define RF_PWR_HIGH   2
 

Macro Definition Documentation

◆ NRF_CONFIG

#define NRF_CONFIG   0x00

◆ EN_AA

#define EN_AA   0x01

◆ EN_RXADDR

#define EN_RXADDR   0x02

Definition at line 29 of file nRF24L01.h.

◆ SETUP_AW

#define SETUP_AW   0x03

Definition at line 30 of file nRF24L01.h.

◆ SETUP_RETR

#define SETUP_RETR   0x04

Definition at line 31 of file nRF24L01.h.

◆ RF_CH

#define RF_CH   0x05

Definition at line 32 of file nRF24L01.h.

◆ RF_SETUP

#define RF_SETUP   0x06

Definition at line 33 of file nRF24L01.h.

◆ NRF_STATUS

#define NRF_STATUS   0x07

Definition at line 34 of file nRF24L01.h.

◆ OBSERVE_TX

#define OBSERVE_TX   0x08

Definition at line 35 of file nRF24L01.h.

◆ CD

#define CD   0x09

Definition at line 36 of file nRF24L01.h.

◆ RX_ADDR_P0

#define RX_ADDR_P0   0x0A

Definition at line 37 of file nRF24L01.h.

◆ RX_ADDR_P1

#define RX_ADDR_P1   0x0B

Definition at line 38 of file nRF24L01.h.

◆ RX_ADDR_P2

#define RX_ADDR_P2   0x0C

Definition at line 39 of file nRF24L01.h.

◆ RX_ADDR_P3

#define RX_ADDR_P3   0x0D

Definition at line 40 of file nRF24L01.h.

◆ RX_ADDR_P4

#define RX_ADDR_P4   0x0E

Definition at line 41 of file nRF24L01.h.

◆ RX_ADDR_P5

#define RX_ADDR_P5   0x0F

Definition at line 42 of file nRF24L01.h.

◆ TX_ADDR

#define TX_ADDR   0x10

Definition at line 43 of file nRF24L01.h.

◆ RX_PW_P0

#define RX_PW_P0   0x11

Definition at line 44 of file nRF24L01.h.

◆ RX_PW_P1

#define RX_PW_P1   0x12

Definition at line 45 of file nRF24L01.h.

◆ RX_PW_P2

#define RX_PW_P2   0x13

Definition at line 46 of file nRF24L01.h.

◆ RX_PW_P3

#define RX_PW_P3   0x14

Definition at line 47 of file nRF24L01.h.

◆ RX_PW_P4

#define RX_PW_P4   0x15

Definition at line 48 of file nRF24L01.h.

◆ RX_PW_P5

#define RX_PW_P5   0x16

Definition at line 49 of file nRF24L01.h.

◆ FIFO_STATUS

#define FIFO_STATUS   0x17

Definition at line 50 of file nRF24L01.h.

◆ DYNPD

#define DYNPD   0x1C

Definition at line 51 of file nRF24L01.h.

◆ FEATURE

#define FEATURE   0x1D

Definition at line 52 of file nRF24L01.h.

◆ MASK_RX_DR

#define MASK_RX_DR   6

Definition at line 55 of file nRF24L01.h.

◆ MASK_TX_DS

#define MASK_TX_DS   5

Definition at line 56 of file nRF24L01.h.

◆ MASK_MAX_RT

#define MASK_MAX_RT   4

Definition at line 57 of file nRF24L01.h.

◆ EN_CRC

#define EN_CRC   3

Definition at line 58 of file nRF24L01.h.

◆ CRCO

#define CRCO   2

Definition at line 59 of file nRF24L01.h.

◆ PWR_UP

#define PWR_UP   1

◆ PRIM_RX

#define PRIM_RX   0

◆ ENAA_P5

#define ENAA_P5   5

Definition at line 62 of file nRF24L01.h.

◆ ENAA_P4

#define ENAA_P4   4

Definition at line 63 of file nRF24L01.h.

◆ ENAA_P3

#define ENAA_P3   3

Definition at line 64 of file nRF24L01.h.

◆ ENAA_P2

#define ENAA_P2   2

Definition at line 65 of file nRF24L01.h.

◆ ENAA_P1

#define ENAA_P1   1

Definition at line 66 of file nRF24L01.h.

◆ ENAA_P0

#define ENAA_P0   0

Definition at line 67 of file nRF24L01.h.

◆ ERX_P5

#define ERX_P5   5

Definition at line 68 of file nRF24L01.h.

◆ ERX_P4

#define ERX_P4   4

Definition at line 69 of file nRF24L01.h.

◆ ERX_P3

#define ERX_P3   3

Definition at line 70 of file nRF24L01.h.

◆ ERX_P2

#define ERX_P2   2

Definition at line 71 of file nRF24L01.h.

◆ ERX_P1

#define ERX_P1   1

Definition at line 72 of file nRF24L01.h.

◆ ERX_P0

#define ERX_P0   0

Definition at line 73 of file nRF24L01.h.

◆ AW

#define AW   0

Definition at line 74 of file nRF24L01.h.

◆ ARD

#define ARD   4

Definition at line 75 of file nRF24L01.h.

◆ ARC

#define ARC   0

Definition at line 76 of file nRF24L01.h.

◆ PLL_LOCK

#define PLL_LOCK   4

Definition at line 77 of file nRF24L01.h.

◆ CONT_WAVE

#define CONT_WAVE   7

Definition at line 78 of file nRF24L01.h.

◆ RF_DR

#define RF_DR   3

Definition at line 79 of file nRF24L01.h.

◆ RF_PWR

#define RF_PWR   6

Definition at line 80 of file nRF24L01.h.

◆ RX_DR

#define RX_DR   6

Definition at line 81 of file nRF24L01.h.

◆ TX_DS

#define TX_DS   5

Definition at line 82 of file nRF24L01.h.

◆ MAX_RT

#define MAX_RT   4

Definition at line 83 of file nRF24L01.h.

◆ RX_P_NO

#define RX_P_NO   1

Definition at line 84 of file nRF24L01.h.

◆ TX_FULL

#define TX_FULL   0

Definition at line 85 of file nRF24L01.h.

◆ PLOS_CNT

#define PLOS_CNT   4

Definition at line 86 of file nRF24L01.h.

◆ ARC_CNT

#define ARC_CNT   0

Definition at line 87 of file nRF24L01.h.

◆ TX_REUSE

#define TX_REUSE   6

Definition at line 88 of file nRF24L01.h.

◆ FIFO_FULL

#define FIFO_FULL   5

Definition at line 89 of file nRF24L01.h.

◆ TX_EMPTY

#define TX_EMPTY   4

Definition at line 90 of file nRF24L01.h.

◆ RX_FULL

#define RX_FULL   1

Definition at line 91 of file nRF24L01.h.

◆ RX_EMPTY

#define RX_EMPTY   0

Definition at line 92 of file nRF24L01.h.

◆ DPL_P5

#define DPL_P5   5

Definition at line 93 of file nRF24L01.h.

◆ DPL_P4

#define DPL_P4   4

Definition at line 94 of file nRF24L01.h.

◆ DPL_P3

#define DPL_P3   3

Definition at line 95 of file nRF24L01.h.

◆ DPL_P2

#define DPL_P2   2

Definition at line 96 of file nRF24L01.h.

◆ DPL_P1

#define DPL_P1   1

Definition at line 97 of file nRF24L01.h.

◆ DPL_P0

#define DPL_P0   0

Definition at line 98 of file nRF24L01.h.

◆ EN_DPL

#define EN_DPL   2

Definition at line 99 of file nRF24L01.h.

◆ EN_ACK_PAY

#define EN_ACK_PAY   1

Definition at line 100 of file nRF24L01.h.

◆ EN_DYN_ACK

#define EN_DYN_ACK   0

Definition at line 101 of file nRF24L01.h.

◆ R_REGISTER

#define R_REGISTER   0x00

◆ W_REGISTER

#define W_REGISTER   0x20

◆ REGISTER_MASK

#define REGISTER_MASK   0x1F

Definition at line 106 of file nRF24L01.h.

◆ ACTIVATE

#define ACTIVATE   0x50

Definition at line 107 of file nRF24L01.h.

◆ R_RX_PL_WID

#define R_RX_PL_WID   0x60

Definition at line 108 of file nRF24L01.h.

◆ R_RX_PAYLOAD

#define R_RX_PAYLOAD   0x61

Definition at line 109 of file nRF24L01.h.

◆ W_TX_PAYLOAD

#define W_TX_PAYLOAD   0xA0

Definition at line 110 of file nRF24L01.h.

◆ W_ACK_PAYLOAD

#define W_ACK_PAYLOAD   0xA8

Definition at line 111 of file nRF24L01.h.

◆ FLUSH_TX

#define FLUSH_TX   0xE1

Definition at line 112 of file nRF24L01.h.

◆ FLUSH_RX

#define FLUSH_RX   0xE2

Definition at line 113 of file nRF24L01.h.

◆ REUSE_TX_PL

#define REUSE_TX_PL   0xE3

Definition at line 114 of file nRF24L01.h.

◆ RF24_NOP

#define RF24_NOP   0xFF

Definition at line 115 of file nRF24L01.h.

◆ LNA_HCURR

#define LNA_HCURR   0

Definition at line 118 of file nRF24L01.h.

◆ RPD

#define RPD   0x09

Definition at line 121 of file nRF24L01.h.

◆ W_TX_PAYLOAD_NO_ACK

#define W_TX_PAYLOAD_NO_ACK   0xB0

Definition at line 122 of file nRF24L01.h.

◆ RF_DR_LOW

#define RF_DR_LOW   5

Definition at line 125 of file nRF24L01.h.

◆ RF_DR_HIGH

#define RF_DR_HIGH   3

Definition at line 126 of file nRF24L01.h.

◆ RF_PWR_LOW

#define RF_PWR_LOW   1

Definition at line 127 of file nRF24L01.h.

◆ RF_PWR_HIGH

#define RF_PWR_HIGH   2

Definition at line 128 of file nRF24L01.h.