Struct stm32_metapac::rtc::regs::Prer
#[repr(transparent)]pub struct Prer(pub u32);
Expand description
Prescaler register
Tuple Fields§
§0: u32
Implementations§
§impl Prer
impl Prer
pub const fn prediv_s(&self) -> u16
pub const fn prediv_s(&self) -> u16
Synchronous prescaler factor. This is the synchronous division factor: ck_spre frequency = ck_apre frequency/(PREDIV_S+1).
pub fn set_prediv_s(&mut self, val: u16)
pub fn set_prediv_s(&mut self, val: u16)
Synchronous prescaler factor. This is the synchronous division factor: ck_spre frequency = ck_apre frequency/(PREDIV_S+1).
pub const fn prediv_a(&self) -> u8
pub const fn prediv_a(&self) -> u8
Asynchronous prescaler factor. This is the asynchronous division factor: ck_apre frequency = RTCCLK frequency/(PREDIV_A+1).
pub fn set_prediv_a(&mut self, val: u8)
pub fn set_prediv_a(&mut self, val: u8)
Asynchronous prescaler factor. This is the asynchronous division factor: ck_apre frequency = RTCCLK frequency/(PREDIV_A+1).
Trait Implementations§
impl Copy for Prer
impl Eq for Prer
impl StructuralPartialEq for Prer
Auto Trait Implementations§
impl Freeze for Prer
impl RefUnwindSafe for Prer
impl Send for Prer
impl Sync for Prer
impl Unpin for Prer
impl UnwindSafe for Prer
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
)