![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
#include <SimWheelTypes.hpp>
Public Member Functions | |
| GPIO (int pin) | |
| Assign a pin number. | |
| GPIO () | |
| Create a GPIO as "not connected". | |
| GPIO (UNSPECIFIED value) | |
| Assign a "not connected" value. | |
| operator int () const | |
| Get pin number. | |
| GPIO (const GPIO &instance) | |
| Copy another GPIO instance. | |
| bool | operator== (const UNSPECIFIED value) const |
| Check if "not connected". | |
| bool | operator!= (const UNSPECIFIED value) const |
| Check if a pin number was assigned. | |
| void | reserve () const |
| Reserve this GPIO for exclusive use. | |
| void | grant () const |
| Grant this GPIO for non-exclusive use. | |
| void | abortIfUnspecified () const |
| Throw an exception if unspecified. | |
Protected Attributes | |
| int | _pin |
| Assigned pin number. | |
|
inline |
Assign a pin number.
| gpio_error | If not usable or not capable |
| pin | Pin number |
Definition at line 614 of file SimWheelTypes.hpp.
|
inline |
Create a GPIO as "not connected".
Definition at line 657 of file SimWheelTypes.hpp.
|
inline |
Assign a "not connected" value.
| value | Unspecified value |
Definition at line 664 of file SimWheelTypes.hpp.
|
inline |
Copy another GPIO instance.
| instance | Instance to be copied |
Definition at line 678 of file SimWheelTypes.hpp.
|
inline |
Throw an exception if unspecified.
| gpio_error | If "not connected" |
Definition at line 738 of file SimWheelTypes.hpp.
|
inline |
Grant this GPIO for non-exclusive use.
Definition at line 722 of file SimWheelTypes.hpp.
|
inline |
Get pin number.
Definition at line 671 of file SimWheelTypes.hpp.
|
inline |
Check if a pin number was assigned.
| value | Unspecified value |
Definition at line 696 of file SimWheelTypes.hpp.
|
inline |
Check if "not connected".
| value | Unspecified value |
Definition at line 687 of file SimWheelTypes.hpp.
|
inline |
Reserve this GPIO for exclusive use.
| gpio_error | If already reserved |
Definition at line 711 of file SimWheelTypes.hpp.
|
protected |
Assigned pin number.
Definition at line 756 of file SimWheelTypes.hpp.