|
HF-MAX22200 Driver 0.1.0-dev
HF-MAX22200 C++ Driver
|
Comprehensive test suite for MAX22200 driver on ESP32. More...
#include <cinttypes>#include <cmath>#include <memory>#include "esp32_max22200_bus.hpp"#include "esp32_max22200_test_config.hpp"#include "max22200.hpp"#include "max22200_registers.hpp"#include "max22200_types.hpp"#include "TestFramework.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "esp_log.h"Functions | |
| void | app_main (void) |
| ESP32 app entry point; runs MAX22200 test suite. | |
Comprehensive test suite for MAX22200 driver on ESP32.
Tests the two-phase SPI protocol (per MAX22200 datasheet), register read/write, fault handling, and unit-based convenience APIs. All errors are caught and reported via DriverStatusToStr(); debug logging uses tagged prefixes ([init], [cfg], [unit_ma], etc.).
Test sections (controlled by ENABLE_* defines):
./scripts/build_app.sh max22200_comprehensive_test DebugESP32 app entry point; runs MAX22200 test suite.
Initializes shared resources (SPI + driver), runs test tasks in sections: Basic (if ENABLE_BASIC_TESTS), Unit API (if ENABLE_UNIT_API_TESTS), Error handling (if ENABLE_ERROR_HANDLING_TESTS). Prints summary via print_test_summary() and cleans up resources.