pub unsafe extern "C" fn I2C_VerifySensor(
this: *mut I2C,
registerAddress: c_int,
count: c_int,
expected: *const u8,
) -> boolExpand description
Verify that a device’s registers contain expected values.
Most devices will have a set of registers that contain a known value that can be used to identify them. This allows an I2C device driver to easily verify that the device contains the expected value.
@pre The device must support and be configured to use register auto-increment.
@param registerAddress The base register to start reading from the device. @param count The size of the field to be verified. @param expected A buffer containing the values expected from the device.