pub struct Lpuart2;Expand description
LPUART2 interrupt helper with methods similar to embassy-imxrt’s InterruptExt.
Implementations§
Source§impl Lpuart2
impl Lpuart2
Sourcepub fn configure_for_uart(&self, priority: Priority)
pub fn configure_for_uart(&self, priority: Priority)
Configure LPUART2 interrupt for UART operation. This sets up the NVIC priority, enables the interrupt, and ensures global interrupts are enabled.
Sourcepub unsafe fn install_handler(&self, handler: unsafe extern "C" fn())
pub unsafe fn install_handler(&self, handler: unsafe extern "C" fn())
Install LPUART2 handler into the RAM vector table.
Safety: See install_irq_handler.
Trait Implementations§
Source§impl InterruptExt for Lpuart2
impl InterruptExt for Lpuart2
Source§fn set_priority(&self, priority: Priority)
fn set_priority(&self, priority: Priority)
Set NVIC priority for LPUART2.
Source§fn is_pending(&self) -> bool
fn is_pending(&self) -> bool
Check if LPUART2 is pending in NVIC.
Auto Trait Implementations§
impl Freeze for Lpuart2
impl RefUnwindSafe for Lpuart2
impl Send for Lpuart2
impl Sync for Lpuart2
impl Unpin for Lpuart2
impl UnwindSafe for Lpuart2
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