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

Function owb_use_crc

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

Source from the content-addressed store, hash-verified

251}
252
253owb_status owb_use_crc(OneWireBus * bus, bool use_crc)
254{
255 owb_status status;
256
257 if(!bus)
258 {
259 status = OWB_STATUS_PARAMETER_NULL;
260 } else if (!_is_init(bus))
261 {
262 status = OWB_STATUS_NOT_INITIALIZED;
263 } else
264 {
265 bus->use_crc = use_crc;
266
267 status = OWB_STATUS_OK;
268 }
269
270 return status;
271}
272
273owb_status owb_read_rom(const OneWireBus * bus, OneWireBus_ROMCode *rom_code)
274{

Callers 1

xs_onewireFunction · 0.85

Calls 1

_is_initFunction · 0.85

Tested by

no test coverage detected