manchester-code

Crates.iomanchester-code
lib.rsmanchester-code
version0.2.0
sourcesrc
created_at2022-03-08 20:35:17.002301
updated_at2022-04-01 16:12:02.097204
descriptionA no-std library to allow Manchester encoding and decoding of datagrams.
homepagehttps://github.com/almedso/manchester-code
repositoryhttps://github.com/almedso/manchester-code
max_upload_size
id546574
size46,139
Volker Kempert (volker-kempert)

documentation

https://docs.rs/manchester-code

README

Manchester Encoding and Decoding

crates.io docs.rs license rustc CI status

A no-std library to allow Manchester encoding and decoding of datagrams. It requires certain deep embedded resources like timers, PWM and ISR's.

Features

  • Decode monotonically sampled data stream that is Manchester modulated like it is used in RC5
    • High/low IN-Activitity configuration
    • Zero or one first bit configuration
    • Big endian/ little endian configuration
    • Automatic start and end of datagram detection
    • Requires a periodic timer
  • Encode
    • Big endian/ little endian configuration

    • Requires a timer ISR and a PWM (single channel)

Example

License

This project is licensed under

Contributing

Your PRs and suggestions are always welcome.

Future Work

  • defmt optional
  • fmt optional
  • async as stream
  • ci + readme reporting
  • publish
Commit count: 13

cargo fmt