Read a byte
| 275 | // Read a byte |
| 276 | // |
| 277 | uint8_t OneWire::read() { |
| 278 | uint8_t bitMask; |
| 279 | uint8_t r = 0; |
| 280 | |
| 281 | for (bitMask = 0x01; bitMask; bitMask <<= 1) { |
| 282 | if ( OneWire::read_bit()) r |= bitMask; |
| 283 | } |
| 284 | return r; |
| 285 | } |
| 286 | |
| 287 | void OneWire::read_bytes(uint8_t *buf, uint16_t count) { |
| 288 | for (uint16_t i = 0 ; i < count ; i++) |
nothing calls this directly
no outgoing calls
no test coverage detected