MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / readReg

Method readReg

libraries/PCA9634/PCA9634.cpp:358–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356
357
358uint8_t PCA9634::readReg(uint8_t reg)
359{
360 _wire->beginTransmission(_address);
361 _wire->write(reg);
362 _error = _wire->endTransmission();
363 if (_wire->requestFrom(_address, (uint8_t)1) != 1)
364 {
365 _error = PCA9634_ERROR;
366 return 0;
367 }
368 _error = PCA9634_OK;
369 _data = _wire->read();
370 return _data;
371}
372
373
374// -- END OF FILE --

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected