|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
Comprehensive I2C testing suite for ESP32-C6 DevKit-M-1 (noexcept) More...
#include "base/BaseI2c.h"#include "mcu/esp32/EspI2c.h"#include "mcu/esp32/utils/EspTypes_I2C.h"#include <algorithm>#include <memory>#include <vector>#include "TestFramework.h"#include "mcu/esp32/EspGpio.h"Macros | |
| #define | CREATE_TEST_BUS_INLINE(bus_var_name, mode_val) |
Variables | |
| static const char * | TAG = "I2C_Test" |
| static constexpr bool | ENABLE_CORE_TESTS |
| static constexpr bool | ENABLE_OPERATION_TESTS |
| static constexpr bool | ENABLE_ADVANCED_TESTS |
| static constexpr bool | ENABLE_PERFORMANCE_TESTS = false |
| static constexpr bool | ENABLE_SPECIALIZED_TESTS |
| static TestResults | g_test_results |
| static constexpr i2c_port_t | I2C_PORT_NUM = I2C_NUM_0 |
| static constexpr hf_pin_num_t | TEST_SDA_PIN = 21 |
| static constexpr hf_pin_num_t | TEST_SCL_PIN = 22 |
| static constexpr uint16_t | TEST_DEVICE_ADDR_1 = 0x48 |
| static constexpr uint16_t | TEST_DEVICE_ADDR_2 = 0x50 |
| static constexpr uint16_t | NONEXISTENT_ADDR = 0x7E |
| static constexpr uint32_t | STANDARD_FREQ = 100000 |
| static constexpr uint32_t | FAST_FREQ = 400000 |
| static constexpr uint32_t | FAST_PLUS_FREQ = 1000000 |
| static constexpr uint32_t | TIMEOUT_VERY_FAST_MS = 100 |
| static constexpr uint32_t | TIMEOUT_FAST_MS = 100 |
| static constexpr uint32_t | TIMEOUT_STANDARD_MS = 100 |
| static constexpr uint32_t | TIMEOUT_MEDIUM_MS = 500 |
| static constexpr uint32_t | TIMEOUT_LONG_MS = 1000 |
| static constexpr uint32_t | TIMEOUT_VERY_LONG_MS = 2000 |
| static constexpr uint32_t | TIMEOUT_EXTENDED_MS = 10000 |
Comprehensive I2C testing suite for ESP32-C6 DevKit-M-1 (noexcept)
This file contains comprehensive testing for the ESP I2C implementation including:
| #define CREATE_TEST_BUS_INLINE | ( | bus_var_name, | |
| mode_val ) |
| void app_main | ( | void | ) |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Test I2C using ESP-IDF API directly (bypassing our wrapper)
|
noexcept |
Test I2C using EspI2cBus wrapper (replicating ESP-IDF direct test)
|
noexcept |
Test I2C using EspI2cBus wrapper continuously (stability test)
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |