Optimized High Speed NRF24L01+ Driver Class Documenation  V1.0
TMRh20 2014 - Optimized Fork of NRF24L01+ Driver
Functions | Variables
Porting: GPIO

Functions

 GPIO ()
 
static void open (int port, int DDR)
 
static void close (int port)
 
static int read (int port)
 
static void write (int port, int value)
 
virtual ~GPIO ()
 

Variables

static const int DIRECTION_OUT = 1
 
static const int DIRECTION_IN = 0
 
static const int OUTPUT_HIGH = 1
 
static const int OUTPUT_LOW = 0
 

Detailed Description

Example of gpio.h class declaration for GPIO portability

Function Documentation

GPIO ( )
static void open ( int  port,
int  DDR 
)
static

Similar to Arduino pinMode(pin,mode);

Parameters
port
DDR
static void close ( int  port)
static
Parameters
port
static int read ( int  port)
static

Similar to Arduino digitalRead(pin);

Parameters
port
value
static void write ( int  port,
int  value 
)
static

Similar to Arduino digitalWrite(pin,state);

Parameters
port
value
virtual ~GPIO ( )
virtual

Variable Documentation

const int DIRECTION_OUT = 1
static

Definition at line 24 of file gpio.h.

const int DIRECTION_IN = 0
static

Definition at line 25 of file gpio.h.

const int OUTPUT_HIGH = 1
static

Definition at line 27 of file gpio.h.

const int OUTPUT_LOW = 0
static

Definition at line 28 of file gpio.h.