smbus-request-parser

Crates.iosmbus-request-parser
lib.rssmbus-request-parser
version0.2.0
sourcesrc
created_at2021-01-03 22:42:26.880608
updated_at2021-01-05 11:15:51.074977
descriptionParse SMBus requests. Register functions to call for each type of write/read request. Agnostic regarding polling, irq, dma usage.
homepage
repositoryhttps://github.com/barafael/smbus-request-parser
max_upload_size
id331269
size27,442
Rafael Bachmann (barafael)

documentation

README

SMBus Request Parser

This library encapsulates the state machine for handling smbus requests on the module ("slave") side. The only requirements on the hardware driver/implementation is that they generate these events:

  • Address match with direction
  • Byte received
  • Byte requested
  • Stop Event

Whether these events are generated by polling, interrupts, or dma does not matter. The state machine is agnostic to clock stretching and timing details.

Commit count: 33

cargo fmt