|
TLE92466ED Driver 0.1.0-preview
Modern C++23 driver for Infineon TLE92466ED Six-Channel Low-Side Solenoid Driver
|
Hardware Abstraction Layer (HAL) base class for TLE92466ED driver. More...
#include <cstdint>#include <concepts>#include <span>#include <expected>Go to the source code of this file.
Classes | |
| struct | TLE92466ED::SPIConfig |
| SPI transaction configuration. More... | |
| class | TLE92466ED::HAL |
| Abstract Hardware Abstraction Layer (HAL) base class. More... | |
Namespaces | |
| namespace | TLE92466ED |
Concepts | |
| concept | TLE92466ED::HALInterface |
| Concept to verify a type implements the HAL interface. | |
Typedefs | |
| template<typename T > | |
| using | TLE92466ED::HALResult = std::expected<T, HALError> |
| Result type for HAL operations using std::expected (C++23) | |
Enumerations | |
| enum class | TLE92466ED::HALError : uint8_t { TLE92466ED::None = 0 , TLE92466ED::BusError , TLE92466ED::Timeout , TLE92466ED::InvalidParameter , TLE92466ED::ChipselectError , TLE92466ED::TransferError , TLE92466ED::HardwareNotReady , TLE92466ED::BufferOverflow , TLE92466ED::CRCError , TLE92466ED::UnknownError } |
| Error codes for HAL operations. More... | |
Hardware Abstraction Layer (HAL) base class for TLE92466ED driver.
This file defines the hardware abstraction layer interface for the TLE92466ED Six-Channel Low-Side Solenoid Driver IC. The HAL provides a polymorphic interface that allows the driver to work with any hardware platform by implementing the virtual transmission functions.
The TLE92466ED uses 32-bit SPI communication with the following structure: