|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Comprehensive test suite for Pcal95555Handler. More...
#include "TestFramework.h"#include "esp32_bus_setup.hpp"#include "esp32_test_config.hpp"#include "handlers/pcal95555/Pcal95555Handler.h"#include <memory>#include "esp_log.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"Functions | |
| static bool | create_handler () noexcept |
| static bool | test_initialize () noexcept |
| static bool | test_chip_variant () noexcept |
| static bool | test_pin_direction () noexcept |
| static bool | test_pin_write_read () noexcept |
| static bool | test_toggle_pin () noexcept |
| static bool | test_batch_write () noexcept |
| static bool | test_supports_interrupts () noexcept |
| static bool | test_drain_pending_interrupts () noexcept |
| static bool | test_gpio_pin_wrapper () noexcept |
| static bool | test_error_invalid_pin () noexcept |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "PCAL95555_Handler_Test" |
| static TestResults | g_test_results |
| static constexpr bool | ENABLE_INITIALIZATION_TESTS = true |
| static constexpr bool | ENABLE_PIN_DIRECTION_TESTS = true |
| static constexpr bool | ENABLE_PIN_READ_WRITE_TESTS = true |
| static constexpr bool | ENABLE_BATCH_OPERATIONS_TESTS = true |
| static constexpr bool | ENABLE_INTERRUPT_TESTS = true |
| static constexpr bool | ENABLE_CHIP_VARIANT_TESTS = true |
| static constexpr bool | ENABLE_AGILE_IO_TESTS = true |
| static constexpr bool | ENABLE_GPIO_PIN_WRAPPER_TESTS = true |
| static constexpr bool | ENABLE_ERROR_HANDLING_TESTS = true |
| static std::unique_ptr< EspGpio > | g_int_gpio |
| static std::unique_ptr< Pcal95555Handler > | g_handler |
Comprehensive test suite for Pcal95555Handler.
Tests: I2C comm, EnsureInitialized, per-pin direction/read/write/toggle, batch 16-bit operations, interrupt management (deferred ISR), chip variant detection (PCA9555 vs PCAL9555A), Agile I/O features, and GpioPin wrapper.
| void app_main | ( | void | ) |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
|
static |