![]() |
S32 SDK
|
#include <string.h>
#include "lpspi_slave_driver.h"
#include "clock_manager.h"
#include "interrupt_manager.h"
#include "lpspi_shared_function.h"
#include "S32K144_features.h"
Go to the source code of this file.
Functions | |
static void | LPSPI_DRV_SlaveCompleteDMATransfer (void *parameter, edma_chn_status_t status) |
Finish up a transfer DMA. The main purpose of this function is to create a function compatible with DMA callback type. More... | |
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 interrupt and 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 an interrupt and a non-blocking call. 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... | |
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... | |
|
static |
Finish up a transfer DMA. The main purpose of this function is to create a function compatible with DMA callback type.
Definition at line 489 of file lpspi_slave_driver.c.