atsam4s8b_pac/
adc.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Control Register"]
5    pub cr: CR,
6    #[doc = "0x04 - Mode Register"]
7    pub mr: MR,
8    #[doc = "0x08 - Channel Sequence Register 1"]
9    pub seqr1: SEQR1,
10    #[doc = "0x0c - Channel Sequence Register 2"]
11    pub seqr2: SEQR2,
12    #[doc = "0x10 - Channel Enable Register"]
13    pub cher: CHER,
14    #[doc = "0x14 - Channel Disable Register"]
15    pub chdr: CHDR,
16    #[doc = "0x18 - Channel Status Register"]
17    pub chsr: CHSR,
18    _reserved7: [u8; 0x04],
19    #[doc = "0x20 - Last Converted Data Register"]
20    pub lcdr: LCDR,
21    #[doc = "0x24 - Interrupt Enable Register"]
22    pub ier: IER,
23    #[doc = "0x28 - Interrupt Disable Register"]
24    pub idr: IDR,
25    #[doc = "0x2c - Interrupt Mask Register"]
26    pub imr: IMR,
27    #[doc = "0x30 - Interrupt Status Register"]
28    pub isr: ISR,
29    _reserved12: [u8; 0x08],
30    #[doc = "0x3c - Overrun Status Register"]
31    pub over: OVER,
32    #[doc = "0x40 - Extended Mode Register"]
33    pub emr: EMR,
34    #[doc = "0x44 - Compare Window Register"]
35    pub cwr: CWR,
36    #[doc = "0x48 - Channel Gain Register"]
37    pub cgr: CGR,
38    #[doc = "0x4c - Channel Offset Register"]
39    pub cor: COR,
40    #[doc = "0x50..0x90 - Channel Data Register"]
41    pub cdr: [CDR; 16],
42    _reserved18: [u8; 0x04],
43    #[doc = "0x94 - Analog Control Register"]
44    pub acr: ACR,
45    _reserved19: [u8; 0x4c],
46    #[doc = "0xe4 - Write Protection Mode Register"]
47    pub wpmr: WPMR,
48    #[doc = "0xe8 - Write Protection Status Register"]
49    pub wpsr: WPSR,
50    _reserved21: [u8; 0x14],
51    #[doc = "0x100 - Receive Pointer Register"]
52    pub rpr: RPR,
53    #[doc = "0x104 - Receive Counter Register"]
54    pub rcr: RCR,
55    _reserved23: [u8; 0x08],
56    #[doc = "0x110 - Receive Next Pointer Register"]
57    pub rnpr: RNPR,
58    #[doc = "0x114 - Receive Next Counter Register"]
59    pub rncr: RNCR,
60    _reserved25: [u8; 0x08],
61    #[doc = "0x120 - Transfer Control Register"]
62    pub ptcr: PTCR,
63    #[doc = "0x124 - Transfer Status Register"]
64    pub ptsr: PTSR,
65}
66#[doc = "CR (w) register accessor: an alias for `Reg<CR_SPEC>`"]
67pub type CR = crate::Reg<cr::CR_SPEC>;
68#[doc = "Control Register"]
69pub mod cr;
70#[doc = "MR (rw) register accessor: an alias for `Reg<MR_SPEC>`"]
71pub type MR = crate::Reg<mr::MR_SPEC>;
72#[doc = "Mode Register"]
73pub mod mr;
74#[doc = "SEQR1 (rw) register accessor: an alias for `Reg<SEQR1_SPEC>`"]
75pub type SEQR1 = crate::Reg<seqr1::SEQR1_SPEC>;
76#[doc = "Channel Sequence Register 1"]
77pub mod seqr1;
78#[doc = "SEQR2 (rw) register accessor: an alias for `Reg<SEQR2_SPEC>`"]
79pub type SEQR2 = crate::Reg<seqr2::SEQR2_SPEC>;
80#[doc = "Channel Sequence Register 2"]
81pub mod seqr2;
82#[doc = "CHER (w) register accessor: an alias for `Reg<CHER_SPEC>`"]
83pub type CHER = crate::Reg<cher::CHER_SPEC>;
84#[doc = "Channel Enable Register"]
85pub mod cher;
86#[doc = "CHDR (w) register accessor: an alias for `Reg<CHDR_SPEC>`"]
87pub type CHDR = crate::Reg<chdr::CHDR_SPEC>;
88#[doc = "Channel Disable Register"]
89pub mod chdr;
90#[doc = "CHSR (r) register accessor: an alias for `Reg<CHSR_SPEC>`"]
91pub type CHSR = crate::Reg<chsr::CHSR_SPEC>;
92#[doc = "Channel Status Register"]
93pub mod chsr;
94#[doc = "LCDR (r) register accessor: an alias for `Reg<LCDR_SPEC>`"]
95pub type LCDR = crate::Reg<lcdr::LCDR_SPEC>;
96#[doc = "Last Converted Data Register"]
97pub mod lcdr;
98#[doc = "IER (w) register accessor: an alias for `Reg<IER_SPEC>`"]
99pub type IER = crate::Reg<ier::IER_SPEC>;
100#[doc = "Interrupt Enable Register"]
101pub mod ier;
102#[doc = "IDR (w) register accessor: an alias for `Reg<IDR_SPEC>`"]
103pub type IDR = crate::Reg<idr::IDR_SPEC>;
104#[doc = "Interrupt Disable Register"]
105pub mod idr;
106#[doc = "IMR (r) register accessor: an alias for `Reg<IMR_SPEC>`"]
107pub type IMR = crate::Reg<imr::IMR_SPEC>;
108#[doc = "Interrupt Mask Register"]
109pub mod imr;
110#[doc = "ISR (r) register accessor: an alias for `Reg<ISR_SPEC>`"]
111pub type ISR = crate::Reg<isr::ISR_SPEC>;
112#[doc = "Interrupt Status Register"]
113pub mod isr;
114#[doc = "OVER (r) register accessor: an alias for `Reg<OVER_SPEC>`"]
115pub type OVER = crate::Reg<over::OVER_SPEC>;
116#[doc = "Overrun Status Register"]
117pub mod over;
118#[doc = "EMR (rw) register accessor: an alias for `Reg<EMR_SPEC>`"]
119pub type EMR = crate::Reg<emr::EMR_SPEC>;
120#[doc = "Extended Mode Register"]
121pub mod emr;
122#[doc = "CWR (rw) register accessor: an alias for `Reg<CWR_SPEC>`"]
123pub type CWR = crate::Reg<cwr::CWR_SPEC>;
124#[doc = "Compare Window Register"]
125pub mod cwr;
126#[doc = "CGR (rw) register accessor: an alias for `Reg<CGR_SPEC>`"]
127pub type CGR = crate::Reg<cgr::CGR_SPEC>;
128#[doc = "Channel Gain Register"]
129pub mod cgr;
130#[doc = "COR (rw) register accessor: an alias for `Reg<COR_SPEC>`"]
131pub type COR = crate::Reg<cor::COR_SPEC>;
132#[doc = "Channel Offset Register"]
133pub mod cor;
134#[doc = "CDR (r) register accessor: an alias for `Reg<CDR_SPEC>`"]
135pub type CDR = crate::Reg<cdr::CDR_SPEC>;
136#[doc = "Channel Data Register"]
137pub mod cdr;
138#[doc = "ACR (rw) register accessor: an alias for `Reg<ACR_SPEC>`"]
139pub type ACR = crate::Reg<acr::ACR_SPEC>;
140#[doc = "Analog Control Register"]
141pub mod acr;
142#[doc = "WPMR (rw) register accessor: an alias for `Reg<WPMR_SPEC>`"]
143pub type WPMR = crate::Reg<wpmr::WPMR_SPEC>;
144#[doc = "Write Protection Mode Register"]
145pub mod wpmr;
146#[doc = "WPSR (r) register accessor: an alias for `Reg<WPSR_SPEC>`"]
147pub type WPSR = crate::Reg<wpsr::WPSR_SPEC>;
148#[doc = "Write Protection Status Register"]
149pub mod wpsr;
150#[doc = "RPR (rw) register accessor: an alias for `Reg<RPR_SPEC>`"]
151pub type RPR = crate::Reg<rpr::RPR_SPEC>;
152#[doc = "Receive Pointer Register"]
153pub mod rpr;
154#[doc = "RCR (rw) register accessor: an alias for `Reg<RCR_SPEC>`"]
155pub type RCR = crate::Reg<rcr::RCR_SPEC>;
156#[doc = "Receive Counter Register"]
157pub mod rcr;
158#[doc = "RNPR (rw) register accessor: an alias for `Reg<RNPR_SPEC>`"]
159pub type RNPR = crate::Reg<rnpr::RNPR_SPEC>;
160#[doc = "Receive Next Pointer Register"]
161pub mod rnpr;
162#[doc = "RNCR (rw) register accessor: an alias for `Reg<RNCR_SPEC>`"]
163pub type RNCR = crate::Reg<rncr::RNCR_SPEC>;
164#[doc = "Receive Next Counter Register"]
165pub mod rncr;
166#[doc = "PTCR (w) register accessor: an alias for `Reg<PTCR_SPEC>`"]
167pub type PTCR = crate::Reg<ptcr::PTCR_SPEC>;
168#[doc = "Transfer Control Register"]
169pub mod ptcr;
170#[doc = "PTSR (r) register accessor: an alias for `Reg<PTSR_SPEC>`"]
171pub type PTSR = crate::Reg<ptsr::PTSR_SPEC>;
172#[doc = "Transfer Status Register"]
173pub mod ptsr;