xmc4500/
ledts0.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    id: ID,
5    globctl: GLOBCTL,
6    fnctl: FNCTL,
7    evfr: EVFR,
8    tsval: TSVAL,
9    line0: LINE0,
10    line1: LINE1,
11    ldcmp0: LDCMP0,
12    ldcmp1: LDCMP1,
13    tscmp0: TSCMP0,
14    tscmp1: TSCMP1,
15}
16impl RegisterBlock {
17    #[doc = "0x00 - Module Identification Register"]
18    #[inline(always)]
19    pub const fn id(&self) -> &ID {
20        &self.id
21    }
22    #[doc = "0x04 - Global Control Register"]
23    #[inline(always)]
24    pub const fn globctl(&self) -> &GLOBCTL {
25        &self.globctl
26    }
27    #[doc = "0x08 - Function Control Register"]
28    #[inline(always)]
29    pub const fn fnctl(&self) -> &FNCTL {
30        &self.fnctl
31    }
32    #[doc = "0x0c - Event Flag Register"]
33    #[inline(always)]
34    pub const fn evfr(&self) -> &EVFR {
35        &self.evfr
36    }
37    #[doc = "0x10 - Touch-sense TS-Counter Value"]
38    #[inline(always)]
39    pub const fn tsval(&self) -> &TSVAL {
40        &self.tsval
41    }
42    #[doc = "0x14 - Line Pattern Register 0"]
43    #[inline(always)]
44    pub const fn line0(&self) -> &LINE0 {
45        &self.line0
46    }
47    #[doc = "0x18 - Line Pattern Register 1"]
48    #[inline(always)]
49    pub const fn line1(&self) -> &LINE1 {
50        &self.line1
51    }
52    #[doc = "0x1c - LED Compare Register 0"]
53    #[inline(always)]
54    pub const fn ldcmp0(&self) -> &LDCMP0 {
55        &self.ldcmp0
56    }
57    #[doc = "0x20 - LED Compare Register 1"]
58    #[inline(always)]
59    pub const fn ldcmp1(&self) -> &LDCMP1 {
60        &self.ldcmp1
61    }
62    #[doc = "0x24 - Touch-sense Compare Register 0"]
63    #[inline(always)]
64    pub const fn tscmp0(&self) -> &TSCMP0 {
65        &self.tscmp0
66    }
67    #[doc = "0x28 - Touch-sense Compare Register 1"]
68    #[inline(always)]
69    pub const fn tscmp1(&self) -> &TSCMP1 {
70        &self.tscmp1
71    }
72}
73#[doc = "ID (r) register accessor: Module Identification Register\n\nYou can [`read`](crate::Reg::read) this register and get [`id::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@id`]
74module"]
75pub type ID = crate::Reg<id::ID_SPEC>;
76#[doc = "Module Identification Register"]
77pub mod id;
78#[doc = "GLOBCTL (rw) register accessor: Global Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`globctl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`globctl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@globctl`]
79module"]
80pub type GLOBCTL = crate::Reg<globctl::GLOBCTL_SPEC>;
81#[doc = "Global Control Register"]
82pub mod globctl;
83#[doc = "FNCTL (rw) register accessor: Function Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`fnctl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fnctl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fnctl`]
84module"]
85pub type FNCTL = crate::Reg<fnctl::FNCTL_SPEC>;
86#[doc = "Function Control Register"]
87pub mod fnctl;
88#[doc = "EVFR (rw) register accessor: Event Flag Register\n\nYou can [`read`](crate::Reg::read) this register and get [`evfr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`evfr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evfr`]
89module"]
90pub type EVFR = crate::Reg<evfr::EVFR_SPEC>;
91#[doc = "Event Flag Register"]
92pub mod evfr;
93#[doc = "TSVAL (rw) register accessor: Touch-sense TS-Counter Value\n\nYou can [`read`](crate::Reg::read) this register and get [`tsval::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tsval::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tsval`]
94module"]
95pub type TSVAL = crate::Reg<tsval::TSVAL_SPEC>;
96#[doc = "Touch-sense TS-Counter Value"]
97pub mod tsval;
98#[doc = "LINE0 (rw) register accessor: Line Pattern Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`line0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`line0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@line0`]
99module"]
100pub type LINE0 = crate::Reg<line0::LINE0_SPEC>;
101#[doc = "Line Pattern Register 0"]
102pub mod line0;
103#[doc = "LINE1 (rw) register accessor: Line Pattern Register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`line1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`line1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@line1`]
104module"]
105pub type LINE1 = crate::Reg<line1::LINE1_SPEC>;
106#[doc = "Line Pattern Register 1"]
107pub mod line1;
108#[doc = "LDCMP0 (rw) register accessor: LED Compare Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`ldcmp0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ldcmp0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ldcmp0`]
109module"]
110pub type LDCMP0 = crate::Reg<ldcmp0::LDCMP0_SPEC>;
111#[doc = "LED Compare Register 0"]
112pub mod ldcmp0;
113#[doc = "LDCMP1 (rw) register accessor: LED Compare Register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ldcmp1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ldcmp1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ldcmp1`]
114module"]
115pub type LDCMP1 = crate::Reg<ldcmp1::LDCMP1_SPEC>;
116#[doc = "LED Compare Register 1"]
117pub mod ldcmp1;
118#[doc = "TSCMP0 (rw) register accessor: Touch-sense Compare Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`tscmp0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tscmp0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tscmp0`]
119module"]
120pub type TSCMP0 = crate::Reg<tscmp0::TSCMP0_SPEC>;
121#[doc = "Touch-sense Compare Register 0"]
122pub mod tscmp0;
123#[doc = "TSCMP1 (rw) register accessor: Touch-sense Compare Register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`tscmp1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tscmp1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tscmp1`]
124module"]
125pub type TSCMP1 = crate::Reg<tscmp1::TSCMP1_SPEC>;
126#[doc = "Touch-sense Compare Register 1"]
127pub mod tscmp1;