atsam4e16e_pac/
afec1.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - AFEC Control Register"]
5    pub cr: CR,
6    #[doc = "0x04 - AFEC Mode Register"]
7    pub mr: MR,
8    #[doc = "0x08 - AFEC Extended Mode Register"]
9    pub emr: EMR,
10    #[doc = "0x0c - AFEC Channel Sequence 1 Register"]
11    pub seq1r: SEQ1R,
12    #[doc = "0x10 - AFEC Channel Sequence 2 Register"]
13    pub seq2r: SEQ2R,
14    #[doc = "0x14 - AFEC Channel Enable Register"]
15    pub cher: CHER,
16    #[doc = "0x18 - AFEC Channel Disable Register"]
17    pub chdr: CHDR,
18    #[doc = "0x1c - AFEC Channel Status Register"]
19    pub chsr: CHSR,
20    #[doc = "0x20 - AFEC Last Converted Data Register"]
21    pub lcdr: LCDR,
22    #[doc = "0x24 - AFEC Interrupt Enable Register"]
23    pub ier: IER,
24    #[doc = "0x28 - AFEC Interrupt Disable Register"]
25    pub idr: IDR,
26    #[doc = "0x2c - AFEC Interrupt Mask Register"]
27    pub imr: IMR,
28    #[doc = "0x30 - AFEC Interrupt Status Register"]
29    pub isr: ISR,
30    _reserved13: [u8; 0x18],
31    #[doc = "0x4c - AFEC Overrun Status Register"]
32    pub over: OVER,
33    #[doc = "0x50 - AFEC Compare Window Register"]
34    pub cwr: CWR,
35    #[doc = "0x54 - AFEC Channel Gain Register"]
36    pub cgr: CGR,
37    _reserved16: [u8; 0x04],
38    #[doc = "0x5c - AFEC Channel Calibration DC Offset Register"]
39    pub cdor: CDOR,
40    #[doc = "0x60 - AFEC Channel Differential Register"]
41    pub diffr: DIFFR,
42    #[doc = "0x64 - AFEC Channel Register Selection"]
43    pub cselr: CSELR,
44    #[doc = "0x68 - AFEC Channel Data Register"]
45    pub cdr: CDR,
46    #[doc = "0x6c - AFEC Channel Offset Compensation Register"]
47    pub cocr: COCR,
48    #[doc = "0x70 - AFEC Temperature Sensor Mode Register"]
49    pub tempmr: TEMPMR,
50    #[doc = "0x74 - AFEC Temperature Compare Window Register"]
51    pub tempcwr: TEMPCWR,
52    _reserved23: [u8; 0x1c],
53    #[doc = "0x94 - AFEC Analog Control Register"]
54    pub acr: ACR,
55    _reserved24: [u8; 0x38],
56    #[doc = "0xd0 - AFEC Correction Select Register"]
57    pub cosr: COSR,
58    #[doc = "0xd4 - AFEC Correction Values Register"]
59    pub cvr: CVR,
60    #[doc = "0xd8 - AFEC Channel Error Correction Register"]
61    pub cecr: CECR,
62    _reserved27: [u8; 0x08],
63    #[doc = "0xe4 - AFEC Write Protection Mode Register"]
64    pub wpmr: WPMR,
65    #[doc = "0xe8 - AFEC Write Protection Status Register"]
66    pub wpsr: WPSR,
67    _reserved29: [u8; 0x14],
68    #[doc = "0x100 - Receive Pointer Register"]
69    pub rpr: RPR,
70    #[doc = "0x104 - Receive Counter Register"]
71    pub rcr: RCR,
72    _reserved31: [u8; 0x08],
73    #[doc = "0x110 - Receive Next Pointer Register"]
74    pub rnpr: RNPR,
75    #[doc = "0x114 - Receive Next Counter Register"]
76    pub rncr: RNCR,
77    _reserved33: [u8; 0x08],
78    #[doc = "0x120 - Transfer Control Register"]
79    pub ptcr: PTCR,
80    #[doc = "0x124 - Transfer Status Register"]
81    pub ptsr: PTSR,
82}
83#[doc = "CR (w) register accessor: an alias for `Reg<CR_SPEC>`"]
84pub type CR = crate::Reg<cr::CR_SPEC>;
85#[doc = "AFEC Control Register"]
86pub mod cr;
87#[doc = "MR (rw) register accessor: an alias for `Reg<MR_SPEC>`"]
88pub type MR = crate::Reg<mr::MR_SPEC>;
89#[doc = "AFEC Mode Register"]
90pub mod mr;
91#[doc = "EMR (rw) register accessor: an alias for `Reg<EMR_SPEC>`"]
92pub type EMR = crate::Reg<emr::EMR_SPEC>;
93#[doc = "AFEC Extended Mode Register"]
94pub mod emr;
95#[doc = "SEQ1R (rw) register accessor: an alias for `Reg<SEQ1R_SPEC>`"]
96pub type SEQ1R = crate::Reg<seq1r::SEQ1R_SPEC>;
97#[doc = "AFEC Channel Sequence 1 Register"]
98pub mod seq1r;
99#[doc = "SEQ2R (rw) register accessor: an alias for `Reg<SEQ2R_SPEC>`"]
100pub type SEQ2R = crate::Reg<seq2r::SEQ2R_SPEC>;
101#[doc = "AFEC Channel Sequence 2 Register"]
102pub mod seq2r;
103#[doc = "CHER (w) register accessor: an alias for `Reg<CHER_SPEC>`"]
104pub type CHER = crate::Reg<cher::CHER_SPEC>;
105#[doc = "AFEC Channel Enable Register"]
106pub mod cher;
107#[doc = "CHDR (w) register accessor: an alias for `Reg<CHDR_SPEC>`"]
108pub type CHDR = crate::Reg<chdr::CHDR_SPEC>;
109#[doc = "AFEC Channel Disable Register"]
110pub mod chdr;
111#[doc = "CHSR (r) register accessor: an alias for `Reg<CHSR_SPEC>`"]
112pub type CHSR = crate::Reg<chsr::CHSR_SPEC>;
113#[doc = "AFEC Channel Status Register"]
114pub mod chsr;
115#[doc = "LCDR (r) register accessor: an alias for `Reg<LCDR_SPEC>`"]
116pub type LCDR = crate::Reg<lcdr::LCDR_SPEC>;
117#[doc = "AFEC Last Converted Data Register"]
118pub mod lcdr;
119#[doc = "IER (w) register accessor: an alias for `Reg<IER_SPEC>`"]
120pub type IER = crate::Reg<ier::IER_SPEC>;
121#[doc = "AFEC Interrupt Enable Register"]
122pub mod ier;
123#[doc = "IDR (w) register accessor: an alias for `Reg<IDR_SPEC>`"]
124pub type IDR = crate::Reg<idr::IDR_SPEC>;
125#[doc = "AFEC Interrupt Disable Register"]
126pub mod idr;
127#[doc = "IMR (r) register accessor: an alias for `Reg<IMR_SPEC>`"]
128pub type IMR = crate::Reg<imr::IMR_SPEC>;
129#[doc = "AFEC Interrupt Mask Register"]
130pub mod imr;
131#[doc = "ISR (r) register accessor: an alias for `Reg<ISR_SPEC>`"]
132pub type ISR = crate::Reg<isr::ISR_SPEC>;
133#[doc = "AFEC Interrupt Status Register"]
134pub mod isr;
135#[doc = "OVER (r) register accessor: an alias for `Reg<OVER_SPEC>`"]
136pub type OVER = crate::Reg<over::OVER_SPEC>;
137#[doc = "AFEC Overrun Status Register"]
138pub mod over;
139#[doc = "CWR (rw) register accessor: an alias for `Reg<CWR_SPEC>`"]
140pub type CWR = crate::Reg<cwr::CWR_SPEC>;
141#[doc = "AFEC Compare Window Register"]
142pub mod cwr;
143#[doc = "CGR (rw) register accessor: an alias for `Reg<CGR_SPEC>`"]
144pub type CGR = crate::Reg<cgr::CGR_SPEC>;
145#[doc = "AFEC Channel Gain Register"]
146pub mod cgr;
147#[doc = "CDOR (rw) register accessor: an alias for `Reg<CDOR_SPEC>`"]
148pub type CDOR = crate::Reg<cdor::CDOR_SPEC>;
149#[doc = "AFEC Channel Calibration DC Offset Register"]
150pub mod cdor;
151#[doc = "DIFFR (rw) register accessor: an alias for `Reg<DIFFR_SPEC>`"]
152pub type DIFFR = crate::Reg<diffr::DIFFR_SPEC>;
153#[doc = "AFEC Channel Differential Register"]
154pub mod diffr;
155#[doc = "CSELR (rw) register accessor: an alias for `Reg<CSELR_SPEC>`"]
156pub type CSELR = crate::Reg<cselr::CSELR_SPEC>;
157#[doc = "AFEC Channel Register Selection"]
158pub mod cselr;
159#[doc = "CDR (r) register accessor: an alias for `Reg<CDR_SPEC>`"]
160pub type CDR = crate::Reg<cdr::CDR_SPEC>;
161#[doc = "AFEC Channel Data Register"]
162pub mod cdr;
163#[doc = "COCR (rw) register accessor: an alias for `Reg<COCR_SPEC>`"]
164pub type COCR = crate::Reg<cocr::COCR_SPEC>;
165#[doc = "AFEC Channel Offset Compensation Register"]
166pub mod cocr;
167#[doc = "TEMPMR (rw) register accessor: an alias for `Reg<TEMPMR_SPEC>`"]
168pub type TEMPMR = crate::Reg<tempmr::TEMPMR_SPEC>;
169#[doc = "AFEC Temperature Sensor Mode Register"]
170pub mod tempmr;
171#[doc = "TEMPCWR (rw) register accessor: an alias for `Reg<TEMPCWR_SPEC>`"]
172pub type TEMPCWR = crate::Reg<tempcwr::TEMPCWR_SPEC>;
173#[doc = "AFEC Temperature Compare Window Register"]
174pub mod tempcwr;
175#[doc = "ACR (rw) register accessor: an alias for `Reg<ACR_SPEC>`"]
176pub type ACR = crate::Reg<acr::ACR_SPEC>;
177#[doc = "AFEC Analog Control Register"]
178pub mod acr;
179#[doc = "COSR (rw) register accessor: an alias for `Reg<COSR_SPEC>`"]
180pub type COSR = crate::Reg<cosr::COSR_SPEC>;
181#[doc = "AFEC Correction Select Register"]
182pub mod cosr;
183#[doc = "CVR (rw) register accessor: an alias for `Reg<CVR_SPEC>`"]
184pub type CVR = crate::Reg<cvr::CVR_SPEC>;
185#[doc = "AFEC Correction Values Register"]
186pub mod cvr;
187#[doc = "CECR (rw) register accessor: an alias for `Reg<CECR_SPEC>`"]
188pub type CECR = crate::Reg<cecr::CECR_SPEC>;
189#[doc = "AFEC Channel Error Correction Register"]
190pub mod cecr;
191#[doc = "WPMR (rw) register accessor: an alias for `Reg<WPMR_SPEC>`"]
192pub type WPMR = crate::Reg<wpmr::WPMR_SPEC>;
193#[doc = "AFEC Write Protection Mode Register"]
194pub mod wpmr;
195#[doc = "WPSR (r) register accessor: an alias for `Reg<WPSR_SPEC>`"]
196pub type WPSR = crate::Reg<wpsr::WPSR_SPEC>;
197#[doc = "AFEC Write Protection Status Register"]
198pub mod wpsr;
199#[doc = "RPR (rw) register accessor: an alias for `Reg<RPR_SPEC>`"]
200pub type RPR = crate::Reg<rpr::RPR_SPEC>;
201#[doc = "Receive Pointer Register"]
202pub mod rpr;
203#[doc = "RCR (rw) register accessor: an alias for `Reg<RCR_SPEC>`"]
204pub type RCR = crate::Reg<rcr::RCR_SPEC>;
205#[doc = "Receive Counter Register"]
206pub mod rcr;
207#[doc = "RNPR (rw) register accessor: an alias for `Reg<RNPR_SPEC>`"]
208pub type RNPR = crate::Reg<rnpr::RNPR_SPEC>;
209#[doc = "Receive Next Pointer Register"]
210pub mod rnpr;
211#[doc = "RNCR (rw) register accessor: an alias for `Reg<RNCR_SPEC>`"]
212pub type RNCR = crate::Reg<rncr::RNCR_SPEC>;
213#[doc = "Receive Next Counter Register"]
214pub mod rncr;
215#[doc = "PTCR (w) register accessor: an alias for `Reg<PTCR_SPEC>`"]
216pub type PTCR = crate::Reg<ptcr::PTCR_SPEC>;
217#[doc = "Transfer Control Register"]
218pub mod ptcr;
219#[doc = "PTSR (r) register accessor: an alias for `Reg<PTSR_SPEC>`"]
220pub type PTSR = crate::Reg<ptsr::PTSR_SPEC>;
221#[doc = "Transfer Status Register"]
222pub mod ptsr;