| 251 | } |
| 252 | |
| 253 | owb_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 | |
| 273 | owb_status owb_read_rom(const OneWireBus * bus, OneWireBus_ROMCode *rom_code) |
| 274 | { |
no test coverage detected