#[repr(C)]
pub struct RegisterBlock {
Show 16 fields pub ctl0: Reg<CTL0_SPEC>, pub ctl1: Reg<CTL1_SPEC>, pub smcfg: Reg<SMCFG_SPEC>, pub dmainten: Reg<DMAINTEN_SPEC>, pub intf: Reg<INTF_SPEC>, pub swevg: Reg<SWEVG_SPEC>, pub chctl2: Reg<CHCTL2_SPEC>, pub cnt: Reg<CNT_SPEC>, pub psc: Reg<PSC_SPEC>, pub car: Reg<CAR_SPEC>, pub crep: Reg<CREP_SPEC>, pub ch0cv: Reg<CH0CV_SPEC>, pub ch1cv: Reg<CH1CV_SPEC>, pub cchp: Reg<CCHP_SPEC>, pub dmacfg: Reg<DMACFG_SPEC>, pub dmatb: Reg<DMATB_SPEC>, /* private fields */
}
Expand description

Register block

Fields

ctl0: Reg<CTL0_SPEC>

0x00 - control register 0

ctl1: Reg<CTL1_SPEC>

0x04 - control register 1

smcfg: Reg<SMCFG_SPEC>

0x08 - Slave mode configuration register

dmainten: Reg<DMAINTEN_SPEC>

0x0c - DMA and interrupt enable register

intf: Reg<INTF_SPEC>

0x10 - interrupt flag register

swevg: Reg<SWEVG_SPEC>

0x14 - Software event generation register

chctl2: Reg<CHCTL2_SPEC>

0x20 - Channel control register 2

cnt: Reg<CNT_SPEC>

0x24 - Channel 0 enable

psc: Reg<PSC_SPEC>

0x28 - Prescaler register

car: Reg<CAR_SPEC>

0x2c - Counter auto reload register

crep: Reg<CREP_SPEC>

0x30 - Counter repetition register

ch0cv: Reg<CH0CV_SPEC>

0x34 - Channel 0 capture/compare value register

ch1cv: Reg<CH1CV_SPEC>

0x38 - Channel 1 capture/compare value register

cchp: Reg<CCHP_SPEC>

0x44 - Complementary Channel Protection register

dmacfg: Reg<DMACFG_SPEC>

0x48 - DMA configuration register

dmatb: Reg<DMATB_SPEC>

0x4c - DMA transfer buffer register

Implementations

0x18 - Channel control register 0 (input mode)

0x18 - Channel control register 0 (output mode)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.