User`s manual

124 Reference Manual
3. IAccessFunc::I2C_BurstWriteRegister
The I2C_BurstWriteRegister method writes multiple continuous
I2C registers (burst mode).
Syntax
HRESULT I2C_BurstWriteRegister(
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 be either 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 written.
pRegValue: [In] Pointer to an array of values to be written to
the I
2
C registers.
I2CMode: [In] I
2
C mode. The value can be set at:
X 0x0000:Use I
2
C protocol via on chip I
2
C controller.
X 0x0001:Use SCCB protocol via on chip I
2
C controller.
X 0x8000:Use I
2
C protocol via Cypress I
2
C controller.