Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The I2CSensorReadRegister function reads the devices register(s) over I2C.
Syntax
NTSTATUS I2CSensorReadRegister(
WDFIOTARGET I2CIoTarget,
UCHAR RegAddress,
BYTE *Buffer,
ULONG BufferCb
);
Parameters
I2CIoTarget
Supplies the WDF I2C I/O target handle.
RegAddress
Supplies the I2C register address to read from.
Buffer
Supplies a buffer in which to read the contents of the register to.
BufferCb
Supplies the size of the buffer.
Return value
This function returns NTSTATUS.
Requirements
| Requirement | Value |
|---|---|
| Header | sensorsdriversutils.h |