CRTP SPI communication adapter for TLE92466ED using BaseSpi and BaseGpio.
More...
#include <Tle92466edHandler.h>
|
| | HalSpiTle92466edComm (BaseSpi &spi, BaseGpio &resn, BaseGpio &en, BaseGpio *faultn=nullptr) noexcept |
| | Construct the SPI adapter.
|
| |
|
| tle92466ed::CommResult< void > | Init () noexcept |
| |
| tle92466ed::CommResult< void > | Deinit () noexcept |
| |
| tle92466ed::CommResult< uint32_t > | Transfer32 (uint32_t tx_data) noexcept |
| |
| tle92466ed::CommResult< void > | TransferMulti (std::span< const uint32_t > tx_data, std::span< uint32_t > rx_data) noexcept |
| |
| tle92466ed::CommResult< void > | Delay (uint32_t microseconds) noexcept |
| |
| tle92466ed::CommResult< void > | Configure (const tle92466ed::SPIConfig &config) noexcept |
| |
| bool | IsReady () const noexcept |
| |
| tle92466ed::CommError | GetLastError () const noexcept |
| |
| tle92466ed::CommResult< void > | ClearErrors () noexcept |
| |
| tle92466ed::CommResult< void > | GpioSet (tle92466ed::CtrlPin pin, tle92466ed::GpioSignal signal) noexcept |
| |
| tle92466ed::CommResult< tle92466ed::GpioSignal > | GpioRead (tle92466ed::CtrlPin pin) noexcept |
| |
| void | Log (tle92466ed::LogLevel level, const char *tag, const char *format, va_list args) noexcept |
| |
CRTP SPI communication adapter for TLE92466ED using BaseSpi and BaseGpio.
Implements all methods required by tle92466ed::SpiInterface<HalSpiTle92466edComm>.
◆ HalSpiTle92466edComm()
| HalSpiTle92466edComm::HalSpiTle92466edComm |
( |
BaseSpi & | spi, |
|
|
BaseGpio & | resn, |
|
|
BaseGpio & | en, |
|
|
BaseGpio * | faultn = nullptr ) |
|
noexcept |
Construct the SPI adapter.
- Parameters
-
| spi | Reference to pre-configured BaseSpi. |
| resn | BaseGpio connected to RESN (reset, active LOW). |
| en | BaseGpio connected to EN (enable, active HIGH). |
| faultn | Optional BaseGpio connected to FAULTN (active LOW input). |
◆ ClearErrors()
| tle92466ed::CommResult< void > HalSpiTle92466edComm::ClearErrors |
( |
| ) |
|
|
noexcept |
◆ Configure()
| tle92466ed::CommResult< void > HalSpiTle92466edComm::Configure |
( |
const tle92466ed::SPIConfig & | config | ) |
|
|
noexcept |
◆ Deinit()
| tle92466ed::CommResult< void > HalSpiTle92466edComm::Deinit |
( |
| ) |
|
|
noexcept |
◆ Delay()
| tle92466ed::CommResult< void > HalSpiTle92466edComm::Delay |
( |
uint32_t | microseconds | ) |
|
|
noexcept |
◆ GetLastError()
| tle92466ed::CommError HalSpiTle92466edComm::GetLastError |
( |
| ) |
const |
|
noexcept |
◆ GpioRead()
| tle92466ed::CommResult< tle92466ed::GpioSignal > HalSpiTle92466edComm::GpioRead |
( |
tle92466ed::CtrlPin | pin | ) |
|
|
noexcept |
◆ GpioSet()
| tle92466ed::CommResult< void > HalSpiTle92466edComm::GpioSet |
( |
tle92466ed::CtrlPin | pin, |
|
|
tle92466ed::GpioSignal | signal ) |
|
noexcept |
◆ Init()
| tle92466ed::CommResult< void > HalSpiTle92466edComm::Init |
( |
| ) |
|
|
noexcept |
◆ IsReady()
| bool HalSpiTle92466edComm::IsReady |
( |
| ) |
const |
|
noexcept |
◆ Log()
| void HalSpiTle92466edComm::Log |
( |
tle92466ed::LogLevel | level, |
|
|
const char * | tag, |
|
|
const char * | format, |
|
|
va_list | args ) |
|
noexcept |
◆ Transfer32()
| tle92466ed::CommResult< uint32_t > HalSpiTle92466edComm::Transfer32 |
( |
uint32_t | tx_data | ) |
|
|
noexcept |
◆ TransferMulti()
| tle92466ed::CommResult< void > HalSpiTle92466edComm::TransferMulti |
( |
std::span< const uint32_t > | tx_data, |
|
|
std::span< uint32_t > | rx_data ) |
|
noexcept |
◆ en_
| BaseGpio& HalSpiTle92466edComm::en_ |
|
private |
◆ faultn_
| BaseGpio* HalSpiTle92466edComm::faultn_ |
|
private |
◆ initialized_
| bool HalSpiTle92466edComm::initialized_ {false} |
|
private |
◆ last_error_
| tle92466ed::CommError HalSpiTle92466edComm::last_error_ {tle92466ed::CommError::None} |
|
private |
◆ resn_
| BaseGpio& HalSpiTle92466edComm::resn_ |
|
private |
◆ spi_
| BaseSpi& HalSpiTle92466edComm::spi_ |
|
private |
The documentation for this class was generated from the following files: