1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 tp_ctrl0: TP_CTRL0,
5 tp_ctrl1: TP_CTRL1,
6 tp_ctrl2: TP_CTRL2,
7 tp_ctrl3: TP_CTRL3,
8 tp_int_fifo_ctrl: TP_INT_FIFO_CTRL,
9 tp_int_fifo_stat: TP_INT_FIFO_STAT,
10 _reserved6: [u8; 0x04],
11 tp_cali_data: TP_CALI_DATA,
12 _reserved7: [u8; 0x04],
13 tp_data: TP_DATA,
14}
15impl RegisterBlock {
16 #[doc = "0x00 - TP Control Register 0"]
17 #[inline(always)]
18 pub const fn tp_ctrl0(&self) -> &TP_CTRL0 {
19 &self.tp_ctrl0
20 }
21 #[doc = "0x04 - TP Control Register 1"]
22 #[inline(always)]
23 pub const fn tp_ctrl1(&self) -> &TP_CTRL1 {
24 &self.tp_ctrl1
25 }
26 #[doc = "0x08 - TP Control Register 2"]
27 #[inline(always)]
28 pub const fn tp_ctrl2(&self) -> &TP_CTRL2 {
29 &self.tp_ctrl2
30 }
31 #[doc = "0x0c - TP Control Register 3"]
32 #[inline(always)]
33 pub const fn tp_ctrl3(&self) -> &TP_CTRL3 {
34 &self.tp_ctrl3
35 }
36 #[doc = "0x10 - TP Interrupt FIFO Control Register"]
37 #[inline(always)]
38 pub const fn tp_int_fifo_ctrl(&self) -> &TP_INT_FIFO_CTRL {
39 &self.tp_int_fifo_ctrl
40 }
41 #[doc = "0x14 - TP Interrupt FIFO Status Register"]
42 #[inline(always)]
43 pub const fn tp_int_fifo_stat(&self) -> &TP_INT_FIFO_STAT {
44 &self.tp_int_fifo_stat
45 }
46 #[doc = "0x1c - TP Calibration Data Register"]
47 #[inline(always)]
48 pub const fn tp_cali_data(&self) -> &TP_CALI_DATA {
49 &self.tp_cali_data
50 }
51 #[doc = "0x24 - TP Data Register"]
52 #[inline(always)]
53 pub const fn tp_data(&self) -> &TP_DATA {
54 &self.tp_data
55 }
56}
57#[doc = "tp_ctrl0 (rw) register accessor: TP Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tp_ctrl0::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 [`tp_ctrl0::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@tp_ctrl0`] module"]
58pub type TP_CTRL0 = crate::Reg<tp_ctrl0::TP_CTRL0_SPEC>;
59#[doc = "TP Control Register 0"]
60pub mod tp_ctrl0;
61#[doc = "tp_ctrl1 (rw) register accessor: TP Control Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tp_ctrl1::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 [`tp_ctrl1::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@tp_ctrl1`] module"]
62pub type TP_CTRL1 = crate::Reg<tp_ctrl1::TP_CTRL1_SPEC>;
63#[doc = "TP Control Register 1"]
64pub mod tp_ctrl1;
65#[doc = "tp_ctrl2 (rw) register accessor: TP Control Register 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tp_ctrl2::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 [`tp_ctrl2::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@tp_ctrl2`] module"]
66pub type TP_CTRL2 = crate::Reg<tp_ctrl2::TP_CTRL2_SPEC>;
67#[doc = "TP Control Register 2"]
68pub mod tp_ctrl2;
69#[doc = "tp_ctrl3 (rw) register accessor: TP Control Register 3\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tp_ctrl3::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 [`tp_ctrl3::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@tp_ctrl3`] module"]
70pub type TP_CTRL3 = crate::Reg<tp_ctrl3::TP_CTRL3_SPEC>;
71#[doc = "TP Control Register 3"]
72pub mod tp_ctrl3;
73#[doc = "tp_int_fifo_ctrl (rw) register accessor: TP Interrupt FIFO Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tp_int_fifo_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 [`tp_int_fifo_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@tp_int_fifo_ctrl`] module"]
74pub type TP_INT_FIFO_CTRL = crate::Reg<tp_int_fifo_ctrl::TP_INT_FIFO_CTRL_SPEC>;
75#[doc = "TP Interrupt FIFO Control Register"]
76pub mod tp_int_fifo_ctrl;
77#[doc = "tp_int_fifo_stat (rw) register accessor: TP Interrupt FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tp_int_fifo_stat::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 [`tp_int_fifo_stat::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@tp_int_fifo_stat`] module"]
78pub type TP_INT_FIFO_STAT = crate::Reg<tp_int_fifo_stat::TP_INT_FIFO_STAT_SPEC>;
79#[doc = "TP Interrupt FIFO Status Register"]
80pub mod tp_int_fifo_stat;
81#[doc = "tp_cali_data (rw) register accessor: TP Calibration Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tp_cali_data::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 [`tp_cali_data::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@tp_cali_data`] module"]
82pub type TP_CALI_DATA = crate::Reg<tp_cali_data::TP_CALI_DATA_SPEC>;
83#[doc = "TP Calibration Data Register"]
84pub mod tp_cali_data;
85#[doc = "tp_data (r) register accessor: TP Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tp_data::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tp_data`] module"]
86pub type TP_DATA = crate::Reg<tp_data::TP_DATA_SPEC>;
87#[doc = "TP Data Register"]
88pub mod tp_data;