Crate i2c_parser [−] [src]
I2C Parsing State Machine Library
Rust implementation of pigpio's I2C Sniffer.
Structs
I2cByte |
A single byte of I2C Data, including ACK or NAK state |
I2cEngine |
Structure for parsing I2C Messages from raw SDA and SCL inputs |
I2cMessage |
Structure containing a complete I2C message comprised of |
Enums
DecodeState |
Representation of the current engine state * Idle: A message has not yet been started * Pending: An I2C START condition has been received, waiting for a STOP * Complete: A STOP condition has just occurred, and contains all bytes received between START and STOP |
I2cStatus |
Representation of ACK/NAK bit after every 8 bits of data |