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

Fake digital input for testing. More...

#include <InputHardware.hpp>

Public Member Functions

 FakeDigitalInput (FakeInput *instance)
 Construct a new Fake Digital 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

Detailed Description

Fake digital input for testing.

Definition at line 563 of file InputHardware.hpp.

Constructor & Destructor Documentation

◆ FakeDigitalInput()

FakeDigitalInput::FakeDigitalInput ( FakeInput * instance)
inline

Construct a new Fake Digital Input object.

Parameters
instanceFake input specification

Definition at line 574 of file InputHardware.hpp.

Member Function Documentation

◆ read()

virtual void FakeDigitalInput::read ( uint128_t & state)
inlineoverridevirtual

Read the current state of the inputs (pressed or released)

Warning
This function must not set or clear any bit outside of the input bitmask in the return value.
Parameters
[in,out]stateAt 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.

Definition at line 576 of file InputHardware.hpp.


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