![]() |
Open FFBoard
Open source force feedback firmware
|
#include <SelectableInputs.h>
Public Member Functions | |
SelectableInputs (const ClassChooser< ButtonSource > &btn_chooser, const ClassChooser< AnalogSource > &analog_chooser) | |
virtual | ~SelectableInputs () |
virtual void | setBtnTypes (uint16_t btntypes) |
virtual void | addBtnType (uint16_t id) |
virtual void | clearBtnTypes () |
virtual void | setAinTypes (uint16_t aintypes) |
virtual void | addAinType (uint16_t id) |
virtual void | clearAinTypes () |
virtual uint8_t | getButtonValues (uint64_t &values) |
virtual std::vector< int32_t > * | getAnalogValues () |
Protected Attributes | |
std::vector< std::unique_ptr< ButtonSource > > | btns |
std::vector< std::unique_ptr< AnalogSource > > | analog_inputs |
cpp_freertos::BinarySemaphore | sourcesSem = cpp_freertos::BinarySemaphore(true) |
uint16_t | btnsources = 0 |
uint16_t | ainsources = 0 |
std::vector< int32_t > | analogsources_buf |
ClassChooser< ButtonSource > | btn_chooser |
ClassChooser< AnalogSource > | analog_chooser |
Helper class with common functions to manage input sources
Definition at line 17 of file SelectableInputs.h.
SelectableInputs::SelectableInputs | ( | const ClassChooser< ButtonSource > & | btn_chooser, |
const ClassChooser< AnalogSource > & | analog_chooser | ||
) |
Definition at line 10 of file SelectableInputs.cpp.
|
virtual |
Definition at line 16 of file SelectableInputs.cpp.
|
virtual |
Definition at line 75 of file SelectableInputs.cpp.
|
virtual |
Definition at line 43 of file SelectableInputs.cpp.
|
virtual |
Definition at line 55 of file SelectableInputs.cpp.
|
virtual |
Definition at line 22 of file SelectableInputs.cpp.
|
virtual |
Gets analog values from all analog sources
Definition at line 105 of file SelectableInputs.cpp.
|
virtual |
Gets button values from all button sources
Definition at line 89 of file SelectableInputs.cpp.
|
virtual |
Definition at line 61 of file SelectableInputs.cpp.
|
virtual |
Definition at line 28 of file SelectableInputs.cpp.
|
protected |
Definition at line 41 of file SelectableInputs.h.
|
protected |
Definition at line 46 of file SelectableInputs.h.
|
protected |
Definition at line 36 of file SelectableInputs.h.
|
protected |
Definition at line 43 of file SelectableInputs.h.
|
protected |
Definition at line 45 of file SelectableInputs.h.
|
protected |
Definition at line 35 of file SelectableInputs.h.
|
protected |
Definition at line 40 of file SelectableInputs.h.
|
protected |
Definition at line 38 of file SelectableInputs.h.