Enum rp2040_pac::i2c0::ic_raw_intr_stat::TX_EMPTY_A
source · pub enum TX_EMPTY_A {
INACTIVE = 0,
ACTIVE = 1,
}
Expand description
The behavior of the TX_EMPTY interrupt status differs based on the TX_EMPTY_CTRL selection in the IC_CON register. - When TX_EMPTY_CTRL = 0: This bit is set to 1 when the transmit buffer is at or below the threshold value set in the IC_TX_TL register. - When TX_EMPTY_CTRL = 1: This bit is set to 1 when the transmit buffer is at or below the threshold value set in the IC_TX_TL register and the transmission of the address/data from the internal shift register for the most recently popped command is completed. It is automatically cleared by hardware when the buffer level goes above the threshold. When IC_ENABLE[0] is set to 0, the TX FIFO is flushed and held in reset. There the TX FIFO looks like it has no data within it, so this bit is set to 1, provided there is activity in the master or slave state machines. When there is no longer any activity, then with ic_en=0, this bit is set to 0.
Reset value: 0x0.
Value on reset: 0
Variants§
Trait Implementations§
source§impl Clone for TX_EMPTY_A
impl Clone for TX_EMPTY_A
source§fn clone(&self) -> TX_EMPTY_A
fn clone(&self) -> TX_EMPTY_A
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TX_EMPTY_A
impl Debug for TX_EMPTY_A
source§impl From<TX_EMPTY_A> for bool
impl From<TX_EMPTY_A> for bool
source§fn from(variant: TX_EMPTY_A) -> Self
fn from(variant: TX_EMPTY_A) -> Self
source§impl PartialEq for TX_EMPTY_A
impl PartialEq for TX_EMPTY_A
impl Copy for TX_EMPTY_A
impl Eq for TX_EMPTY_A
impl StructuralPartialEq for TX_EMPTY_A
Auto Trait Implementations§
impl Freeze for TX_EMPTY_A
impl RefUnwindSafe for TX_EMPTY_A
impl Send for TX_EMPTY_A
impl Sync for TX_EMPTY_A
impl Unpin for TX_EMPTY_A
impl UnwindSafe for TX_EMPTY_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
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)
clone_to_uninit
)