|
1 | 1 | #[repr(C)]
|
2 | 2 | #[doc = "Register block"]
|
3 | 3 | pub struct RegisterBlock {
|
4 |
| - clc: Clc, |
| 4 | + clc: CLC, |
5 | 5 | _reserved1: [u8; 0x04],
|
6 |
| - id: Id, |
7 |
| - fdr: Fdr, |
| 6 | + id: ID, |
| 7 | + fdr: FDR, |
8 | 8 | _reserved3: [u8; 0xf0],
|
9 |
| - list: [List; 8], |
| 9 | + list: [LIST; 8], |
10 | 10 | _reserved4: [u8; 0x20],
|
11 |
| - mspnd: [Mspnd; 8], |
| 11 | + mspnd: [MSPND; 8], |
12 | 12 | _reserved5: [u8; 0x20],
|
13 |
| - msid: [Msid; 8], |
| 13 | + msid: [MSID; 8], |
14 | 14 | _reserved6: [u8; 0x20],
|
15 |
| - msimask: Msimask, |
16 |
| - panctr: Panctr, |
17 |
| - mcr: Mcr, |
18 |
| - mitr: Mitr, |
| 15 | + msimask: MSIMASK, |
| 16 | + panctr: PANCTR, |
| 17 | + mcr: MCR, |
| 18 | + mitr: MITR, |
19 | 19 | }
|
20 | 20 | impl RegisterBlock {
|
21 | 21 | #[doc = "0x00 - CAN Clock Control Register"]
|
22 | 22 | #[inline(always)]
|
23 |
| - pub const fn clc(&self) -> &Clc { |
| 23 | + pub const fn clc(&self) -> &CLC { |
24 | 24 | &self.clc
|
25 | 25 | }
|
26 | 26 | #[doc = "0x08 - Module Identification Register"]
|
27 | 27 | #[inline(always)]
|
28 |
| - pub const fn id(&self) -> &Id { |
| 28 | + pub const fn id(&self) -> &ID { |
29 | 29 | &self.id
|
30 | 30 | }
|
31 | 31 | #[doc = "0x0c - CAN Fractional Divider Register"]
|
32 | 32 | #[inline(always)]
|
33 |
| - pub const fn fdr(&self) -> &Fdr { |
| 33 | + pub const fn fdr(&self) -> &FDR { |
34 | 34 | &self.fdr
|
35 | 35 | }
|
36 | 36 | #[doc = "0x100..0x120 - List Register"]
|
37 | 37 | #[inline(always)]
|
38 |
| - pub const fn list(&self, n: usize) -> &List { |
| 38 | + pub const fn list(&self, n: usize) -> &LIST { |
39 | 39 | &self.list[n]
|
40 | 40 | }
|
41 | 41 | #[doc = "Iterator for array of:"]
|
42 | 42 | #[doc = "0x100..0x120 - List Register"]
|
43 | 43 | #[inline(always)]
|
44 |
| - pub fn list_iter(&self) -> impl Iterator<Item = &List> { |
| 44 | + pub fn list_iter(&self) -> impl Iterator<Item = &LIST> { |
45 | 45 | self.list.iter()
|
46 | 46 | }
|
47 | 47 | #[doc = "0x140..0x160 - Message Pending Register"]
|
48 | 48 | #[inline(always)]
|
49 |
| - pub const fn mspnd(&self, n: usize) -> &Mspnd { |
| 49 | + pub const fn mspnd(&self, n: usize) -> &MSPND { |
50 | 50 | &self.mspnd[n]
|
51 | 51 | }
|
52 | 52 | #[doc = "Iterator for array of:"]
|
53 | 53 | #[doc = "0x140..0x160 - Message Pending Register"]
|
54 | 54 | #[inline(always)]
|
55 |
| - pub fn mspnd_iter(&self) -> impl Iterator<Item = &Mspnd> { |
| 55 | + pub fn mspnd_iter(&self) -> impl Iterator<Item = &MSPND> { |
56 | 56 | self.mspnd.iter()
|
57 | 57 | }
|
58 | 58 | #[doc = "0x180..0x1a0 - Message Index Register"]
|
59 | 59 | #[inline(always)]
|
60 |
| - pub const fn msid(&self, n: usize) -> &Msid { |
| 60 | + pub const fn msid(&self, n: usize) -> &MSID { |
61 | 61 | &self.msid[n]
|
62 | 62 | }
|
63 | 63 | #[doc = "Iterator for array of:"]
|
64 | 64 | #[doc = "0x180..0x1a0 - Message Index Register"]
|
65 | 65 | #[inline(always)]
|
66 |
| - pub fn msid_iter(&self) -> impl Iterator<Item = &Msid> { |
| 66 | + pub fn msid_iter(&self) -> impl Iterator<Item = &MSID> { |
67 | 67 | self.msid.iter()
|
68 | 68 | }
|
69 | 69 | #[doc = "0x1c0 - Message Index Mask Register"]
|
70 | 70 | #[inline(always)]
|
71 |
| - pub const fn msimask(&self) -> &Msimask { |
| 71 | + pub const fn msimask(&self) -> &MSIMASK { |
72 | 72 | &self.msimask
|
73 | 73 | }
|
74 | 74 | #[doc = "0x1c4 - Panel Control Register"]
|
75 | 75 | #[inline(always)]
|
76 |
| - pub const fn panctr(&self) -> &Panctr { |
| 76 | + pub const fn panctr(&self) -> &PANCTR { |
77 | 77 | &self.panctr
|
78 | 78 | }
|
79 | 79 | #[doc = "0x1c8 - Module Control Register"]
|
80 | 80 | #[inline(always)]
|
81 |
| - pub const fn mcr(&self) -> &Mcr { |
| 81 | + pub const fn mcr(&self) -> &MCR { |
82 | 82 | &self.mcr
|
83 | 83 | }
|
84 | 84 | #[doc = "0x1cc - Module Interrupt Trigger Register"]
|
85 | 85 | #[inline(always)]
|
86 |
| - pub const fn mitr(&self) -> &Mitr { |
| 86 | + pub const fn mitr(&self) -> &MITR { |
87 | 87 | &self.mitr
|
88 | 88 | }
|
89 | 89 | }
|
90 | 90 | #[doc = "CLC (rw) register accessor: CAN Clock Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clc::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 [`clc::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@clc`]
|
91 | 91 | module"]
|
92 |
| -#[doc(alias = "CLC")] |
93 |
| -pub type Clc = crate::Reg<clc::ClcSpec>; |
| 92 | +pub type CLC = crate::Reg<clc::CLC_SPEC>; |
94 | 93 | #[doc = "CAN Clock Control Register"]
|
95 | 94 | pub mod clc;
|
96 | 95 | #[doc = "ID (r) register accessor: Module Identification Register\n\nYou can [`read`](crate::generic::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`]
|
97 | 96 | module"]
|
98 |
| -#[doc(alias = "ID")] |
99 |
| -pub type Id = crate::Reg<id::IdSpec>; |
| 97 | +pub type ID = crate::Reg<id::ID_SPEC>; |
100 | 98 | #[doc = "Module Identification Register"]
|
101 | 99 | pub mod id;
|
102 | 100 | #[doc = "FDR (rw) register accessor: CAN Fractional Divider Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fdr::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 [`fdr::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@fdr`]
|
103 | 101 | module"]
|
104 |
| -#[doc(alias = "FDR")] |
105 |
| -pub type Fdr = crate::Reg<fdr::FdrSpec>; |
| 102 | +pub type FDR = crate::Reg<fdr::FDR_SPEC>; |
106 | 103 | #[doc = "CAN Fractional Divider Register"]
|
107 | 104 | pub mod fdr;
|
108 | 105 | #[doc = "LIST (r) register accessor: List Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`list::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@list`]
|
109 | 106 | module"]
|
110 |
| -#[doc(alias = "LIST")] |
111 |
| -pub type List = crate::Reg<list::ListSpec>; |
| 107 | +pub type LIST = crate::Reg<list::LIST_SPEC>; |
112 | 108 | #[doc = "List Register"]
|
113 | 109 | pub mod list;
|
114 | 110 | #[doc = "MSPND (rw) register accessor: Message Pending Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mspnd::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 [`mspnd::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@mspnd`]
|
115 | 111 | module"]
|
116 |
| -#[doc(alias = "MSPND")] |
117 |
| -pub type Mspnd = crate::Reg<mspnd::MspndSpec>; |
| 112 | +pub type MSPND = crate::Reg<mspnd::MSPND_SPEC>; |
118 | 113 | #[doc = "Message Pending Register"]
|
119 | 114 | pub mod mspnd;
|
120 | 115 | #[doc = "MSID (r) register accessor: Message Index Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msid::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@msid`]
|
121 | 116 | module"]
|
122 |
| -#[doc(alias = "MSID")] |
123 |
| -pub type Msid = crate::Reg<msid::MsidSpec>; |
| 117 | +pub type MSID = crate::Reg<msid::MSID_SPEC>; |
124 | 118 | #[doc = "Message Index Register"]
|
125 | 119 | pub mod msid;
|
126 | 120 | #[doc = "MSIMASK (rw) register accessor: Message Index Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msimask::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 [`msimask::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@msimask`]
|
127 | 121 | module"]
|
128 |
| -#[doc(alias = "MSIMASK")] |
129 |
| -pub type Msimask = crate::Reg<msimask::MsimaskSpec>; |
| 122 | +pub type MSIMASK = crate::Reg<msimask::MSIMASK_SPEC>; |
130 | 123 | #[doc = "Message Index Mask Register"]
|
131 | 124 | pub mod msimask;
|
132 | 125 | #[doc = "PANCTR (rw) register accessor: Panel Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`panctr::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 [`panctr::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@panctr`]
|
133 | 126 | module"]
|
134 |
| -#[doc(alias = "PANCTR")] |
135 |
| -pub type Panctr = crate::Reg<panctr::PanctrSpec>; |
| 127 | +pub type PANCTR = crate::Reg<panctr::PANCTR_SPEC>; |
136 | 128 | #[doc = "Panel Control Register"]
|
137 | 129 | pub mod panctr;
|
138 | 130 | #[doc = "MCR (rw) register accessor: Module Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcr::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 [`mcr::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@mcr`]
|
139 | 131 | module"]
|
140 |
| -#[doc(alias = "MCR")] |
141 |
| -pub type Mcr = crate::Reg<mcr::McrSpec>; |
| 132 | +pub type MCR = crate::Reg<mcr::MCR_SPEC>; |
142 | 133 | #[doc = "Module Control Register"]
|
143 | 134 | pub mod mcr;
|
144 | 135 | #[doc = "MITR (w) register accessor: Module Interrupt Trigger Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mitr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mitr`]
|
145 | 136 | module"]
|
146 |
| -#[doc(alias = "MITR")] |
147 |
| -pub type Mitr = crate::Reg<mitr::MitrSpec>; |
| 137 | +pub type MITR = crate::Reg<mitr::MITR_SPEC>; |
148 | 138 | #[doc = "Module Interrupt Trigger Register"]
|
149 | 139 | pub mod mitr;
|
0 commit comments