pub struct TIM4 { /* private fields */ }
Expand description
General purpose timer
Implementations
sourceimpl TIM4
impl TIM4
sourcepub const PTR: *const RegisterBlock = {0x40000800 as *const tim2::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40000800 as *const tim2::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Methods from Deref<Target = RegisterBlock>
sourcepub fn chctlr1_input(&self) -> &Reg<CHCTLR1_INPUT_SPEC>
pub fn chctlr1_input(&self) -> &Reg<CHCTLR1_INPUT_SPEC>
0x18 - capture/compare mode register 1 (input mode)
sourcepub fn chctlr1_output(&self) -> &Reg<CHCTLR1_OUTPUT_SPEC>
pub fn chctlr1_output(&self) -> &Reg<CHCTLR1_OUTPUT_SPEC>
0x18 - capture/compare mode register 1 (output mode)
sourcepub fn chctlr2_input(&self) -> &Reg<CHCTLR2_INPUT_SPEC>
pub fn chctlr2_input(&self) -> &Reg<CHCTLR2_INPUT_SPEC>
0x1c - capture/compare mode register 2 (input mode)
sourcepub fn chctlr2_output(&self) -> &Reg<CHCTLR2_OUTPUT_SPEC>
pub fn chctlr2_output(&self) -> &Reg<CHCTLR2_OUTPUT_SPEC>
0x1c - capture/compare mode register 2 (output mode)
Trait Implementations
sourceimpl Deref for TIM4
impl Deref for TIM4
type Target = RegisterBlock
type Target = RegisterBlock
The resulting type after dereferencing.
impl Send for TIM4
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more