Struct stm32_metapac::rcc::regs::Apbcfgr
#[repr(transparent)]pub struct Apbcfgr(pub u32);
Expand description
RCC APB clocks configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Apbcfgr
impl Apbcfgr
pub const fn ppre1(&self) -> Ppre
pub const fn ppre1(&self) -> Ppre
CPU domain APB1 prescaler Set and reset by software to control the division factor of rcc_pclk1. The clock is divided by the new prescaler factor from 1 to 16 cycles of sys_bus_ck after PPRE1 write. 0xx: rcc_pclk1 = sys_bus_ck (default after reset).
pub fn set_ppre1(&mut self, val: Ppre)
pub fn set_ppre1(&mut self, val: Ppre)
CPU domain APB1 prescaler Set and reset by software to control the division factor of rcc_pclk1. The clock is divided by the new prescaler factor from 1 to 16 cycles of sys_bus_ck after PPRE1 write. 0xx: rcc_pclk1 = sys_bus_ck (default after reset).
pub const fn ppre2(&self) -> Ppre
pub const fn ppre2(&self) -> Ppre
CPU domain APB2 prescaler Set and reset by software to control the division factor of rcc_pclk2. The clock is divided by the new prescaler factor from 1 to 16 cycles of sys_bus_ck after PPRE2 write. 0xx: rcc_pclk2 = sys_bus_ck (default after reset).
pub fn set_ppre2(&mut self, val: Ppre)
pub fn set_ppre2(&mut self, val: Ppre)
CPU domain APB2 prescaler Set and reset by software to control the division factor of rcc_pclk2. The clock is divided by the new prescaler factor from 1 to 16 cycles of sys_bus_ck after PPRE2 write. 0xx: rcc_pclk2 = sys_bus_ck (default after reset).
pub const fn ppre4(&self) -> Ppre
pub const fn ppre4(&self) -> Ppre
CPU domain APB4 prescaler Set and reset by software to control the division factor of rcc_pclk4. The clock is divided by the new prescaler factor from 1 to 16 cycles of sys_bus_ck after PPRE4 write. 0xx: rcc_pclk4 = sys_bus_ck (default after reset).
pub fn set_ppre4(&mut self, val: Ppre)
pub fn set_ppre4(&mut self, val: Ppre)
CPU domain APB4 prescaler Set and reset by software to control the division factor of rcc_pclk4. The clock is divided by the new prescaler factor from 1 to 16 cycles of sys_bus_ck after PPRE4 write. 0xx: rcc_pclk4 = sys_bus_ck (default after reset).
Trait Implementations§
impl Copy for Apbcfgr
impl Eq for Apbcfgr
impl StructuralPartialEq for Apbcfgr
Auto Trait Implementations§
impl Freeze for Apbcfgr
impl RefUnwindSafe for Apbcfgr
impl Send for Apbcfgr
impl Sync for Apbcfgr
impl Unpin for Apbcfgr
impl UnwindSafe for Apbcfgr
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
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)
clone_to_uninit
)