![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Validation of user-defined input hardware. More...
Functions | |
| template<typename GPIOtype > | |
| void | reserve (const std::set< GPIOtype > &collection) |
| Reserve a collection of GPIO pins. | |
| void | buttonMatrix (const ButtonMatrix &matrix) |
| Validate a button matrix. | |
| template<typename PinTags > | |
| void | analogMultiplexer (const OutputGPIOCollection &selectors, const AnalogMultiplexerGroup< PinTags > chips) |
| Validate a group of analog multiplexers. | |
| void | shiftRegisterChain (OutputGPIO loadPin, OutputGPIO nextPin, InputGPIO inputPin, const ShiftRegisterChain &chain) |
| Validate a chain of PISO shift registers. | |
| template<typename PinTags > | |
| void | GPIOExpander (const GPIOExpanderChip< PinTags > &chip) |
| Validate a GPIO expander. | |
| void | rotaryEncoder (InputGPIO dtPin, InputGPIO clkPin, InputNumber cw, InputNumber ccw) |
| Validate a rotary encoder. | |
| void | button (InputGPIO pin, InputNumber inputNumber) |
| Validate a single button. | |
| void | joystick (ADC_GPIO xAxisPin, ADC_GPIO yAxisPin, InputNumber up, InputNumber down, InputNumber left, InputNumber right) |
| Validate a joystick. | |
Validation of user-defined input hardware.
|
inline |
Validate a group of analog multiplexers.
| PinTags | Pin tags |
| selectors | Collection of selector pins |
| chips | Collections of chips |
Definition at line 85 of file InputValidation.hpp.
|
inline |
Validate a single button.
| pin | Input pin |
| inputNumber | Input number |
Definition at line 173 of file InputValidation.hpp.
|
inline |
Validate a button matrix.
| matrix | Button matrix to validate |
Definition at line 52 of file InputValidation.hpp.
|
inline |
Validate a GPIO expander.
| PinTags | Pin tags |
| chip | Chip instance |
Definition at line 129 of file InputValidation.hpp.
|
inline |
Validate a joystick.
| xAxisPin | ADC-capable pin for the horizontal axis |
| yAxisPin | ADC-capable pin for the vertical axis |
| up | Input number assigned to the "up" direction |
| down | Input number assigned to the "down" direction |
| left | Input number assigned to the "left" direction |
| right | Input number assigned to the "right" direction |
Definition at line 191 of file InputValidation.hpp.
|
inline |
Reserve a collection of GPIO pins.
| GPIOtype | GPIO or subtype |
| collection | Pins to reserve |
Definition at line 41 of file InputValidation.hpp.
|
inline |
Validate a rotary encoder.
| dtPin | DT pin |
| clkPin | CLK pin |
| cw | Input number for clockwise rotation |
| ccw | Input number for counter-clockwise rotation |
Definition at line 146 of file InputValidation.hpp.
|
inline |
Validate a chain of PISO shift registers.
| loadPin | Output GPIO attached to LOAD |
| nextPin | Output GPIO attached to NEXT |
| inputPin | Input GPIO pin |
| chain | Collection of chips |
Definition at line 103 of file InputValidation.hpp.