|
STM32L4xx_HAL_Driver
1.14.0
|
Data transfers functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_SAI_Transmit (SAI_HandleTypeDef *hsai, uint8_t *pData, uint16_t Size, uint32_t Timeout) |
| Transmit an amount of data in blocking mode. More... | |
| HAL_StatusTypeDef | HAL_SAI_Receive (SAI_HandleTypeDef *hsai, uint8_t *pData, uint16_t Size, uint32_t Timeout) |
| Receive an amount of data in blocking mode. More... | |
| HAL_StatusTypeDef | HAL_SAI_Transmit_IT (SAI_HandleTypeDef *hsai, uint8_t *pData, uint16_t Size) |
| Transmit an amount of data in non-blocking mode with Interrupt. More... | |
| HAL_StatusTypeDef | HAL_SAI_Receive_IT (SAI_HandleTypeDef *hsai, uint8_t *pData, uint16_t Size) |
| Receive an amount of data in non-blocking mode with Interrupt. More... | |
| HAL_StatusTypeDef | HAL_SAI_Transmit_DMA (SAI_HandleTypeDef *hsai, uint8_t *pData, uint16_t Size) |
| Transmit an amount of data in non-blocking mode with DMA. More... | |
| HAL_StatusTypeDef | HAL_SAI_Receive_DMA (SAI_HandleTypeDef *hsai, uint8_t *pData, uint16_t Size) |
| Receive an amount of data in non-blocking mode with DMA. More... | |
| HAL_StatusTypeDef | HAL_SAI_DMAPause (SAI_HandleTypeDef *hsai) |
| Pause the audio stream playing from the Media. More... | |
| HAL_StatusTypeDef | HAL_SAI_DMAResume (SAI_HandleTypeDef *hsai) |
| Resume the audio stream playing from the Media. More... | |
| HAL_StatusTypeDef | HAL_SAI_DMAStop (SAI_HandleTypeDef *hsai) |
| Stop the audio stream playing from the Media. More... | |
| HAL_StatusTypeDef | HAL_SAI_Abort (SAI_HandleTypeDef *hsai) |
| Abort the current transfer and disable the SAI. More... | |
| HAL_StatusTypeDef | HAL_SAI_EnableTxMuteMode (SAI_HandleTypeDef *hsai, uint16_t val) |
| Enable the Tx mute mode. More... | |
| HAL_StatusTypeDef | HAL_SAI_DisableTxMuteMode (SAI_HandleTypeDef *hsai) |
| Disable the Tx mute mode. More... | |
| HAL_StatusTypeDef | HAL_SAI_EnableRxMuteMode (SAI_HandleTypeDef *hsai, SAIcallback callback, uint16_t counter) |
| Enable the Rx mute detection. More... | |
| HAL_StatusTypeDef | HAL_SAI_DisableRxMuteMode (SAI_HandleTypeDef *hsai) |
| Disable the Rx mute detection. More... | |
| void | HAL_SAI_IRQHandler (SAI_HandleTypeDef *hsai) |
| Handle SAI interrupt request. More... | |
| void | HAL_SAI_TxHalfCpltCallback (SAI_HandleTypeDef *hsai) |
| Tx Transfer Half completed callback. More... | |
| void | HAL_SAI_TxCpltCallback (SAI_HandleTypeDef *hsai) |
| Tx Transfer completed callback. More... | |
| void | HAL_SAI_RxHalfCpltCallback (SAI_HandleTypeDef *hsai) |
| Rx Transfer half completed callback. More... | |
| void | HAL_SAI_RxCpltCallback (SAI_HandleTypeDef *hsai) |
| Rx Transfer completed callback. More... | |
| void | HAL_SAI_ErrorCallback (SAI_HandleTypeDef *hsai) |
| SAI error callback. More... | |
Data transfers functions.
==============================================================================
##### IO operation functions #####
==============================================================================
[..]
This subsection provides a set of functions allowing to manage the SAI data
transfers.
(+) There are two modes of transfer:
(++) Blocking mode : The communication is performed in the polling mode.
The status of all data processing is returned by the same function
after finishing transfer.
(++) No-Blocking mode : The communication is performed using Interrupts
or DMA. These functions return the status of the transfer startup.
The end of the data processing will be indicated through the
dedicated SAI IRQ when using Interrupt mode or the DMA IRQ when
using DMA mode.
(+) Blocking mode functions are :
(++) HAL_SAI_Transmit()
(++) HAL_SAI_Receive()
(+) Non Blocking mode functions with Interrupt are :
(++) HAL_SAI_Transmit_IT()
(++) HAL_SAI_Receive_IT()
(+) Non Blocking mode functions with DMA are :
(++) HAL_SAI_Transmit_DMA()
(++) HAL_SAI_Receive_DMA()
(+) A set of Transfer Complete Callbacks are provided in non Blocking mode:
(++) HAL_SAI_TxCpltCallback()
(++) HAL_SAI_RxCpltCallback()
(++) HAL_SAI_ErrorCallback() | HAL_StatusTypeDef HAL_SAI_Abort | ( | SAI_HandleTypeDef * | hsai | ) |
Abort the current transfer and disable the SAI.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| HAL | status |
Definition at line 1472 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_DisableRxMuteMode | ( | SAI_HandleTypeDef * | hsai | ) |
Disable the Rx mute detection.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| HAL | status |
Definition at line 1760 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_DisableTxMuteMode | ( | SAI_HandleTypeDef * | hsai | ) |
Disable the Tx mute mode.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| HAL | status |
Definition at line 1719 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_DMAPause | ( | SAI_HandleTypeDef * | hsai | ) |
Pause the audio stream playing from the Media.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| HAL | status |
Definition at line 1363 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_DMAResume | ( | SAI_HandleTypeDef * | hsai | ) |
Resume the audio stream playing from the Media.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| HAL | status |
Definition at line 1383 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_DMAStop | ( | SAI_HandleTypeDef * | hsai | ) |
Stop the audio stream playing from the Media.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| HAL | status |
Definition at line 1410 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_EnableRxMuteMode | ( | SAI_HandleTypeDef * | hsai, |
| SAIcallback | callback, | ||
| uint16_t | counter | ||
| ) |
Enable the Rx mute detection.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| callback | function called when the mute is detected. |
| counter | number a data before mute detection max 63. |
| HAL | status |
Definition at line 1737 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_EnableTxMuteMode | ( | SAI_HandleTypeDef * | hsai, |
| uint16_t | val | ||
| ) |
Enable the Tx mute mode.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| val | value sent during the mute SAI Block Mute Value |
| HAL | status |
Definition at line 1700 of file stm32l4xx_hal_sai.c.
| __weak void HAL_SAI_ErrorCallback | ( | SAI_HandleTypeDef * | hsai | ) |
SAI error callback.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| None |
Definition at line 2107 of file stm32l4xx_hal_sai.c.
| void HAL_SAI_IRQHandler | ( | SAI_HandleTypeDef * | hsai | ) |
Handle SAI interrupt request.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| None |
Definition at line 1779 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_Receive | ( | SAI_HandleTypeDef * | hsai, |
| uint8_t * | pData, | ||
| uint16_t | Size, | ||
| uint32_t | Timeout | ||
| ) |
Receive an amount of data in blocking mode.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| pData | Pointer to data buffer |
| Size | Amount of data to be received |
| Timeout | Timeout duration |
| HAL | status |
Definition at line 1133 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_Receive_DMA | ( | SAI_HandleTypeDef * | hsai, |
| uint8_t * | pData, | ||
| uint16_t | Size | ||
| ) |
Receive an amount of data in non-blocking mode with DMA.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| pData | Pointer to data buffer |
| Size | Amount of data to be received |
| HAL | status |
Definition at line 1631 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_Receive_IT | ( | SAI_HandleTypeDef * | hsai, |
| uint8_t * | pData, | ||
| uint16_t | Size | ||
| ) |
Receive an amount of data in non-blocking mode with Interrupt.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| pData | Pointer to data buffer |
| Size | Amount of data to be received |
| HAL | status |
Definition at line 1305 of file stm32l4xx_hal_sai.c.
| __weak void HAL_SAI_RxCpltCallback | ( | SAI_HandleTypeDef * | hsai | ) |
Rx Transfer completed callback.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| None |
Definition at line 2075 of file stm32l4xx_hal_sai.c.
| __weak void HAL_SAI_RxHalfCpltCallback | ( | SAI_HandleTypeDef * | hsai | ) |
Rx Transfer half completed callback.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| None |
Definition at line 2091 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_Transmit | ( | SAI_HandleTypeDef * | hsai, |
| uint8_t * | pData, | ||
| uint16_t | Size, | ||
| uint32_t | Timeout | ||
| ) |
Transmit an amount of data in blocking mode.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| pData | Pointer to data buffer |
| Size | Amount of data to be sent |
| Timeout | Timeout duration |
| HAL | status |
Definition at line 1020 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_Transmit_DMA | ( | SAI_HandleTypeDef * | hsai, |
| uint8_t * | pData, | ||
| uint16_t | Size | ||
| ) |
Transmit an amount of data in non-blocking mode with DMA.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| pData | Pointer to data buffer |
| Size | Amount of data to be sent |
| HAL | status |
Definition at line 1544 of file stm32l4xx_hal_sai.c.
| HAL_StatusTypeDef HAL_SAI_Transmit_IT | ( | SAI_HandleTypeDef * | hsai, |
| uint8_t * | pData, | ||
| uint16_t | Size | ||
| ) |
Transmit an amount of data in non-blocking mode with Interrupt.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| pData | Pointer to data buffer |
| Size | Amount of data to be sent |
| HAL | status |
Definition at line 1243 of file stm32l4xx_hal_sai.c.
| __weak void HAL_SAI_TxCpltCallback | ( | SAI_HandleTypeDef * | hsai | ) |
Tx Transfer completed callback.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| None |
Definition at line 2043 of file stm32l4xx_hal_sai.c.
| __weak void HAL_SAI_TxHalfCpltCallback | ( | SAI_HandleTypeDef * | hsai | ) |
Tx Transfer Half completed callback.
| hsai | pointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module. |
| None |
Definition at line 2059 of file stm32l4xx_hal_sai.c.