| 40 | #include "owb_gpio.h" |
| 41 | |
| 42 | static 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. |
no outgoing calls
no test coverage detected