|
HardFOC Vortex V1 HAL
Unified HAL API for the HardFOC Vortex motor-control platform (ESP32-C6, TMC9660)
|
Singleton giving access to the Vortex board persistent-storage namespaces. More...
#include <NvsManager.h>
Public Member Functions | |
| NvsManager (const NvsManager &)=delete | |
| NvsManager & | operator= (const NvsManager &)=delete |
| NvsManager (NvsManager &&)=delete | |
| NvsManager & | operator= (NvsManager &&)=delete |
| bool | EnsureInitialized () noexcept |
| Initialize NVS flash (once) and open all Vortex namespaces. | |
| bool | IsInitialized () const noexcept |
| bool | Deinitialize () noexcept |
| Close namespaces (call after other subsystems if they may persist on shutdown). | |
| hf_nvs_err_t | GetLastError () const noexcept |
| Last NVS error from the most recent failing operation (any region). | |
| BaseNvs & | App () noexcept |
General application storage (vortex namespace). | |
| BaseNvs & | Calibration () noexcept |
Calibration and tuning blobs (vortex_cal namespace). | |
| BaseNvs & | Config () noexcept |
Device configuration (vortex_cfg namespace). | |
| void | DumpStatistics () const noexcept |
Static Public Member Functions | |
| static NvsManager & | GetInstance () noexcept |
Private Member Functions | |
| NvsManager () noexcept | |
| ~NvsManager ()=default | |
| void | SetLastError (hf_nvs_err_t e) noexcept |
Private Attributes | |
| BaseNvs & | app_ |
| BaseNvs & | calibration_ |
| BaseNvs & | config_ |
| std::atomic< bool > | initialized_ {false} |
| hf_nvs_err_t | last_error_ {hf_nvs_err_t::NVS_SUCCESS} |
Singleton giving access to the Vortex board persistent-storage namespaces.
Initialization runs before communication managers so calibration or board identity can be read early. Namespaces (≤15 chars per ESP-IDF):
"vortex" — general application key-value"vortex_cal" — calibration / factory tuning blobs"vortex_cfg" — structured device configuration
|
delete |
|
delete |
|
privatenoexcept |
|
privatedefault |
|
inlinenoexcept |
General application storage (vortex namespace).
|
inlinenoexcept |
Calibration and tuning blobs (vortex_cal namespace).
|
inlinenoexcept |
Device configuration (vortex_cfg namespace).
|
noexcept |
Close namespaces (call after other subsystems if they may persist on shutdown).
|
noexcept |
|
noexcept |
Initialize NVS flash (once) and open all Vortex namespaces.
|
staticnoexcept |
|
inlinenoexcept |
Last NVS error from the most recent failing operation (any region).
|
inlinenoexcept |
|
delete |
|
delete |
|
inlineprivatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |