embassy-rp

Crates

git

Versions

rp2040

Flavors

Skip to main content

IrqFlags

Struct IrqFlags 

Source
pub struct IrqFlags<'d, PIO: Instance> { /* private fields */ }
Expand description

Interrupt flags for a PIO instance.

Implementations§

Source§

impl<'d, PIO: Instance> IrqFlags<'d, PIO>

Source

pub fn check(&self, irq_no: u8) -> bool

Check if interrupt fired.

Source

pub fn check_any(&self, irqs: u8) -> bool

Check if any of the interrupts in the bitmap fired.

Source

pub fn check_all(&self, irqs: u8) -> bool

Check if all interrupts have fired.

Source

pub fn clear(&self, irq_no: usize)

Clear interrupt for interrupt number.

Source

pub fn clear_all(&self, irqs: u8)

Clear all interrupts set in the bitmap.

Source

pub fn set(&self, irq_no: usize)

Fire a given interrupt.

Source

pub fn set_all(&self, irqs: u8)

Fire all interrupts.

Trait Implementations§

Source§

impl<'d, PIO: Clone + Instance> Clone for IrqFlags<'d, PIO>

Source§

fn clone(&self) -> IrqFlags<'d, PIO>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<'d, PIO> !UnwindSafe for IrqFlags<'d, PIO>

§

impl<'d, PIO> Freeze for IrqFlags<'d, PIO>

§

impl<'d, PIO> RefUnwindSafe for IrqFlags<'d, PIO>

§

impl<'d, PIO> Send for IrqFlags<'d, PIO>

§

impl<'d, PIO> Sync for IrqFlags<'d, PIO>

§

impl<'d, PIO> Unpin for IrqFlags<'d, PIO>

§

impl<'d, PIO> UnsafeUnpin for IrqFlags<'d, PIO>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 = !

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.