Optimized High Speed NRF24L01+ Driver Class Documenation  V1.0
TMRh20 2014 - Optimized Fork of 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

#define RF24_LINUX

Definition at line 29 of file RF24_arch_config.h.

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

Definition at line 41 of file RF24_arch_config.h.

#define _SPI   spi

Definition at line 42 of file RF24_arch_config.h.

#define IF_SERIAL_DEBUG (   x)

Definition at line 48 of file RF24_arch_config.h.

#define PSTR (   x)    (x)

Definition at line 62 of file RF24_arch_config.h.

#define printf_P   printf

Definition at line 63 of file RF24_arch_config.h.

#define strlen_P   strlen

Definition at line 64 of file RF24_arch_config.h.

#define PROGMEM

Definition at line 65 of file RF24_arch_config.h.

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

Definition at line 66 of file RF24_arch_config.h.

#define PRIPSTR   "%s"

Definition at line 67 of file RF24_arch_config.h.

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

Definition at line 68 of file RF24_arch_config.h.

#define LOW   GPIO::OUTPUT_LOW
#define HIGH   GPIO::OUTPUT_HIGH
#define INPUT   GPIO::DIRECTION_IN
#define OUTPUT   GPIO::DIRECTION_OUT
Examples:
timingSearch3pin.ino.

Definition at line 74 of file RF24_arch_config.h.

#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)
Examples:
scanner.ino, and timingSearch3pin.ino.

Definition at line 78 of file RF24_arch_config.h.

#define millis ( )    __millis()

Typedef Documentation

typedef uint16_t prog_uint16_t

Definition at line 61 of file RF24_arch_config.h.