| 380 | } |
| 381 | |
| 382 | owb_status owb_write_byte(const OneWireBus * bus, uint8_t data) |
| 383 | { |
| 384 | owb_status status; |
| 385 | |
| 386 | if(!bus) |
| 387 | { |
| 388 | status = OWB_STATUS_PARAMETER_NULL; |
| 389 | } else if (!_is_init(bus)) |
| 390 | { |
| 391 | status = OWB_STATUS_NOT_INITIALIZED; |
| 392 | } else |
| 393 | { |
| 394 | bus->driver->write_bits(bus, data, 8); |
| 395 | status = OWB_STATUS_OK; |
| 396 | } |
| 397 | |
| 398 | return status; |
| 399 | } |
| 400 | |
| 401 | owb_status owb_read_byte(const OneWireBus * bus, uint8_t *out) |
| 402 | { |
no test coverage detected