HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
TemperatureComprehensiveTest.cpp File Reference

Comprehensive Temperature sensor testing suite for ESP32-C6 DevKit-M-1 (noexcept) More...

#include "TestFramework.h"
#include "base/BaseTemperature.h"
#include "mcu/esp32/EspTemperature.h"
#include <atomic>
Include dependency graph for TemperatureComprehensiveTest.cpp:

Functions

void threshold_callback (BaseTemperature *sensor, float temperature, hf_u32_t threshold_type, void *user_data)
 
void monitoring_callback (BaseTemperature *sensor, const hf_temp_reading_t *reading, void *user_data)
 
void esp_threshold_callback (EspTemperature *sensor, float temperature, bool is_high_threshold)
 
void esp_monitoring_callback (EspTemperature *sensor, float temperature, hf_u64_t timestamp_us)
 
bool test_temperature_sensor_initialization () noexcept
 
bool test_temperature_reading () noexcept
 
bool test_sensor_info () noexcept
 
bool test_range_management () noexcept
 
bool test_threshold_monitoring () noexcept
 
bool test_continuous_monitoring () noexcept
 
bool test_calibration () noexcept
 
bool test_power_management () noexcept
 
bool test_self_test_and_health () noexcept
 
bool test_statistics_and_diagnostics () noexcept
 
bool test_esp32_specific_features () noexcept
 
bool test_error_handling () noexcept
 
bool test_performance_and_stress () noexcept
 
void app_main (void)
 

Variables

static const char * TAG = "TEMP_Test"
 
static TestResults g_test_results
 
static std::atomic< int > g_threshold_callback_count {0}
 
static std::atomic< int > g_monitoring_callback_count {0}
 
static std::atomic< float > g_last_callback_temperature {0.0f}
 
static constexpr bool ENABLE_CORE_TESTS = true
 
static constexpr bool ENABLE_ADVANCED_TESTS
 
static constexpr bool ENABLE_FEATURE_TESTS
 
static constexpr bool ENABLE_DIAGNOSTIC_TESTS
 
static constexpr bool ENABLE_STRESS_TESTS = true
 

Detailed Description

Comprehensive Temperature sensor testing suite for ESP32-C6 DevKit-M-1 (noexcept)

Function Documentation

◆ app_main()

void app_main ( void )

◆ esp_monitoring_callback()

void esp_monitoring_callback ( EspTemperature * sensor,
float temperature,
hf_u64_t timestamp_us )

◆ esp_threshold_callback()

void esp_threshold_callback ( EspTemperature * sensor,
float temperature,
bool is_high_threshold )

◆ monitoring_callback()

void monitoring_callback ( BaseTemperature * sensor,
const hf_temp_reading_t * reading,
void * user_data )

◆ test_calibration()

bool test_calibration ( )
noexcept

◆ test_continuous_monitoring()

bool test_continuous_monitoring ( )
noexcept

◆ test_error_handling()

bool test_error_handling ( )
noexcept

◆ test_esp32_specific_features()

bool test_esp32_specific_features ( )
noexcept

◆ test_performance_and_stress()

bool test_performance_and_stress ( )
noexcept

◆ test_power_management()

bool test_power_management ( )
noexcept

◆ test_range_management()

bool test_range_management ( )
noexcept

◆ test_self_test_and_health()

bool test_self_test_and_health ( )
noexcept

◆ test_sensor_info()

bool test_sensor_info ( )
noexcept

◆ test_statistics_and_diagnostics()

bool test_statistics_and_diagnostics ( )
noexcept

◆ test_temperature_reading()

bool test_temperature_reading ( )
noexcept

◆ test_temperature_sensor_initialization()

bool test_temperature_sensor_initialization ( )
noexcept

◆ test_threshold_monitoring()

bool test_threshold_monitoring ( )
noexcept

◆ threshold_callback()

void threshold_callback ( BaseTemperature * sensor,
float temperature,
hf_u32_t threshold_type,
void * user_data )

Variable Documentation

◆ ENABLE_ADVANCED_TESTS

constexpr bool ENABLE_ADVANCED_TESTS
staticconstexpr
Initial value:
=
true

◆ ENABLE_CORE_TESTS

constexpr bool ENABLE_CORE_TESTS = true
staticconstexpr

◆ ENABLE_DIAGNOSTIC_TESTS

constexpr bool ENABLE_DIAGNOSTIC_TESTS
staticconstexpr
Initial value:
=
true

◆ ENABLE_FEATURE_TESTS

constexpr bool ENABLE_FEATURE_TESTS
staticconstexpr
Initial value:
=
true

◆ ENABLE_STRESS_TESTS

constexpr bool ENABLE_STRESS_TESTS = true
staticconstexpr

◆ g_last_callback_temperature

std::atomic<float> g_last_callback_temperature {0.0f}
static

◆ g_monitoring_callback_count

std::atomic<int> g_monitoring_callback_count {0}
static

◆ g_test_results

TestResults g_test_results
static

◆ g_threshold_callback_count

std::atomic<int> g_threshold_callback_count {0}
static

◆ TAG

const char* TAG = "TEMP_Test"
static