Adafruit_MPR121_mod/Adafruit_MPR121_mod.cpp
uint16_t Adafruit_MPR121_mod::readRegister16(uint8_t reg) {
  _wire->beginTransmission(_i2caddr);
  _wire->write(reg);
  _wire->endTransmission(false);
  _wire->requestFrom(_i2caddr, 2);
  if (_wire->available() < 2)
    return 0;
  uint16_t v = _wire->read();
  v |= ((uint16_t)_wire->read()) << 8;
  return v;
}
/*!
 *  @brief      Read the contents of a 16 bit device register.
 *  @param      reg the register address to read from
 *  @returns    the 16 bit value that was read.
 */
@brief      Read the contents of a 16 bit device register.
@param      reg the register address to read from
@returns    the 16 bit value that was read.
@brief Read the contents of a 16 bit device register . @param reg the register address to read from @returns the 16 bit value that was read .
uint16_t Adafruit_MPR121_mod::readRegister16(uint8_t reg) {
  _wire->beginTransmission(_i2caddr);
  _wire->write(reg);
  _wire->endTransmission(false);
  _wire->requestFrom(_i2caddr, 2);
  if (_wire->available() < 2)
    return 0;
  uint16_t v = _wire->read();
  v |= ((uint16_t)_wire->read()) << 8;
  return v;
}
uint16_t Adafruit_MPR121_mod :: readRegister16 ( uint8_t reg ) { _wire -> beginTransmission ( _i2caddr ) ; _wire -> write ( reg ) ; _wire -> endTransmission ( false ) ; _wire -> requestFrom ( _i2caddr , 2 ) ; if ( _wire -> available ( ) < 2 ) return 0 ; uint16_t v = _wire -> read ( ) ; v |= ( ( uint16_t ) _wire -> read ( ) ) << 8 ; return v ; }
@brief      Read the contents of a 16 bit device register.
@brief Read the contents of a 16 bit device register .