1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Control A"]
5 pub ctrla: CTRLA,
6 #[doc = "0x01 - Control B"]
7 pub ctrlb: CTRLB,
8 #[doc = "0x02 - Reference Control"]
9 pub refctrl: REFCTRL,
10 #[doc = "0x03 - Event Control"]
11 pub evctrl: EVCTRL,
12 #[doc = "0x04 - Interrupt Enable Clear"]
13 pub intenclr: INTENCLR,
14 #[doc = "0x05 - Interrupt Enable Set"]
15 pub intenset: INTENSET,
16 #[doc = "0x06 - Interrupt Flag Status and Clear"]
17 pub intflag: INTFLAG,
18 #[doc = "0x07 - Sequence Status"]
19 pub seqstatus: SEQSTATUS,
20 #[doc = "0x08 - Input Control"]
21 pub inputctrl: INPUTCTRL,
22 #[doc = "0x0a - Control C"]
23 pub ctrlc: CTRLC,
24 #[doc = "0x0c - Average Control"]
25 pub avgctrl: AVGCTRL,
26 #[doc = "0x0d - Sample Time Control"]
27 pub sampctrl: SAMPCTRL,
28 #[doc = "0x0e - Window Monitor Lower Threshold"]
29 pub winlt: WINLT,
30 #[doc = "0x10 - Window Monitor Upper Threshold"]
31 pub winut: WINUT,
32 #[doc = "0x12 - Gain Correction"]
33 pub gaincorr: GAINCORR,
34 #[doc = "0x14 - Offset Correction"]
35 pub offsetcorr: OFFSETCORR,
36 _reserved16: [u8; 0x02],
37 #[doc = "0x18 - Software Trigger"]
38 pub swtrig: SWTRIG,
39 _reserved17: [u8; 0x03],
40 #[doc = "0x1c - Debug Control"]
41 pub dbgctrl: DBGCTRL,
42 _reserved18: [u8; 0x03],
43 #[doc = "0x20 - Synchronization Busy"]
44 pub syncbusy: SYNCBUSY,
45 _reserved19: [u8; 0x02],
46 #[doc = "0x24 - Result"]
47 pub result: RESULT,
48 _reserved20: [u8; 0x02],
49 #[doc = "0x28 - Sequence Control"]
50 pub seqctrl: SEQCTRL,
51 #[doc = "0x2c - Calibration"]
52 pub calib: CALIB,
53}
54#[doc = "CTRLA (rw) register accessor: an alias for `Reg<CTRLA_SPEC>`"]
55pub type CTRLA = crate::Reg<ctrla::CTRLA_SPEC>;
56#[doc = "Control A"]
57pub mod ctrla;
58#[doc = "CTRLB (rw) register accessor: an alias for `Reg<CTRLB_SPEC>`"]
59pub type CTRLB = crate::Reg<ctrlb::CTRLB_SPEC>;
60#[doc = "Control B"]
61pub mod ctrlb;
62#[doc = "REFCTRL (rw) register accessor: an alias for `Reg<REFCTRL_SPEC>`"]
63pub type REFCTRL = crate::Reg<refctrl::REFCTRL_SPEC>;
64#[doc = "Reference Control"]
65pub mod refctrl;
66#[doc = "EVCTRL (rw) register accessor: an alias for `Reg<EVCTRL_SPEC>`"]
67pub type EVCTRL = crate::Reg<evctrl::EVCTRL_SPEC>;
68#[doc = "Event Control"]
69pub mod evctrl;
70#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
71pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
72#[doc = "Interrupt Enable Clear"]
73pub mod intenclr;
74#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
75pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
76#[doc = "Interrupt Enable Set"]
77pub mod intenset;
78#[doc = "INTFLAG (rw) register accessor: an alias for `Reg<INTFLAG_SPEC>`"]
79pub type INTFLAG = crate::Reg<intflag::INTFLAG_SPEC>;
80#[doc = "Interrupt Flag Status and Clear"]
81pub mod intflag;
82#[doc = "SEQSTATUS (r) register accessor: an alias for `Reg<SEQSTATUS_SPEC>`"]
83pub type SEQSTATUS = crate::Reg<seqstatus::SEQSTATUS_SPEC>;
84#[doc = "Sequence Status"]
85pub mod seqstatus;
86#[doc = "INPUTCTRL (rw) register accessor: an alias for `Reg<INPUTCTRL_SPEC>`"]
87pub type INPUTCTRL = crate::Reg<inputctrl::INPUTCTRL_SPEC>;
88#[doc = "Input Control"]
89pub mod inputctrl;
90#[doc = "CTRLC (rw) register accessor: an alias for `Reg<CTRLC_SPEC>`"]
91pub type CTRLC = crate::Reg<ctrlc::CTRLC_SPEC>;
92#[doc = "Control C"]
93pub mod ctrlc;
94#[doc = "AVGCTRL (rw) register accessor: an alias for `Reg<AVGCTRL_SPEC>`"]
95pub type AVGCTRL = crate::Reg<avgctrl::AVGCTRL_SPEC>;
96#[doc = "Average Control"]
97pub mod avgctrl;
98#[doc = "SAMPCTRL (rw) register accessor: an alias for `Reg<SAMPCTRL_SPEC>`"]
99pub type SAMPCTRL = crate::Reg<sampctrl::SAMPCTRL_SPEC>;
100#[doc = "Sample Time Control"]
101pub mod sampctrl;
102#[doc = "WINLT (rw) register accessor: an alias for `Reg<WINLT_SPEC>`"]
103pub type WINLT = crate::Reg<winlt::WINLT_SPEC>;
104#[doc = "Window Monitor Lower Threshold"]
105pub mod winlt;
106#[doc = "WINUT (rw) register accessor: an alias for `Reg<WINUT_SPEC>`"]
107pub type WINUT = crate::Reg<winut::WINUT_SPEC>;
108#[doc = "Window Monitor Upper Threshold"]
109pub mod winut;
110#[doc = "GAINCORR (rw) register accessor: an alias for `Reg<GAINCORR_SPEC>`"]
111pub type GAINCORR = crate::Reg<gaincorr::GAINCORR_SPEC>;
112#[doc = "Gain Correction"]
113pub mod gaincorr;
114#[doc = "OFFSETCORR (rw) register accessor: an alias for `Reg<OFFSETCORR_SPEC>`"]
115pub type OFFSETCORR = crate::Reg<offsetcorr::OFFSETCORR_SPEC>;
116#[doc = "Offset Correction"]
117pub mod offsetcorr;
118#[doc = "SWTRIG (rw) register accessor: an alias for `Reg<SWTRIG_SPEC>`"]
119pub type SWTRIG = crate::Reg<swtrig::SWTRIG_SPEC>;
120#[doc = "Software Trigger"]
121pub mod swtrig;
122#[doc = "DBGCTRL (rw) register accessor: an alias for `Reg<DBGCTRL_SPEC>`"]
123pub type DBGCTRL = crate::Reg<dbgctrl::DBGCTRL_SPEC>;
124#[doc = "Debug Control"]
125pub mod dbgctrl;
126#[doc = "SYNCBUSY (r) register accessor: an alias for `Reg<SYNCBUSY_SPEC>`"]
127pub type SYNCBUSY = crate::Reg<syncbusy::SYNCBUSY_SPEC>;
128#[doc = "Synchronization Busy"]
129pub mod syncbusy;
130#[doc = "RESULT (r) register accessor: an alias for `Reg<RESULT_SPEC>`"]
131pub type RESULT = crate::Reg<result::RESULT_SPEC>;
132#[doc = "Result"]
133pub mod result;
134#[doc = "SEQCTRL (rw) register accessor: an alias for `Reg<SEQCTRL_SPEC>`"]
135pub type SEQCTRL = crate::Reg<seqctrl::SEQCTRL_SPEC>;
136#[doc = "Sequence Control"]
137pub mod seqctrl;
138#[doc = "CALIB (rw) register accessor: an alias for `Reg<CALIB_SPEC>`"]
139pub type CALIB = crate::Reg<calib::CALIB_SPEC>;
140#[doc = "Calibration"]
141pub mod calib;