Struct rp_pac::i2c::regs::IcClrActivity
source · #[repr(transparent)]pub struct IcClrActivity(pub u32);
Expand description
Clear ACTIVITY Interrupt Register
Tuple Fields§
§0: u32
Implementations§
source§impl IcClrActivity
impl IcClrActivity
sourcepub const fn clr_activity(&self) -> bool
pub const fn clr_activity(&self) -> bool
Reading this register clears the ACTIVITY interrupt if the I2C is not active anymore. If the I2C module is still active on the bus, the ACTIVITY interrupt bit continues to be set. It is automatically cleared by hardware if the module is disabled and if there is no further activity on the bus. The value read from this register to get status of the ACTIVITY interrupt (bit 8) of the IC_RAW_INTR_STAT register. Reset value: 0x0
sourcepub fn set_clr_activity(&mut self, val: bool)
pub fn set_clr_activity(&mut self, val: bool)
Reading this register clears the ACTIVITY interrupt if the I2C is not active anymore. If the I2C module is still active on the bus, the ACTIVITY interrupt bit continues to be set. It is automatically cleared by hardware if the module is disabled and if there is no further activity on the bus. The value read from this register to get status of the ACTIVITY interrupt (bit 8) of the IC_RAW_INTR_STAT register. Reset value: 0x0
Trait Implementations§
source§impl Clone for IcClrActivity
impl Clone for IcClrActivity
source§fn clone(&self) -> IcClrActivity
fn clone(&self) -> IcClrActivity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for IcClrActivity
impl Default for IcClrActivity
source§fn default() -> IcClrActivity
fn default() -> IcClrActivity
source§impl PartialEq for IcClrActivity
impl PartialEq for IcClrActivity
impl Copy for IcClrActivity
impl Eq for IcClrActivity
impl StructuralPartialEq for IcClrActivity
Auto Trait Implementations§
impl Freeze for IcClrActivity
impl RefUnwindSafe for IcClrActivity
impl Send for IcClrActivity
impl Sync for IcClrActivity
impl Unpin for IcClrActivity
impl UnwindSafe for IcClrActivity
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
)