![]() |
Open FFBoard
Open source force feedback firmware
|
#include <ButtonSource.h>
Public Member Functions | |
ButtonSource () | |
virtual | ~ButtonSource () |
virtual uint8_t | readButtons (uint64_t *buf)=0 |
virtual uint16_t | getBtnNum () |
virtual const ClassIdentifier | getInfo ()=0 |
virtual const ClassType | getClassType () |
returns the used classchooser selection id of this instance More... | |
![]() | |
virtual | ~ChoosableClass () |
uint16_t | getSelectionID () |
![]() | |
PersistentStorage () | |
virtual | ~PersistentStorage () |
virtual void | saveFlash () |
virtual void | restoreFlash () |
void | restoreFlashDelayed () |
Static Public Member Functions | |
static bool | isCreatable () |
![]() | |
static bool | isCreatable () |
![]() | |
static std::vector< PersistentStorage * > & | getFlashHandlers () |
static void | restoreFlashStartupCb () |
Static Public Attributes | |
static ClassIdentifier | info |
static const std::vector< class_entry< ButtonSource > > | all_buttonsources |
![]() | |
static ClassIdentifier | info |
Protected Attributes | |
uint16_t | btnnum = 0 |
![]() | |
uint16_t | selectionId |
Should only be written by ClassChooser during creation. More... | |
![]() | |
bool | restoreDelayedFlag = false |
Additional Inherited Members | |
![]() | |
static bool | startupComplete = false |
A button source can return up to 64 buttons
Definition at line 19 of file ButtonSource.h.
ButtonSource::ButtonSource | ( | ) |
Definition at line 17 of file ButtonSource.cpp.
|
virtual |
Definition at line 21 of file ButtonSource.cpp.
|
virtual |
Reimplemented in PCF8574Buttons, and ShifterAnalog.
Definition at line 26 of file ButtonSource.cpp.
|
inlinevirtual |
returns the used classchooser selection id of this instance
Type of this class. Mainclass, motordriver... Should be implemented by the parent class so it is not in the info struct
Reimplemented from ChoosableClass.
Reimplemented in LocalButtons, PCF8574Buttons, ShifterAnalog, and SPI_Buttons.
Definition at line 33 of file ButtonSource.h.
|
pure virtual |
Implements ChoosableClass.
Implemented in CanButtons, LocalButtons, PCF8574Buttons, ShifterAnalog, SPI_Buttons_1, and SPI_Buttons_2.
|
inlinestatic |
Definition at line 32 of file ButtonSource.h.
|
pure virtual |
Return a bit field without offset of pressed buttons in the supplied buffer. Returns amount of button read.
Implemented in CanButtons, LocalButtons, PCF8574Buttons, SPI_Buttons, and ShifterAnalog.
|
static |
Definition at line 35 of file ButtonSource.h.
|
protected |
Definition at line 38 of file ButtonSource.h.
|
static |
Definition at line 31 of file ButtonSource.h.