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

Function _is_init

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

Source from the content-addressed store, hash-verified

40#include "owb_gpio.h"
41
42static bool _is_init(const OneWireBus * bus)
43{
44 bool ok = false;
45 if (bus != NULL)
46 {
47 if (bus->driver)
48 {
49 // OK
50 ok = true;
51 }
52 else
53 {
54 // C "bus is not initialised");
55 }
56 }
57 else
58 {
59 // "bus is NULL");
60 }
61 return ok;
62}
63
64/**
65 * @brief 1-Wire 8-bit CRC lookup.

Callers 12

owb_uninitializeFunction · 0.85
owb_use_crcFunction · 0.85
owb_read_romFunction · 0.85
owb_verify_romFunction · 0.85
owb_resetFunction · 0.85
owb_write_byteFunction · 0.85
owb_read_byteFunction · 0.85
owb_read_bytesFunction · 0.85
owb_write_bytesFunction · 0.85
owb_write_rom_codeFunction · 0.85
owb_search_firstFunction · 0.85
owb_search_nextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected