Enum rp2040_pac::i2c0::ic_enable::ABORT_A
source · pub enum ABORT_A {
DISABLE = 0,
ENABLED = 1,
}
Expand description
When set, the controller initiates the transfer abort. - 0: ABORT not initiated or ABORT done - 1: ABORT operation in progress The software can abort the I2C transfer in master mode by setting this bit. The software can set this bit only when ENABLE is already set; otherwise, the controller ignores any write to ABORT bit. The software cannot clear the ABORT bit once set. In response to an ABORT, the controller issues a STOP and flushes the Tx FIFO after completing the current transfer, then sets the TX_ABORT interrupt after the abort operation. The ABORT bit is cleared automatically after the abort operation.
For a detailed description on how to abort I2C transfers, refer to ‘Aborting I2C Transfers’.
Reset value: 0x0
Value on reset: 0
Variants§
Trait Implementations§
impl Copy for ABORT_A
impl Eq for ABORT_A
impl StructuralPartialEq for ABORT_A
Auto Trait Implementations§
impl Freeze for ABORT_A
impl RefUnwindSafe for ABORT_A
impl Send for ABORT_A
impl Sync for ABORT_A
impl Unpin for ABORT_A
impl UnwindSafe for ABORT_A
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§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
)