#include <PersistentStorage.h>
Definition at line 14 of file PersistentStorage.h.
◆ PersistentStorage()
PersistentStorage::PersistentStorage |
( |
| ) |
|
◆ ~PersistentStorage()
PersistentStorage::~PersistentStorage |
( |
| ) |
|
|
virtual |
◆ getFlashHandlers()
◆ restoreFlash()
void PersistentStorage::restoreFlash |
( |
| ) |
|
|
virtual |
Should be implemented to restore settings. This is not automatically called and should be called when appropriate.
Reimplemented in CANPort_2B, EffectsCalculator, I2CPort, ADS111X_AnalogSource, CanAnalogBase, CanButtons, EncoderBissC, EncoderLocal, EncoderSSI, FFBHIDMain, LocalAnalog, LocalButtons, MotorPWM, PCF8574Buttons, SPI_Buttons, Axis, MtEncoderSPI, ODriveCAN, RmdMotorCAN, ShifterAnalog, TMC4671, and VescCAN.
Definition at line 33 of file PersistentStorage.cpp.
◆ restoreFlashDelayed()
void PersistentStorage::restoreFlashDelayed |
( |
| ) |
|
Should be used to restore settings after startup if class is created before startup finished. This is preferred to calling restoreFlash directly and calls restoreFlash after startup is finished This is not automatically called and should be called when appropriate. Normally this is done in the constructor of the class
Definition at line 43 of file PersistentStorage.cpp.
◆ restoreFlashStartupCb()
void PersistentStorage::restoreFlashStartupCb |
( |
| ) |
|
|
static |
Called after storage has been initialized Will call restoreFlash on any storage handler that is currently waiting
Definition at line 55 of file PersistentStorage.cpp.
◆ saveFlash()
void PersistentStorage::saveFlash |
( |
| ) |
|
|
virtual |
Called when the user uses the "save" command and presses the save button in the configurator Automatically called by the command parser thread for every class that inherits from PersistentStorage
Reimplemented in CANPort_2B, EffectsCalculator, I2CPort, ADS111X_AnalogSource, CanAnalogBase, CanButtons, EncoderBissC, EncoderLocal, EncoderSSI, FFBHIDMain, LocalAnalog, LocalButtons, MotorPWM, PCF8574Buttons, SPI_Buttons, Axis, MtEncoderSPI, ODriveCAN, RmdMotorCAN, ShifterAnalog, TMC4671, and VescCAN.
Definition at line 26 of file PersistentStorage.cpp.
◆ restoreDelayedFlag
bool PersistentStorage::restoreDelayedFlag = false |
|
protected |
◆ startupComplete
bool PersistentStorage::startupComplete = false |
|
staticprotected |
The documentation for this class was generated from the following files: