MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Overview

Driver version

#define FSL_ECSPI_FREERTOS_DRIVER_VERSION   (MAKE_VERSION(2, 0, 2))
 ECSPI FreeRTOS driver version 2.0.2. More...
 

ECSPI RTOS Operation

status_t ECSPI_RTOS_Init (ecspi_rtos_handle_t *handle, ECSPI_Type *base, const ecspi_master_config_t *masterConfig, uint32_t srcClock_Hz)
 Initializes ECSPI. More...
 
status_t ECSPI_RTOS_Deinit (ecspi_rtos_handle_t *handle)
 Deinitializes the ECSPI. More...
 
status_t ECSPI_RTOS_Transfer (ecspi_rtos_handle_t *handle, ecspi_transfer_t *transfer)
 Performs ECSPI transfer. More...
 

Macro Definition Documentation

#define FSL_ECSPI_FREERTOS_DRIVER_VERSION   (MAKE_VERSION(2, 0, 2))

Function Documentation

status_t ECSPI_RTOS_Init ( ecspi_rtos_handle_t *  handle,
ECSPI_Type *  base,
const ecspi_master_config_t masterConfig,
uint32_t  srcClock_Hz 
)

This function initializes the ECSPI module and related RTOS context.

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

This function deinitializes the ECSPI module and related RTOS context.

Parameters
handleThe RTOS ECSPI handle.
status_t ECSPI_RTOS_Transfer ( ecspi_rtos_handle_t *  handle,
ecspi_transfer_t transfer 
)

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

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