Enum arduino_hal::i2c::Error
source · #[repr(u8)]pub enum Error {
ArbitrationLost = 0,
AddressNack = 1,
DataNack = 2,
BusError = 3,
Unknown = 4,
}
Expand description
I2C Error
Variants§
ArbitrationLost = 0
Lost arbitration while trying to acquire bus
AddressNack = 1
No slave answered for this address or a slave replied NACK
DataNack = 2
Slave replied NACK to sent data
BusError = 3
A bus-error occured
Unknown = 4
An unknown error occured. The bus might be in an unknown state.
Trait Implementations§
source§impl PartialEq for Error
impl PartialEq for Error
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more