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