|
ESPectre SDK 2.8.0-280-gac7af68
Wi-Fi CSI motion sensing for ESP32 firmware
|
The schema behind RuntimeConfig: enums, defaults, and valid ranges. More...
#include <cstddef>#include <cstdint>#include "detector_limits.h"#include "detector_types.h"#include "csi_traffic_types.h"#include "filter_config.h"Go to the source code of this file.
Namespaces | |
| namespace | espectre |
Enumerations | |
| enum class | espectre::DetectionAlgorithm { espectre::LIGHTWEIGHT , espectre::HIGH_ACCURACY } |
| Which detector runs. More... | |
| enum class | espectre::RuntimeProfile { espectre::SENSING , espectre::STREAM } |
| Which runtime backend the controller builds. More... | |
| enum class | espectre::RuntimeTrafficMode { espectre::DNS , espectre::PING } |
| Which packet the internal generator sends to solicit CSI from the AP. More... | |
Functions | |
| constexpr float | espectre::runtime_threshold_max (DetectionAlgorithm algorithm) |
| constexpr bool | espectre::runtime_detection_algorithm_valid (DetectionAlgorithm algorithm) |
| constexpr bool | espectre::runtime_profile_valid (RuntimeProfile profile) |
| constexpr bool | espectre::runtime_traffic_mode_valid (RuntimeTrafficMode mode) |
| constexpr bool | espectre::runtime_csi_traffic_mode_valid (CsiTrafficMode mode) |
| constexpr bool | espectre::runtime_csi_traffic_mode_valid_for_profile (RuntimeProfile profile, CsiTrafficMode mode) |
| constexpr float | espectre::runtime_default_threshold (DetectionAlgorithm algorithm) |
The schema behind RuntimeConfig: enums, defaults, and valid ranges.
This is the single source of truth for what a sensing configuration may contain. Every tunable is declared as a RUNTIME_<FIELD>_DEFAULT plus, where a range applies, _MIN and _MAX. Read them instead of hardcoding limits, so a UI, a provisioning flow, or a config parser stays correct across SDK releases.
The static_assert block at the end holds these values in lockstep with the detector and filter constants they mirror, so a drift between the runtime schema and core/ fails the build rather than the device.
Definition in file runtime_sensing_schema.h.