![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
State of switches connected to analog multiplexers. More...
#include <InputHardware.hpp>
Public Member Functions | |
| AnalogMultiplexerInput (OutputGPIO selectorPin1, OutputGPIO selectorPin2, OutputGPIO selectorPin3, const AnalogMultiplexerGroup< Mux8Pin > &chips) | |
| Construct a new Analog Multiplexer Input object. | |
| AnalogMultiplexerInput (OutputGPIO selectorPin1, OutputGPIO selectorPin2, OutputGPIO selectorPin3, OutputGPIO selectorPin4, const AnalogMultiplexerGroup< Mux16Pin > &chips) | |
| Construct a new Analog Multiplexer Input object. | |
| AnalogMultiplexerInput (OutputGPIO selectorPin1, OutputGPIO selectorPin2, OutputGPIO selectorPin3, OutputGPIO selectorPin4, OutputGPIO selectorPin5, const AnalogMultiplexerGroup< Mux32Pin > &chips) | |
| Construct a new Analog Multiplexer Input object. | |
| virtual void | read (uint128_t &state) override |
| Read the current state of the inputs (pressed or released) | |
Public Member Functions inherited from DigitalInput | |
State of switches connected to analog multiplexers.
Definition at line 203 of file InputHardware.hpp.
| AnalogMultiplexerInput::AnalogMultiplexerInput | ( | OutputGPIO | selectorPin1, |
| OutputGPIO | selectorPin2, | ||
| OutputGPIO | selectorPin3, | ||
| const AnalogMultiplexerGroup< Mux8Pin > & | chips ) |
Construct a new Analog Multiplexer Input object.
| selectorPin1 | A selector pin |
| selectorPin2 | A selector pin |
| selectorPin3 | A selector pin |
| chips | Group of chips |
| AnalogMultiplexerInput::AnalogMultiplexerInput | ( | OutputGPIO | selectorPin1, |
| OutputGPIO | selectorPin2, | ||
| OutputGPIO | selectorPin3, | ||
| OutputGPIO | selectorPin4, | ||
| const AnalogMultiplexerGroup< Mux16Pin > & | chips ) |
Construct a new Analog Multiplexer Input object.
| selectorPin1 | A selector pin |
| selectorPin2 | A selector pin |
| selectorPin3 | A selector pin |
| selectorPin4 | A selector pin |
| chips | Group of chips |
| AnalogMultiplexerInput::AnalogMultiplexerInput | ( | OutputGPIO | selectorPin1, |
| OutputGPIO | selectorPin2, | ||
| OutputGPIO | selectorPin3, | ||
| OutputGPIO | selectorPin4, | ||
| OutputGPIO | selectorPin5, | ||
| const AnalogMultiplexerGroup< Mux32Pin > & | chips ) |
Construct a new Analog Multiplexer Input object.
| selectorPin1 | A selector pin |
| selectorPin2 | A selector pin |
| selectorPin3 | A selector pin |
| selectorPin4 | A selector pin |
| selectorPin5 | A selector pin |
| chips | Group of chips |
|
overridevirtual |
Read the current state of the inputs (pressed or released)
| [in,out] | state | At call, state of all inputs as recorded in the previous iteration. Whether the current state is unknown, state must be kept untouched. At return, new state of the inputs. |
Implements DigitalInput.