Defined in File i2c.h
int rc_i2c_write_bytes(int bus, uint8_t regAddr, size_t count, uint8_t *data)¶
Writes multiple bytes to a specified register address.
This sends the device address and register address followed by the actual data to be written. Works for most i2c devices.
bus – [in] The bus
regAddr – [in] The register address to write to
count – [in] The number of bytes to write
data – pointer to user’s data to be writen
0 on success or -1 on failure