|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Comprehensive test suite for Pca9685Handler. More...
#include "TestFramework.h"#include "esp32_bus_setup.hpp"#include "esp32_test_config.hpp"#include "handlers/pca9685/Pca9685Handler.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_set_duty_cycle () noexcept |
| static bool | test_set_duty_raw () noexcept |
| static bool | test_frequency () noexcept |
| static bool | test_sleep_wake () noexcept |
| static bool | test_gpio_pin_wrapper () noexcept |
| static bool | test_error_invalid_channel () noexcept |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "PCA9685_Handler_Test" |
| static TestResults | g_test_results |
| static constexpr bool | ENABLE_INITIALIZATION_TESTS = true |
| static constexpr bool | ENABLE_PWM_DUTY_TESTS = true |
| static constexpr bool | ENABLE_FREQUENCY_TESTS = true |
| static constexpr bool | ENABLE_SLEEP_WAKE_TESTS = true |
| static constexpr bool | ENABLE_PWM_ADAPTER_TESTS = true |
| static constexpr bool | ENABLE_GPIO_PIN_TESTS = true |
| static constexpr bool | ENABLE_PHASE_OFFSET_TESTS = true |
| static constexpr bool | ENABLE_ERROR_HANDLING_TESTS = true |
| static std::unique_ptr< Pca9685Handler > | g_handler |
| static std::shared_ptr< BasePwm > | g_pwm |
Comprehensive test suite for Pca9685Handler.
Tests the PCA9685 16-channel PWM controller handler: I2C comm adapter, EnsureInitialized delegation, PWM duty cycle control, frequency setting, sleep/wake, PwmAdapter, GpioPin wrapper, and error handling.
| void app_main | ( | void | ) |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
|
static |