Struct ChSemcr
#[repr(transparent)]pub struct ChSemcr(pub u32);Expand description
GPDMA channel x semaphore control register (only on STM32N6 HPDMA)
Tuple Fields§
§0: u32Implementations§
§impl ChSemcr
impl ChSemcr
pub const fn sem_mutex(&self) -> bool
pub const fn sem_mutex(&self) -> bool
Mutual exclusion semaphore for the CID allocation of the channel x (in semaphore mode). Write: 0 = release, 1 = take the control of the channel. Read: 0 = channel CID-free, 1 = channel CID-allocated.
pub const fn set_sem_mutex(&mut self, val: bool)
pub const fn set_sem_mutex(&mut self, val: bool)
Mutual exclusion semaphore for the CID allocation of the channel x (in semaphore mode). Write: 0 = release, 1 = take the control of the channel. Read: 0 = channel CID-free, 1 = channel CID-allocated.
pub const fn sem_ccid(&self) -> u8
pub const fn sem_ccid(&self) -> u8
Current CID allocated to the channel x (in semaphore mode). Read-only.
pub const fn set_sem_ccid(&mut self, val: u8)
pub const fn set_sem_ccid(&mut self, val: u8)
Current CID allocated to the channel x (in semaphore mode). Read-only.
Trait Implementations§
impl Copy for ChSemcr
impl Eq for ChSemcr
impl StructuralPartialEq for ChSemcr
Auto Trait Implementations§
impl Freeze for ChSemcr
impl RefUnwindSafe for ChSemcr
impl Send for ChSemcr
impl Sync for ChSemcr
impl Unpin for ChSemcr
impl UnsafeUnpin for ChSemcr
impl UnwindSafe for ChSemcr
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