|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Comprehensive test suite for Tmc5160Handler. More...
#include "TestFramework.h"#include "esp32_bus_setup.hpp"#include "esp32_test_config.hpp"#include "handlers/tmc5160/Tmc5160Handler.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_initialized () noexcept |
| static bool | test_driver_config_snapshot () noexcept |
| static bool | test_enable_motor () noexcept |
| static bool | test_is_motor_enabled () noexcept |
| static bool | test_disable_motor () noexcept |
| static bool | test_set_target_velocity () noexcept |
| static bool | test_set_target_position () noexcept |
| static bool | test_get_current_position () noexcept |
| static bool | test_get_current_velocity () noexcept |
| static bool | test_stop () noexcept |
| static bool | test_set_current () noexcept |
| static bool | test_is_standstill () noexcept |
| static bool | test_is_target_reached () noexcept |
| static bool | test_is_overtemperature () noexcept |
| static bool | test_is_stall_detected () noexcept |
| static bool | test_stallguard_result () noexcept |
| static bool | test_chip_version () noexcept |
| static bool | test_visit_driver_ramp_control () noexcept |
| static bool | test_visit_driver_motor_control () noexcept |
| static bool | test_visit_driver_encoder () noexcept |
| static bool | test_visit_driver_communication () noexcept |
| static bool | test_dump_diagnostics () noexcept |
| static bool | test_operations_before_init () noexcept |
| static bool | test_deinitialize () noexcept |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "TMC5160_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_MOTOR_ENABLE_TESTS = true |
| static constexpr bool | ENABLE_MOTION_CONTROL_TESTS = true |
| static constexpr bool | ENABLE_STATUS_TESTS = true |
| static constexpr bool | ENABLE_VISIT_DRIVER_TESTS = true |
| static constexpr bool | ENABLE_DIAGNOSTICS_TESTS = true |
| static constexpr bool | ENABLE_ERROR_HANDLING_TESTS = true |
| static std::unique_ptr< EspGpio > | g_enable_gpio |
| static std::unique_ptr< EspGpio > | g_diag0_gpio |
| static std::unique_ptr< EspGpio > | g_diag1_gpio |
| static BaseSpi * | g_spi_device = nullptr |
| static std::unique_ptr< Tmc5160Handler > | g_handler |
| static bool | g_hw_present = false |
Comprehensive test suite for Tmc5160Handler.
Tests: CRTP SPI adapter, initialization with DriverConfig, motor enable/ disable, motion control (position/velocity/acceleration/stop), visitDriver() subsystem access (rampControl, motorControl, stallGuard, status, encoder, etc.), StallGuard readback, diagnostics dump, status checks (overtemp, stall, standstill, target reached), driver config snapshot, and pre-init error handling.
| void app_main | ( | void | ) |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
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 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |