|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Comprehensive test suite for Max22200Handler. More...
#include "TestFramework.h"#include "esp32_bus_setup.hpp"#include "esp32_test_config.hpp"#include "handlers/max22200/Max22200Handler.h"#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_enable_channel () noexcept |
| static bool | test_disable_channel () noexcept |
| static bool | test_enable_all_channels () noexcept |
| static bool | test_disable_all_channels () noexcept |
| static bool | test_is_channel_enabled () noexcept |
| static bool | test_set_channels_mask () noexcept |
| static bool | test_channel_range_guard () noexcept |
| static bool | test_setup_cdr_channel () noexcept |
| static bool | test_setup_vdr_channel () noexcept |
| static bool | test_get_status () noexcept |
| static bool | test_get_channel_faults () noexcept |
| static bool | test_has_fault () noexcept |
| static bool | test_clear_faults () noexcept |
| static bool | test_read_fault_register () noexcept |
| static bool | test_get_driver_access () noexcept |
| static bool | test_enable_disable_device () 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 = "MAX22200_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_CHANNEL_CONTROL_TESTS = true |
| static constexpr bool | ENABLE_CHANNEL_SETUP_TESTS = true |
| static constexpr bool | ENABLE_STATUS_TESTS = true |
| static constexpr bool | ENABLE_DEVICE_CONTROL_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_cmd_gpio |
| static std::unique_ptr< EspGpio > | g_fault_gpio |
| static BaseSpi * | g_spi_device = nullptr |
| static std::unique_ptr< Max22200Handler > | g_handler |
| static bool | g_hw_present = false |
Comprehensive test suite for Max22200Handler.
Tests: CRTP SPI adapter with CMD-pin two-phase protocol, initialization (default + BoardConfig), 8-channel enable/disable/mask, CDR/VDR channel setup, channel faults, device status, device ID, soft reset, GetDriver() direct access, diagnostics dump, 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 |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |