#[repr(C)]
pub struct RegisterBlock {
Show 27 fields pub cr: Reg<CR_SPEC>, pub mr: Reg<MR_SPEC>, pub seqr1: Reg<SEQR1_SPEC>, pub seqr2: Reg<SEQR2_SPEC>, pub cher: Reg<CHER_SPEC>, pub chdr: Reg<CHDR_SPEC>, pub chsr: Reg<CHSR_SPEC>, pub lcdr: Reg<LCDR_SPEC>, pub ier: Reg<IER_SPEC>, pub idr: Reg<IDR_SPEC>, pub imr: Reg<IMR_SPEC>, pub isr: Reg<ISR_SPEC>, pub over: Reg<OVER_SPEC>, pub emr: Reg<EMR_SPEC>, pub cwr: Reg<CWR_SPEC>, pub cgr: Reg<CGR_SPEC>, pub cor: Reg<COR_SPEC>, pub cdr: [Reg<CDR_SPEC>; 16], pub acr: Reg<ACR_SPEC>, pub wpmr: Reg<WPMR_SPEC>, pub wpsr: Reg<WPSR_SPEC>, pub rpr: Reg<RPR_SPEC>, pub rcr: Reg<RCR_SPEC>, pub rnpr: Reg<RNPR_SPEC>, pub rncr: Reg<RNCR_SPEC>, pub ptcr: Reg<PTCR_SPEC>, pub ptsr: Reg<PTSR_SPEC>, /* private fields */
}
Expand description

Register block

Fields

cr: Reg<CR_SPEC>

0x00 - Control Register

mr: Reg<MR_SPEC>

0x04 - Mode Register

seqr1: Reg<SEQR1_SPEC>

0x08 - Channel Sequence Register 1

seqr2: Reg<SEQR2_SPEC>

0x0c - Channel Sequence Register 2

cher: Reg<CHER_SPEC>

0x10 - Channel Enable Register

chdr: Reg<CHDR_SPEC>

0x14 - Channel Disable Register

chsr: Reg<CHSR_SPEC>

0x18 - Channel Status Register

lcdr: Reg<LCDR_SPEC>

0x20 - Last Converted Data Register

ier: Reg<IER_SPEC>

0x24 - Interrupt Enable Register

idr: Reg<IDR_SPEC>

0x28 - Interrupt Disable Register

imr: Reg<IMR_SPEC>

0x2c - Interrupt Mask Register

isr: Reg<ISR_SPEC>

0x30 - Interrupt Status Register

over: Reg<OVER_SPEC>

0x3c - Overrun Status Register

emr: Reg<EMR_SPEC>

0x40 - Extended Mode Register

cwr: Reg<CWR_SPEC>

0x44 - Compare Window Register

cgr: Reg<CGR_SPEC>

0x48 - Channel Gain Register

cor: Reg<COR_SPEC>

0x4c - Channel Offset Register

cdr: [Reg<CDR_SPEC>; 16]

0x50..0x90 - Channel Data Register

acr: Reg<ACR_SPEC>

0x94 - Analog Control Register

wpmr: Reg<WPMR_SPEC>

0xe4 - Write Protection Mode Register

wpsr: Reg<WPSR_SPEC>

0xe8 - Write Protection Status Register

rpr: Reg<RPR_SPEC>

0x100 - Receive Pointer Register

rcr: Reg<RCR_SPEC>

0x104 - Receive Counter Register

rnpr: Reg<RNPR_SPEC>

0x110 - Receive Next Pointer Register

rncr: Reg<RNCR_SPEC>

0x114 - Receive Next Counter Register

ptcr: Reg<PTCR_SPEC>

0x120 - Transfer Control Register

ptsr: Reg<PTSR_SPEC>

0x124 - Transfer Status Register

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.