This section describes the programming interface of the SPI FreeRTOS driver. 
Data Fields | 
| 
SPI_Type *  | base | 
|   | SPI base address. 
  | 
|   | 
| 
spi_master_handle_t  | drv_handle | 
|   | Handle of the underlying driver, treated as opaque by the RTOS layer. 
  | 
|   | 
| 
SemaphoreHandle_t  | mutex | 
|   | Mutex to lock the handle during a trasfer. 
  | 
|   | 
| 
SemaphoreHandle_t  | event | 
|   | Semaphore to notify and unblock task when transfer ends. 
  | 
|   | 
 
 
      
        
          | #define FSL_SPI_FREERTOS_DRIVER_VERSION   (MAKE_VERSION(2, 1, 0)) | 
        
      
 
 
This function initializes the SPI module and related RTOS context.
- Parameters
 - 
  
    | handle | The RTOS SPI handle, the pointer to an allocated space for RTOS context.  | 
    | base | The pointer base address of the SPI instance to initialize.  | 
    | masterConfig | Configuration structure to set-up SPI in master mode.  | 
    | srcClock_Hz | Frequency of input clock of the SPI module.  | 
  
   
- Returns
 - status of the operation. 
 
 
 
This function deinitializes the SPI module and related RTOS context.
- Parameters
 - 
  
    | handle | The RTOS SPI handle.  | 
  
   
 
 
This function performs an SPI transfer according to data given in the transfer structure.
- Parameters
 - 
  
    | handle | The RTOS SPI handle.  | 
    | transfer | Structure specifying the transfer parameters.  | 
  
   
- Returns
 - status of the operation.