#[repr(transparent)]pub struct Int(pub u32);
Expand description
Enable or disable interrupt
Tuple Fields§
§0: u32
Implementations§
Source§impl Int
impl Int
Sourcepub const fn set_usbreset(&mut self, val: bool)
pub const fn set_usbreset(&mut self, val: bool)
Enable or disable interrupt for event USBRESET
Sourcepub const fn set_started(&mut self, val: bool)
pub const fn set_started(&mut self, val: bool)
Enable or disable interrupt for event STARTED
Sourcepub const fn set_endepin(&mut self, n: usize, val: bool)
pub const fn set_endepin(&mut self, n: usize, val: bool)
Enable or disable interrupt for event ENDEPIN[0]
Sourcepub const fn ep0datadone(&self) -> bool
pub const fn ep0datadone(&self) -> bool
Enable or disable interrupt for event EP0DATADONE
Sourcepub const fn set_ep0datadone(&mut self, val: bool)
pub const fn set_ep0datadone(&mut self, val: bool)
Enable or disable interrupt for event EP0DATADONE
Sourcepub const fn set_endisoin(&mut self, val: bool)
pub const fn set_endisoin(&mut self, val: bool)
Enable or disable interrupt for event ENDISOIN
Sourcepub const fn endepout(&self, n: usize) -> bool
pub const fn endepout(&self, n: usize) -> bool
Enable or disable interrupt for event ENDEPOUT[0]
Sourcepub const fn set_endepout(&mut self, n: usize, val: bool)
pub const fn set_endepout(&mut self, n: usize, val: bool)
Enable or disable interrupt for event ENDEPOUT[0]
Sourcepub const fn set_endisoout(&mut self, val: bool)
pub const fn set_endisoout(&mut self, val: bool)
Enable or disable interrupt for event ENDISOOUT
Sourcepub const fn set_usbevent(&mut self, val: bool)
pub const fn set_usbevent(&mut self, val: bool)
Enable or disable interrupt for event USBEVENT
Sourcepub const fn set_ep0setup(&mut self, val: bool)
pub const fn set_ep0setup(&mut self, val: bool)
Enable or disable interrupt for event EP0SETUP
Sourcepub const fn set_epdata(&mut self, val: bool)
pub const fn set_epdata(&mut self, val: bool)
Enable or disable interrupt for event EPDATA
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
)