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

Method getUID

libraries/DS28CM00/DS28CM00.cpp:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80bool DS28CM00::getUID(uint8_t *buffer)
81{
82 _wire->beginTransmission(DS28CM00_DEVICEADDRESS);
83 _wire->write(DS28CM00_UIDREGISTER);
84 int rv = _wire->endTransmission();
85 if (rv != 0) return false;
86
87 uint8_t read = _wire->requestFrom(DS28CM00_DEVICEADDRESS, 8);
88 if (read < 8) return false;
89
90 for (uint8_t i = 0; i < 8; i++) buffer[i] = _wire->read();
91
92 return true;
93}
94
95
96// -- END OF FILE --

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected