discoverpixy
Functions

Data transfers functions. More...

Collaboration diagram for Data transfers functions:

Functions

uint32_t SAI_ReceiveData (SAI_Block_TypeDef *SAI_Block_x)
 Returns the most recent received data by the SAI block x peripheral. More...
 
void SAI_SendData (SAI_Block_TypeDef *SAI_Block_x, uint32_t Data)
 Transmits a Data through the SAI block x peripheral. More...
 

Detailed Description

Data transfers functions.

 ===============================================================================
                       ##### Data transfers functions #####
 ===============================================================================  
  [..]
  This section provides a set of functions allowing to manage the SAI data transfers.
  [..]
  In reception, data are received and then stored into an internal FIFO while 
  In transmission, data are first stored into an internal FIFO before being 
  transmitted.
  [..]
  The read access of the SAI_xDR register can be done using the SAI_ReceiveData()
  function and returns the Rx buffered value. Whereas a write access to the SAI_DR 
  can be done using SAI_SendData() function and stores the written data into 
  Tx buffer.

Function Documentation

uint32_t SAI_ReceiveData ( SAI_Block_TypeDef SAI_Block_x)

Returns the most recent received data by the SAI block x peripheral.

Parameters
SAI_Block_xwhere x can be A or B to select the SAI Block peripheral.
Return values
Thevalue of the received data.
void SAI_SendData ( SAI_Block_TypeDef SAI_Block_x,
uint32_t  Data 
)

Transmits a Data through the SAI block x peripheral.

Parameters
SAI_Block_xwhere x can be A or B to select the SAI Block peripheral.
DataData to be transmitted.
Return values
None