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

Function owb_write_byte

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

Source from the content-addressed store, hash-verified

380}
381
382owb_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
401owb_status owb_read_byte(const OneWireBus * bus, uint8_t *out)
402{

Callers 2

xs_onewire_writeFunction · 0.85
xs_onewire_selectFunction · 0.85

Calls 1

_is_initFunction · 0.85

Tested by

no test coverage detected