Solved
HAL I2C timeout flag
I have a simple function that reads one byte from I2C and I need the RxdFlag variable to be cleared in case of unsuccessful transfer (timeout) and I don't know how to get it from the HAL_StatusTypeDef structure. Thanx for your help.
uint8_t GetSlaveInfo (uint8_t *value)
{
uint8_t RxdFlag = 1;
HAL_I2C_Master_Receive(&hi2c1, EE_I2C_ADDR << 1, value, 1, 50);
return RxdFlag;
}