embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

OsEvent

Struct OsEvent 

Source
pub struct OsEvent;
Expand description

OS_EVENT interrupt helper with methods similar to embassy-imxrt’s InterruptExt.

Implementations§

Source§

impl OsEvent

Source

pub fn configure_for_timer(&self, priority: Priority)

Configure OS_EVENT interrupt for timer operation. This sets up the NVIC priority, enables the interrupt, and ensures global interrupts are enabled. Also performs a software event to wake any pending WFE.

Source§

impl OsEvent

Source

pub unsafe fn install_handler(&self, handler: extern "C" fn())

Convenience to install the OS_EVENT handler into the RAM vector table. Safety: See install_irq_handler.

Trait Implementations§

Source§

impl InterruptExt for OsEvent

Source§

fn unpend(&self)

Clear any pending OS_EVENT in NVIC.

Source§

fn set_priority(&self, priority: Priority)

Set NVIC priority for OS_EVENT.

Source§

unsafe fn enable(&self)

Enable OS_EVENT in NVIC.

Source§

unsafe fn disable(&self)

Disable OS_EVENT in NVIC.

Source§

fn is_pending(&self) -> bool

Check if OS_EVENT is pending in NVIC.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.