#[repr(transparent)]pub struct Int(pub u32);
Expand description
Disable interrupt
Tuple Fields§
§0: u32
Implementations§
Source§impl Int
impl Int
Sourcepub fn set_pofwarn(&mut self, val: bool)
pub fn set_pofwarn(&mut self, val: bool)
Write ‘1’ to disable interrupt for event POFWARN
Sourcepub const fn sleepenter(&self) -> bool
pub const fn sleepenter(&self) -> bool
Write ‘1’ to disable interrupt for event SLEEPENTER
Sourcepub fn set_sleepenter(&mut self, val: bool)
pub fn set_sleepenter(&mut self, val: bool)
Write ‘1’ to disable interrupt for event SLEEPENTER
Sourcepub fn set_sleepexit(&mut self, val: bool)
pub fn set_sleepexit(&mut self, val: bool)
Write ‘1’ to disable interrupt for event SLEEPEXIT
Sourcepub const fn usbdetected(&self) -> bool
pub const fn usbdetected(&self) -> bool
Write ‘1’ to disable interrupt for event USBDETECTED
Sourcepub fn set_usbdetected(&mut self, val: bool)
pub fn set_usbdetected(&mut self, val: bool)
Write ‘1’ to disable interrupt for event USBDETECTED
Sourcepub const fn usbremoved(&self) -> bool
pub const fn usbremoved(&self) -> bool
Write ‘1’ to disable interrupt for event USBREMOVED
Sourcepub fn set_usbremoved(&mut self, val: bool)
pub fn set_usbremoved(&mut self, val: bool)
Write ‘1’ to disable interrupt for event USBREMOVED
Sourcepub fn set_usbpwrrdy(&mut self, val: bool)
pub fn set_usbpwrrdy(&mut self, val: bool)
Write ‘1’ to disable interrupt for event USBPWRRDY
Trait Implementations§
impl Copy for Int
impl Eq for Int
impl StructuralPartialEq for Int
Auto Trait Implementations§
impl Freeze for Int
impl RefUnwindSafe for Int
impl Send for Int
impl Sync for Int
impl Unpin for Int
impl UnwindSafe for Int
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
)