pub struct InterruptConfig {
pub id: Interrupt,
pub route: bool,
pub enable_in_nvic: bool,
}Expand description
Generic interrupt config which can be used to specify whether the HAL driver will use the IRQSEL register to route an interrupt, and whether the IRQ will be unmasked in the Cortex-M0 NVIC. Both are generally necessary for IRQs to work, but the user might want to perform those steps themselves.
Fields§
§id: InterruptInterrupt target vector. Should always be set, might be required for disabling IRQs
route: boolSpecfiy whether IRQ should be routed to an IRQ vector using the IRQSEL peripheral.
enable_in_nvic: boolSpecify whether the IRQ is unmasked in the Cortex-M NVIC. If an interrupt is used for multiple purposes, the user can enable the interrupts themselves.
Implementations§
Trait Implementations§
Source§impl Clone for InterruptConfig
impl Clone for InterruptConfig
Source§fn clone(&self) -> InterruptConfig
fn clone(&self) -> InterruptConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterruptConfig
impl Debug for InterruptConfig
Source§impl Format for InterruptConfig
impl Format for InterruptConfig
Source§impl PartialEq for InterruptConfig
impl PartialEq for InterruptConfig
impl Copy for InterruptConfig
impl Eq for InterruptConfig
impl StructuralPartialEq for InterruptConfig
Auto Trait Implementations§
impl Freeze for InterruptConfig
impl RefUnwindSafe for InterruptConfig
impl Send for InterruptConfig
impl Sync for InterruptConfig
impl Unpin for InterruptConfig
impl UnwindSafe for InterruptConfig
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