#[repr(transparent)]pub struct IcStatus(pub u32);
Expand description
I2C Status Register This is a read-only register used to indicate the current transfer status and FIFO status. The status register may be read at any time. None of the bits in this register request an interrupt. When the I2C is disabled by writing 0 in bit 0 of the IC_ENABLE register: - Bits 1 and 2 are set to 1 - Bits 3 and 10 are set to 0 When the master or slave state machines goes to idle and ic_en=0: - Bits 5 and 6 are set to 0
Tuple Fields§
§0: u32
Implementations§
source§impl IcStatus
impl IcStatus
sourcepub fn set_activity(&mut self, val: bool)
pub fn set_activity(&mut self, val: bool)
I2C Activity Status. Reset value: 0x0
sourcepub const fn tfnf(&self) -> bool
pub const fn tfnf(&self) -> bool
Transmit FIFO Not Full. Set when the transmit FIFO contains one or more empty locations, and is cleared when the FIFO is full. - 0: Transmit FIFO is full - 1: Transmit FIFO is not full Reset value: 0x1
sourcepub fn set_tfnf(&mut self, val: bool)
pub fn set_tfnf(&mut self, val: bool)
Transmit FIFO Not Full. Set when the transmit FIFO contains one or more empty locations, and is cleared when the FIFO is full. - 0: Transmit FIFO is full - 1: Transmit FIFO is not full Reset value: 0x1
sourcepub const fn tfe(&self) -> bool
pub const fn tfe(&self) -> bool
Transmit FIFO Completely Empty. When the transmit FIFO is completely empty, this bit is set. When it contains one or more valid entries, this bit is cleared. This bit field does not request an interrupt. - 0: Transmit FIFO is not empty - 1: Transmit FIFO is empty Reset value: 0x1
sourcepub fn set_tfe(&mut self, val: bool)
pub fn set_tfe(&mut self, val: bool)
Transmit FIFO Completely Empty. When the transmit FIFO is completely empty, this bit is set. When it contains one or more valid entries, this bit is cleared. This bit field does not request an interrupt. - 0: Transmit FIFO is not empty - 1: Transmit FIFO is empty Reset value: 0x1
sourcepub const fn rfne(&self) -> bool
pub const fn rfne(&self) -> bool
Receive FIFO Not Empty. This bit is set when the receive FIFO contains one or more entries; it is cleared when the receive FIFO is empty. - 0: Receive FIFO is empty - 1: Receive FIFO is not empty Reset value: 0x0
sourcepub fn set_rfne(&mut self, val: bool)
pub fn set_rfne(&mut self, val: bool)
Receive FIFO Not Empty. This bit is set when the receive FIFO contains one or more entries; it is cleared when the receive FIFO is empty. - 0: Receive FIFO is empty - 1: Receive FIFO is not empty Reset value: 0x0
sourcepub const fn rff(&self) -> bool
pub const fn rff(&self) -> bool
Receive FIFO Completely Full. When the receive FIFO is completely full, this bit is set. When the receive FIFO contains one or more empty location, this bit is cleared. - 0: Receive FIFO is not full - 1: Receive FIFO is full Reset value: 0x0
sourcepub fn set_rff(&mut self, val: bool)
pub fn set_rff(&mut self, val: bool)
Receive FIFO Completely Full. When the receive FIFO is completely full, this bit is set. When the receive FIFO contains one or more empty location, this bit is cleared. - 0: Receive FIFO is not full - 1: Receive FIFO is full Reset value: 0x0
sourcepub const fn mst_activity(&self) -> bool
pub const fn mst_activity(&self) -> bool
Master FSM Activity Status. When the Master Finite State Machine (FSM) is not in the IDLE state, this bit is set. - 0: Master FSM is in IDLE state so the Master part of DW_apb_i2c is not Active - 1: Master FSM is not in IDLE state so the Master part of DW_apb_i2c is Active Note: IC_STATUS[0]-that is, ACTIVITY bit-is the OR of SLV_ACTIVITY and MST_ACTIVITY bits. Reset value: 0x0
sourcepub fn set_mst_activity(&mut self, val: bool)
pub fn set_mst_activity(&mut self, val: bool)
Master FSM Activity Status. When the Master Finite State Machine (FSM) is not in the IDLE state, this bit is set. - 0: Master FSM is in IDLE state so the Master part of DW_apb_i2c is not Active - 1: Master FSM is not in IDLE state so the Master part of DW_apb_i2c is Active Note: IC_STATUS[0]-that is, ACTIVITY bit-is the OR of SLV_ACTIVITY and MST_ACTIVITY bits. Reset value: 0x0
sourcepub const fn slv_activity(&self) -> bool
pub const fn slv_activity(&self) -> bool
Slave FSM Activity Status. When the Slave Finite State Machine (FSM) is not in the IDLE state, this bit is set. - 0: Slave FSM is in IDLE state so the Slave part of DW_apb_i2c is not Active - 1: Slave FSM is not in IDLE state so the Slave part of DW_apb_i2c is Active Reset value: 0x0
sourcepub fn set_slv_activity(&mut self, val: bool)
pub fn set_slv_activity(&mut self, val: bool)
Slave FSM Activity Status. When the Slave Finite State Machine (FSM) is not in the IDLE state, this bit is set. - 0: Slave FSM is in IDLE state so the Slave part of DW_apb_i2c is not Active - 1: Slave FSM is not in IDLE state so the Slave part of DW_apb_i2c is Active Reset value: 0x0
Trait Implementations§
impl Copy for IcStatus
impl Eq for IcStatus
impl StructuralPartialEq for IcStatus
Auto Trait Implementations§
impl Freeze for IcStatus
impl RefUnwindSafe for IcStatus
impl Send for IcStatus
impl Sync for IcStatus
impl Unpin for IcStatus
impl UnwindSafe for IcStatus
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
)