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

Method readScratchPad

libraries/DS18B20_RT/DS18B20.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65void DS18B20::readScratchPad(uint8_t *scratchPad, uint8_t fields)
66{
67 _oneWire->reset();
68 _oneWire->select(_deviceAddress);
69 _oneWire->write(READSCRATCH);
70
71 for (uint8_t i = 0; i < fields; i++)
72 {
73 scratchPad[i] = _oneWire->read();
74 }
75 _oneWire->reset();
76}
77
78
79bool DS18B20::isConversionComplete(void)

Callers

nothing calls this directly

Calls 4

resetMethod · 0.45
selectMethod · 0.45
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected