pub enum Error {
AddressNak,
DataNak,
ArbitrationLost,
Overrun,
NotSupported,
Busy,
}
Expand description
The type of error encountered during I2C communication.
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.
Overrun
A start condition was received before received data has been read from the receive register.
NotSupported
The requested operation wasn’t supported.
Busy
The underlying device has another request in progress
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)