Struct gd32f1x0_hal::pac::TIMER0
source · [−]pub struct TIMER0 { /* private fields */ }
Expand description
Advanced-timers
Implementations
sourceimpl TIMER0
impl TIMER0
sourcepub const PTR: *const RegisterBlock = {0x40012c00 as *const gd32f1::gd32f130::timer0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40012c00 as *const gd32f1::gd32f130::timer0::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 ComplementaryPin<TIMER0, Ch0> for PB13<Alternate<AF2>>
impl ComplementaryPin<TIMER0, Ch1> for PB14<Alternate<AF2>>
impl ComplementaryPin<TIMER0, Ch2> for PB15<Alternate<AF2>>
impl Pin<TIMER0, Ch0> for PA8<Alternate<AF2>>
impl Pin<TIMER0, Ch1> for PA9<Alternate<AF2>>
impl Pin<TIMER0, Ch2> for PA10<Alternate<AF2>>
impl Pin<TIMER0, Ch3> for PA11<Alternate<AF2>>
impl Send for TIMER0
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