Skip to main content
Visitor II
March 6, 2023
Solved

Is there a non-polling version of HAL_I2C_IsDeviceReady?

  • March 6, 2023
  • 1 reply
  • 880 views

I am looking for an interrupt based replacement for HAL_I2C_IsDeviceReady. I am implementing a EEPROM library for M24256 I2C Serial EEPROM in a FreeRTOS application.  The call HAL_I2C_IsDeviceReady relies on polling for many milliseconds to perform this function. Is there a version written to use interrupts?

    This topic has been closed for replies.
    Best answer by Foued_KH

    Hello @nonesuchoudon​ ,

    There is only a polling version of HAL_I2C_IsDeviceReady.

    This function is used with Memory devices.

    (DevAddress Target device address: The device 7 bits address value in datasheet must be shifted to the left before calling the interface).

    Foued

    1 reply

    Foued_KHAnswer
    ST Employee
    March 6, 2023

    Hello @nonesuchoudon​ ,

    There is only a polling version of HAL_I2C_IsDeviceReady.

    This function is used with Memory devices.

    (DevAddress Target device address: The device 7 bits address value in datasheet must be shifted to the left before calling the interface).

    Foued