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

Method writeWord

lib/i2cdev/I2Cdev.cpp:567–569  ·  view source on GitHub ↗

Write single word to a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register address to write to * @param data New word value to write * @return Status of operation (true = success) */

Source from the content-addressed store, hash-verified

565 * @return Status of operation (true = success)
566 */
567bool I2Cdev::writeWord(uint8_t devAddr, uint8_t regAddr, uint16_t data, void *wireObj) {
568 return writeWords(devAddr, regAddr, 1, &data, wireObj);
569}
570
571/** Write multiple bytes to an 8-bit device register.
572 * @param devAddr I2C slave device address

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected