|
ISF15ACP4 Driver 1.0.0
API reference
|
CRTP transport interface for SPI writes and GPIO control. More...
#include <isf15acp4_spi_interface.hpp>
Public Member Functions | |
| bool | EnsureInitialized () noexcept |
| Ensure SPI bus and GPIO pins are configured. | |
| bool | BeginCommand () noexcept |
| Begin an SPI transaction with D/C in command mode. | |
| bool | BeginData () noexcept |
| Begin an SPI transaction with D/C in data mode. | |
| void | EndTransaction () noexcept |
| End the active SPI transaction (typically deassert CS). | |
| bool | WriteBytes (const uint8_t *data, std::size_t len) noexcept |
| Write bytes on MOSI while a transaction is active. | |
| void | GpioSet (CtrlPin pin, GpioSignal signal) noexcept |
| Drive a control pin to an abstract signal level. | |
| bool | GpioRead (CtrlPin pin) noexcept |
| Read a digital input (typically the momentary switch). | |
| void | DelayUs (uint32_t us) noexcept |
| Blocking microsecond delay. | |
| void | GpioSetActive (CtrlPin pin) noexcept |
| void | GpioSetInactive (CtrlPin pin) noexcept |
| SpiInterface (const SpiInterface &)=delete | |
| SpiInterface & | operator= (const SpiInterface &)=delete |
Protected Member Functions | |
| SpiInterface ()=default | |
| ~SpiInterface ()=default | |
CRTP transport interface for SPI writes and GPIO control.
Platform implementations must:
| Derived | Concrete platform adapter type. |
|
delete |
|
protecteddefault |
|
protecteddefault |
|
inlinenoexcept |
Begin an SPI transaction with D/C in command mode.
|
inlinenoexcept |
Begin an SPI transaction with D/C in data mode.
|
inlinenoexcept |
Blocking microsecond delay.
| us | Delay duration in microseconds. |
|
inlinenoexcept |
End the active SPI transaction (typically deassert CS).
|
inlinenoexcept |
Ensure SPI bus and GPIO pins are configured.
|
inlinenoexcept |
Read a digital input (typically the momentary switch).
| pin | Input pin identifier. |
|
inlinenoexcept |
Drive a control pin to an abstract signal level.
| pin | Control signal identifier. |
| signal | Desired abstract level. |
|
inlinenoexcept |
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
Write bytes on MOSI while a transaction is active.
| data | Source buffer. |
| len | Number of bytes. |