pub struct InterruptStatus { /* private fields */ }unstable only.Expand description
Representation of peripheral-interrupt status bits.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Implementations§
Source§impl InterruptStatus
impl InterruptStatus
Sourcepub fn current() -> InterruptStatus
pub fn current() -> InterruptStatus
Get status of peripheral interrupts
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Sourcepub fn is_set(&self, interrupt: u8) -> bool
pub fn is_set(&self, interrupt: u8) -> bool
Is the given interrupt bit set
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Sourcepub fn set(&mut self, interrupt: u8)
pub fn set(&mut self, interrupt: u8)
Set the given interrupt status bit
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Sourcepub fn iterator(&self) -> InterruptStatusIterator ⓘ
pub fn iterator(&self) -> InterruptStatusIterator ⓘ
Return an iterator over the set interrupt status bits
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Trait Implementations§
Source§impl Clone for InterruptStatus
impl Clone for InterruptStatus
Source§fn clone(&self) -> InterruptStatus
fn clone(&self) -> InterruptStatus
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InterruptStatus
impl Debug for InterruptStatus
Source§impl Default for InterruptStatus
impl Default for InterruptStatus
Source§fn default() -> InterruptStatus
fn default() -> InterruptStatus
impl Copy for InterruptStatus
Auto Trait Implementations§
impl Freeze for InterruptStatus
impl RefUnwindSafe for InterruptStatus
impl Send for InterruptStatus
impl Sync for InterruptStatus
impl Unpin for InterruptStatus
impl UnsafeUnpin for InterruptStatus
impl UnwindSafe for InterruptStatus
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)