#[repr(u8)]
pub enum SEMSTAT_A {
FREE,
CPU,
SPIS,
CPUPENDING,
}
Expand description
Semaphore status
Value on reset: 1
Variants
FREE
0: Semaphore is free
CPU
1: Semaphore is assigned to CPU
SPIS
2: Semaphore is assigned to SPI slave
CPUPENDING
3: Semaphore is assigned to SPI but a handover to the CPU is pending
Trait Implementations
impl Copy for SEMSTAT_A
impl StructuralPartialEq for SEMSTAT_A
Auto Trait Implementations
impl RefUnwindSafe for SEMSTAT_A
impl Send for SEMSTAT_A
impl Sync for SEMSTAT_A
impl Unpin for SEMSTAT_A
impl UnwindSafe for SEMSTAT_A
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