SLUUBD4A April 2016 – November 2022 BQ27220
The write command "W:" instructs the I2C master to write one or more bytes to a given I2C address and given register address. The I2C address format used throughout this document is based on an 8-bit representation of the address. The format of this sequence is:
"W: I2CAddr RegAddr Byte0 Byte1 Byte2…"
For example, the following:
W: AA 55 AB CD EF 00
Indicates that the I2C master writes the byte sequence 0xAB 0xCD 0xEF 0x00 to register 0x55 of the device addressed at 0xAA.
More precisely, it indicates to write the following data to the device address 0xAA:
0xAB to register 0x55
0xCD to register 0x56
0xEF to register 0x57
0x00 to register 0x58