#i2c #sm-bus

smbus-request-parser

Parse SMBus requests. Register functions to call for each type of write/read request. Agnostic regarding polling, irq, dma usage.

4 releases

0.2.0 Jan 5, 2021
0.1.2 Jan 4, 2021
0.1.1 Jan 3, 2021
0.1.0 Jan 3, 2021

#883 in Embedded development

MIT license

26KB
621 lines

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.

No runtime deps