pub enum SEMSTATR {
FREE,
CPU,
SPIS,
CPUPENDING,
}
Expand description
Possible values of the field SEMSTAT
Variants
FREE
Semaphore is free
CPU
Semaphore is assigned to CPU
SPIS
Semaphore is assigned to SPI slave
CPUPENDING
Semaphore is assigned to SPI but a handover to the CPU is pending
Implementations
sourceimpl SEMSTATR
impl SEMSTATR
sourcepub fn is_cpupending(&self) -> bool
pub fn is_cpupending(&self) -> bool
Checks if the value of the field is CPUPENDING
Trait Implementations
impl Copy for SEMSTATR
impl StructuralPartialEq for SEMSTATR
Auto Trait Implementations
impl RefUnwindSafe for SEMSTATR
impl Send for SEMSTATR
impl Sync for SEMSTATR
impl Unpin for SEMSTATR
impl UnwindSafe for SEMSTATR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more