#[repr(transparent)]pub struct Ch0sema(pub u32);Expand description
DCP channel 0 semaphore register
Tuple Fields§
§0: u32Implementations§
Source§impl Ch0sema
impl Ch0sema
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 Ch0sema
impl Eq for Ch0sema
impl StructuralPartialEq for Ch0sema
Auto Trait Implementations§
impl Freeze for Ch0sema
impl RefUnwindSafe for Ch0sema
impl Send for Ch0sema
impl Sync for Ch0sema
impl Unpin for Ch0sema
impl UnwindSafe for Ch0sema
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