HF-TMC9660 Driver
Hardware Agnostic C++ Driver for the TMC9660
|
Subsystem for storing and recalling parameters from nonvolatile flash. More...
#include <TMC9660.hpp>
Public Member Functions | |
bool | storeToFlash () noexcept |
Store all writable parameters to flash or EEPROM. | |
bool | recallFromFlash () noexcept |
Restore parameters previously saved to NVM. | |
bool | eraseFlashBank (uint8_t n) noexcept |
Erase a configuration bank from external memory. | |
Private Member Functions | |
NvmStorage (TMC9660 &parent) noexcept | |
Private Attributes | |
TMC9660 & | driver |
Friends | |
class | TMC9660 |
Subsystem for storing and recalling parameters from nonvolatile flash.
This API wraps STAP (0xFFF) and FactoryDefault commands. Use it to persist all RWE parameters across power cycles, matching the functionality of the “Save to Flash” button in GUI tools.
WARNING: Requires that external memory is configured via BOOT_CONFIG. Refer to the "Storing System Settings" section in the datasheet (see page 15).
|
inlineexplicitprivatenoexcept |
|
noexcept |
Erase a configuration bank from external memory.
n | Index of the flash bank to erase (typically 0) |
Use before re-storing to flash if stale config causes issues.
|
noexcept |
Restore parameters previously saved to NVM.
Sets CONFIG_LOADED flag in GENERAL_STATUS_FLAGS if success.
|
noexcept |
Store all writable parameters to flash or EEPROM.
Internally sends STAP
(type=0xFFF) to save parameters.
|
friend |
|
private |