pub struct InterruptState(/* private fields */);Expand description
Provides easy access for decoding PIO’s interrupt state.
Implementations§
Source§impl InterruptState
impl InterruptState
Sourcepub fn sm0_rx_not_empty(self) -> bool
pub fn sm0_rx_not_empty(self) -> bool
Check whether interrupt SM0_RXNEMPTY has been raised.
Sourcepub fn sm1_rx_not_empty(self) -> bool
pub fn sm1_rx_not_empty(self) -> bool
Check whether interrupt SM1_RXNEMPTY has been raised.
Sourcepub fn sm2_rx_not_empty(self) -> bool
pub fn sm2_rx_not_empty(self) -> bool
Check whether interrupt SM2_RXNEMPTY has been raised.
Sourcepub fn sm3_rx_not_empty(self) -> bool
pub fn sm3_rx_not_empty(self) -> bool
Check whether interrupt SM3_RXNEMPTY has been raised.
Sourcepub fn sm0_tx_not_full(self) -> bool
pub fn sm0_tx_not_full(self) -> bool
Check whether interrupt SM0_TXNFULL has been raised.
Sourcepub fn sm1_tx_not_full(self) -> bool
pub fn sm1_tx_not_full(self) -> bool
Check whether interrupt SM1_TXNFULL has been raised.
Sourcepub fn sm2_tx_not_full(self) -> bool
pub fn sm2_tx_not_full(self) -> bool
Check whether interrupt SM2_TXNFULL has been raised.
Sourcepub fn sm3_tx_not_full(self) -> bool
pub fn sm3_tx_not_full(self) -> bool
Check whether interrupt SM3_TXNFULL has been raised.
Trait Implementations§
Source§impl Clone for InterruptState
impl Clone for InterruptState
Source§fn clone(&self) -> InterruptState
fn clone(&self) -> InterruptState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterruptState
impl Debug for InterruptState
Source§impl Hash for InterruptState
impl Hash for InterruptState
Source§impl Ord for InterruptState
impl Ord for InterruptState
Source§fn cmp(&self, other: &InterruptState) -> Ordering
fn cmp(&self, other: &InterruptState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InterruptState
impl PartialEq for InterruptState
Source§impl PartialOrd for InterruptState
impl PartialOrd for InterruptState
impl Copy for InterruptState
impl Eq for InterruptState
impl StructuralPartialEq for InterruptState
Auto Trait Implementations§
impl Freeze for InterruptState
impl RefUnwindSafe for InterruptState
impl Send for InterruptState
impl Sync for InterruptState
impl Unpin for InterruptState
impl UnwindSafe for InterruptState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more