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

Overview

DSPI RTOS Operation

status_t DSPI_RTOS_Init (dspi_rtos_handle_t *handle, SPI_Type *base, const dspi_master_config_t *masterConfig, uint32_t srcClock_Hz)
 Initializes the DSPI. More...
 
status_t DSPI_RTOS_Deinit (dspi_rtos_handle_t *handle)
 Deinitializes the DSPI. More...
 
status_t DSPI_RTOS_Transfer (dspi_rtos_handle_t *handle, dspi_transfer_t *transfer)
 Performs the SPI transfer. More...
 

Function Documentation

status_t DSPI_RTOS_Init ( dspi_rtos_handle_t *  handle,
SPI_Type *  base,
const dspi_master_config_t masterConfig,
uint32_t  srcClock_Hz 
)

This function initializes the DSPI module and the related RTOS context.

Parameters
handleThe RTOS DSPI handle, the pointer to an allocated space for RTOS context.
baseThe pointer base address of the DSPI instance to initialize.
masterConfigA configuration structure to set-up the DSPI in master mode.
srcClock_HzA frequency of the input clock of the DSPI module.
Returns
status of the operation.
status_t DSPI_RTOS_Deinit ( dspi_rtos_handle_t *  handle)

This function deinitializes the DSPI module and the related RTOS context.

Parameters
handleThe RTOS DSPI handle.
status_t DSPI_RTOS_Transfer ( dspi_rtos_handle_t *  handle,
dspi_transfer_t transfer 
)

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

Parameters
handleThe RTOS DSPI handle.
transferA structure specifying the transfer parameters.
Returns
status of the operation.