Defined in File i2c.h
int rc_i2c_read_byte(int bus, uint8_t regAddr, uint8_t *data)¶
Reads a single byte from a device register.
This sends the device address and register address to be read from before reading the response, works for most i2c devices.
bus – [in] The bus
regAddr – [in] The register address
data – [out] The data pointer to write response to.
0 on success or -1 on failure