embedded-onewire 0.0.5

A no-std trait definition for interacting with 1-Wire devices.
Documentation
  • Coverage
  • 100%
    46 out of 46 items documented0 out of 0 items with examples
  • Size
  • Source code size: 59.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 757.44 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sunipkm

embedded-onewire

A no-std trait description of the 1-Wire protocol.

This crate provides a trait-based interface for 1-Wire communication, allowing you to implement the protocol on various platforms. [OneWire] trait defines the basic operations required for 1-Wire communication, such as resetting the bus, writing and reading bytes, and writing and reading bits. It also includes an asynchronous version of the trait, [OneWireAsync], for use in async environments.

The crate also provides a search algorithm for discovering devices on the 1-Wire bus, implemented in the [OneWireSearch] and [OneWireSearchAsync] structs.

Features

  • crc-table: Enables the use of a 256-byte lookup table for CRC calculation, which can improve performance at the cost of increased binary size.
  • triplet-read: Enables the read_triplet trait method in [OneWire] and [OneWireAsync]. 1-Wire bus masters, e.g. the Analog Devices DS2484, implements this function to simplify the device enumeration algorithm. However, the current implementation of the search algorithm with the DS2484 device does not enumerate the devices correctly, so this feature is not recommended for use.