|
TLE92466ED Driver 0.1.0-preview
Modern C++23 driver for Infineon TLE92466ED Six-Channel Low-Side Solenoid Driver
|
Basic usage example for TLE92466ED driver on ESP32-C6. More...
#include <stdio.h>#include <memory>#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "esp_log.h"#include "esp_system.h"#include "TLE92466ED.hpp"#include "ESP32C6_HAL.hpp"#include "TLE92466ED_TestFramework.hpp"Macros | |
| #define | ENABLE_INITIALIZATION_TESTS 1 |
| #define | ENABLE_BASIC_OPERATION_TESTS 1 |
| #define | ENABLE_CURRENT_CONTROL_TESTS 1 |
Functions | |
| static bool | test_hal_initialization () noexcept |
| Test HAL initialization. | |
| static bool | test_driver_initialization () noexcept |
| Test TLE92466ED driver initialization. | |
| static bool | test_chip_id () noexcept |
| Test chip ID reading. | |
| static bool | test_channel_enable_disable () noexcept |
| Test channel enable/disable. | |
| static bool | test_current_setting () noexcept |
| Test current setting. | |
| static bool | test_diagnostics () noexcept |
| Test diagnostics reading. | |
| static bool | test_current_ramping () noexcept |
| Test current ramping. | |
| void | app_main () |
Variables | |
| static const char * | TAG = "TLE92466ED_Basic" |
| static std::unique_ptr< ESP32C6_HAL > | g_hal |
| static TLE92466ED * | g_driver = nullptr |
Basic usage example for TLE92466ED driver on ESP32-C6.
This example demonstrates:
| #define ENABLE_BASIC_OPERATION_TESTS 1 |
| #define ENABLE_CURRENT_CONTROL_TESTS 1 |
| #define ENABLE_INITIALIZATION_TESTS 1 |
| void app_main | ( | ) |
|
staticnoexcept |
Test channel enable/disable.
|
staticnoexcept |
Test chip ID reading.
|
staticnoexcept |
Test current ramping.
|
staticnoexcept |
Test current setting.
|
staticnoexcept |
Test diagnostics reading.
|
staticnoexcept |
Test TLE92466ED driver initialization.
|
staticnoexcept |
Test HAL initialization.
|
static |
|
static |
|
static |