[−][src]Trait drone_cortexm::thr::ThrNvic
NVIC methods for interrupt tokens.
Provided methods
fn enable_batch<F>(&self, f: F) where
F: FnOnce(&mut NvicIser<Self::NvicBlock>),
F: FnOnce(&mut NvicIser<Self::NvicBlock>),
Enables multiple interrupts within the NVIC register.
fn enable(&self, nvic_reg: &mut NvicIser<Self::NvicBlock>)
Enables the interrupt.
fn enable_int(&self)
Enables the interrupt within the nvic_reg
.
fn enabled(&self) -> NvicIser<Self::NvicBlock>
Returns the NVIC register of enabled states.
fn is_enabled(&self, nvic_reg: &NvicIser<Self::NvicBlock>) -> bool
Returns true
if the interrupt is enabled.
fn is_int_enabled(&self) -> bool
Returns true
if the interrupt is enabled within the nvic_reg
.
fn disable_batch<F>(&self, f: F) where
F: FnOnce(&mut NvicIcer<Self::NvicBlock>),
F: FnOnce(&mut NvicIcer<Self::NvicBlock>),
Disables multiple interrupts within the NVIC register.
fn disable(&self, nvic_reg: &mut NvicIcer<Self::NvicBlock>)
Disables the interrupt.
fn disable_int(&self)
Disables the interrupt within the nvic_reg
.
fn set_pending_batch<F>(&self, f: F) where
F: FnOnce(&mut NvicIspr<Self::NvicBlock>),
F: FnOnce(&mut NvicIspr<Self::NvicBlock>),
Sets multiple interrupts pending within the NVIC register.
fn set_pending(&self, nvic_reg: &mut NvicIspr<Self::NvicBlock>)
Sets the interrupt pending.
fn set_pending_int(&self)
Sets the interrupt pending within the nvic_reg
.
fn clear_pending_batch<F>(&self, f: F) where
F: FnOnce(&mut NvicIcpr<Self::NvicBlock>),
F: FnOnce(&mut NvicIcpr<Self::NvicBlock>),
Clears multiple interrupts pending state within the NVIC register.
fn clear_pending(&self, nvic_reg: &mut NvicIcpr<Self::NvicBlock>)
Clears the interrupt pending state.
fn clear_pending_int(&self)
Clears the interrupt pending state within the nvic_reg
.
fn pending(&self) -> NvicIcpr<Self::NvicBlock>
Returns the NVIC register of pending states.
fn is_pending(&self, nvic_reg: &NvicIcpr<Self::NvicBlock>) -> bool
Returns true
if the interrupt is pending.
fn is_int_pending(&self) -> bool
Returns true
if the interrupt is pending within the nvic_reg
.
fn active(&self) -> NvicIabr<Self::NvicBlock>
Returns the NVIC register of active states.
fn is_active(&self, nvic_reg: &NvicIabr<Self::NvicBlock>) -> bool
Returns true
if the interrupt is active.
fn is_int_active(&self) -> bool
Returns true
if the interrupt is active within the nvic_reg
.
fn priority(&self) -> u8
Reads the priority of the interrupt.
fn set_priority(&self, priority: u8)
Writes the priority of the interrupt.