Optimized high speed nRF24L01+ driver class documentation  V1.3.7
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
Macros | Typedefs
Porting: General

Macros

#define RF24_LINUX
 
#define _BV(x)   (1 << (x))
 
#define _SPI   spi
 
#define IF_SERIAL_DEBUG(x)
 
#define PSTR(x)   (x)
 
#define printf_P   printf
 
#define strlen_P   strlen
 
#define PROGMEM
 
#define pgm_read_word(p)   (*(p))
 
#define PRIPSTR   "%s"
 
#define pgm_read_byte(p)   (*(p))
 
#define LOW   GPIO::OUTPUT_LOW
 
#define HIGH   GPIO::OUTPUT_HIGH
 
#define INPUT   GPIO::DIRECTION_IN
 
#define OUTPUT   GPIO::DIRECTION_OUT
 
#define digitalWrite(pin, value)   GPIO::write(pin, value)
 
#define pinMode(pin, direction)   GPIO::open(pin, direction)
 
#define delay(milisec)   __msleep(milisec)
 
#define delayMicroseconds(usec)   __usleep(usec)
 
#define millis()   __millis()
 

Typedefs

typedef uint16_t prog_uint16_t
 

Detailed Description

Example of RF24_arch_config.h for RF24 portability

Macro Definition Documentation

◆ RF24_LINUX

#define RF24_LINUX

Definition at line 29 of file RF24_arch_config.h.

◆ _BV

#define _BV (   x)    (1 << (x))
Examples
pingpair_sleepy.ino, and timingSearch3pin.ino.

Definition at line 41 of file RF24_arch_config.h.

◆ _SPI

#define _SPI   spi

Definition at line 42 of file RF24_arch_config.h.

◆ IF_SERIAL_DEBUG

#define IF_SERIAL_DEBUG (   x)

Definition at line 48 of file RF24_arch_config.h.

◆ PSTR

#define PSTR (   x)    (x)

Definition at line 62 of file RF24_arch_config.h.

◆ printf_P

#define printf_P   printf

Definition at line 63 of file RF24_arch_config.h.

◆ strlen_P

#define strlen_P   strlen

Definition at line 64 of file RF24_arch_config.h.

◆ PROGMEM

#define PROGMEM

Definition at line 65 of file RF24_arch_config.h.

◆ pgm_read_word

#define pgm_read_word (   p)    (*(p))

Definition at line 66 of file RF24_arch_config.h.

◆ PRIPSTR

#define PRIPSTR   "%s"

Definition at line 67 of file RF24_arch_config.h.

◆ pgm_read_byte

#define pgm_read_byte (   p)    (*(p))

Definition at line 68 of file RF24_arch_config.h.

◆ LOW

#define LOW   GPIO::OUTPUT_LOW

◆ HIGH

#define HIGH   GPIO::OUTPUT_HIGH

◆ INPUT

#define INPUT   GPIO::DIRECTION_IN

◆ OUTPUT

#define OUTPUT   GPIO::DIRECTION_OUT
Examples
timingSearch3pin.ino.

Definition at line 74 of file RF24_arch_config.h.

◆ digitalWrite

#define digitalWrite (   pin,
  value 
)    GPIO::write(pin, value)

◆ pinMode

#define pinMode (   pin,
  direction 
)    GPIO::open(pin, direction)

◆ delay

#define delay (   milisec)    __msleep(milisec)

◆ delayMicroseconds

#define delayMicroseconds (   usec)    __usleep(usec)
Examples
scanner.ino, and timingSearch3pin.ino.

Definition at line 78 of file RF24_arch_config.h.

◆ millis

#define millis ( )    __millis()

Typedef Documentation

◆ prog_uint16_t

typedef uint16_t prog_uint16_t

Definition at line 60 of file RF24_arch_config.h.