furi_hal_i2c_is_device_ready

Function furi_hal_i2c_is_device_ready 

Source
pub unsafe extern "C" fn furi_hal_i2c_is_device_ready(
    handle: *const FuriHalI2cBusHandle,
    i2c_addr: u8,
    timeout: u32,
) -> bool
Expand description

Check if I2C device presents on bus

§Arguments

  • handle - Pointer to FuriHalI2cBusHandle instance
  • i2c_addr - I2C slave address
  • timeout - Timeout in milliseconds

§Returns

true if device present and is ready, false otherwise