|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Comprehensive test suite for NtcTemperatureHandler. More...
#include "TestFramework.h"#include "esp32_bus_setup.hpp"#include "esp32_test_config.hpp"#include "handlers/ntc/NtcTemperatureHandler.h"#include <cmath>#include <memory>#include "esp_log.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"Functions | |
| static void | threshold_callback (BaseTemperature *sensor, float temperature, hf_u32_t type, void *user_data) |
| static bool | create_handler () noexcept |
| static bool | test_initialize () noexcept |
| static bool | test_sensor_info () noexcept |
| static bool | test_capabilities () noexcept |
| static bool | test_read_temperature () noexcept |
| static bool | test_read_temperature_consistency () noexcept |
| static bool | test_set_calibration_offset () noexcept |
| static bool | test_enable_filtering () noexcept |
| static bool | test_threshold_monitoring () noexcept |
| static void | continuous_callback (BaseTemperature *sensor, const hf_temp_reading_t *reading, void *user_data) |
| static bool | test_continuous_monitoring () noexcept |
| static bool | test_statistics () noexcept |
| static bool | test_diagnostics () noexcept |
| static bool | test_sleep_mode () noexcept |
| static bool | test_self_test () noexcept |
| static bool | test_health_check () noexcept |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "NTC_Handler_Test" |
| static TestResults | g_test_results |
| static constexpr bool | ENABLE_INITIALIZATION_TESTS = true |
| static constexpr bool | ENABLE_TEMPERATURE_READING_TESTS = true |
| static constexpr bool | ENABLE_CALIBRATION_TESTS = true |
| static constexpr bool | ENABLE_FILTERING_TESTS = true |
| static constexpr bool | ENABLE_THRESHOLD_TESTS = true |
| static constexpr bool | ENABLE_CONTINUOUS_MONITORING_TESTS = true |
| static constexpr bool | ENABLE_STATISTICS_TESTS = true |
| static constexpr bool | ENABLE_SLEEP_MODE_TESTS = true |
| static constexpr bool | ENABLE_ERROR_HANDLING_TESTS = true |
| static std::unique_ptr< NtcTemperatureHandler > | g_handler |
| static volatile bool | g_threshold_triggered = false |
| static volatile float | g_threshold_temperature = 0.0f |
| static volatile int | g_continuous_count = 0 |
Comprehensive test suite for NtcTemperatureHandler.
Tests: BaseAdc-driven init, temperature reading (Celsius/Fahrenheit), calibration offset, EMA filtering, voltage divider config, conversion methods, threshold monitoring, continuous monitoring (PeriodicTimer), statistics, diagnostics, self-test, health check, sleep mode, and thread safety via RtosMutex.
| void app_main | ( | void | ) |
|
static |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |