|
HardFOC Flux V1 HAL
Unified HAL API for the HardFOC Flux valve-control platform (ESP32-S3)
|
Unified API singleton for the HardFOC Flux V1 platform. More...
#include <array>#include <atomic>#include <cstddef>#include <cstring>#include "FluxVersion.h"#include "flux_hal/flux_hal_types.hpp"#include "handlers/logger/Logger.h"Go to the source code of this file.
Classes | |
| struct | FluxSystemDiagnostics |
| Complete system diagnostics snapshot for the Flux API. More... | |
| struct | ManagerHealthEntry |
| Per-manager health entry for unified error aggregation. More... | |
| struct | ManagerHealthSnapshot |
| Aggregated health snapshot across all Flux managers. More... | |
| struct | ManagerDiagnostic |
| One manager's lifecycle state in FluxHalDiagnostics. More... | |
| struct | FluxHalDiagnostics |
| Board-level bring-up snapshot: every manager's state and every fitted part's readiness. More... | |
| class | Flux |
| Unified singleton entry point for the HardFOC Flux V1 platform. More... | |
Macros | |
| #define | FLUX_API Flux::GetInstance() |
| Shorthand for Flux::GetInstance(). | |
| #define | FLUX_API_INIT() (Flux::GetInstance().EnsureInitialized(), Flux::GetInstance()) |
| Initialise (if needed) and return the Flux API instance. | |
Functions | |
| Flux & | GetFlux () noexcept |
| Convenience accessor — equivalent to Flux::GetInstance(). | |
Variables | |
| constexpr size_t | kFluxManagerCount = 7 |
Number of Flux subsystem managers exposed on Flux (incl. NVS). | |
Unified API singleton for the HardFOC Flux V1 platform.
Provides a single entry point to every subsystem on the Flux board:
BaseNvs / ESP-IDF NVS namespaces)Initialization Order (dependency-based):
Task CPU affinity for this board uses logical indices from FluxCpuAffinity.h (flux_hal::kFluxCpuHostIo, kFluxCpuRealtime, …).
Usage:
| #define FLUX_API Flux::GetInstance() |
Shorthand for Flux::GetInstance().
| #define FLUX_API_INIT | ( | ) | (Flux::GetInstance().EnsureInitialized(), Flux::GetInstance()) |
Initialise (if needed) and return the Flux API instance.
|
inlinenoexcept |
Convenience accessor — equivalent to Flux::GetInstance().