1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
#[doc = r" Register block"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "0x00 - CAN control"]
    pub cancntl: CANCNTL,
    #[doc = "0x04 - Status register"]
    pub canstat: CANSTAT,
    #[doc = "0x08 - Error counter"]
    pub canec: CANEC,
    #[doc = "0x0c - Bit timing register"]
    pub canbt: CANBT,
    #[doc = "0x10 - Interrupt register"]
    pub canint: CANINT,
    #[doc = "0x14 - Test register"]
    pub cantest: CANTEST,
    #[doc = "0x18 - Baud rate prescaler extension register"]
    pub canbrpe: CANBRPE,
    _reserved7: [u8; 4usize],
    #[doc = "0x20 - Message interface command request"]
    pub canif1_cmdreq: CANIF_CMDREQ,
    #[doc = "Message interface command mask - read direction Message interface command mask - write direction"]
    pub canif1_cmdmsk: CANIF1_CMDMSK_UNION,
    #[doc = "0x28 - Message interface 1 mask 1"]
    pub canif1_msk1: CANIF_MSK1,
    #[doc = "0x2c - Message interface 1 mask 2"]
    pub canif1_msk2: CANIF_MSK2,
    #[doc = "0x30 - Message interface 1 arbitration 1"]
    pub canif1_arb1: CANIF_ARB1,
    #[doc = "0x34 - Message interface 1 arbitration 2"]
    pub canif1_arb2: CANIF_ARB2,
    #[doc = "0x38 - Message interface 1 message control"]
    pub canif1_mctrl: CANIF_MCTRL,
    #[doc = "0x3c - Message interface 1 data A1"]
    pub canif1_da1: CANIF_DA1,
    #[doc = "0x40 - Message interface 1 data A2"]
    pub canif1_da2: CANIF_DA2,
    #[doc = "0x44 - Message interface 1 data B1"]
    pub canif1_db1: CANIF_DB1,
    #[doc = "0x48 - Message interface 1 data B2"]
    pub canif1_db2: CANIF_DB2,
    _reserved18: [u8; 52usize],
    #[doc = "0x80 - Message interface command request"]
    pub canif2_cmdreq: CANIF_CMDREQ,
    #[doc = "Message interface command mask - read direction Message interface command mask - write direction"]
    pub canif2_cmdmsk: CANIF2_CMDMSK_UNION,
    #[doc = "0x88 - Message interface 1 mask 1"]
    pub canif2_msk1: CANIF_MSK1,
    #[doc = "0x8c - Message interface 1 mask 2"]
    pub canif2_msk2: CANIF_MSK2,
    #[doc = "0x90 - Message interface 1 arbitration 1"]
    pub canif2_arb1: CANIF_ARB1,
    #[doc = "0x94 - Message interface 1 arbitration 2"]
    pub canif2_arb2: CANIF_ARB2,
    #[doc = "0x98 - Message interface 1 message control"]
    pub canif2_mctrl: CANIF_MCTRL,
    #[doc = "0x9c - Message interface 1 data A1"]
    pub canif2_da1: CANIF_DA1,
    #[doc = "0xa0 - Message interface 1 data A2"]
    pub canif2_da2: CANIF_DA2,
    #[doc = "0xa4 - Message interface 1 data B1"]
    pub canif2_db1: CANIF_DB1,
    #[doc = "0xa8 - Message interface 1 data B2"]
    pub canif2_db2: CANIF_DB2,
    _reserved29: [u8; 84usize],
    #[doc = "0x100 - Transmission request 1"]
    pub cantxreq1: CANTXREQ1,
    #[doc = "0x104 - Transmission request 2"]
    pub cantxreq2: CANTXREQ2,
    _reserved31: [u8; 24usize],
    #[doc = "0x120 - New data 1"]
    pub cannd1: CANND1,
    #[doc = "0x124 - New data 2"]
    pub cannd2: CANND2,
    _reserved33: [u8; 24usize],
    #[doc = "0x140 - Interrupt pending 1"]
    pub canir1: CANIR1,
    #[doc = "0x144 - Interrupt pending 2"]
    pub canir2: CANIR2,
    _reserved35: [u8; 24usize],
    #[doc = "0x160 - Message valid 1"]
    pub canmsgv1: CANMSGV1,
    #[doc = "0x164 - Message valid 2"]
    pub canmsgv2: CANMSGV2,
    _reserved37: [u8; 24usize],
    #[doc = "0x180 - Can clock divider register"]
    pub canclkdiv: CANCLKDIV,
}
#[doc = "Message interface command mask - read direction Message interface command mask - write direction"]
#[repr(C)]
pub union CANIF1_CMDMSK_UNION {
    #[doc = "0x24 - Message interface command mask - read direction"]
    pub canif1_cmdmsk_r: CANIF_CMDMSK_R,
    #[doc = "0x24 - Message interface command mask - write direction"]
    pub canif1_cmdmsk_w: CANIF_CMDMSK_W,
}
#[doc = "Message interface command mask - read direction Message interface command mask - write direction"]
#[repr(C)]
pub union CANIF2_CMDMSK_UNION {
    #[doc = "0x84 - Message interface command mask - read direction"]
    pub canif2_cmdmsk_r: CANIF_CMDMSK_R,
    #[doc = "0x84 - Message interface command mask - write direction"]
    pub canif2_cmdmsk_w: CANIF_CMDMSK_W,
}
#[doc = "CAN control"]
pub struct CANCNTL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "CAN control"]
pub mod cancntl;
#[doc = "Status register"]
pub struct CANSTAT {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Status register"]
pub mod canstat;
#[doc = "Error counter"]
pub struct CANEC {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Error counter"]
pub mod canec;
#[doc = "Bit timing register"]
pub struct CANBT {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Bit timing register"]
pub mod canbt;
#[doc = "Interrupt register"]
pub struct CANINT {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Interrupt register"]
pub mod canint;
#[doc = "Test register"]
pub struct CANTEST {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Test register"]
pub mod cantest;
#[doc = "Baud rate prescaler extension register"]
pub struct CANBRPE {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Baud rate prescaler extension register"]
pub mod canbrpe;
#[doc = "Message interface command request"]
pub struct CANIF_CMDREQ {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface command request"]
pub mod canif_cmdreq;
#[doc = "Message interface command mask - write direction"]
pub struct CANIF_CMDMSK_W {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface command mask - write direction"]
pub mod canif_cmdmsk_w;
#[doc = "Message interface command mask - read direction"]
pub struct CANIF_CMDMSK_R {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface command mask - read direction"]
pub mod canif_cmdmsk_r;
#[doc = "Message interface 1 mask 1"]
pub struct CANIF_MSK1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface 1 mask 1"]
pub mod canif_msk1;
#[doc = "Message interface 1 mask 2"]
pub struct CANIF_MSK2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface 1 mask 2"]
pub mod canif_msk2;
#[doc = "Message interface 1 arbitration 1"]
pub struct CANIF_ARB1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface 1 arbitration 1"]
pub mod canif_arb1;
#[doc = "Message interface 1 arbitration 2"]
pub struct CANIF_ARB2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface 1 arbitration 2"]
pub mod canif_arb2;
#[doc = "Message interface 1 message control"]
pub struct CANIF_MCTRL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface 1 message control"]
pub mod canif_mctrl;
#[doc = "Message interface 1 data A1"]
pub struct CANIF_DA1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface 1 data A1"]
pub mod canif_da1;
#[doc = "Message interface 1 data A2"]
pub struct CANIF_DA2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface 1 data A2"]
pub mod canif_da2;
#[doc = "Message interface 1 data B1"]
pub struct CANIF_DB1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface 1 data B1"]
pub mod canif_db1;
#[doc = "Message interface 1 data B2"]
pub struct CANIF_DB2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message interface 1 data B2"]
pub mod canif_db2;
#[doc = "Transmission request 1"]
pub struct CANTXREQ1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Transmission request 1"]
pub mod cantxreq1;
#[doc = "Transmission request 2"]
pub struct CANTXREQ2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Transmission request 2"]
pub mod cantxreq2;
#[doc = "New data 1"]
pub struct CANND1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "New data 1"]
pub mod cannd1;
#[doc = "New data 2"]
pub struct CANND2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "New data 2"]
pub mod cannd2;
#[doc = "Interrupt pending 1"]
pub struct CANIR1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Interrupt pending 1"]
pub mod canir1;
#[doc = "Interrupt pending 2"]
pub struct CANIR2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Interrupt pending 2"]
pub mod canir2;
#[doc = "Message valid 1"]
pub struct CANMSGV1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message valid 1"]
pub mod canmsgv1;
#[doc = "Message valid 2"]
pub struct CANMSGV2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Message valid 2"]
pub mod canmsgv2;
#[doc = "Can clock divider register"]
pub struct CANCLKDIV {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Can clock divider register"]
pub mod canclkdiv;