Struct cortexm4::nvic::Nvic
[−]
[src]
pub struct Nvic(u32);
An opaque wrapper for a single NVIC interrupt.
Hand these out to low-level driver to let them control their own interrupts but not others.
Methods
impl Nvic
[src]
pub const unsafe fn new(idx: u32) -> Nvic
[src]
Creates a new Nvic
Marked unsafe because only chip/platform configuration code should be able to create these.
pub fn enable(&self)
[src]
Enable the interrupt
pub fn disable(&self)
[src]
Disable the interrupt
pub fn clear_pending(&self)
[src]
Clear pending state