| 361 | } |
| 362 | |
| 363 | owb_status owb_reset(const OneWireBus * bus, bool* a_device_present) |
| 364 | { |
| 365 | owb_status status; |
| 366 | |
| 367 | if(!bus || !a_device_present) |
| 368 | { |
| 369 | status = OWB_STATUS_PARAMETER_NULL; |
| 370 | } else if(!_is_init(bus)) |
| 371 | { |
| 372 | status = OWB_STATUS_NOT_INITIALIZED; |
| 373 | } else |
| 374 | { |
| 375 | bus->driver->reset(bus, a_device_present); |
| 376 | status = OWB_STATUS_OK; |
| 377 | } |
| 378 | |
| 379 | return status; |
| 380 | } |
| 381 | |
| 382 | owb_status owb_write_byte(const OneWireBus * bus, uint8_t data) |
| 383 | { |
no test coverage detected