User`s manual
Reference Manual 125
Return Value
HRESULT
4. IAccessFunc::I2C_BurstReadRegister
The I2C_BurstReadRegister method reads multiple continuous
I2C registers (burst mode).
Syntax
HRESULT I2C_BurstReadRegister(
unsigned char DevAddr,
int AddrWidth,
unsigned short StartRegAddr,
int RegNum,
unsigned char *pRegValue,
int I2CMode
);
Parameters
DevAddr: [In] Device address.
AddrWidth: [In] Length of register address, in bits. Typical val-
ues can either be 8 or 16.
StartRegAddr: [In] Address of the first register. If its higher
byte is 0, the register is considered to have an 8-bit address;
otherwise the address length is 16 bits.
RegNum: [In] Number of registers to be read.
pRegValue: [Out] Pointer to an array which will receive the val-
ues read from I
2
C registers.