|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Comprehensive test suite for As5047uHandler. More...
#include "TestFramework.h"#include "esp32_bus_setup.hpp"#include "esp32_test_config.hpp"#include "handlers/as5047u/As5047uHandler.h"#include <memory>#include "esp_log.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"Functions | |
| static bool | create_handler () noexcept |
| static bool | test_handler_construction () noexcept |
| static bool | test_initialize () noexcept |
| static bool | test_is_initialized () noexcept |
| static bool | test_read_angle_raw () noexcept |
| static bool | test_read_angle_degrees () noexcept |
| static bool | test_read_angle_consistency () noexcept |
| static bool | test_read_velocity () noexcept |
| static bool | test_daec_enable_disable () noexcept |
| static bool | test_set_zero_position () noexcept |
| static bool | test_dump_diagnostics () noexcept |
| static bool | test_get_sensor () noexcept |
| static bool | test_operations_before_init () noexcept |
| static void | concurrent_reader_task (void *param) |
| static bool | test_concurrent_access () noexcept |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "AS5047U_Handler_Test" |
| static TestResults | g_test_results |
| static constexpr bool | ENABLE_INITIALIZATION_TESTS = true |
| static constexpr bool | ENABLE_ANGLE_TESTS = true |
| static constexpr bool | ENABLE_VELOCITY_TESTS = true |
| static constexpr bool | ENABLE_DAEC_TESTS = true |
| static constexpr bool | ENABLE_ZERO_POSITION_TESTS = true |
| static constexpr bool | ENABLE_DIAGNOSTICS_TESTS = true |
| static constexpr bool | ENABLE_ERROR_HANDLING_TESTS = true |
| static constexpr bool | ENABLE_THREAD_SAFETY_TESTS = true |
| static BaseSpi * | g_spi_device = nullptr |
| static std::unique_ptr< As5047uHandler > | g_handler |
| static volatile bool | g_thread_test_pass = true |
Comprehensive test suite for As5047uHandler.
Tests the AS5047U magnetic rotary position sensor handler through its full public API, exercising the underlying CRTP SPI adapter and driver.
Test Categories:
Hardware Required:
| void app_main | ( | void | ) |
|
static |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
|
static |
|
static |