pub struct OwnedInterruptSet<Id, State = Dynamic>(/* private fields */);Expand description
Has exclusive access to a set of interrupts for Id CAN peripheral.
Permits safe access to the owned interrupt flags.
Implementations§
Source§impl<Id: CanId, State> OwnedInterruptSet<Id, State>
impl<Id: CanId, State> OwnedInterruptSet<Id, State>
Sourcepub fn split(&mut self, subset: InterruptSet) -> Result<Self, MaskError>
pub fn split(&mut self, subset: InterruptSet) -> Result<Self, MaskError>
Moves ownership of the interrupts described by subset from self to
the return value. If self does not contain subset, an error is
returned.
Source§impl<Id: CanId, State: MaybeEnabled> OwnedInterruptSet<Id, State>
impl<Id: CanId, State: MaybeEnabled> OwnedInterruptSet<Id, State>
Sourcepub fn split_flagged(&mut self) -> Self
pub fn split_flagged(&mut self) -> Self
Moves ownership of the interrupts that were flagged to the return value.
Sourcepub fn iter_flagged(&self) -> Iter ⓘ
pub fn iter_flagged(&self) -> Iter ⓘ
Clears the flagged interrupts owned by this OwnedInterruptSet and
provides an iterator over the flags that were cleared.
Sourcepub fn interrupt_flags(&self) -> InterruptSet
pub fn interrupt_flags(&self) -> InterruptSet
Get the subset of interrupts in this set that are currently flagged.
Sourcepub fn clear_interrupts(&self, interrupts: InterruptSet)
pub fn clear_interrupts(&self, interrupts: InterruptSet)
Clear the indicated interrupts. Interrupts not owned by this
OwnedInterruptSet are silently ignored.
Trait Implementations§
Source§impl<Id: CanId, State> Default for OwnedInterruptSet<Id, State>
impl<Id: CanId, State> Default for OwnedInterruptSet<Id, State>
Source§impl<Id: CanId, State: Static> From<OwnedInterruptSet<Id, State>> for OwnedInterruptSet<Id>
impl<Id: CanId, State: Static> From<OwnedInterruptSet<Id, State>> for OwnedInterruptSet<Id>
Source§fn from(value: OwnedInterruptSet<Id, State>) -> Self
fn from(value: OwnedInterruptSet<Id, State>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Id, State> Freeze for OwnedInterruptSet<Id, State>
impl<Id, State> RefUnwindSafe for OwnedInterruptSet<Id, State>where
Id: RefUnwindSafe,
State: RefUnwindSafe,
impl<Id, State> Send for OwnedInterruptSet<Id, State>
impl<Id, State> Sync for OwnedInterruptSet<Id, State>
impl<Id, State> Unpin for OwnedInterruptSet<Id, State>
impl<Id, State> UnsafeUnpin for OwnedInterruptSet<Id, State>
impl<Id, State> UnwindSafe for OwnedInterruptSet<Id, State>where
Id: UnwindSafe,
State: UnwindSafe,
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