Check if target device is ready for communication.
- Parameters:
-
hsmbus | Pointer to a SMBUS_HandleTypeDef structure that contains the configuration information for the specified SMBUS. |
DevAddress | Target device address The device 7 bits address value in datasheet must be shifted to the left before calling the interface |
Trials | Number of trials |
Timeout | Timeout duration |
- Return values:
-
Definition at line 1393 of file stm32f4xx_hal_smbus.c.
References __HAL_SMBUS_CLEAR_ADDRFLAG, __HAL_SMBUS_CLEAR_FLAG, __HAL_SMBUS_ENABLE, __HAL_SMBUS_GET_FLAG, __SMBUS_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_SMBUS_ERROR_NONE, HAL_SMBUS_STATE_BUSY, HAL_SMBUS_STATE_READY, HAL_SMBUS_STATE_TIMEOUT, __SMBUS_HandleTypeDef::Instance, SMBUS_7BIT_ADD_WRITE, SMBUS_FLAG_ADDR, SMBUS_FLAG_AF, SMBUS_FLAG_BUSY, SMBUS_FLAG_SB, SMBUS_NO_OPTION_FRAME, SMBUS_TIMEOUT_BUSY_FLAG, SMBUS_WaitOnFlagUntilTimeout(), __SMBUS_HandleTypeDef::State, and __SMBUS_HandleTypeDef::XferOptions.