Data transfers functions.
More...
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.
Returns the most recent received data by the SAI block x peripheral.
- Parameters
-
| SAI_Block_x | where x can be A or B to select the SAI Block peripheral. |
- Return values
-
| The | value of the received data. |
Transmits a Data through the SAI block x peripheral.
- Parameters
-
| SAI_Block_x | where x can be A or B to select the SAI Block peripheral. |
| Data | Data to be transmitted. |
- Return values
-