OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
OutputGPIO Struct Reference

Output-capable GPIO pin number. More...

#include <SimWheelTypes.hpp>

Public Member Functions

 OutputGPIO (int pin)
 Create a GPIO.
 
 OutputGPIO ()
 Create a "not connected" GPIO.
 
 OutputGPIO (UNSPECIFIED value)
 Create a "not connected" GPIO.
 
- Public Member Functions inherited from GPIO
 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.
 

Additional Inherited Members

- Protected Attributes inherited from GPIO
int _pin
 Assigned pin number.
 

Detailed Description

Output-capable GPIO pin number.

Definition at line 763 of file SimWheelTypes.hpp.

Constructor & Destructor Documentation

◆ OutputGPIO() [1/3]

OutputGPIO::OutputGPIO ( int pin)
inline

Create a GPIO.

Parameters
pinPin number

Definition at line 771 of file SimWheelTypes.hpp.

◆ OutputGPIO() [2/3]

OutputGPIO::OutputGPIO ( )
inline

Create a "not connected" GPIO.

Definition at line 777 of file SimWheelTypes.hpp.

◆ OutputGPIO() [3/3]

OutputGPIO::OutputGPIO ( UNSPECIFIED value)
inline

Create a "not connected" GPIO.

Definition at line 779 of file SimWheelTypes.hpp.


The documentation for this struct was generated from the following file: