pub struct TIM3 { /* private fields */ }
Expand description
General purpose timers
Implementations§
§impl TIM3
impl TIM3
pub const PTR: *const RegisterBlock = {0x40000400 as *const stm32h7xx_hal::stm32::tim3::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40000400 as *const stm32h7xx_hal::stm32::tim3::RegisterBlock}
Pointer to the register block
pub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Methods from Deref<Target = RegisterBlock>§
pub fn ccmr1_input(&self) -> &Reg<CCMR1_INPUT_SPEC>
pub fn ccmr1_input(&self) -> &Reg<CCMR1_INPUT_SPEC>
0x18 - capture/compare mode register 1 (input mode)
pub fn ccmr1_output(&self) -> &Reg<CCMR1_OUTPUT_SPEC>
pub fn ccmr1_output(&self) -> &Reg<CCMR1_OUTPUT_SPEC>
0x18 - capture/compare mode register 1 (output mode)
pub fn ccmr2_input(&self) -> &Reg<CCMR2_INPUT_SPEC>
pub fn ccmr2_input(&self) -> &Reg<CCMR2_INPUT_SPEC>
0x1c - capture/compare mode register 2 (input mode)
pub fn ccmr2_output(&self) -> &Reg<CCMR2_OUTPUT_SPEC>
pub fn ccmr2_output(&self) -> &Reg<CCMR2_OUTPUT_SPEC>
0x1c - capture/compare mode register 2 (output mode)
Trait Implementations§
§impl PwmExt for TIM3
impl PwmExt for TIM3
type Rec = Tim3
§fn pwm<PINS, U, V>(
self,
pins: PINS,
frequency: Rate<u32, 1, 1>,
prec: Tim3,
clocks: &CoreClocks
) -> <PINS as Pins<TIM3, U, V>>::Channelwhere
PINS: Pins<TIM3, U, V>,
fn pwm<PINS, U, V>(
self,
pins: PINS,
frequency: Rate<u32, 1, 1>,
prec: Tim3,
clocks: &CoreClocks
) -> <PINS as Pins<TIM3, U, V>>::Channelwhere
PINS: Pins<TIM3, U, V>,
The requested frequency will be rounded to the nearest achievable frequency; the actual frequency may be higher or lower than requested.
§impl TimerExt<Timer<TIM3>> for TIM3
impl TimerExt<Timer<TIM3>> for TIM3
impl Send for TIM3
Auto Trait Implementations§
impl Freeze for TIM3
impl RefUnwindSafe for TIM3
impl !Sync for TIM3
impl Unpin for TIM3
impl UnwindSafe for TIM3
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