Struct stm32_metapac::rcc::regs::Ascr
#[repr(transparent)]pub struct Ascr(pub u32);
Expand description
RCC audio synchronization control register
Tuple Fields§
§0: u32
Implementations§
§impl Ascr
impl Ascr
pub const fn cen(&self) -> bool
pub const fn cen(&self) -> bool
Counter enable This bit is set and cleared by software. Clearing this bit will reset the audio synchronization counter and capture prescaler and all associated registers ASCR, ASIER, ASSR, ASCNTR, ASARR, ASCAR, and ASCOR.
pub fn set_cen(&mut self, val: bool)
pub fn set_cen(&mut self, val: bool)
Counter enable This bit is set and cleared by software. Clearing this bit will reset the audio synchronization counter and capture prescaler and all associated registers ASCR, ASIER, ASSR, ASCNTR, ASARR, ASCAR, and ASCOR.
pub const fn psc(&self) -> u8
pub const fn psc(&self) -> u8
Clock prescaler This field is set and cleared by software. Counter clock frequency = f_audiosync_ker_ck / (PSC + 1)
pub fn set_psc(&mut self, val: u8)
pub fn set_psc(&mut self, val: u8)
Clock prescaler This field is set and cleared by software. Counter clock frequency = f_audiosync_ker_ck / (PSC + 1)
Trait Implementations§
impl Copy for Ascr
impl Eq for Ascr
impl StructuralPartialEq for Ascr
Auto Trait Implementations§
impl Freeze for Ascr
impl RefUnwindSafe for Ascr
impl Send for Ascr
impl Sync for Ascr
impl Unpin for Ascr
impl UnwindSafe for Ascr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)