Struct gd32f1x0_hal::pac::TIMER1
source · [−]pub struct TIMER1 { /* private fields */ }
Expand description
General-purpose-timers
Implementations
sourceimpl TIMER1
impl TIMER1
sourcepub const PTR: *const RegisterBlock = {0x40000000 as *const gd32f1::gd32f130::timer1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40000000 as *const gd32f1::gd32f130::timer1::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 chctl0_input(&self) -> &Reg<CHCTL0_INPUT_SPEC>
pub fn chctl0_input(&self) -> &Reg<CHCTL0_INPUT_SPEC>
0x18 - Channel control register 0 (input mode)
sourcepub fn chctl0_output(&self) -> &Reg<CHCTL0_OUTPUT_SPEC>
pub fn chctl0_output(&self) -> &Reg<CHCTL0_OUTPUT_SPEC>
0x18 - Channel control register 0 (output mode)
sourcepub fn chctl1_input(&self) -> &Reg<CHCTL1_INPUT_SPEC>
pub fn chctl1_input(&self) -> &Reg<CHCTL1_INPUT_SPEC>
0x1c - Channel control register 1 (input mode)
sourcepub fn chctl1_output(&self) -> &Reg<CHCTL1_OUTPUT_SPEC>
pub fn chctl1_output(&self) -> &Reg<CHCTL1_OUTPUT_SPEC>
0x1c - Channel control register 1 (output mode)
Trait Implementations
impl Pin<TIMER1, Ch0> for PA0<Alternate<AF2>>
impl Pin<TIMER1, Ch0> for PA5<Alternate<AF2>>
impl Pin<TIMER1, Ch0> for PA15<Alternate<AF2>>
impl Pin<TIMER1, Ch1> for PA1<Alternate<AF2>>
impl Pin<TIMER1, Ch1> for PB3<Alternate<AF2>>
impl Pin<TIMER1, Ch2> for PA2<Alternate<AF2>>
impl Pin<TIMER1, Ch2> for PB10<Alternate<AF2>>
impl Pin<TIMER1, Ch3> for PA3<Alternate<AF2>>
impl Pin<TIMER1, Ch3> for PB11<Alternate<AF2>>
impl Send for TIMER1
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