Struct Nvic

Source
#[repr(C)]
pub struct Nvic {
Show 13 fields pub iser: [u32; 8], _reserved0: [u32; 24], pub icer: [u32; 8], _reserved1: [u32; 24], pub ispr: [u32; 8], _reserved2: [u32; 24], pub icpr: [u32; 8], _reserved3: [u32; 24], pub iabr: [u32; 8], _reserved4: [u32; 56], pub ip: [u8; 240], _reserved5: [u32; 644], pub stir: u32,
}

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: u32

Implementations§

Source§

impl Nvic

Source

pub fn enable_irq(&mut self, irqn: u32)

Enable Interrupt

Source

pub fn disable_irq(&mut self, irqn: u32)

Disable Interrupt

Source

pub fn get_enable_irq(&self, irqn: u32) -> bool

Get Interrupt Enable status

Source

pub fn set_pending_irq(&mut self, irqn: u32)

Set Pending Interrupt

Source

pub fn clear_pending_irq(&mut self, irqn: u32)

Clear Pending Interrupt

Source

pub fn get_pending_irq(&self, irqn: u32) -> bool

Get Pending Interrupt

Source

pub fn get_active(&self, irqn: u32) -> bool

Get Active Interrupt

Source

pub fn set_priority(&mut self, irqn: u32, priority: u8)

Set Interrupt Priority

Source

pub fn get_priority(&self, irqn: u32) -> u8

Get Interrupt Priority

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.