Enum kernel::hil::i2c::Error
[−]
[src]
pub enum Error { AddressNak, DataNak, ArbitrationLost, CommandComplete, }
The type of error encoutered during an I2C command transmission.
Variants
AddressNak
The slave did not acknowledge the chip address. Most likely the address is incorrect or the slave is not properly connected.
DataNak
The data was not acknowledged by the slave.
ArbitrationLost
Arbitration lost, meaning the state of the data line does not correspond to the data driven onto it. This can happen, for example, when a higher-priority transmission is in progress by a different master.
CommandComplete
No error occured and the command completed successfully.
Trait Implementations
impl Copy for Error
[src]
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Error
[src]
fn assert_receiver_is_total_eq(&self)
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.