MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
Driver version | |
#define | FSL_LPSPI_FREERTOS_DRIVER_VERSION (MAKE_VERSION(2, 0, 5)) |
LPSPI FreeRTOS driver version 2.0.5. More... | |
LPSPI RTOS Operation | |
status_t | LPSPI_RTOS_Init (lpspi_rtos_handle_t *handle, LPSPI_Type *base, const lpspi_master_config_t *masterConfig, uint32_t srcClock_Hz) |
Initializes LPSPI. More... | |
status_t | LPSPI_RTOS_Deinit (lpspi_rtos_handle_t *handle) |
Deinitializes the LPSPI. More... | |
status_t | LPSPI_RTOS_Transfer (lpspi_rtos_handle_t *handle, lpspi_transfer_t *transfer) |
Performs SPI transfer. More... | |
#define FSL_LPSPI_FREERTOS_DRIVER_VERSION (MAKE_VERSION(2, 0, 5)) |
status_t LPSPI_RTOS_Init | ( | lpspi_rtos_handle_t * | handle, |
LPSPI_Type * | base, | ||
const lpspi_master_config_t * | masterConfig, | ||
uint32_t | srcClock_Hz | ||
) |
This function initializes the LPSPI module and related RTOS context.
handle | The RTOS LPSPI handle, the pointer to an allocated space for RTOS context. |
base | The pointer base address of the LPSPI instance to initialize. |
masterConfig | Configuration structure to set-up LPSPI in master mode. |
srcClock_Hz | Frequency of input clock of the LPSPI module. |
status_t LPSPI_RTOS_Deinit | ( | lpspi_rtos_handle_t * | handle | ) |
This function deinitializes the LPSPI module and related RTOS context.
handle | The RTOS LPSPI handle. |
status_t LPSPI_RTOS_Transfer | ( | lpspi_rtos_handle_t * | handle, |
lpspi_transfer_t * | transfer | ||
) |
This function performs an SPI transfer according to data given in the transfer structure.
handle | The RTOS LPSPI handle. |
transfer | Structure specifying the transfer parameters. |