STM32L4xx_HAL_Driver  1.14.0
Peripheral State functions

Peripheral State functions. More...

Functions

HAL_SAI_StateTypeDef HAL_SAI_GetState (SAI_HandleTypeDef *hsai)
 Return the SAI handle state. More...
 
uint32_t HAL_SAI_GetError (SAI_HandleTypeDef *hsai)
 Return the SAI error code. More...
 

Detailed Description

Peripheral State functions.

  ===============================================================================
                ##### Peripheral State and Errors functions #####
  ===============================================================================
  [..]
    This subsection permits to get in run-time the status of the peripheral
    and the data flow.

Function Documentation

◆ HAL_SAI_GetError()

uint32_t HAL_SAI_GetError ( SAI_HandleTypeDef hsai)

Return the SAI error code.

Parameters
hsaipointer to a SAI_HandleTypeDef structure that contains the configuration information for the specified SAI Block.
Return values
SAIError Code

Definition at line 2153 of file stm32l4xx_hal_sai.c.

2154 {
2155  return hsai->ErrorCode;
2156 }

◆ HAL_SAI_GetState()

HAL_SAI_StateTypeDef HAL_SAI_GetState ( SAI_HandleTypeDef hsai)

Return the SAI handle state.

Parameters
hsaipointer to a SAI_HandleTypeDef structure that contains the configuration information for SAI module.
Return values
HALstate

Definition at line 2142 of file stm32l4xx_hal_sai.c.

2143 {
2144  return hsai->State;
2145 }
__IO HAL_SAI_StateTypeDef State