#[repr(C)]pub struct Nvic {}Fields§
§iser: [u32; 8]§_reserved0: [u32; 24]§icer: [u32; 8]§_reserved1: [u32; 24]§ispr: [u32; 8]§_reserved2: [u32; 24]§icpr: [u32; 8]§_reserved3: [u32; 24]§iabr: [u32; 8]§_reserved4: [u32; 56]§ip: [u8; 240]§_reserved5: [u32; 644]§stir: u32Implementations§
Source§impl Nvic
impl Nvic
Sourcepub fn enable_irq(&mut self, irqn: u32)
pub fn enable_irq(&mut self, irqn: u32)
Enable Interrupt
Sourcepub fn disable_irq(&mut self, irqn: u32)
pub fn disable_irq(&mut self, irqn: u32)
Disable Interrupt
Sourcepub fn get_enable_irq(&self, irqn: u32) -> bool
pub fn get_enable_irq(&self, irqn: u32) -> bool
Get Interrupt Enable status
Sourcepub fn set_pending_irq(&mut self, irqn: u32)
pub fn set_pending_irq(&mut self, irqn: u32)
Set Pending Interrupt
Sourcepub fn clear_pending_irq(&mut self, irqn: u32)
pub fn clear_pending_irq(&mut self, irqn: u32)
Clear Pending Interrupt
Sourcepub fn get_pending_irq(&self, irqn: u32) -> bool
pub fn get_pending_irq(&self, irqn: u32) -> bool
Get Pending Interrupt
Sourcepub fn get_active(&self, irqn: u32) -> bool
pub fn get_active(&self, irqn: u32) -> bool
Get Active Interrupt
Sourcepub fn set_priority(&mut self, irqn: u32, priority: u8)
pub fn set_priority(&mut self, irqn: u32, priority: u8)
Set Interrupt Priority
Sourcepub fn get_priority(&self, irqn: u32) -> u8
pub fn get_priority(&self, irqn: u32) -> u8
Get Interrupt Priority
Sourcepub fn trigger_interrupt(&mut self, irqn: u32)
pub fn trigger_interrupt(&mut self, irqn: u32)
Trigger Software Interrupt
Auto Trait Implementations§
impl Freeze for Nvic
impl RefUnwindSafe for Nvic
impl Send for Nvic
impl Sync for Nvic
impl Unpin for Nvic
impl UnwindSafe for Nvic
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