Enum i2c_parser::DecodeState
[−]
[src]
pub enum DecodeState { Idle, Pending, Complete(I2cMessage), }
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
Variants
Idle
Pending
Complete(I2cMessage)
Trait Implementations
impl Debug for DecodeState
[src]
impl PartialEq for DecodeState
[src]
fn eq(&self, __arg_0: &DecodeState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DecodeState) -> bool
This method tests for !=
.