MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / write_bytes

Method write_bytes

Arduino/libraries/OneWire/OneWire.cpp:263–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void OneWire::write_bytes(const uint8_t *buf, uint16_t count, bool power /* = 0 */) {
264 for (uint16_t i = 0 ; i < count ; i++)
265 write(buf[i]);
266 if (!power) {
267 noInterrupts();
268 DIRECT_MODE_INPUT(baseReg, bitmask);
269 DIRECT_WRITE_LOW(baseReg, bitmask);
270 interrupts();
271 }
272}
273
274//
275// Read a byte

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected