Optimized High Speed NRF24L01+ Driver Class Documenation  V1.0
TMRh20 2014 - Optimized Fork of NRF24L01+ Driver
gpio.h
Go to the documentation of this file.
1 
2 
16 #ifndef H
17 #define H
18 
19 #include <cstdio>
20 
21 //class GPIO {
22 public:
23  /* Constants */
24  static const int DIRECTION_OUT = 1;
25  static const int DIRECTION_IN = 0;
26 
27  static const int OUTPUT_HIGH = 1;
28  static const int OUTPUT_LOW = 0;
29 
30  GPIO();
31 
37  static void open(int port, int DDR);
42  static void close(int port);
48  static int read(int port);
54  static void write(int port,int value);
55 
56  virtual ~GPIO();
57 };
58 
static const int OUTPUT_LOW
Definition: gpio.h:28
static void close(int port)
static int read(int port)
static void write(int port, int value)
static void open(int port, int DDR)
static const int OUTPUT_HIGH
Definition: gpio.h:27
GPIO()
static const int DIRECTION_OUT
Definition: gpio.h:24
virtual ~GPIO()
static const int DIRECTION_IN
Definition: gpio.h:25