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

Function owb_reset

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

Source from the content-addressed store, hash-verified

361}
362
363owb_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
382owb_status owb_write_byte(const OneWireBus * bus, uint8_t data)
383{

Callers 2

xs_onewire_selectFunction · 0.85
xs_onewire_resetFunction · 0.85

Calls 2

_is_initFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected