d1_pac/
ths.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    ths_ctrl: THS_CTRL,
5    ths_en: THS_EN,
6    ths_per: THS_PER,
7    _reserved3: [u8; 0x04],
8    ths_data_intc: THS_DATA_INTC,
9    ths_shut_intc: THS_SHUT_INTC,
10    ths_alarm_intc: THS_ALARM_INTC,
11    _reserved6: [u8; 0x04],
12    ths_data_ints: THS_DATA_INTS,
13    ths_shut_ints: THS_SHUT_INTS,
14    ths_alarmo_ints: THS_ALARMO_INTS,
15    ths_alarm_ints: THS_ALARM_INTS,
16    ths_filter: THS_FILTER,
17    _reserved11: [u8; 0x0c],
18    ths_alarm_ctrl: THS_ALARM_CTRL,
19    _reserved12: [u8; 0x3c],
20    ths_shutdown_ctrl: THS_SHUTDOWN_CTRL,
21    _reserved13: [u8; 0x1c],
22    ths_cdata: THS_CDATA,
23    _reserved14: [u8; 0x1c],
24    ths_data: THS_DATA,
25}
26impl RegisterBlock {
27    #[doc = "0x00 - THS Control Register"]
28    #[inline(always)]
29    pub const fn ths_ctrl(&self) -> &THS_CTRL {
30        &self.ths_ctrl
31    }
32    #[doc = "0x04 - THS Enable Register"]
33    #[inline(always)]
34    pub const fn ths_en(&self) -> &THS_EN {
35        &self.ths_en
36    }
37    #[doc = "0x08 - THS Period Control Register"]
38    #[inline(always)]
39    pub const fn ths_per(&self) -> &THS_PER {
40        &self.ths_per
41    }
42    #[doc = "0x10 - THS Data Interrupt Control Register"]
43    #[inline(always)]
44    pub const fn ths_data_intc(&self) -> &THS_DATA_INTC {
45        &self.ths_data_intc
46    }
47    #[doc = "0x14 - THS Shut Interrupt Control Register"]
48    #[inline(always)]
49    pub const fn ths_shut_intc(&self) -> &THS_SHUT_INTC {
50        &self.ths_shut_intc
51    }
52    #[doc = "0x18 - THS Alarm Interrupt Control Register"]
53    #[inline(always)]
54    pub const fn ths_alarm_intc(&self) -> &THS_ALARM_INTC {
55        &self.ths_alarm_intc
56    }
57    #[doc = "0x20 - THS Data Interrupt Status Register"]
58    #[inline(always)]
59    pub const fn ths_data_ints(&self) -> &THS_DATA_INTS {
60        &self.ths_data_ints
61    }
62    #[doc = "0x24 - THS Shut Interrupt Status Register"]
63    #[inline(always)]
64    pub const fn ths_shut_ints(&self) -> &THS_SHUT_INTS {
65        &self.ths_shut_ints
66    }
67    #[doc = "0x28 - THS_ALARM0_INTS"]
68    #[inline(always)]
69    pub const fn ths_alarmo_ints(&self) -> &THS_ALARMO_INTS {
70        &self.ths_alarmo_ints
71    }
72    #[doc = "0x2c - THS Alarm Interrupt Status Register"]
73    #[inline(always)]
74    pub const fn ths_alarm_ints(&self) -> &THS_ALARM_INTS {
75        &self.ths_alarm_ints
76    }
77    #[doc = "0x30 - THS Median Filter Control Register"]
78    #[inline(always)]
79    pub const fn ths_filter(&self) -> &THS_FILTER {
80        &self.ths_filter
81    }
82    #[doc = "0x40 - THS Alarm Threshold Control Register"]
83    #[inline(always)]
84    pub const fn ths_alarm_ctrl(&self) -> &THS_ALARM_CTRL {
85        &self.ths_alarm_ctrl
86    }
87    #[doc = "0x80 - THS Shutdown Threshold Control Register"]
88    #[inline(always)]
89    pub const fn ths_shutdown_ctrl(&self) -> &THS_SHUTDOWN_CTRL {
90        &self.ths_shutdown_ctrl
91    }
92    #[doc = "0xa0 - THS Calibration Data"]
93    #[inline(always)]
94    pub const fn ths_cdata(&self) -> &THS_CDATA {
95        &self.ths_cdata
96    }
97    #[doc = "0xc0 - THS Data Register"]
98    #[inline(always)]
99    pub const fn ths_data(&self) -> &THS_DATA {
100        &self.ths_data
101    }
102}
103#[doc = "ths_ctrl (rw) register accessor: THS Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_ctrl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_ctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_ctrl`] module"]
104pub type THS_CTRL = crate::Reg<ths_ctrl::THS_CTRL_SPEC>;
105#[doc = "THS Control Register"]
106pub mod ths_ctrl;
107#[doc = "ths_en (rw) register accessor: THS Enable Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_en::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_en::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_en`] module"]
108pub type THS_EN = crate::Reg<ths_en::THS_EN_SPEC>;
109#[doc = "THS Enable Register"]
110pub mod ths_en;
111#[doc = "ths_per (rw) register accessor: THS Period Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_per::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_per::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_per`] module"]
112pub type THS_PER = crate::Reg<ths_per::THS_PER_SPEC>;
113#[doc = "THS Period Control Register"]
114pub mod ths_per;
115#[doc = "ths_data_intc (rw) register accessor: THS Data Interrupt Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_data_intc::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_data_intc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_data_intc`] module"]
116pub type THS_DATA_INTC = crate::Reg<ths_data_intc::THS_DATA_INTC_SPEC>;
117#[doc = "THS Data Interrupt Control Register"]
118pub mod ths_data_intc;
119#[doc = "ths_shut_intc (rw) register accessor: THS Shut Interrupt Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_shut_intc::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_shut_intc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_shut_intc`] module"]
120pub type THS_SHUT_INTC = crate::Reg<ths_shut_intc::THS_SHUT_INTC_SPEC>;
121#[doc = "THS Shut Interrupt Control Register"]
122pub mod ths_shut_intc;
123#[doc = "ths_alarm_intc (rw) register accessor: THS Alarm Interrupt Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_alarm_intc::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_alarm_intc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_alarm_intc`] module"]
124pub type THS_ALARM_INTC = crate::Reg<ths_alarm_intc::THS_ALARM_INTC_SPEC>;
125#[doc = "THS Alarm Interrupt Control Register"]
126pub mod ths_alarm_intc;
127#[doc = "ths_data_ints (rw) register accessor: THS Data Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_data_ints::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_data_ints::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_data_ints`] module"]
128pub type THS_DATA_INTS = crate::Reg<ths_data_ints::THS_DATA_INTS_SPEC>;
129#[doc = "THS Data Interrupt Status Register"]
130pub mod ths_data_ints;
131#[doc = "ths_shut_ints (rw) register accessor: THS Shut Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_shut_ints::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_shut_ints::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_shut_ints`] module"]
132pub type THS_SHUT_INTS = crate::Reg<ths_shut_ints::THS_SHUT_INTS_SPEC>;
133#[doc = "THS Shut Interrupt Status Register"]
134pub mod ths_shut_ints;
135#[doc = "ths_alarmo_ints (rw) register accessor: THS_ALARM0_INTS\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_alarmo_ints::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_alarmo_ints::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_alarmo_ints`] module"]
136pub type THS_ALARMO_INTS = crate::Reg<ths_alarmo_ints::THS_ALARMO_INTS_SPEC>;
137#[doc = "THS_ALARM0_INTS"]
138pub mod ths_alarmo_ints;
139#[doc = "ths_alarm_ints (rw) register accessor: THS Alarm Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_alarm_ints::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_alarm_ints::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_alarm_ints`] module"]
140pub type THS_ALARM_INTS = crate::Reg<ths_alarm_ints::THS_ALARM_INTS_SPEC>;
141#[doc = "THS Alarm Interrupt Status Register"]
142pub mod ths_alarm_ints;
143#[doc = "ths_filter (rw) register accessor: THS Median Filter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_filter::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_filter::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_filter`] module"]
144pub type THS_FILTER = crate::Reg<ths_filter::THS_FILTER_SPEC>;
145#[doc = "THS Median Filter Control Register"]
146pub mod ths_filter;
147#[doc = "ths_alarm_ctrl (rw) register accessor: THS Alarm Threshold Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_alarm_ctrl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_alarm_ctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_alarm_ctrl`] module"]
148pub type THS_ALARM_CTRL = crate::Reg<ths_alarm_ctrl::THS_ALARM_CTRL_SPEC>;
149#[doc = "THS Alarm Threshold Control Register"]
150pub mod ths_alarm_ctrl;
151#[doc = "ths_shutdown_ctrl (rw) register accessor: THS Shutdown Threshold Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_shutdown_ctrl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_shutdown_ctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_shutdown_ctrl`] module"]
152pub type THS_SHUTDOWN_CTRL = crate::Reg<ths_shutdown_ctrl::THS_SHUTDOWN_CTRL_SPEC>;
153#[doc = "THS Shutdown Threshold Control Register"]
154pub mod ths_shutdown_ctrl;
155#[doc = "ths_cdata (rw) register accessor: THS Calibration Data\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_cdata::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ths_cdata::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_cdata`] module"]
156pub type THS_CDATA = crate::Reg<ths_cdata::THS_CDATA_SPEC>;
157#[doc = "THS Calibration Data"]
158pub mod ths_cdata;
159#[doc = "ths_data (r) register accessor: THS Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ths_data::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ths_data`] module"]
160pub type THS_DATA = crate::Reg<ths_data::THS_DATA_SPEC>;
161#[doc = "THS Data Register"]
162pub mod ths_data;