STM32L4xx_HAL_Driver  1.14.0

Peripheral State and Errors functions. More...

Functions

uint32_t HAL_SMBUS_GetState (SMBUS_HandleTypeDef *hsmbus)
 Return the SMBUS handle state. More...
 
uint32_t HAL_SMBUS_GetError (SMBUS_HandleTypeDef *hsmbus)
 Return the SMBUS error code. More...
 

Detailed Description

Peripheral State and Errors 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_SMBUS_GetError()

uint32_t HAL_SMBUS_GetError ( SMBUS_HandleTypeDef hsmbus)

Return the SMBUS error code.

Parameters
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
Return values
SMBUSError Code

Definition at line 1779 of file stm32l4xx_hal_smbus.c.

1780 {
1781  return hsmbus->ErrorCode;
1782 }

◆ HAL_SMBUS_GetState()

uint32_t HAL_SMBUS_GetState ( SMBUS_HandleTypeDef hsmbus)

Return the SMBUS handle state.

Parameters
hsmbusPointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS.
Return values
HALstate

Definition at line 1767 of file stm32l4xx_hal_smbus.c.

1768 {
1769  /* Return SMBUS handle state */
1770  return hsmbus->State;
1771 }