MCPcopy Create free account
hub / github.com/SlimeVR/SlimeVR-Tracker-ESP / readWord

Method readWord

lib/i2cdev/I2Cdev.cpp:197–199  ·  view source on GitHub ↗

Read single word from a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param data Container for word value read from device * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) * @return Status of read operation (true = success) */

Source from the content-addressed store, hash-verified

195 * @return Status of read operation (true = success)
196 */
197int8_t I2Cdev::readWord(uint8_t devAddr, uint8_t regAddr, uint16_t *data, uint16_t timeout, void *wireObj) {
198 return readWords(devAddr, regAddr, 1, data, timeout, wireObj);
199}
200
201/** Read multiple bytes from an 8-bit device register.
202 * @param devAddr I2C slave device address

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected