furi_hal_i2c_write_mem

Function furi_hal_i2c_write_mem 

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

Perform I2C device memory

§Arguments

  • handle - Pointer to FuriHalI2cBusHandle instance
  • i2c_addr - I2C slave address
  • mem_addr - Memory start address
  • data - Pointer to data buffer
  • len - Size of data buffer
  • timeout - Timeout in milliseconds

§Returns

true on successful transfer, false otherwise