MCPcopy Create free account
hub / github.com/PaulStoffregen/OneWire / write_bytes

Method write_bytes

OneWire.cpp:280–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void OneWire::write_bytes(const uint8_t *buf, uint16_t count, bool power /* = 0 */) {
281 for (uint16_t i = 0 ; i < count ; i++)
282 write(buf[i]);
283 if (!power) {
284 noInterrupts();
285 DIRECT_MODE_INPUT(baseReg, bitmask);
286 DIRECT_WRITE_LOW(baseReg, bitmask);
287 interrupts();
288 }
289}
290
291//
292// Read a byte

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected