Optimized high speed nRF24L01+ driver class documentation  1.4.2
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
gpio.h
Go to the documentation of this file.
1 
2 
16 #include <cstdio>
17 
18 #ifndef DOXYGEN_FORCED
19 // exclude this line from the docs to prevent displaying in the list of classes
20 class GPIO
21 #endif
22 {
23 public:
24  /* Constants */
25  static const int DIRECTION_OUT = 1;
26  static const int DIRECTION_IN = 0;
27 
28  static const int OUTPUT_HIGH = 1;
29  static const int OUTPUT_LOW = 0;
30 
31  GPIO();
32 
38  static void open(int port, int DDR);
39 
44  static void close(int port);
45 
50  static int read(int port);
51 
57  static void write(int port, int value);
58 
59 #ifndef DOXYGEN_FORCED
60 // exclude this line from the docs to prevent warnings docs generators
61  virtual ~ GPIO();
62 #endif
63 };
64 
static const int OUTPUT_HIGH
Definition: gpio.h:28
static void close(int port)
static int read(int port)
GPIO()
static void write(int port, int value)
static const int OUTPUT_LOW
Definition: gpio.h:29
static void open(int port, int DDR)
static const int DIRECTION_IN
Definition: gpio.h:26