Struct gd32f1::gd32f130::timer1::RegisterBlock [−][src]
Register block
Fields
ctl0: CTL0
0x00 - control register 0
ctl1: CTL1
0x04 - control register 1
smcfg: SMCFG
0x08 - Slave mode configuration register
dmainten: DMAINTEN
0x0c - DMA and interrupt enable register
intf: INTF
0x10 - interrupt flag register
swevg: SWEVG
0x14 - event generation register
chctl2: CHCTL2
0x20 - Channel control register 2
cnt: CNT
0x24 - Counter register
psc: PSC
0x28 - Prescaler register
car: CAR
0x2c - Counter auto reload register
ch0cv: CH0CV
0x34 - Channel 0 capture/compare value register
ch1cv: CH1CV
0x38 - Channel 1 capture/compare value register
ch2cv: CH2CV
0x3c - Channel 2 capture/compare value registerV
ch3cv: CH3CV
0x40 - Channel 3 capture/compare value register
dmacfg: DMACFG
0x48 - DMA configuration register
dmatb: DMATB
0x4c - DMA Transfer buffer register
cfg: CFG
0xfc - Configuration register
Implementations
impl RegisterBlock
[src]
pub fn chctl0_input(&self) -> &CHCTL0_INPUT
[src]
0x18 - Channel control register 0 (input mode)
pub fn chctl0_input_mut(&self) -> &mut CHCTL0_INPUT
[src]
0x18 - Channel control register 0 (input mode)
pub fn chctl0_output(&self) -> &CHCTL0_OUTPUT
[src]
0x18 - Channel control register 0 (output mode)
pub fn chctl0_output_mut(&self) -> &mut CHCTL0_OUTPUT
[src]
0x18 - Channel control register 0 (output mode)
pub fn chctl1_input(&self) -> &CHCTL1_INPUT
[src]
0x1c - Channel control register 1 (input mode)
pub fn chctl1_input_mut(&self) -> &mut CHCTL1_INPUT
[src]
0x1c - Channel control register 1 (input mode)
pub fn chctl1_output(&self) -> &CHCTL1_OUTPUT
[src]
0x1c - Channel control register 1 (output mode)
pub fn chctl1_output_mut(&self) -> &mut CHCTL1_OUTPUT
[src]
0x1c - Channel control register 1 (output mode)
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,