efm32gg12b330_pac/
csen.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Control"]
5    pub ctrl: crate::Reg<ctrl::CTRL_SPEC>,
6    #[doc = "0x04 - Timing Control"]
7    pub timctrl: crate::Reg<timctrl::TIMCTRL_SPEC>,
8    #[doc = "0x08 - Command"]
9    pub cmd: crate::Reg<cmd::CMD_SPEC>,
10    #[doc = "0x0c - Status"]
11    pub status: crate::Reg<status::STATUS_SPEC>,
12    #[doc = "0x10 - PRS Select"]
13    pub prssel: crate::Reg<prssel::PRSSEL_SPEC>,
14    #[doc = "0x14 - Output Data"]
15    pub data: crate::Reg<data::DATA_SPEC>,
16    #[doc = "0x18 - Scan Channel Mask 0"]
17    pub scanmask0: crate::Reg<scanmask0::SCANMASK0_SPEC>,
18    #[doc = "0x1c - Scan Input Selection 0"]
19    pub scaninputsel0: crate::Reg<scaninputsel0::SCANINPUTSEL0_SPEC>,
20    #[doc = "0x20 - Scan Channel Mask 1"]
21    pub scanmask1: crate::Reg<scanmask1::SCANMASK1_SPEC>,
22    #[doc = "0x24 - Scan Input Selection 1"]
23    pub scaninputsel1: crate::Reg<scaninputsel1::SCANINPUTSEL1_SPEC>,
24    #[doc = "0x28 - APORT Request Status"]
25    pub aportreq: crate::Reg<aportreq::APORTREQ_SPEC>,
26    #[doc = "0x2c - APORT Request Conflict"]
27    pub aportconflict: crate::Reg<aportconflict::APORTCONFLICT_SPEC>,
28    #[doc = "0x30 - Comparator Threshold"]
29    pub cmpthr: crate::Reg<cmpthr::CMPTHR_SPEC>,
30    #[doc = "0x34 - Exponential Moving Average"]
31    pub ema: crate::Reg<ema::EMA_SPEC>,
32    #[doc = "0x38 - Exponential Moving Average Control"]
33    pub emactrl: crate::Reg<emactrl::EMACTRL_SPEC>,
34    #[doc = "0x3c - Single Conversion Control"]
35    pub singlectrl: crate::Reg<singlectrl::SINGLECTRL_SPEC>,
36    #[doc = "0x40 - Delta Modulation Baseline"]
37    pub dmbaseline: crate::Reg<dmbaseline::DMBASELINE_SPEC>,
38    #[doc = "0x44 - Delta Modulation Configuration"]
39    pub dmcfg: crate::Reg<dmcfg::DMCFG_SPEC>,
40    #[doc = "0x48 - Analog Control"]
41    pub anactrl: crate::Reg<anactrl::ANACTRL_SPEC>,
42    _reserved19: [u8; 0x08],
43    #[doc = "0x54 - Interrupt Flag"]
44    pub if_: crate::Reg<if_::IF_SPEC>,
45    #[doc = "0x58 - Interrupt Flag Set"]
46    pub ifs: crate::Reg<ifs::IFS_SPEC>,
47    #[doc = "0x5c - Interrupt Flag Clear"]
48    pub ifc: crate::Reg<ifc::IFC_SPEC>,
49    #[doc = "0x60 - Interrupt Enable"]
50    pub ien: crate::Reg<ien::IEN_SPEC>,
51}
52#[doc = "CTRL register accessor: an alias for `Reg<CTRL_SPEC>`"]
53pub type CTRL = crate::Reg<ctrl::CTRL_SPEC>;
54#[doc = "Control"]
55pub mod ctrl;
56#[doc = "TIMCTRL register accessor: an alias for `Reg<TIMCTRL_SPEC>`"]
57pub type TIMCTRL = crate::Reg<timctrl::TIMCTRL_SPEC>;
58#[doc = "Timing Control"]
59pub mod timctrl;
60#[doc = "CMD register accessor: an alias for `Reg<CMD_SPEC>`"]
61pub type CMD = crate::Reg<cmd::CMD_SPEC>;
62#[doc = "Command"]
63pub mod cmd;
64#[doc = "STATUS register accessor: an alias for `Reg<STATUS_SPEC>`"]
65pub type STATUS = crate::Reg<status::STATUS_SPEC>;
66#[doc = "Status"]
67pub mod status;
68#[doc = "PRSSEL register accessor: an alias for `Reg<PRSSEL_SPEC>`"]
69pub type PRSSEL = crate::Reg<prssel::PRSSEL_SPEC>;
70#[doc = "PRS Select"]
71pub mod prssel;
72#[doc = "DATA register accessor: an alias for `Reg<DATA_SPEC>`"]
73pub type DATA = crate::Reg<data::DATA_SPEC>;
74#[doc = "Output Data"]
75pub mod data;
76#[doc = "SCANMASK0 register accessor: an alias for `Reg<SCANMASK0_SPEC>`"]
77pub type SCANMASK0 = crate::Reg<scanmask0::SCANMASK0_SPEC>;
78#[doc = "Scan Channel Mask 0"]
79pub mod scanmask0;
80#[doc = "SCANINPUTSEL0 register accessor: an alias for `Reg<SCANINPUTSEL0_SPEC>`"]
81pub type SCANINPUTSEL0 = crate::Reg<scaninputsel0::SCANINPUTSEL0_SPEC>;
82#[doc = "Scan Input Selection 0"]
83pub mod scaninputsel0;
84#[doc = "SCANMASK1 register accessor: an alias for `Reg<SCANMASK1_SPEC>`"]
85pub type SCANMASK1 = crate::Reg<scanmask1::SCANMASK1_SPEC>;
86#[doc = "Scan Channel Mask 1"]
87pub mod scanmask1;
88#[doc = "SCANINPUTSEL1 register accessor: an alias for `Reg<SCANINPUTSEL1_SPEC>`"]
89pub type SCANINPUTSEL1 = crate::Reg<scaninputsel1::SCANINPUTSEL1_SPEC>;
90#[doc = "Scan Input Selection 1"]
91pub mod scaninputsel1;
92#[doc = "APORTREQ register accessor: an alias for `Reg<APORTREQ_SPEC>`"]
93pub type APORTREQ = crate::Reg<aportreq::APORTREQ_SPEC>;
94#[doc = "APORT Request Status"]
95pub mod aportreq;
96#[doc = "APORTCONFLICT register accessor: an alias for `Reg<APORTCONFLICT_SPEC>`"]
97pub type APORTCONFLICT = crate::Reg<aportconflict::APORTCONFLICT_SPEC>;
98#[doc = "APORT Request Conflict"]
99pub mod aportconflict;
100#[doc = "CMPTHR register accessor: an alias for `Reg<CMPTHR_SPEC>`"]
101pub type CMPTHR = crate::Reg<cmpthr::CMPTHR_SPEC>;
102#[doc = "Comparator Threshold"]
103pub mod cmpthr;
104#[doc = "EMA register accessor: an alias for `Reg<EMA_SPEC>`"]
105pub type EMA = crate::Reg<ema::EMA_SPEC>;
106#[doc = "Exponential Moving Average"]
107pub mod ema;
108#[doc = "EMACTRL register accessor: an alias for `Reg<EMACTRL_SPEC>`"]
109pub type EMACTRL = crate::Reg<emactrl::EMACTRL_SPEC>;
110#[doc = "Exponential Moving Average Control"]
111pub mod emactrl;
112#[doc = "SINGLECTRL register accessor: an alias for `Reg<SINGLECTRL_SPEC>`"]
113pub type SINGLECTRL = crate::Reg<singlectrl::SINGLECTRL_SPEC>;
114#[doc = "Single Conversion Control"]
115pub mod singlectrl;
116#[doc = "DMBASELINE register accessor: an alias for `Reg<DMBASELINE_SPEC>`"]
117pub type DMBASELINE = crate::Reg<dmbaseline::DMBASELINE_SPEC>;
118#[doc = "Delta Modulation Baseline"]
119pub mod dmbaseline;
120#[doc = "DMCFG register accessor: an alias for `Reg<DMCFG_SPEC>`"]
121pub type DMCFG = crate::Reg<dmcfg::DMCFG_SPEC>;
122#[doc = "Delta Modulation Configuration"]
123pub mod dmcfg;
124#[doc = "ANACTRL register accessor: an alias for `Reg<ANACTRL_SPEC>`"]
125pub type ANACTRL = crate::Reg<anactrl::ANACTRL_SPEC>;
126#[doc = "Analog Control"]
127pub mod anactrl;
128#[doc = "IF register accessor: an alias for `Reg<IF_SPEC>`"]
129pub type IF = crate::Reg<if_::IF_SPEC>;
130#[doc = "Interrupt Flag"]
131pub mod if_;
132#[doc = "IFS register accessor: an alias for `Reg<IFS_SPEC>`"]
133pub type IFS = crate::Reg<ifs::IFS_SPEC>;
134#[doc = "Interrupt Flag Set"]
135pub mod ifs;
136#[doc = "IFC register accessor: an alias for `Reg<IFC_SPEC>`"]
137pub type IFC = crate::Reg<ifc::IFC_SPEC>;
138#[doc = "Interrupt Flag Clear"]
139pub mod ifc;
140#[doc = "IEN register accessor: an alias for `Reg<IEN_SPEC>`"]
141pub type IEN = crate::Reg<ien::IEN_SPEC>;
142#[doc = "Interrupt Enable"]
143pub mod ien;