Arduino implementation of TLE92466ED HAL interface.
More...
#include <Arduino_HAL.hpp>
|
| | Arduino_HAL (const SPIConfig &config=SPIConfig()) |
| | Construct Arduino HAL with configuration.
|
| |
| | ~Arduino_HAL () override |
| | Destructor - cleanup resources.
|
| |
| auto | initialize () noexcept -> std::expected< void, TLE92466ED_Error > override |
| | Initialize the Arduino HAL.
|
| |
| auto | spiTransfer (uint32_t tx_data) noexcept -> std::expected< uint32_t, TLE92466ED_Error > override |
| | Transfer 32-bit SPI frame to/from TLE92466ED.
|
| |
| auto | delayMicroseconds (uint32_t microseconds) noexcept -> void override |
| | Delay for specified microseconds.
|
| |
| auto | isInitialized () const noexcept -> bool |
| | Check if HAL is initialized.
|
| |
| auto | getConfig () const noexcept -> const SPIConfig & |
| | Get current SPI configuration.
|
| |
| auto | enableDevice () noexcept -> void |
| | Enable the TLE92466ED device (if EN pin is configured)
|
| |
| auto | disableDevice () noexcept -> void |
| | Disable the TLE92466ED device (if EN pin is configured)
|
| |
| auto | resetDevice () noexcept -> void |
| | Reset the TLE92466ED device (if RESN pin is configured)
|
| |
Arduino implementation of TLE92466ED HAL interface.
This class provides SPI communication and timing functions for Arduino platforms. It uses the standard Arduino SPI library and is compatible with most Arduino boards.
◆ Arduino_HAL()
Construct Arduino HAL with configuration.
- Parameters
-
◆ ~Arduino_HAL()
| Arduino_HAL::~Arduino_HAL |
( |
| ) |
|
|
inlineoverride |
Destructor - cleanup resources.
◆ delayMicroseconds()
| auto Arduino_HAL::delayMicroseconds |
( |
uint32_t | microseconds | ) |
-> void |
|
inlineoverridenoexcept |
Delay for specified microseconds.
- Parameters
-
| microseconds | Delay duration in microseconds |
◆ disableDevice()
| auto Arduino_HAL::disableDevice |
( |
| ) |
-> void |
|
inlinenoexcept |
Disable the TLE92466ED device (if EN pin is configured)
◆ enableDevice()
| auto Arduino_HAL::enableDevice |
( |
| ) |
-> void |
|
inlinenoexcept |
Enable the TLE92466ED device (if EN pin is configured)
◆ getConfig()
| auto Arduino_HAL::getConfig |
( |
| ) |
const -> const SPIConfig& |
|
inlinenoexcept |
Get current SPI configuration.
- Returns
- Reference to SPI configuration
◆ initialize()
| auto Arduino_HAL::initialize |
( |
| ) |
-> std::expected<void, TLE92466ED_Error> |
|
inlineoverridenoexcept |
Initialize the Arduino HAL.
- Returns
- Success or error
◆ isInitialized()
| auto Arduino_HAL::isInitialized |
( |
| ) |
const -> bool |
|
inlinenoexcept |
Check if HAL is initialized.
- Returns
- true if initialized
◆ resetDevice()
| auto Arduino_HAL::resetDevice |
( |
| ) |
-> void |
|
inlinenoexcept |
Reset the TLE92466ED device (if RESN pin is configured)
◆ spiTransfer()
| auto Arduino_HAL::spiTransfer |
( |
uint32_t | tx_data | ) |
-> std::expected<uint32_t, TLE92466ED_Error> |
|
inlineoverridenoexcept |
Transfer 32-bit SPI frame to/from TLE92466ED.
- Parameters
-
| tx_data | Data to transmit (32 bits) |
- Returns
- Received data (32 bits) or error
◆ m_config
◆ m_initialized
| bool Arduino_HAL::m_initialized |
|
private |
The documentation for this class was generated from the following file: