27#if HAL_USE_SPI || defined(__DOXYGEN__)
40#if (PLATFORM_SPI_USE_SPI1 == TRUE) || defined(__DOXYGEN__)
67#if PLATFORM_SPI_USE_SPI1 == TRUE
89#if PLATFORM_SPI_USE_SPI1 == TRUE
90 else if (&
SPID1 == spip) {
119#if PLATFORM_SPI_USE_SPI1 == TRUE
120 if (&
SPID1 == spip) {
131#if (SPI_SELECT_MODE == SPI_SELECT_MODE_LLD) || defined(__DOXYGEN__)
196 const void *txbuf,
void *rxbuf) {
#define HAL_RET_IS_INVALID
Invalid instance pointer.
int32_t msg_t
Type of a message.
#define osalDbgAssert(c, remark)
Condition assertion.
SPIDriver SPID1
SPI1 driver identifier.
void spiObjectInit(SPIDriver *spip)
Initializes the standard part of a SPIDriver structure.
struct hal_spi_driver SPIDriver
Type of a structure representing an SPI driver.
msg_t spi_lld_exchange(SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf)
Exchanges data on the SPI bus.
msg_t spi_lld_stop_transfer(SPIDriver *spip, size_t *sizep)
Aborts the ongoing SPI operation, if any.
void spi_lld_select(SPIDriver *spip)
Asserts the slave select signal and prepares for transfers.
void spi_lld_init(void)
Low level SPI driver initialization.
msg_t spi_lld_ignore(SPIDriver *spip, size_t n)
Ignores data on the SPI bus.
void spi_lld_stop(SPIDriver *spip)
Deactivates the SPI peripheral.
msg_t spi_lld_send(SPIDriver *spip, size_t n, const void *txbuf)
Sends data over the SPI bus.
uint16_t spi_lld_polled_exchange(SPIDriver *spip, uint16_t frame)
Exchanges one frame using a polled wait.
msg_t spi_lld_start(SPIDriver *spip)
Configures and activates the SPI peripheral.
msg_t spi_lld_receive(SPIDriver *spip, size_t n, void *rxbuf)
Receives data from the SPI bus.
void spi_lld_unselect(SPIDriver *spip)
Deasserts the slave select signal.
spistate_t state
Driver state.