#[repr(transparent)]pub struct Ch2sema(pub u32);Expand description
DCP channel 2 semaphore register
Tuple Fields§
§0: u32Implementations§
Source§impl Ch2sema
impl Ch2sema
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 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 DCP hardware substracts happening on the same clock are protected
Trait Implementations§
impl Copy for Ch2sema
impl Eq for Ch2sema
impl StructuralPartialEq for Ch2sema
Auto Trait Implementations§
impl Freeze for Ch2sema
impl RefUnwindSafe for Ch2sema
impl Send for Ch2sema
impl Sync for Ch2sema
impl Unpin for Ch2sema
impl UnwindSafe for Ch2sema
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