#[non_exhaustive]pub struct SoftwareInterrupt<const NUM: u8>;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
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)
Set the interrupt handler 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
Auto Trait Implementations§
impl<const NUM: u8> Freeze for SoftwareInterrupt<NUM>
impl<const NUM: u8> RefUnwindSafe for SoftwareInterrupt<NUM>
impl<const NUM: u8> Send for SoftwareInterrupt<NUM>
impl<const NUM: u8> Sync for SoftwareInterrupt<NUM>
impl<const NUM: u8> Unpin for SoftwareInterrupt<NUM>
impl<const NUM: u8> UnwindSafe for SoftwareInterrupt<NUM>
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