pub struct IntId(/* private fields */);
Expand description
An interrupt ID.
Implementations§
Source§impl IntId
impl IntId
Sourcepub const fn sgi(sgi: u32) -> Self
pub const fn sgi(sgi: u32) -> Self
Returns the interrupt ID for the given Software Generated Interrupt.
Sourcepub const fn ppi(ppi: u32) -> Self
pub const fn ppi(ppi: u32) -> Self
Returns the interrupt ID for the given Private Peripheral Interrupt.
Sourcepub const fn spi(spi: u32) -> Self
pub const fn spi(spi: u32) -> Self
Returns the interrupt ID for the given Shared Peripheral Interrupt.
Sourcepub fn is_sgi(&self) -> bool
pub fn is_sgi(&self) -> bool
Returns whether this interrupt ID is for a Software Generated Interrupt.
Sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Returns whether this interrupt ID is private to a core, i.e. it is an SGI or PPI.
pub fn to_u32(&self) -> u32
Trait Implementations§
Source§impl Ord for IntId
impl Ord for IntId
Source§impl PartialOrd for IntId
impl PartialOrd for IntId
impl Copy for IntId
impl Eq for IntId
impl StructuralPartialEq for IntId
Auto Trait Implementations§
impl Freeze for IntId
impl RefUnwindSafe for IntId
impl Send for IntId
impl Sync for IntId
impl Unpin for IntId
impl UnwindSafe for IntId
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
)