Skip to main content

Module onewire

Module onewire 

Source
Expand description

1-Wire master over the ESP32 RMT peripheral (async).

Vendored from the esp-hal-rmt-onewire crate (v0.4.0) by jonoredhttps://github.com/jonored/esp-hal-rmt-onewire — dual-licensed MIT OR Apache-2.0 (its LICENSE-MIT reads “Copyright 2021 esp-rs”). Original authorship and copyright are retained, with thanks to the author.

Adapted for in-tree use: updated for the esp-hal 1.1 RMT API, and the const-generic exchange_bits reworked to a slice form (dropping the generic_const_exprs nightly feature) — modified from the original.

Structs§

Address
A 64-bit 1-Wire ROM address (family code, serial, CRC).
OneWire
Async 1-Wire bus master built on a pair of RMT TX/RX channels.
Search
State machine for the 1-Wire ROM Search algorithm, enumerating every device address on the bus across repeated Search::next calls.

Enums§

Error
Errors returned by 1-Wire bus operations.
SearchError
Errors returned while iterating a ROM Search.

Functions§

crc8
Dallas/Maxim 1-Wire CRC-8 (polynomial X^8 + X^5 + X^4 + 1, reflected 0x8C).