lpspi_slave_driver.h File Reference

Go to the source code of this file.

Data Structures

struct  lpspi_slave_config_t
 User configuration structure for the SPI slave driver. Implements : lpspi_slave_config_t_Class. More...
 

Functions

status_t LPSPI_DRV_SlaveInit (uint32_t instance, lpspi_state_t *lpspiState, const lpspi_slave_config_t *slaveConfig)
 Initializes a LPSPI instance for a slave mode operation, using interrupt mechanism. More...
 
status_t LPSPI_DRV_SlaveDeinit (uint32_t instance)
 Shuts down an LPSPI instance interrupt mechanism. More...
 
status_t LPSPI_DRV_SlaveTransferBlocking (uint32_t instance, const uint8_t *sendBuffer, uint8_t *receiveBuffer, uint16_t transferByteCount, uint32_t timeout)
 Transfers data on LPSPI bus using a blocking call. More...
 
status_t LPSPI_DRV_SlaveTransfer (uint32_t instance, const uint8_t *sendBuffer, uint8_t *receiveBuffer, uint16_t transferByteCount)
 Starts the transfer data on LPSPI bus using a non-blocking call. More...
 
status_t LPSPI_DRV_SlaveAbortTransfer (uint32_t instance)
 Aborts the transfer that started by a non-blocking call transfer function. More...
 
status_t LPSPI_DRV_SlaveGetTransferStatus (uint32_t instance, uint32_t *bytesRemained)
 Returns whether the previous transfer is finished. More...
 
void LPSPI_DRV_SlaveIRQHandler (uint32_t instance)
 Interrupt handler for LPSPI slave mode. This handler uses the buffers stored in the lpspi_master_state_t structs to transfer data. More...