pub struct APB2 { /* private fields */ }
Expand description
Advanced Peripheral Bus 2 (APB2) registers
An instance of this struct is acquired from the RCC
struct.
let dp = pac::Peripherals::take().unwrap();
let rcc = dp.RCC.constrain();
use_apb2(&mut rcc.apb2)
Trait Implementations§
Source§impl BusTimerClock for APB2
impl BusTimerClock for APB2
Source§fn timer_clock(clocks: &Clocks) -> Hertz
fn timer_clock(clocks: &Clocks) -> Hertz
Calculates base frequency of timer depending on
Clock
stateAuto Trait Implementations§
impl Freeze for APB2
impl RefUnwindSafe for APB2
impl Send for APB2
impl Sync for APB2
impl Unpin for APB2
impl UnwindSafe for APB2
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