Optimized high speed nRF24L01+ driver class documentation v1.4.8
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
Loading...
Searching...
No Matches
gpio.h
Go to the documentation of this file.
1
12#ifndef RF24_UTILITY_TEMPLATE_GPIO_H_
13#define RF24_UTILITY_TEMPLATE_GPIO_H_
14
15#include <cstdio>
16
17#ifndef DOXYGEN_FORCED
18// exclude this line from the docs to prevent displaying in the list of classes
19class GPIO
20#endif
21{
22
23public:
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
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
67#endif // RF24_UTILITY_TEMPLATE_GPIO_H_
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