RTEMS 6.1-rc2
Loading...
Searching...
No Matches
LPSPI FreeRTOS Driver

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.
 
status_t LPSPI_RTOS_Deinit (lpspi_rtos_handle_t *handle)
 Deinitializes the LPSPI.
 
status_t LPSPI_RTOS_Transfer (lpspi_rtos_handle_t *handle, lpspi_transfer_t *transfer)
 Performs SPI transfer.
 

Driver version

#define FSL_LPSPI_FREERTOS_DRIVER_VERSION   (MAKE_VERSION(2, 3, 1))
 LPSPI FreeRTOS driver version 2.3.1.
 

Detailed Description

Function Documentation

◆ LPSPI_RTOS_Deinit()

status_t LPSPI_RTOS_Deinit ( lpspi_rtos_handle_t *  handle)

Deinitializes the LPSPI.

This function deinitializes the LPSPI module and related RTOS context.

Parameters
handleThe RTOS LPSPI handle.

◆ LPSPI_RTOS_Init()

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.

This function initializes the LPSPI module and related RTOS context.

Parameters
handleThe RTOS LPSPI handle, the pointer to an allocated space for RTOS context.
baseThe pointer base address of the LPSPI instance to initialize.
masterConfigConfiguration structure to set-up LPSPI in master mode.
srcClock_HzFrequency of input clock of the LPSPI module.
Returns
status of the operation.

◆ LPSPI_RTOS_Transfer()

status_t LPSPI_RTOS_Transfer ( lpspi_rtos_handle_t *  handle,
lpspi_transfer_t transfer 
)

Performs SPI transfer.

This function performs an SPI transfer according to data given in the transfer structure.

Parameters
handleThe RTOS LPSPI handle.
transferStructure specifying the transfer parameters.
Returns
status of the operation.