|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Comprehensive test suite for Tmc9660Handler. More...
#include "TestFramework.h"#include "esp32_bus_setup.hpp"#include "esp32_test_config.hpp"#include "handlers/tmc9660/Tmc9660Handler.h"#include "handlers/tmc9660/Tmc9660AdcWrapper.h"#include <cmath>#include <memory>#include "esp_log.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"Functions | |
| static bool | create_handler () noexcept |
| static bool | test_construction () noexcept |
| static bool | test_initialize () noexcept |
| static bool | test_is_ready () noexcept |
| static bool | test_read_parameter () noexcept |
| static bool | test_write_parameter () noexcept |
| static bool | test_set_target_velocity () noexcept |
| static bool | test_set_target_position () noexcept |
| static bool | test_supply_voltage () noexcept |
| static bool | test_chip_temperature () noexcept |
| static bool | test_motor_current () noexcept |
| static bool | test_status_flags () noexcept |
| static bool | test_error_flags () noexcept |
| static bool | test_gpio17_wrapper () noexcept |
| static bool | test_gpio18_wrapper () noexcept |
| static bool | test_adc_wrapper () noexcept |
| static bool | test_adc_wrapper_delegation () noexcept |
| static bool | test_temperature_wrapper () noexcept |
| static bool | test_driver_enable () noexcept |
| static bool | test_operations_before_init () noexcept |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "TMC9660_Handler_Test" |
| static TestResults | g_test_results |
| static constexpr bool | ENABLE_CONSTRUCTION_TESTS = true |
| static constexpr bool | ENABLE_INITIALIZATION_TESTS = true |
| static constexpr bool | ENABLE_PARAMETER_TESTS = true |
| static constexpr bool | ENABLE_MOTOR_CONTROL_TESTS = true |
| static constexpr bool | ENABLE_TELEMETRY_TESTS = true |
| static constexpr bool | ENABLE_GPIO_WRAPPER_TESTS = true |
| static constexpr bool | ENABLE_ADC_WRAPPER_TESTS = true |
| static constexpr bool | ENABLE_TEMP_WRAPPER_TESTS = true |
| static constexpr bool | ENABLE_DRIVER_ENABLE_TESTS = true |
| static constexpr bool | ENABLE_ERROR_HANDLING_TESTS = true |
| static std::unique_ptr< EspGpio > | g_rst_gpio |
| static std::unique_ptr< EspGpio > | g_drv_en_gpio |
| static std::unique_ptr< EspGpio > | g_faultn_gpio |
| static std::unique_ptr< EspGpio > | g_wake_gpio |
| static BaseSpi * | g_spi_device = nullptr |
| static std::unique_ptr< Tmc9660Handler > | g_handler |
| static bool | g_hw_present = false |
Comprehensive test suite for Tmc9660Handler.
Tests: SPI comm adapter, bootloader initialization, TMCL parameters, motor control (velocity/position/torque), telemetry (voltage/temp/current/flags), GPIO wrapper (GPIO17/18), ADC wrapper (multi-channel), Temperature wrapper, null-safe accessors (eager wrapper creation), driver enable, PID gains, and visitDriver() advanced access.
| void app_main | ( | void | ) |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |