#[repr(transparent)]pub struct Ch1sema(pub u32);Expand description
DCP channel 1 semaphore register
Tuple Fields§
§0: u32Implementations§
Source§impl Ch1sema
impl Ch1sema
Sourcepub const fn increment(&self) -> u8
pub const fn increment(&self) -> u8
The value written to this field is added to the semaphore count in an atomic way, such that the simultaneous software adds and the DCP hardware substracts happening on the same clock are protected
Sourcepub const fn set_increment(&mut self, val: u8)
pub const fn set_increment(&mut self, val: u8)
The value written to this field is added to the semaphore count in an atomic way, such that the simultaneous software adds and the DCP hardware substracts happening on the same clock are protected
Trait Implementations§
impl Copy for Ch1sema
impl Eq for Ch1sema
impl StructuralPartialEq for Ch1sema
Auto Trait Implementations§
impl Freeze for Ch1sema
impl RefUnwindSafe for Ch1sema
impl Send for Ch1sema
impl Sync for Ch1sema
impl Unpin for Ch1sema
impl UnwindSafe for Ch1sema
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