#[non_exhaustive]pub struct SoftwareInterrupt<const NUM: u8>;
Available on crate feature
unstable
only.Expand description
A software interrupt can be triggered by software.
Implementations§
Source§impl<const NUM: u8> SoftwareInterrupt<NUM>
impl<const NUM: u8> SoftwareInterrupt<NUM>
Sourcepub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
pub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
Sets the interrupt handler for this software-interrupt
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Trait Implementations§
Source§impl<const NUM: u8> InterruptConfigurable for SoftwareInterrupt<NUM>
impl<const NUM: u8> InterruptConfigurable for SoftwareInterrupt<NUM>
Source§fn set_interrupt_handler(&mut self, handler: InterruptHandler)
fn set_interrupt_handler(&mut self, handler: InterruptHandler)
Registers an interrupt handler for the peripheral. Read more
Source§impl<const NUM: u8> Peripheral for SoftwareInterrupt<NUM>
impl<const NUM: u8> Peripheral for SoftwareInterrupt<NUM>
Source§type P = SoftwareInterrupt<NUM>
type P = SoftwareInterrupt<NUM>
Peripheral singleton type
Source§unsafe fn clone_unchecked(&self) -> Self::P
unsafe fn clone_unchecked(&self) -> Self::P
Unsafely clone (duplicate) a peripheral singleton. Read more
Source§fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
Convert a value into a
PeripheralRef
. Read more