MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / owb_search_next

Function owb_search_next

modules/drivers/onewire/esp/owb.c:523–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523owb_status owb_search_next(const OneWireBus * bus, OneWireBus_SearchState * state, bool* found_device)
524{
525 owb_status status;
526 bool result = false;
527
528 if(!bus || !state || !found_device)
529 {
530 status = OWB_STATUS_PARAMETER_NULL;
531 } else if (!_is_init(bus))
532 {
533 status = OWB_STATUS_NOT_INITIALIZED;
534 } else
535 {
536 _search(bus, state, &result);
537 status = OWB_STATUS_OK;
538
539 *found_device = result;
540 }
541
542 return status;
543}

Callers 2

xs_onewire_searchFunction · 0.85
xs_onewire_isPresentFunction · 0.85

Calls 2

_is_initFunction · 0.85
_searchFunction · 0.85

Tested by

no test coverage detected