|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Type-safe 1-Wire bus protocol driver for ESP32. More...
Namespaces | |
| namespace | idfxx |
| namespace | idfxx::onewire |
| 1-Wire bus protocol classes and utilities. | |
Classes | |
| class | idfxx::onewire::address |
| 1-Wire device address. More... | |
| class | idfxx::onewire::bus |
| 1-Wire bus controller with thread-safe access. More... | |
Functions | |
| uint8_t | idfxx::onewire::crc8 (std::span< const uint8_t > data) |
| Computes a Dallas Semiconductor 8-bit CRC. | |
| uint16_t | idfxx::onewire::crc16 (std::span< const uint8_t > data, uint16_t crc_iv=0) |
| Computes a Dallas Semiconductor 16-bit CRC. | |
| bool | idfxx::onewire::check_crc16 (std::span< const uint8_t > data, std::span< const uint8_t, 2 > inverted_crc, uint16_t crc_iv=0) |
| Verifies a 16-bit CRC against received data. | |
Type-safe 1-Wire bus protocol driver for ESP32.
Provides 1-Wire bus lifecycle management with thread-safe device access, device search, ROM commands, and CRC utilities.
Depends on Core Utilities for error handling and GPIO Component for pin configuration.
| bool idfxx::onewire::check_crc16 | ( | std::span< const uint8_t > | data, |
| std::span< const uint8_t, 2 > | inverted_crc, | ||
| uint16_t | crc_iv = 0 |
||
| ) |
Verifies a 16-bit CRC against received data.
| data | The data bytes to checksum. |
| inverted_crc | The two CRC16 bytes as received from the device. |
| crc_iv | The CRC starting value (default: 0). |
Computes a Dallas Semiconductor 16-bit CRC.
Used to verify data integrity for certain 1-Wire device operations.
| data | The data bytes to checksum. |
| crc_iv | The CRC starting value (default: 0). |