flexcan.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Pavel Kirienko <pavel.kirienko@gmail.com>
3  * Kinetis Port Author David Sidrane <david_s5@nscdg.com>
4  * Bit definitions were copied from NuttX KINETIS CAN driver.
5  */
6 
7 #pragma once
8 
10 
11 #include <uavcan/uavcan.hpp>
12 #include <stdint.h>
13 
14 #ifndef UAVCAN_CPP_VERSION
15 # error UAVCAN_CPP_VERSION
16 #endif
17 
18 #if UAVCAN_CPP_VERSION < UAVCAN_CPP11
19 // #undef'ed at the end of this file
20 # define constexpr const
21 #endif
22 
23 namespace uavcan_kinetis
24 {
25 namespace flexcan
26 {
27 enum { HWMaxMB = 16 };
28 
29 union MBcsType
30 {
31  volatile uint32_t w;
32  struct
33  {
34  volatile uint32_t time_stamp : 16;
35  volatile uint32_t dlc : 4;
36  volatile uint32_t rtr : 1;
37  volatile uint32_t ide : 1;
38  volatile uint32_t srr : 1;
39  volatile uint32_t res : 1;
40  volatile uint32_t code : 4;
41  volatile uint32_t res2 : 4;
42  };
43 };
44 
46 {
47  volatile uint32_t cs;
48  struct
49  {
50  volatile uint32_t time_stamp : 16;
51  volatile uint32_t dlc : 4;
52  volatile uint32_t rtr : 1;
53  volatile uint32_t ide : 1;
54  volatile uint32_t srr : 1;
55  volatile uint32_t res : 9;
56  };
57 };
58 
59 union IDType
60 {
61  volatile uint32_t w;
62  struct
63  {
64  volatile uint32_t ext : 29;
65  volatile uint32_t resex : 3;
66  };
67  struct
68  {
69  volatile uint32_t res : 18;
70  volatile uint32_t std : 11;
71  volatile uint32_t resstd : 3;
72  };
73 };
74 
76 {
77  volatile uint32_t w;
78  struct
79  {
80  volatile uint32_t res : 1; // Bit 0 - Reserved
81  volatile uint32_t ext : 29; // Bits 1 - 29 EID
82  };
83  struct
84  {
85  volatile uint32_t ress : 19; // Bits 0, 1-18 Reserved
86  volatile uint32_t std : 11; // StD ID
87  };
88  struct
89  {
90  volatile uint32_t resc : 30; // Bits 0 - 29 Reserved
91  volatile uint32_t ide : 1; // Bit 30 - EID
92  volatile uint32_t rtr : 1; // Bit 31 Remote
93  };
94 };
95 
96 union DataType
97 {
98  volatile uint32_t l;
99  volatile uint32_t h;
100  struct
101  {
102  volatile uint32_t b3 : 8;
103  volatile uint32_t b2 : 8;
104  volatile uint32_t b1 : 8;
105  volatile uint32_t b0 : 8;
106  volatile uint32_t b7 : 8;
107  volatile uint32_t b6 : 8;
108  volatile uint32_t b5 : 8;
109  volatile uint32_t b4 : 8;
110  };
111 };
112 
113 
115 {
119 };
120 
122 {
123  TxMbInactive = 0x8,
124  TxMbAbort = 0x9,
127  TxMbTanswer = 0xE,
129  TxMbNotUsed = 0xF,
130 };
131 
133 {
137 };
138 
140 {
142  kRxMbFull = 0x2,
143  kRxMbEmpty = 0x4,
144  kRxMbOverrun = 0x6,
145  kRxMbBusy = 0x8,
147  kRxMbRanswer = 0xA,
149  kRxMbNotUsed = 0xF,
150 };
151 
152 struct CanType
153 {
154  volatile uint32_t MCR;
155  volatile uint32_t CTRL1;
156  volatile uint32_t TIMER;
158  volatile uint32_t RXMGMASK;
159  volatile uint32_t RX14MASK;
160  volatile uint32_t RX15MASK;
161  volatile uint32_t ECR;
162  volatile uint32_t ESR1;
164  volatile uint32_t IMASK1;
166  volatile uint32_t IFLAG1;
167  volatile uint32_t CTRL2;
168  volatile uint32_t ESR2;
171  volatile uint32_t CRCR;
172  volatile uint32_t RXFGMASK;
173  volatile uint32_t RXFIR;
175  union
176  {
179  } MB[HWMaxMB];
183 };
184 
185 /* Layout of Fifo, filters and Message buffers */
186 
187 enum { FiFo = 0 };
188 /* 0 */
189 /* 1 */
190 /* 2 */
191 /* 3 Fifo */
192 /* 4 */
193 /* 5 */
194 enum { FirstFilter = 6 };
195 /* 6 */
196 /* 7 */
197 /* 8 Filters */
198 /* 9 */
199 enum { NumHWFilters = 16 };
200 enum { NumMBinFiFoAndFilters = 10 };
201 /* 10 */
202 /* 11 */
203 /* 12 */
204 /* 13 Tx Message Buffers */
205 /* 14 */
206 /* 15 */
207 /*-- ----------------------*/
208 
209 enum { TXMBMask = (0b111111 << NumMBinFiFoAndFilters) };
210 
215 /* Address of the CAN registers */
216 
217 CanType* const Can[UAVCAN_KINETIS_NUM_IFACES] =
218 {
219  reinterpret_cast<CanType*>(0x40024000) // CAN0
220 #if UAVCAN_KINETIS_NUM_IFACES > 1
221  ,
222  reinterpret_cast<CanType*>(0x400A4000) // CAN1
223 #endif
224 };
225 
226 /* Module Configuration Register */
227 
228 constexpr unsigned long MCR_MAXMB_SHIFT = (0); /* Bits 0-6: Number of the Last Message Buffer */
229 constexpr unsigned long MCR_MAXMB_MASK = (0x7fU << MCR_MAXMB_SHIFT);
230 /* Bit 7: Reserved */
231 constexpr unsigned long MCR_IDAM_SHIFT = (8); /* Bits 8-9: ID Acceptance Mode */
232 constexpr unsigned long MCR_IDAM_MASK = (3U << MCR_IDAM_SHIFT);
233 constexpr unsigned long MCR_IDAM_FMTA(0U << MCR_IDAM_SHIFT); /* Format A: One full ID */
234 constexpr unsigned long CAN_MCR_IDAM_FMTB(1U << MCR_IDAM_SHIFT); /* Format B: Two full (or partial) IDs */
235 constexpr unsigned long MCR_IDAM_FMTC(2U << MCR_IDAM_SHIFT); /* Format C: Four partial IDs */
236 constexpr unsigned long MCR_IDAM_FMTD(3U << MCR_IDAM_SHIFT); /* Format D: All frames rejected */
237 /* Bits 10-11: Reserved */
238 constexpr unsigned long MCR_AEN = (1U << 12); /* Bit 12: Abort Enable */
239 constexpr unsigned long MCR_LPRIOEN = (1U << 13); /* Bit 13: Local Priority Enable */
240  /* Bits 14-15: Reserved */
241 constexpr unsigned long MCR_IRMQ = (1U << 16); /* Bit 16: Individual Rx Masking and Queue Enable */
242 constexpr unsigned long MCR_SRXDIS = (1U << 17); /* Bit 17: Self Reception Disable */
243  /* Bit 18: Reserved */
244 constexpr unsigned long MCR_WAKSRC = (1U << 19); /* Bit 19: Wake up Source */
245 constexpr unsigned long MCR_LPMACK = (1U << 20); /* Bit 20: Low Power Mode Acknowledge */
246 constexpr unsigned long MCR_WRNEN = (1U << 21); /* Bit 21: Warning Interrupt Enable */
247 constexpr unsigned long MCR_SLFWAK = (1U << 22); /* Bit 22: Self Wake Up */
248 constexpr unsigned long MCR_SUPV = (1U << 23); /* Bit 23: Supervisor Mode */
249 constexpr unsigned long MCR_FRZACK = (1U << 24); /* Bit 24: Freeze Mode Acknowledge */
250 constexpr unsigned long MCR_SOFTRST = (1U << 25); /* Bit 25: Soft Reset */
251 constexpr unsigned long MCR_WAKMSK = (1U << 26); /* Bit 26: Wake Up Interrupt Mask */
252 constexpr unsigned long MCR_NOTRDY = (1U << 27); /* Bit 27: FlexCAN Not Ready */
253 constexpr unsigned long MCR_HALT = (1U << 28); /* Bit 28: Halt FlexCAN */
254 constexpr unsigned long MCR_RFEN = (1U << 29); /* Bit 29: Rx FIFO Enable */
255 constexpr unsigned long MCR_FRZ = (1U << 30); /* Bit 30: Freeze Enable */
256 constexpr unsigned long MCR_MDIS = (1U << 31); /* Bit 31: Module Disable */
257 
258 /* Control 1 Register */
259 
260 constexpr unsigned long CTRL1_ROPSEG_SHIFT = (0); /* Bits 0-2: Propagation Segment */
261 constexpr unsigned long CTRL1_ROPSEG_MASK = (7U << CTRL1_ROPSEG_SHIFT);
262 constexpr unsigned long CTRL1_LOM = (1U << 3); /* Bit 3: Listen-Only Mode */
263 constexpr unsigned long CTRL1_LBUF = (1U << 4); /* Bit 4: Lowest Buffer Transmitted First */
264 constexpr unsigned long CTRL1_TSYN = (1U << 5); /* Bit 5: Timer Sync */
265 constexpr unsigned long CTRL1_BOFFREC = (1U << 6); /* Bit 6: Bus Off Recovery */
266 constexpr unsigned long CTRL1_SMP = (1U << 7); /* Bit 7: CAN Bit Sampling */
267  /* Bits 8-9: Reserved */
268 constexpr unsigned long CTRL1_RWRNMSK = (1U << 10); /* Bit 10: Rx Warning Interrupt Mask */
269 constexpr unsigned long CTRL1_TWRNMSK = (1U << 11); /* Bit 11: Tx Warning Interrupt Mask */
270 constexpr unsigned long CTRL1_LPB = (1U << 12); /* Bit 12: Loop Back Mode */
271 constexpr unsigned long CTRL1_CLKSRC = (1U << 13); /* Bit 13: CAN Engine Clock Source */
272 constexpr unsigned long CTRL1_ERRMSK = (1U << 14); /* Bit 14: Error Mask */
273 constexpr unsigned long CTRL1_BOFFMSK = (1U << 15); /* Bit 15: Bus Off Mask */
274 constexpr unsigned long CTRL1_PSEG2_SHIFT = (16); /* Bits 16-18: Phase Segment 2 */
275 constexpr unsigned long CTRL1_PSEG2_MASK = (7U << CTRL1_PSEG2_SHIFT);
276 constexpr unsigned long CTRL1_PSEG1_SHIFT = (19); /* Bits 19-21: Phase Segment 1 */
277 constexpr unsigned long CTRL1_PSEG1_MASK = (7U << CTRL1_PSEG1_SHIFT);
278 constexpr unsigned long CTRL1_RJW_SHIFT = (22); /* Bits 22-23: Resync Jump Width */
279 constexpr unsigned long CTRL1_RJW_MASK = (3U << CTRL1_RJW_SHIFT);
280 constexpr unsigned long CTRL1_PRESDIV_SHIFT = (24); /* Bits 24-31: Prescaler Division Factor */
281 constexpr unsigned long CTRL1_PRESDIV_MASK = (0xff << CTRL1_PRESDIV_SHIFT);
282 
283 /* Free Running Timer */
284 
285 constexpr unsigned long TIMER_SHIFT = (0U); /* Bits 0-15: Timer value */
286 constexpr unsigned long TIMER_MASK = (0xffffU << TIMER_SHIFT);
287 /* Bits 16-31: Reserved */
288 /* Rx Mailboxes Global Mask Register (32 Rx Mailboxes Global Mask Bits) */
289 
290 constexpr unsigned long RXMGMASK0 = (1U << 0); /* Bit 0: Rx Mailbox 0 Global Mask Bit */
291 constexpr unsigned long RXMGMASK1 = (1U << 1); /* Bit 1: Rx Mailbox 1 Global Mask Bit */
292 constexpr unsigned long RXMGMASK2 = (1U << 2); /* Bit 2: Rx Mailbox 2 Global Mask Bit */
293 constexpr unsigned long RXMGMASK3 = (1U << 3); /* Bit 3: Rx Mailbox 3 Global Mask Bit */
294 constexpr unsigned long RXMGMASK4 = (1U << 4); /* Bit 4: Rx Mailbox 4 Global Mask Bit */
295 constexpr unsigned long RXMGMASK5 = (1U << 5); /* Bit 5: Rx Mailbox 5 Global Mask Bit */
296 constexpr unsigned long RXMGMASK6 = (1U << 6); /* Bit 6: Rx Mailbox 6 Global Mask Bit */
297 constexpr unsigned long RXMGMASK7 = (1U << 7); /* Bit 7: Rx Mailbox 7 Global Mask Bit */
298 constexpr unsigned long RXMGMASK8 = (1U << 8); /* Bit 8: Rx Mailbox 8 Global Mask Bit */
299 constexpr unsigned long RXMGMASK9 = (1U << 9); /* Bit 9: Rx Mailbox 9 Global Mask Bit */
300 constexpr unsigned long RXMGMASK10 = (1U << 10); /* Bit 10: Rx Mailbox 10 Global Mask Bit */
301 constexpr unsigned long RXMGMASK11 = (1U << 11); /* Bit 11: Rx Mailbox 11 Global Mask Bit */
302 constexpr unsigned long RXMGMASK12 = (1U << 12); /* Bit 12: Rx Mailbox 12 Global Mask Bit */
303 constexpr unsigned long RXMGMASK13 = (1U << 13); /* Bit 13: Rx Mailbox 13 Global Mask Bit */
304 constexpr unsigned long RXMGMASK14 = (1U << 14); /* Bit 14: Rx Mailbox 14 Global Mask Bit */
305 constexpr unsigned long RXMGMASK15 = (1U << 15); /* Bit 15: Rx Mailbox 15 Global Mask Bit */
306 constexpr unsigned long RXMGMASK16 = (1U << 16); /* Bit 16: Rx Mailbox 16 Global Mask Bit */
307 constexpr unsigned long RXMGMASK17 = (1U << 17); /* Bit 17: Rx Mailbox 17 Global Mask Bit */
308 constexpr unsigned long RXMGMASK18 = (1U << 18); /* Bit 18: Rx Mailbox 18 Global Mask Bit */
309 constexpr unsigned long RXMGMASK19 = (1U << 19); /* Bit 19: Rx Mailbox 19 Global Mask Bit */
310 constexpr unsigned long RXMGMASK20 = (1U << 20); /* Bit 20: Rx Mailbox 20 Global Mask Bit */
311 constexpr unsigned long RXMGMASK21 = (1U << 21); /* Bit 21: Rx Mailbox 21 Global Mask Bit */
312 constexpr unsigned long RXMGMASK22 = (1U << 22); /* Bit 22: Rx Mailbox 22 Global Mask Bit */
313 constexpr unsigned long RXMGMASK23 = (1U << 23); /* Bit 23: Rx Mailbox 23 Global Mask Bit */
314 constexpr unsigned long RXMGMASK24 = (1U << 24); /* Bit 24: Rx Mailbox 24 Global Mask Bit */
315 constexpr unsigned long RXMGMASK25 = (1U << 25); /* Bit 25: Rx Mailbox 25 Global Mask Bit */
316 constexpr unsigned long RXMGMASK26 = (1U << 26); /* Bit 26: Rx Mailbox 26 Global Mask Bit */
317 constexpr unsigned long RXMGMASK27 = (1U << 27); /* Bit 27: Rx Mailbox 27 Global Mask Bit */
318 constexpr unsigned long RXMGMASK28 = (1U << 28); /* Bit 28: Rx Mailbox 28 Global Mask Bit */
319 constexpr unsigned long RXMGMASK29 = (1U << 29); /* Bit 29: Rx Mailbox 29 Global Mask Bit */
320 constexpr unsigned long RXMGMASK30 = (1U << 30); /* Bit 30: Rx Mailbox 30 Global Mask Bit */
321 constexpr unsigned long RXMGMASK31 = (1U << 31); /* Bit 31: Rx Mailbox 31 Global Mask Bit */
322 
323 /* Rx 14 Mask Register */
324 
325 constexpr unsigned long RXM14MASK0 = (1U << 0); /* Bit 0: Rx Buffer 14 Mask Bit 0 */
326 constexpr unsigned long RXM14MASK1 = (1U << 1); /* Bit 1: Rx Buffer 14 Mask Bit 1 */
327 constexpr unsigned long RXM14MASK2 = (1U << 2); /* Bit 2: Rx Buffer 14 Mask Bit 2 */
328 constexpr unsigned long RXM14MASK3 = (1U << 3); /* Bit 3: Rx Buffer 14 Mask Bit 3 */
329 constexpr unsigned long RXM14MASK4 = (1U << 4); /* Bit 4: Rx Buffer 14 Mask Bit 4 */
330 constexpr unsigned long RXM14MASK5 = (1U << 5); /* Bit 5: Rx Buffer 14 Mask Bit 5 */
331 constexpr unsigned long RXM14MASK6 = (1U << 6); /* Bit 6: Rx Buffer 14 Mask Bit 6 */
332 constexpr unsigned long RXM14MASK7 = (1U << 7); /* Bit 7: Rx Buffer 14 Mask Bit 7 */
333 constexpr unsigned long RXM14MASK8 = (1U << 8); /* Bit 8: Rx Buffer 14 Mask Bit 8 */
334 constexpr unsigned long RXM14MASK9 = (1U << 9); /* Bit 9: Rx Buffer 14 Mask Bit 9 */
335 constexpr unsigned long RXM14MASK10 = (1U << 10); /* Bit 10: Rx Buffer 14 Mask Bit 10 */
336 constexpr unsigned long RXM14MASK11 = (1U << 11); /* Bit 11: Rx Buffer 14 Mask Bit 11 */
337 constexpr unsigned long RXM14MASK12 = (1U << 12); /* Bit 12: Rx Buffer 14 Mask Bit 12 */
338 constexpr unsigned long RXM14MASK13 = (1U << 13); /* Bit 13: Rx Buffer 14 Mask Bit 13 */
339 constexpr unsigned long RXM14MASK14 = (1U << 14); /* Bit 14: Rx Buffer 14 Mask Bit 14 */
340 constexpr unsigned long RXM14MASK15 = (1U << 15); /* Bit 15: Rx Buffer 14 Mask Bit 15 */
341 constexpr unsigned long RXM14MASK16 = (1U << 16); /* Bit 16: Rx Buffer 14 Mask Bit 16 */
342 constexpr unsigned long RXM14MASK17 = (1U << 17); /* Bit 17: Rx Buffer 14 Mask Bit 17 */
343 constexpr unsigned long RXM14MASK18 = (1U << 18); /* Bit 18: Rx Buffer 14 Mask Bit 18 */
344 constexpr unsigned long RXM14MASK19 = (1U << 19); /* Bit 19: Rx Buffer 14 Mask Bit 19 */
345 constexpr unsigned long RXM14MASK20 = (1U << 20); /* Bit 20: Rx Buffer 14 Mask Bit 20 */
346 constexpr unsigned long RXM14MASK21 = (1U << 21); /* Bit 21: Rx Buffer 14 Mask Bit 21 */
347 constexpr unsigned long RXM14MASK22 = (1U << 22); /* Bit 22: Rx Buffer 14 Mask Bit 22 */
348 constexpr unsigned long RXM14MASK23 = (1U << 23); /* Bit 23: Rx Buffer 14 Mask Bit 23 */
349 constexpr unsigned long RXM14MASK24 = (1U << 24); /* Bit 24: Rx Buffer 14 Mask Bit 24 */
350 constexpr unsigned long RXM14MASK25 = (1U << 25); /* Bit 25: Rx Buffer 14 Mask Bit 25 */
351 constexpr unsigned long RXM14MASK26 = (1U << 26); /* Bit 26: Rx Buffer 14 Mask Bit 26 */
352 constexpr unsigned long RXM14MASK27 = (1U << 27); /* Bit 27: Rx Buffer 14 Mask Bit 27 */
353 constexpr unsigned long RXM14MASK28 = (1U << 28); /* Bit 28: Rx Buffer 14 Mask Bit 28 */
354 constexpr unsigned long RXM14MASK29 = (1U << 29); /* Bit 29: Rx Buffer 14 Mask Bit 29 */
355 constexpr unsigned long RXM14MASK30 = (1U << 30); /* Bit 30: Rx Buffer 14 Mask Bit 30 */
356 constexpr unsigned long RXM14MASK31 = (1U << 31); /* Bit 31: Rx Buffer 14 Mask Bit 31 */
357 
358 /* Rx 15 Mask Register */
359 
360 constexpr unsigned long RXM15MASK0 = (1U << 0); /* Bit 0: Rx Buffer 15 Mask Bit 0 */
361 constexpr unsigned long RXM15MASK1 = (1U << 1); /* Bit 1: Rx Buffer 15 Mask Bit 1 */
362 constexpr unsigned long RXM15MASK2 = (1U << 2); /* Bit 2: Rx Buffer 15 Mask Bit 2 */
363 constexpr unsigned long RXM15MASK3 = (1U << 3); /* Bit 3: Rx Buffer 15 Mask Bit 3 */
364 constexpr unsigned long RXM15MASK4 = (1U << 4); /* Bit 4: Rx Buffer 15 Mask Bit 4 */
365 constexpr unsigned long RXM15MASK5 = (1U << 5); /* Bit 5: Rx Buffer 15 Mask Bit 5 */
366 constexpr unsigned long RXM15MASK6 = (1U << 6); /* Bit 6: Rx Buffer 15 Mask Bit 6 */
367 constexpr unsigned long RXM15MASK7 = (1U << 7); /* Bit 7: Rx Buffer 15 Mask Bit 7 */
368 constexpr unsigned long RXM15MASK8 = (1U << 8); /* Bit 8: Rx Buffer 15 Mask Bit 8 */
369 constexpr unsigned long RXM15MASK9 = (1U << 9); /* Bit 9: Rx Buffer 15 Mask Bit 9 */
370 constexpr unsigned long RXM15MASK10 = (1U << 10); /* Bit 10: Rx Buffer 15 Mask Bit 10 */
371 constexpr unsigned long RXM15MASK11 = (1U << 11); /* Bit 11: Rx Buffer 15 Mask Bit 11 */
372 constexpr unsigned long RXM15MASK12 = (1U << 12); /* Bit 12: Rx Buffer 15 Mask Bit 12 */
373 constexpr unsigned long RXM15MASK13 = (1U << 13); /* Bit 13: Rx Buffer 15 Mask Bit 13 */
374 constexpr unsigned long RXM15MASK14 = (1U << 14); /* Bit 14: Rx Buffer 15 Mask Bit 14 */
375 constexpr unsigned long RXM15MASK15 = (1U << 15); /* Bit 15: Rx Buffer 15 Mask Bit 15 */
376 constexpr unsigned long RXM15MASK16 = (1U << 16); /* Bit 16: Rx Buffer 15 Mask Bit 16 */
377 constexpr unsigned long RXM15MASK17 = (1U << 17); /* Bit 17: Rx Buffer 15 Mask Bit 17 */
378 constexpr unsigned long RXM15MASK18 = (1U << 18); /* Bit 18: Rx Buffer 15 Mask Bit 18 */
379 constexpr unsigned long RXM15MASK19 = (1U << 19); /* Bit 19: Rx Buffer 15 Mask Bit 19 */
380 constexpr unsigned long RXM15MASK20 = (1U << 20); /* Bit 20: Rx Buffer 15 Mask Bit 20 */
381 constexpr unsigned long RXM15MASK21 = (1U << 21); /* Bit 21: Rx Buffer 15 Mask Bit 21 */
382 constexpr unsigned long RXM15MASK22 = (1U << 22); /* Bit 22: Rx Buffer 15 Mask Bit 22 */
383 constexpr unsigned long RXM15MASK23 = (1U << 23); /* Bit 23: Rx Buffer 15 Mask Bit 23 */
384 constexpr unsigned long RXM15MASK24 = (1U << 24); /* Bit 24: Rx Buffer 15 Mask Bit 24 */
385 constexpr unsigned long RXM15MASK25 = (1U << 25); /* Bit 25: Rx Buffer 15 Mask Bit 25 */
386 constexpr unsigned long RXM15MASK26 = (1U << 26); /* Bit 26: Rx Buffer 15 Mask Bit 26 */
387 constexpr unsigned long RXM15MASK27 = (1U << 27); /* Bit 27: Rx Buffer 15 Mask Bit 27 */
388 constexpr unsigned long RXM15MASK28 = (1U << 28); /* Bit 28: Rx Buffer 15 Mask Bit 28 */
389 constexpr unsigned long RXM15MASK29 = (1U << 29); /* Bit 29: Rx Buffer 15 Mask Bit 29 */
390 constexpr unsigned long RXM15MASK30 = (1U << 30); /* Bit 30: Rx Buffer 15 Mask Bit 30 */
391 constexpr unsigned long RXM15MASK31 = (1U << 31); /* Bit 31: Rx Buffer 15 Mask Bit 31 */
392 
393 /* Error Counter */
394 
395 constexpr unsigned long ECR_TXERRCNT_SHIFT = (0U); /* Bits 0-7: Transmit Error Counter */
396 constexpr unsigned long ECR_TXERRCNT_MASK = (0xff << ECR_TXERRCNT_SHIFT);
397 constexpr unsigned long ECR_RXERRCNT_SHIFT = (8); /* Bits 8-15: Receive Error Counter */
398 constexpr unsigned long ECR_RXERRCNT_MASK = (0xff << ECR_RXERRCNT_SHIFT);
399 /* Bits 16-31: Reserved */
400 
401 /* Error and Status 1 Register */
402 
403 constexpr unsigned long ESR1_WAKINT = (1U << 0); /* Bit 0: Wake-Up Interrupt */
404 constexpr unsigned long ESR1_ERRINT = (1U << 1); /* Bit 1: Error Interrupt */
405 constexpr unsigned long ESR1_BOFFINT = (1U << 2); /* Bit 2: 'Bus Off' Interrupt */
406 constexpr unsigned long ESR1_RX = (1U << 3); /* Bit 3: FlexCAN in Reception */
407 constexpr unsigned long ESR1_FLTCONF_SHIFT = (4U); /* Bits 4-5: Fault Confinement State */
408 constexpr unsigned long ESR1_FLTCONF_MASK = (3U << ESR1_FLTCONF_SHIFT);
409 constexpr unsigned long ESR1_FLTCONF_ACTV = (0U << ESR1_FLTCONF_SHIFT); /* Error Active */
410 constexpr unsigned long ESR1_FLTCONF_PASV = (1U << ESR1_FLTCONF_SHIFT); /* Error Passive */
411 constexpr unsigned long ESR1_FLTCONF_OFF = (2U << ESR1_FLTCONF_SHIFT); /* Bus Off */
412 constexpr unsigned long ESR1_TX = (1U << 6); /* Bit 6: FlexCAN in Transmission */
413 constexpr unsigned long ESR1_IDLE = (1U << 7); /* Bit 7: CAN bus is in IDLE state */
414 constexpr unsigned long ESR1_RXWRN = (1U << 8); /* Bit 8: Rx Error Warning */
415 constexpr unsigned long ESR1_TXWRN = (1U << 9); /* Bit 9: TX Error Warning */
416 constexpr unsigned long ESR1_STFERR = (1U << 10); /* Bit 10: Stuffing Error */
417 constexpr unsigned long ESR1_FRMERR = (1U << 11); /* Bit 11: Form Error */
418 constexpr unsigned long ESR1_CRCERR = (1U << 12); /* Bit 12: Cyclic Redundancy Check Error */
419 constexpr unsigned long ESR1_ACKERR = (1U << 13); /* Bit 13: Acknowledge Error */
420 constexpr unsigned long ESR1_BIT0ERR = (1U << 14); /* Bit 14: Bit0 Error */
421 constexpr unsigned long ESR1_BIT1ERR = (1U << 15); /* Bit 15: Bit1 Error */
422 constexpr unsigned long ESR1_RWRNINT = (1U << 16); /* Bit 16: Rx Warning Interrupt Flag */
423 constexpr unsigned long ESR1_TWRNINT = (1U << 17); /* Bit 17: Tx Warning Interrupt Flag */
424 constexpr unsigned long ESR1_SYNCH = (1U << 18); /* Bit 18: CAN Synchronization Status */
425  /* Bits 19-31: Reserved */
426 /* Interrupt Masks 2 Register */
427 
428 constexpr unsigned long CAN_IMASK2_0 = (1U << 0); /* Bit 0: Buffer MB0 Mask */
429 constexpr unsigned long CAN_IMASK2_1 = (1U << 1); /* Bit 1: Buffer MB1 Mask */
430 constexpr unsigned long CAN_IMASK2_2 = (1U << 2); /* Bit 2: Buffer MB2 Mask */
431 constexpr unsigned long CAN_IMASK2_3 = (1U << 3); /* Bit 3: Buffer MB3 Mask */
432 constexpr unsigned long CAN_IMASK2_4 = (1U << 4); /* Bit 4: Buffer MB4 Mask */
433 constexpr unsigned long CAN_IMASK2_5 = (1U << 5); /* Bit 5: Buffer MB5 Mask */
434 constexpr unsigned long CAN_IMASK2_6 = (1U << 6); /* Bit 6: Buffer MB6 Mask */
435 constexpr unsigned long CAN_IMASK2_7 = (1U << 7); /* Bit 7: Buffer MB7 Mask */
436 constexpr unsigned long CAN_IMASK2_8 = (1U << 8); /* Bit 8: Buffer MB8 Mask */
437 constexpr unsigned long CAN_IMASK2_9 = (1U << 9); /* Bit 9: Buffer MB9 Mask */
438 constexpr unsigned long CAN_IMASK2_10 = (1U << 10); /* Bit 10: Buffer MB10 Mask */
439 constexpr unsigned long CAN_IMASK2_11 = (1U << 11); /* Bit 11: Buffer MB11 Mask */
440 constexpr unsigned long CAN_IMASK2_12 = (1U << 12); /* Bit 12: Buffer MB12 Mask */
441 constexpr unsigned long CAN_IMASK2_13 = (1U << 13); /* Bit 13: Buffer MB13 Mask */
442 constexpr unsigned long CAN_IMASK2_14 = (1U << 14); /* Bit 14: Buffer MB14 Mask */
443 constexpr unsigned long CAN_IMASK2_15 = (1U << 15); /* Bit 15: Buffer MB15 Mask */
444 constexpr unsigned long CAN_IMASK2_16 = (1U << 16); /* Bit 16: Buffer MB16 Mask */
445 constexpr unsigned long CAN_IMASK2_17 = (1U << 17); /* Bit 17: Buffer MB17 Mask */
446 constexpr unsigned long CAN_IMASK2_18 = (1U << 18); /* Bit 18: Buffer MB18 Mask */
447 constexpr unsigned long CAN_IMASK2_19 = (1U << 19); /* Bit 19: Buffer MB19 Mask */
448 constexpr unsigned long CAN_IMASK2_20 = (1U << 20); /* Bit 20: Buffer MB20 Mask */
449 constexpr unsigned long CAN_IMASK2_21 = (1U << 21); /* Bit 21: Buffer MB21 Mask */
450 constexpr unsigned long CAN_IMASK2_22 = (1U << 22); /* Bit 22: Buffer MB22 Mask */
451 constexpr unsigned long CAN_IMASK2_23 = (1U << 23); /* Bit 23: Buffer MB23 Mask */
452 constexpr unsigned long CAN_IMASK2_24 = (1U << 24); /* Bit 24: Buffer MB24 Mask */
453 constexpr unsigned long CAN_IMASK2_25 = (1U << 25); /* Bit 25: Buffer MB25 Mask */
454 constexpr unsigned long CAN_IMASK2_26 = (1U << 26); /* Bit 26: Buffer MB26 Mask */
455 constexpr unsigned long CAN_IMASK2_27 = (1U << 27); /* Bit 27: Buffer MB27 Mask */
456 constexpr unsigned long CAN_IMASK2_28 = (1U << 28); /* Bit 28: Buffer MB28 Mask */
457 constexpr unsigned long CAN_IMASK2_29 = (1U << 29); /* Bit 29: Buffer MB29 Mask */
458 constexpr unsigned long CAN_IMASK2_30 = (1U << 30); /* Bit 30: Buffer MB30 Mask */
459 constexpr unsigned long CAN_IMASK2_31 = (1U << 31); /* Bit 31: Buffer MB31 Mask */
460 
461 /* Interrupt Masks 1 Register */
462 
463 constexpr unsigned long CAN_IMASK1_0 = (1U << 0); /* Bit 0: Buffer MB0 Mask */
464 constexpr unsigned long CAN_IMASK1_1 = (1U << 1); /* Bit 1: Buffer MB1 Mask */
465 constexpr unsigned long CAN_IMASK1_2 = (1U << 2); /* Bit 2: Buffer MB2 Mask */
466 constexpr unsigned long CAN_IMASK1_3 = (1U << 3); /* Bit 3: Buffer MB3 Mask */
467 constexpr unsigned long CAN_IMASK1_4 = (1U << 4); /* Bit 4: Buffer MB4 Mask */
468 constexpr unsigned long CAN_IMASK1_5 = (1U << 5); /* Bit 5: Buffer MB5 Mask */
469 constexpr unsigned long CAN_IMASK1_6 = (1U << 6); /* Bit 6: Buffer MB6 Mask */
470 constexpr unsigned long CAN_IMASK1_7 = (1U << 7); /* Bit 7: Buffer MB7 Mask */
471 constexpr unsigned long CAN_IMASK1_8 = (1U << 8); /* Bit 8: Buffer MB8 Mask */
472 constexpr unsigned long CAN_IMASK1_9 = (1U << 9); /* Bit 9: Buffer MB9 Mask */
473 constexpr unsigned long CAN_IMASK1_10 = (1U << 10); /* Bit 10: Buffer MB10 Mask */
474 constexpr unsigned long CAN_IMASK1_11 = (1U << 11); /* Bit 11: Buffer MB11 Mask */
475 constexpr unsigned long CAN_IMASK1_12 = (1U << 12); /* Bit 12: Buffer MB12 Mask */
476 constexpr unsigned long CAN_IMASK1_13 = (1U << 13); /* Bit 13: Buffer MB13 Mask */
477 constexpr unsigned long CAN_IMASK1_14 = (1U << 14); /* Bit 14: Buffer MB14 Mask */
478 constexpr unsigned long CAN_IMASK1_15 = (1U << 15); /* Bit 15: Buffer MB15 Mask */
479 constexpr unsigned long CAN_IMASK1_16 = (1U << 16); /* Bit 16: Buffer MB16 Mask */
480 constexpr unsigned long CAN_IMASK1_17 = (1U << 17); /* Bit 17: Buffer MB17 Mask */
481 constexpr unsigned long CAN_IMASK1_18 = (1U << 18); /* Bit 18: Buffer MB18 Mask */
482 constexpr unsigned long CAN_IMASK1_19 = (1U << 19); /* Bit 19: Buffer MB19 Mask */
483 constexpr unsigned long CAN_IMASK1_20 = (1U << 20); /* Bit 20: Buffer MB20 Mask */
484 constexpr unsigned long CAN_IMASK1_21 = (1U << 21); /* Bit 21: Buffer MB21 Mask */
485 constexpr unsigned long CAN_IMASK1_22 = (1U << 22); /* Bit 22: Buffer MB22 Mask */
486 constexpr unsigned long CAN_IMASK1_23 = (1U << 23); /* Bit 23: Buffer MB23 Mask */
487 constexpr unsigned long CAN_IMASK1_24 = (1U << 24); /* Bit 24: Buffer MB24 Mask */
488 constexpr unsigned long CAN_IMASK1_25 = (1U << 25); /* Bit 25: Buffer MB25 Mask */
489 constexpr unsigned long CAN_IMASK1_26 = (1U << 26); /* Bit 26: Buffer MB26 Mask */
490 constexpr unsigned long CAN_IMASK1_27 = (1U << 27); /* Bit 27: Buffer MB27 Mask */
491 constexpr unsigned long CAN_IMASK1_28 = (1U << 28); /* Bit 28: Buffer MB28 Mask */
492 constexpr unsigned long CAN_IMASK1_29 = (1U << 29); /* Bit 29: Buffer MB29 Mask */
493 constexpr unsigned long CAN_IMASK1_30 = (1U << 30); /* Bit 30: Buffer MB30 Mask */
494 constexpr unsigned long CAN_IMASK1_31 = (1U << 31); /* Bit 31: Buffer MB31 Mask */
495 
496 /* Interrupt Flags 2 Register */
497 
498 constexpr unsigned long CAN_IFLAG2_0 = (1U << 0); /* Bit 0: Buffer MB0 Interrupt */
499 constexpr unsigned long CAN_IFLAG2_1 = (1U << 1); /* Bit 1: Buffer MB1 Interrupt */
500 constexpr unsigned long CAN_IFLAG2_2 = (1U << 2); /* Bit 2: Buffer MB2 Interrupt */
501 constexpr unsigned long CAN_IFLAG2_3 = (1U << 3); /* Bit 3: Buffer MB3 Interrupt */
502 constexpr unsigned long CAN_IFLAG2_4 = (1U << 4); /* Bit 4: Buffer MB4 Interrupt */
503 constexpr unsigned long CAN_IFLAG2_5 = (1U << 5); /* Bit 5: Buffer MB5 Interrupt */
504 constexpr unsigned long CAN_IFLAG2_6 = (1U << 6); /* Bit 6: Buffer MB6 Interrupt */
505 constexpr unsigned long CAN_IFLAG2_7 = (1U << 7); /* Bit 7: Buffer MB7 Interrupt */
506 constexpr unsigned long CAN_IFLAG2_8 = (1U << 8); /* Bit 8: Buffer MB8 Interrupt */
507 constexpr unsigned long CAN_IFLAG2_9 = (1U << 9); /* Bit 9: Buffer MB9 Interrupt */
508 constexpr unsigned long CAN_IFLAG2_10 = (1U << 10); /* Bit 10: Buffer MB10 Interrupt */
509 constexpr unsigned long CAN_IFLAG2_11 = (1U << 11); /* Bit 11: Buffer MB11 Interrupt */
510 constexpr unsigned long CAN_IFLAG2_12 = (1U << 12); /* Bit 12: Buffer MB12 Interrupt */
511 constexpr unsigned long CAN_IFLAG2_13 = (1U << 13); /* Bit 13: Buffer MB13 Interrupt */
512 constexpr unsigned long CAN_IFLAG2_14 = (1U << 14); /* Bit 14: Buffer MB14 Interrupt */
513 constexpr unsigned long CAN_IFLAG2_15 = (1U << 15); /* Bit 15: Buffer MB15 Interrupt */
514 constexpr unsigned long CAN_IFLAG2_16 = (1U << 16); /* Bit 16: Buffer MB16 Interrupt */
515 constexpr unsigned long CAN_IFLAG2_17 = (1U << 17); /* Bit 17: Buffer MB17 Interrupt */
516 constexpr unsigned long CAN_IFLAG2_18 = (1U << 18); /* Bit 18: Buffer MB18 Interrupt */
517 constexpr unsigned long CAN_IFLAG2_19 = (1U << 19); /* Bit 19: Buffer MB19 Interrupt */
518 constexpr unsigned long CAN_IFLAG2_20 = (1U << 20); /* Bit 20: Buffer MB20 Interrupt */
519 constexpr unsigned long CAN_IFLAG2_21 = (1U << 21); /* Bit 21: Buffer MB21 Interrupt */
520 constexpr unsigned long CAN_IFLAG2_22 = (1U << 22); /* Bit 22: Buffer MB22 Interrupt */
521 constexpr unsigned long CAN_IFLAG2_23 = (1U << 23); /* Bit 23: Buffer MB23 Interrupt */
522 constexpr unsigned long CAN_IFLAG2_24 = (1U << 24); /* Bit 24: Buffer MB24 Interrupt */
523 constexpr unsigned long CAN_IFLAG2_25 = (1U << 25); /* Bit 25: Buffer MB25 Interrupt */
524 constexpr unsigned long CAN_IFLAG2_26 = (1U << 26); /* Bit 26: Buffer MB26 Interrupt */
525 constexpr unsigned long CAN_IFLAG2_27 = (1U << 27); /* Bit 27: Buffer MB27 Interrupt */
526 constexpr unsigned long CAN_IFLAG2_28 = (1U << 28); /* Bit 28: Buffer MB28 Interrupt */
527 constexpr unsigned long CAN_IFLAG2_29 = (1U << 29); /* Bit 29: Buffer MB29 Interrupt */
528 constexpr unsigned long CAN_IFLAG2_30 = (1U << 30); /* Bit 30: Buffer MB30 Interrupt */
529 constexpr unsigned long CAN_IFLAG2_31 = (1U << 31); /* Bit 31: Buffer MB31 Interrupt */
530 
531 /* Interrupt Flags 1 Register */
532 
533 constexpr unsigned long CAN_IFLAG1_0 = (1U << 0); /* Bit 0: Buffer MB0 Interrupt */
534 constexpr unsigned long CAN_IFLAG1_1 = (1U << 1); /* Bit 1: Buffer MB1 Interrupt */
535 constexpr unsigned long CAN_IFLAG1_2 = (1U << 2); /* Bit 2: Buffer MB2 Interrupt */
536 constexpr unsigned long CAN_IFLAG1_3 = (1U << 3); /* Bit 3: Buffer MB3 Interrupt */
537 constexpr unsigned long CAN_IFLAG1_4 = (1U << 4); /* Bit 4: Buffer MB4 Interrupt */
538 constexpr unsigned long CAN_IFLAG1_5 = (1U << 5); /* Bit 5: Buffer MB5 Interrupt */
539 constexpr unsigned long CAN_FIFO_NE = CAN_IFLAG1_5; /* Bit 5: Fifo almost Not empty Interrupt */
540 constexpr unsigned long CAN_IFLAG1_6 = (1U << 6); /* Bit 6: Buffer MB6 Interrupt */
541 constexpr unsigned long CAN_FIFO_WARN = CAN_IFLAG1_6; /* Bit 6: Fifo almost full Interrupt */
542 constexpr unsigned long CAN_IFLAG1_7 = (1U << 7); /* Bit 7: Buffer MB7 Interrupt */
543 constexpr unsigned long CAN_FIFO_OV = CAN_IFLAG1_7; /* Bit 7: Fifo Overflowed Interrupt */
544 constexpr unsigned long CAN_IFLAG1_8 = (1U << 8); /* Bit 8: Buffer MB8 Interrupt */
545 constexpr unsigned long CAN_IFLAG1_9 = (1U << 9); /* Bit 9: Buffer MB9 Interrupt */
546 constexpr unsigned long CAN_IFLAG1_10 = (1U << 10); /* Bit 10: Buffer MB10 Interrupt */
547 constexpr unsigned long CAN_IFLAG1_11 = (1U << 11); /* Bit 11: Buffer MB11 Interrupt */
548 constexpr unsigned long CAN_IFLAG1_12 = (1U << 12); /* Bit 12: Buffer MB12 Interrupt */
549 constexpr unsigned long CAN_IFLAG1_13 = (1U << 13); /* Bit 13: Buffer MB13 Interrupt */
550 constexpr unsigned long CAN_IFLAG1_14 = (1U << 14); /* Bit 14: Buffer MB14 Interrupt */
551 constexpr unsigned long CAN_IFLAG1_15 = (1U << 15); /* Bit 15: Buffer MB15 Interrupt */
552 constexpr unsigned long CAN_IFLAG1_16 = (1U << 16); /* Bit 16: Buffer MB16 Interrupt */
553 constexpr unsigned long CAN_IFLAG1_17 = (1U << 17); /* Bit 17: Buffer MB17 Interrupt */
554 constexpr unsigned long CAN_IFLAG1_18 = (1U << 18); /* Bit 18: Buffer MB18 Interrupt */
555 constexpr unsigned long CAN_IFLAG1_19 = (1U << 19); /* Bit 19: Buffer MB19 Interrupt */
556 constexpr unsigned long CAN_IFLAG1_20 = (1U << 20); /* Bit 20: Buffer MB20 Interrupt */
557 constexpr unsigned long CAN_IFLAG1_21 = (1U << 21); /* Bit 21: Buffer MB21 Interrupt */
558 constexpr unsigned long CAN_IFLAG1_22 = (1U << 22); /* Bit 22: Buffer MB22 Interrupt */
559 constexpr unsigned long CAN_IFLAG1_23 = (1U << 23); /* Bit 23: Buffer MB23 Interrupt */
560 constexpr unsigned long CAN_IFLAG1_24 = (1U << 24); /* Bit 24: Buffer MB24 Interrupt */
561 constexpr unsigned long CAN_IFLAG1_25 = (1U << 25); /* Bit 25: Buffer MB25 Interrupt */
562 constexpr unsigned long CAN_IFLAG1_26 = (1U << 26); /* Bit 26: Buffer MB26 Interrupt */
563 constexpr unsigned long CAN_IFLAG1_27 = (1U << 27); /* Bit 27: Buffer MB27 Interrupt */
564 constexpr unsigned long CAN_IFLAG1_28 = (1U << 28); /* Bit 28: Buffer MB28 Interrupt */
565 constexpr unsigned long CAN_IFLAG1_29 = (1U << 29); /* Bit 29: Buffer MB29 Interrupt */
566 constexpr unsigned long CAN_IFLAG1_30 = (1U << 30); /* Bit 30: Buffer MB30 Interrupt */
567 constexpr unsigned long CAN_IFLAG1_31 = (1U << 31); /* Bit 31: Buffer MB31 Interrupt */
568 
569 /* Control 2 Register */
570 /* Bits 0-15: Reserved */
571 constexpr unsigned long CTRL2_EACEN = (1U << 16); /* Bit 16: Entire Frame Arbitration Field Comparison
572  Enable (Rx) */
573 constexpr unsigned long CTRL2_RRS = (1U << 17); /* Bit 17: Remote Request Storing */
574 constexpr unsigned long CTRL2_MRP = (1U << 18); /* Bit 18: Mailboxes Reception Priority */
575 constexpr unsigned long CTRL2_TASD_SHIFT = (19); /* Bits 19-23: Tx Arbitration Start Delay */
576 constexpr unsigned long CTRL2_TASD_MASK = (31U << CTRL2_TASD_SHIFT);
577 constexpr unsigned long CTRL2_RFFN_SHIFT = (24); /* Bits 24-27: Number of Rx FIFO Filters */
578 constexpr unsigned long CTRL2_RFFN_MASK(15U << CTRL2_RFFN_SHIFT);
579 constexpr unsigned long CTRL2_RFFN_8MB(0U << CTRL2_RFFN_SHIFT);
580 constexpr unsigned long CTRL2_RFFN_16MB(1U << CTRL2_RFFN_SHIFT);
581 constexpr unsigned long CTRL2_RFFN_24MB(2U << CTRL2_RFFN_SHIFT);
582 constexpr unsigned long CTRL2_RFFN_32MB(3U << CTRL2_RFFN_SHIFT);
583 constexpr unsigned long CTRL2_RFFN_40MB(4U << CTRL2_RFFN_SHIFT);
584 constexpr unsigned long CTRL2_RFFN_48MB(5U << CTRL2_RFFN_SHIFT);
585 constexpr unsigned long CTRL2_RFFN_56MB(6U << CTRL2_RFFN_SHIFT);
586 constexpr unsigned long CTRL2_RFFN_64MB(7U << CTRL2_RFFN_SHIFT);
587 constexpr unsigned long CTRL2_RFFN_72MB(8U << CTRL2_RFFN_SHIFT);
588 constexpr unsigned long CTRL2_RFFN_80MB(9U << CTRL2_RFFN_SHIFT);
589 constexpr unsigned long CTRL2_RFFN_88MB(10U << CTRL2_RFFN_SHIFT);
590 constexpr unsigned long CTRL2_RFFN_96MB(11U << CTRL2_RFFN_SHIFT);
591 constexpr unsigned long CTRL2_RFFN_104MB(12U << CTRL2_RFFN_SHIFT);
592 constexpr unsigned long CTRL2_RFFN_112MB(13U << CTRL2_RFFN_SHIFT);
593 constexpr unsigned long CTRL2_RFFN_120MB(14U << CTRL2_RFFN_SHIFT);
594 constexpr unsigned long CTRL2_RFFN_128MB(15U << CTRL2_RFFN_SHIFT);
595 constexpr unsigned long CTRL2_WRMFRZ = (1U << 28U); /* Bit 28: Write-Access to Memory in Freeze mode */
596  /* Bits 29-31: Reserved */
597 
598 /* Error and Status 2 Register */
599 /* Bits 0-12: Reserved */
600 constexpr unsigned long ESR2_IMB = (1U << 13); /* Bit 13: Inactive Mailbox */
601 constexpr unsigned long ESR2_VPS = (1U << 14); /* Bit 14: Valid Priority Status */
602  /* Bit 15: Reserved */
603 constexpr unsigned long ESR2_LPTM_SHIFT = (16); /* Bits 16-22: Lowest Priority Tx Mailbox */
604 constexpr unsigned long ESR2_LPTM_MASK = (0x7fU << ESR2_LPTM_SHIFT);
605 /* Bits 23-31: Reserved */
606 /* CRC Register */
607 
608 constexpr unsigned long CRCR_TXCRC_SHIFT = (0U); /* Bits 0-14: CRC Transmitted */
609 constexpr unsigned long CRCR_TXCRC_MASK = (0x7fffU << CRCR_TXCRC_SHIFT); /* Rx FIFO Global Mask Register (32 Rx
610  FIFO Global Mask Bits) */
611 /* Bits 23-31: Reserved */
612 constexpr unsigned long CRCR_MBCRC_SHIFT = (16); /* Bits 16-22: CRC Mailbox */
613 constexpr unsigned long CRCR_MBCRC_MASK = (0x7fU << CRCR_MBCRC_SHIFT);
614 /* Bit 15: Reserved */
615 
616 /* Rx FIFO Information Register */
617 /* Bits 9-31: Reserved */
618 constexpr unsigned long RXFIR_IDHIT_SHIFT = (0); /* Bits 0-8: Identifier Acceptance Filter Hit Indicator
619  */
620 constexpr unsigned long RXFIR_IDHIT_MASK = (0x1ffU << RXFIR_IDHIT_SHIFT);
621 
622 /* Rn Individual Mask Registers */
623 
624 constexpr unsigned long RXIMR0 = (1U << 0); /* Bit 0: Individual Mask Bits */
625 constexpr unsigned long RXIMR1 = (1U << 1); /* Bit 1: Individual Mask Bits */
626 constexpr unsigned long RXIMR2 = (1U << 2); /* Bit 2: Individual Mask Bits */
627 constexpr unsigned long RXIMR3 = (1U << 3); /* Bit 3: Individual Mask Bits */
628 constexpr unsigned long RXIMR4 = (1U << 4); /* Bit 4: Individual Mask Bits */
629 constexpr unsigned long RXIMR5 = (1U << 5); /* Bit 5: Individual Mask Bits */
630 constexpr unsigned long RXIMR6 = (1U << 6); /* Bit 6: Individual Mask Bits */
631 constexpr unsigned long RXIMR7 = (1U << 7); /* Bit 7: Individual Mask Bits */
632 constexpr unsigned long RXIMR8 = (1U << 8); /* Bit 8: Individual Mask Bits */
633 constexpr unsigned long RXIMR9 = (1U << 9); /* Bit 9: Individual Mask Bits */
634 constexpr unsigned long RXIMR10 = (1U << 10); /* Bit 10: Individual Mask Bits */
635 constexpr unsigned long RXIMR11 = (1U << 11); /* Bit 11: Individual Mask Bits */
636 constexpr unsigned long RXIMR12 = (1U << 12); /* Bit 12: Individual Mask Bits */
637 constexpr unsigned long RXIMR13 = (1U << 13); /* Bit 13: Individual Mask Bits */
638 constexpr unsigned long RXIMR14 = (1U << 14); /* Bit 14: Individual Mask Bits */
639 constexpr unsigned long RXIMR15 = (1U << 15); /* Bit 15: Individual Mask Bits */
640 constexpr unsigned long RXIMR16 = (1U << 16); /* Bit 16: Individual Mask Bits */
641 constexpr unsigned long RXIMR17 = (1U << 17); /* Bit 17: Individual Mask Bits */
642 constexpr unsigned long RXIMR18 = (1U << 18); /* Bit 18: Individual Mask Bits */
643 constexpr unsigned long RXIMR19 = (1U << 19); /* Bit 19: Individual Mask Bits */
644 constexpr unsigned long RXIMR20 = (1U << 20); /* Bit 20: Individual Mask Bits */
645 constexpr unsigned long RXIMR21 = (1U << 21); /* Bit 21: Individual Mask Bits */
646 constexpr unsigned long RXIMR22 = (1U << 22); /* Bit 22: Individual Mask Bits */
647 constexpr unsigned long RXIMR23 = (1U << 23); /* Bit 23: Individual Mask Bits */
648 constexpr unsigned long RXIMR24 = (1U << 24); /* Bit 24: Individual Mask Bits */
649 constexpr unsigned long RXIMR25 = (1U << 25); /* Bit 25: Individual Mask Bits */
650 constexpr unsigned long RXIMR26 = (1U << 26); /* Bit 26: Individual Mask Bits */
651 constexpr unsigned long RXIMR27 = (1U << 27); /* Bit 27: Individual Mask Bits */
652 constexpr unsigned long RXIMR28 = (1U << 28); /* Bit 28: Individual Mask Bits */
653 constexpr unsigned long RXIMR29 = (1U << 29); /* Bit 29: Individual Mask Bits */
654 constexpr unsigned long RXIMR30 = (1U << 30); /* Bit 30: Individual Mask Bits */
655 constexpr unsigned long RXIMR31 = (1U << 31); /* Bit 31: Individual Mask Bits */
656 }
657 }
658 
659 #if UAVCAN_CPP_VERSION < UAVCAN_CPP11
660 # undef constexpr
661 #endif
uavcan_kinetis::flexcan::CAN_IFLAG1_30
constexpr unsigned long CAN_IFLAG1_30
Definition: flexcan.hpp:566
uavcan_kinetis::flexcan::CAN_IFLAG1_12
constexpr unsigned long CAN_IFLAG1_12
Definition: flexcan.hpp:548
uavcan_kinetis::flexcan::CAN_IMASK1_14
constexpr unsigned long CAN_IMASK1_14
Definition: flexcan.hpp:477
uavcan_kinetis::flexcan::CanType::RXIMR
volatile FilterType RXIMR[HWMaxMB]
Definition: flexcan.hpp:181
uavcan_kinetis::flexcan::CanType::RESERVED6
uint32_t RESERVED6[448]
Definition: flexcan.hpp:180
uavcan_kinetis::flexcan::CAN_IMASK1_7
constexpr unsigned long CAN_IMASK1_7
Definition: flexcan.hpp:470
uavcan_kinetis::flexcan::FilterType::ress
volatile uint32_t ress
Definition: flexcan.hpp:85
uavcan_kinetis::flexcan::FilterType::w
volatile uint32_t w
Definition: flexcan.hpp:77
uavcan_kinetis::flexcan::RXM15MASK22
constexpr unsigned long RXM15MASK22
Definition: flexcan.hpp:382
uavcan_kinetis::flexcan::RXMGMASK7
constexpr unsigned long RXMGMASK7
Definition: flexcan.hpp:297
uavcan_kinetis::flexcan::ESR1_FLTCONF_MASK
constexpr unsigned long ESR1_FLTCONF_MASK
Definition: flexcan.hpp:408
uavcan_kinetis::flexcan::CAN_IMASK2_21
constexpr unsigned long CAN_IMASK2_21
Definition: flexcan.hpp:449
uavcan_kinetis::flexcan::CTRL1_RJW_SHIFT
constexpr unsigned long CTRL1_RJW_SHIFT
Definition: flexcan.hpp:278
uavcan_kinetis::flexcan::RXM15MASK27
constexpr unsigned long RXM15MASK27
Definition: flexcan.hpp:387
uavcan_kinetis::flexcan::RXM14MASK28
constexpr unsigned long RXM14MASK28
Definition: flexcan.hpp:353
uavcan_kinetis::flexcan::DataType::l
volatile uint32_t l
Definition: flexcan.hpp:98
uavcan_kinetis::flexcan::ECR_TXERRCNT_SHIFT
constexpr unsigned long ECR_TXERRCNT_SHIFT
Definition: flexcan.hpp:395
uavcan_kinetis::flexcan::MessageBufferType
Definition: flexcan.hpp:114
uavcan_kinetis::flexcan::Can
CanType *const Can[UAVCAN_KINETIS_NUM_IFACES]
Definition: flexcan.hpp:217
uavcan_kinetis::flexcan::CAN_IFLAG1_9
constexpr unsigned long CAN_IFLAG1_9
Definition: flexcan.hpp:545
uavcan_kinetis::flexcan::CAN_IFLAG2_4
constexpr unsigned long CAN_IFLAG2_4
Definition: flexcan.hpp:502
uavcan_kinetis::flexcan::MCR_MDIS
constexpr unsigned long MCR_MDIS
Definition: flexcan.hpp:256
uavcan_kinetis::flexcan::ESR1_FLTCONF_OFF
constexpr unsigned long ESR1_FLTCONF_OFF
Definition: flexcan.hpp:411
uavcan_kinetis::flexcan::RXM14MASK23
constexpr unsigned long RXM14MASK23
Definition: flexcan.hpp:348
uavcan_kinetis::flexcan::CAN_IFLAG1_10
constexpr unsigned long CAN_IFLAG1_10
Definition: flexcan.hpp:546
uavcan_kinetis::flexcan::MBcsType::code
volatile uint32_t code
Definition: flexcan.hpp:40
uavcan_kinetis::flexcan::MCR_AEN
constexpr unsigned long MCR_AEN
Definition: flexcan.hpp:238
uavcan_kinetis::flexcan::TxMbInactive
@ TxMbInactive
Definition: flexcan.hpp:123
uavcan_kinetis::flexcan::IDType::std
volatile uint32_t std
Definition: flexcan.hpp:70
uavcan_kinetis::flexcan::RXIMR15
constexpr unsigned long RXIMR15
Definition: flexcan.hpp:639
uavcan_kinetis::flexcan::RXMGMASK31
constexpr unsigned long RXMGMASK31
Definition: flexcan.hpp:321
uavcan_kinetis::flexcan::CAN_IFLAG1_27
constexpr unsigned long CAN_IFLAG1_27
Definition: flexcan.hpp:563
uavcan_kinetis::flexcan::FIFOcsType
Definition: flexcan.hpp:45
uavcan_kinetis::flexcan::RXIMR2
constexpr unsigned long RXIMR2
Definition: flexcan.hpp:626
uavcan_kinetis::flexcan::IDType::resstd
volatile uint32_t resstd
Definition: flexcan.hpp:71
uavcan_kinetis::flexcan::RXMGMASK22
constexpr unsigned long RXMGMASK22
Definition: flexcan.hpp:312
uavcan_kinetis::flexcan::RXFIR_IDHIT_MASK
constexpr unsigned long RXFIR_IDHIT_MASK
Definition: flexcan.hpp:620
uavcan_kinetis::flexcan::CAN_IFLAG2_1
constexpr unsigned long CAN_IFLAG2_1
Definition: flexcan.hpp:499
uavcan_kinetis::flexcan::CAN_IFLAG1_26
constexpr unsigned long CAN_IFLAG1_26
Definition: flexcan.hpp:562
uavcan_kinetis::flexcan::CanType::RX14MASK
volatile uint32_t RX14MASK
Definition: flexcan.hpp:159
uavcan_kinetis::flexcan::kRxMbEmpty
@ kRxMbEmpty
Definition: flexcan.hpp:143
uavcan_kinetis::flexcan::CAN_FIFO_WARN
constexpr unsigned long CAN_FIFO_WARN
Definition: flexcan.hpp:541
uavcan_kinetis::flexcan::CAN_IMASK2_24
constexpr unsigned long CAN_IMASK2_24
Definition: flexcan.hpp:452
uavcan_kinetis::flexcan::kRxMbInactive
@ kRxMbInactive
Definition: flexcan.hpp:141
uavcan_kinetis::flexcan::CTRL2_RFFN_16MB
constexpr unsigned long CTRL2_RFFN_16MB(1U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::RXM14MASK4
constexpr unsigned long RXM14MASK4
Definition: flexcan.hpp:329
uavcan_kinetis::flexcan::HWMaxMB
@ HWMaxMB
Definition: flexcan.hpp:27
uavcan_kinetis::flexcan::MBcsType::dlc
volatile uint32_t dlc
Definition: flexcan.hpp:35
uavcan_kinetis::flexcan::RXIMR7
constexpr unsigned long RXIMR7
Definition: flexcan.hpp:631
uavcan::uint32_t
std::uint32_t uint32_t
Definition: std.hpp:26
uavcan_kinetis::flexcan::DataType
Definition: flexcan.hpp:96
uavcan_kinetis::flexcan::RXMGMASK8
constexpr unsigned long RXMGMASK8
Definition: flexcan.hpp:298
uavcan_kinetis::flexcan::CTRL1_TWRNMSK
constexpr unsigned long CTRL1_TWRNMSK
Definition: flexcan.hpp:269
uavcan_kinetis::flexcan::RXM15MASK18
constexpr unsigned long RXM15MASK18
Definition: flexcan.hpp:378
uavcan_kinetis::flexcan::RXM15MASK24
constexpr unsigned long RXM15MASK24
Definition: flexcan.hpp:384
uavcan_kinetis::flexcan::ESR1_BIT0ERR
constexpr unsigned long ESR1_BIT0ERR
Definition: flexcan.hpp:420
uavcan_kinetis::flexcan::CTRL1_SMP
constexpr unsigned long CTRL1_SMP
Definition: flexcan.hpp:266
uavcan_kinetis::flexcan::ESR1_TXWRN
constexpr unsigned long ESR1_TXWRN
Definition: flexcan.hpp:415
uavcan_kinetis::flexcan::CTRL2_RFFN_MASK
constexpr unsigned long CTRL2_RFFN_MASK(15U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::MCR_IDAM_FMTD
constexpr unsigned long MCR_IDAM_FMTD(3U<< MCR_IDAM_SHIFT)
uavcan_kinetis::flexcan::MCR_SOFTRST
constexpr unsigned long MCR_SOFTRST
Definition: flexcan.hpp:250
uavcan_kinetis::flexcan::CAN_IFLAG2_27
constexpr unsigned long CAN_IFLAG2_27
Definition: flexcan.hpp:525
uavcan_kinetis::flexcan::CanType::fifo
RxFiFoType fifo
Definition: flexcan.hpp:177
uavcan_kinetis::flexcan::CTRL1_PSEG2_SHIFT
constexpr unsigned long CTRL1_PSEG2_SHIFT
Definition: flexcan.hpp:274
uavcan_kinetis::flexcan::RXIMR0
constexpr unsigned long RXIMR0
Definition: flexcan.hpp:624
uavcan_kinetis::flexcan::FIFOcsType::dlc
volatile uint32_t dlc
Definition: flexcan.hpp:51
uavcan_kinetis::flexcan::CTRL2_RFFN_40MB
constexpr unsigned long CTRL2_RFFN_40MB(4U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CAN_IMASK1_8
constexpr unsigned long CAN_IMASK1_8
Definition: flexcan.hpp:471
uavcan_kinetis::flexcan::RXM15MASK21
constexpr unsigned long RXM15MASK21
Definition: flexcan.hpp:381
uavcan_kinetis::flexcan::RXM14MASK16
constexpr unsigned long RXM14MASK16
Definition: flexcan.hpp:341
uavcan_kinetis::flexcan::RXMGMASK24
constexpr unsigned long RXMGMASK24
Definition: flexcan.hpp:314
uavcan_kinetis::flexcan::MessageBufferType::CS
MBcsType CS
Definition: flexcan.hpp:116
uavcan_kinetis::flexcan::MCR_WAKSRC
constexpr unsigned long MCR_WAKSRC
Definition: flexcan.hpp:244
uavcan_kinetis::flexcan::CAN_IMASK1_17
constexpr unsigned long CAN_IMASK1_17
Definition: flexcan.hpp:480
uavcan_kinetis::flexcan::ESR1_BIT1ERR
constexpr unsigned long ESR1_BIT1ERR
Definition: flexcan.hpp:421
uavcan_kinetis::flexcan::CAN_IFLAG1_17
constexpr unsigned long CAN_IFLAG1_17
Definition: flexcan.hpp:553
uavcan_kinetis::flexcan::TxMbDataOrRemote
@ TxMbDataOrRemote
Definition: flexcan.hpp:125
uavcan_kinetis::flexcan::RXMGMASK5
constexpr unsigned long RXMGMASK5
Definition: flexcan.hpp:295
uavcan_kinetis::flexcan::CAN_IFLAG2_7
constexpr unsigned long CAN_IFLAG2_7
Definition: flexcan.hpp:505
uavcan_kinetis::flexcan::CTRL1_LBUF
constexpr unsigned long CTRL1_LBUF
Definition: flexcan.hpp:263
uavcan_kinetis::flexcan::CAN_IFLAG1_3
constexpr unsigned long CAN_IFLAG1_3
Definition: flexcan.hpp:536
uavcan_kinetis::flexcan::CAN_IFLAG2_10
constexpr unsigned long CAN_IFLAG2_10
Definition: flexcan.hpp:508
uavcan_kinetis::flexcan::RXIMR21
constexpr unsigned long RXIMR21
Definition: flexcan.hpp:645
uavcan_kinetis::flexcan::RXIMR10
constexpr unsigned long RXIMR10
Definition: flexcan.hpp:634
uavcan_kinetis::flexcan::CAN_IMASK2_6
constexpr unsigned long CAN_IMASK2_6
Definition: flexcan.hpp:434
uavcan_kinetis::flexcan::ESR1_IDLE
constexpr unsigned long ESR1_IDLE
Definition: flexcan.hpp:413
uavcan_kinetis::flexcan::CAN_IFLAG2_25
constexpr unsigned long CAN_IFLAG2_25
Definition: flexcan.hpp:523
uavcan_kinetis::flexcan::RXIMR16
constexpr unsigned long RXIMR16
Definition: flexcan.hpp:640
uavcan_kinetis::flexcan::TxMbNotUsed
@ TxMbNotUsed
Definition: flexcan.hpp:129
uavcan_kinetis::flexcan::MCR_LPMACK
constexpr unsigned long MCR_LPMACK
Definition: flexcan.hpp:245
uavcan_kinetis::flexcan::MCR_IDAM_FMTC
constexpr unsigned long MCR_IDAM_FMTC(2U<< MCR_IDAM_SHIFT)
uavcan_kinetis::flexcan::CanType::ESR2
volatile uint32_t ESR2
Definition: flexcan.hpp:168
uavcan_kinetis::flexcan::CAN_IFLAG1_6
constexpr unsigned long CAN_IFLAG1_6
Definition: flexcan.hpp:540
uavcan_kinetis::flexcan::RXMGMASK0
constexpr unsigned long RXMGMASK0
Definition: flexcan.hpp:290
uavcan_kinetis::flexcan::CTRL2_RFFN_128MB
constexpr unsigned long CTRL2_RFFN_128MB(15U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::RXM14MASK24
constexpr unsigned long RXM14MASK24
Definition: flexcan.hpp:349
uavcan_kinetis::flexcan::TxMbAbort
@ TxMbAbort
Definition: flexcan.hpp:124
uavcan_kinetis::flexcan::MBcsType::w
volatile uint32_t w
Definition: flexcan.hpp:31
uavcan_kinetis::flexcan::RXIMR13
constexpr unsigned long RXIMR13
Definition: flexcan.hpp:637
uavcan_kinetis::flexcan::RXM15MASK10
constexpr unsigned long RXM15MASK10
Definition: flexcan.hpp:370
uavcan_kinetis::flexcan::CTRL2_RFFN_8MB
constexpr unsigned long CTRL2_RFFN_8MB(0U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::FIFOcsType::srr
volatile uint32_t srr
Definition: flexcan.hpp:54
uavcan_kinetis::flexcan::RXMGMASK20
constexpr unsigned long RXMGMASK20
Definition: flexcan.hpp:310
uavcan_kinetis::flexcan::CAN_IMASK2_14
constexpr unsigned long CAN_IMASK2_14
Definition: flexcan.hpp:442
uavcan_kinetis::flexcan::RXM15MASK12
constexpr unsigned long RXM15MASK12
Definition: flexcan.hpp:372
uavcan_kinetis::flexcan::CanType::RXMGMASK
volatile uint32_t RXMGMASK
Definition: flexcan.hpp:158
uavcan_kinetis::flexcan::CAN_FIFO_OV
constexpr unsigned long CAN_FIFO_OV
Definition: flexcan.hpp:543
uavcan_kinetis::flexcan::CAN_IFLAG2_18
constexpr unsigned long CAN_IFLAG2_18
Definition: flexcan.hpp:516
uavcan_kinetis::flexcan::CAN_IMASK2_23
constexpr unsigned long CAN_IMASK2_23
Definition: flexcan.hpp:451
uavcan_kinetis::flexcan::CAN_IMASK1_6
constexpr unsigned long CAN_IMASK1_6
Definition: flexcan.hpp:469
uavcan_kinetis::flexcan::CAN_FIFO_NE
constexpr unsigned long CAN_FIFO_NE
Definition: flexcan.hpp:539
uavcan_kinetis::flexcan::RXM14MASK12
constexpr unsigned long RXM14MASK12
Definition: flexcan.hpp:337
uavcan_kinetis::flexcan::RXMGMASK13
constexpr unsigned long RXMGMASK13
Definition: flexcan.hpp:303
uavcan_kinetis::flexcan::RXM15MASK29
constexpr unsigned long RXM15MASK29
Definition: flexcan.hpp:389
uavcan_kinetis::flexcan::CAN_IFLAG1_1
constexpr unsigned long CAN_IFLAG1_1
Definition: flexcan.hpp:534
uavcan_kinetis::flexcan::kRxMbOverrun
@ kRxMbOverrun
Definition: flexcan.hpp:144
uavcan_kinetis::flexcan::RXM14MASK20
constexpr unsigned long RXM14MASK20
Definition: flexcan.hpp:345
uavcan_kinetis::flexcan::CTRL2_RRS
constexpr unsigned long CTRL2_RRS
Definition: flexcan.hpp:573
uavcan_kinetis::flexcan::RXM14MASK11
constexpr unsigned long RXM14MASK11
Definition: flexcan.hpp:336
uavcan_kinetis::flexcan::CanType::RXFIR
volatile uint32_t RXFIR
Definition: flexcan.hpp:173
uavcan_kinetis::flexcan::RXIMR28
constexpr unsigned long RXIMR28
Definition: flexcan.hpp:652
uavcan_kinetis::flexcan::RXM15MASK7
constexpr unsigned long RXM15MASK7
Definition: flexcan.hpp:367
uavcan_kinetis::flexcan::CAN_IMASK2_17
constexpr unsigned long CAN_IMASK2_17
Definition: flexcan.hpp:445
uavcan_kinetis::flexcan::RXM14MASK1
constexpr unsigned long RXM14MASK1
Definition: flexcan.hpp:326
uavcan_kinetis::flexcan::CAN_IFLAG1_19
constexpr unsigned long CAN_IFLAG1_19
Definition: flexcan.hpp:555
uavcan_kinetis::flexcan::CAN_IMASK2_8
constexpr unsigned long CAN_IMASK2_8
Definition: flexcan.hpp:436
uavcan_kinetis::flexcan::CanType::CTRL2
volatile uint32_t CTRL2
Definition: flexcan.hpp:167
uavcan_kinetis::flexcan::RXMGMASK27
constexpr unsigned long RXMGMASK27
Definition: flexcan.hpp:317
uavcan_kinetis::flexcan::RXM14MASK8
constexpr unsigned long RXM14MASK8
Definition: flexcan.hpp:333
uavcan_kinetis::flexcan::DataType::b7
volatile uint32_t b7
Definition: flexcan.hpp:106
uavcan_kinetis::flexcan::FIFOcsType::cs
volatile uint32_t cs
Definition: flexcan.hpp:47
uavcan_kinetis::flexcan::MBcsType::rtr
volatile uint32_t rtr
Definition: flexcan.hpp:36
uavcan_kinetis::flexcan::kRxMbNotUsed
@ kRxMbNotUsed
Definition: flexcan.hpp:149
uavcan_kinetis::flexcan::FilterType::ide
volatile uint32_t ide
Definition: flexcan.hpp:91
uavcan_kinetis::flexcan::ECR_RXERRCNT_SHIFT
constexpr unsigned long ECR_RXERRCNT_SHIFT
Definition: flexcan.hpp:397
uavcan_kinetis::flexcan::ESR1_FLTCONF_SHIFT
constexpr unsigned long ESR1_FLTCONF_SHIFT
Definition: flexcan.hpp:407
uavcan_kinetis::flexcan::CAN_IMASK1_15
constexpr unsigned long CAN_IMASK1_15
Definition: flexcan.hpp:478
uavcan_kinetis::flexcan::CAN_IMASK1_4
constexpr unsigned long CAN_IMASK1_4
Definition: flexcan.hpp:467
uavcan_kinetis::flexcan::RXM14MASK10
constexpr unsigned long RXM14MASK10
Definition: flexcan.hpp:335
uavcan_kinetis::flexcan::CAN_IFLAG1_15
constexpr unsigned long CAN_IFLAG1_15
Definition: flexcan.hpp:551
uavcan_kinetis::flexcan::ESR1_FLTCONF_ACTV
constexpr unsigned long ESR1_FLTCONF_ACTV
Definition: flexcan.hpp:409
uavcan_kinetis::flexcan::CAN_IMASK1_22
constexpr unsigned long CAN_IMASK1_22
Definition: flexcan.hpp:485
uavcan_kinetis::flexcan::RXM15MASK1
constexpr unsigned long RXM15MASK1
Definition: flexcan.hpp:361
uavcan_kinetis::flexcan::CAN_IFLAG2_28
constexpr unsigned long CAN_IFLAG2_28
Definition: flexcan.hpp:526
uavcan_kinetis::flexcan::CAN_IFLAG2_16
constexpr unsigned long CAN_IFLAG2_16
Definition: flexcan.hpp:514
uavcan_kinetis::flexcan::CanType::mb
MessageBufferType mb
Definition: flexcan.hpp:178
build_config.hpp
uavcan_kinetis::flexcan::RXIMR27
constexpr unsigned long RXIMR27
Definition: flexcan.hpp:651
uavcan_kinetis::flexcan::CanType::MCR
volatile uint32_t MCR
Definition: flexcan.hpp:154
uavcan_kinetis::flexcan::FilterType::res
volatile uint32_t res
Definition: flexcan.hpp:80
uavcan_kinetis::flexcan::CAN_IMASK2_10
constexpr unsigned long CAN_IMASK2_10
Definition: flexcan.hpp:438
uavcan_kinetis::flexcan::CTRL1_LPB
constexpr unsigned long CTRL1_LPB
Definition: flexcan.hpp:270
uavcan_kinetis::flexcan::RXM15MASK14
constexpr unsigned long RXM15MASK14
Definition: flexcan.hpp:374
uavcan_kinetis::flexcan::CAN_IMASK1_25
constexpr unsigned long CAN_IMASK1_25
Definition: flexcan.hpp:488
uavcan_kinetis::flexcan::ESR1_TX
constexpr unsigned long ESR1_TX
Definition: flexcan.hpp:412
uavcan_kinetis::flexcan::CanType::Reserved1
uint32_t Reserved1
Definition: flexcan.hpp:163
uavcan_kinetis::flexcan::FilterType::std
volatile uint32_t std
Definition: flexcan.hpp:86
uavcan_kinetis::flexcan::RXM15MASK5
constexpr unsigned long RXM15MASK5
Definition: flexcan.hpp:365
uavcan_kinetis::flexcan::MCR_SUPV
constexpr unsigned long MCR_SUPV
Definition: flexcan.hpp:248
uavcan_kinetis::flexcan::CAN_IMASK2_26
constexpr unsigned long CAN_IMASK2_26
Definition: flexcan.hpp:454
uavcan_kinetis::flexcan::CAN_IMASK1_30
constexpr unsigned long CAN_IMASK1_30
Definition: flexcan.hpp:493
uavcan_kinetis::flexcan::CAN_IFLAG2_17
constexpr unsigned long CAN_IFLAG2_17
Definition: flexcan.hpp:515
uavcan_kinetis::flexcan::RXM14MASK29
constexpr unsigned long RXM14MASK29
Definition: flexcan.hpp:354
uavcan_kinetis::flexcan::ESR1_WAKINT
constexpr unsigned long ESR1_WAKINT
Definition: flexcan.hpp:403
uavcan_kinetis::flexcan::ESR1_SYNCH
constexpr unsigned long ESR1_SYNCH
Definition: flexcan.hpp:424
uavcan_kinetis::flexcan::RxFiFoType::data
DataType data
Definition: flexcan.hpp:136
uavcan_kinetis::flexcan::CAN_IMASK1_10
constexpr unsigned long CAN_IMASK1_10
Definition: flexcan.hpp:473
uavcan_kinetis::flexcan::CAN_IFLAG2_19
constexpr unsigned long CAN_IFLAG2_19
Definition: flexcan.hpp:517
uavcan_kinetis::flexcan::kRxMbRanswer
@ kRxMbRanswer
Definition: flexcan.hpp:147
uavcan_kinetis::flexcan::CTRL2_RFFN_80MB
constexpr unsigned long CTRL2_RFFN_80MB(9U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CAN_IFLAG1_23
constexpr unsigned long CAN_IFLAG1_23
Definition: flexcan.hpp:559
uavcan_kinetis::flexcan::CAN_IMASK1_28
constexpr unsigned long CAN_IMASK1_28
Definition: flexcan.hpp:491
uavcan_kinetis::flexcan::IDType::w
volatile uint32_t w
Definition: flexcan.hpp:61
uavcan_kinetis::flexcan::CAN_IMASK1_29
constexpr unsigned long CAN_IMASK1_29
Definition: flexcan.hpp:492
uavcan_kinetis::flexcan::DataType::b6
volatile uint32_t b6
Definition: flexcan.hpp:107
uavcan_kinetis::flexcan::CTRL2_RFFN_120MB
constexpr unsigned long CTRL2_RFFN_120MB(14U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CTRL2_RFFN_72MB
constexpr unsigned long CTRL2_RFFN_72MB(8U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CAN_IMASK1_1
constexpr unsigned long CAN_IMASK1_1
Definition: flexcan.hpp:464
uavcan_kinetis::flexcan::DataType::b1
volatile uint32_t b1
Definition: flexcan.hpp:104
uavcan_kinetis::flexcan::MessageBufferType::ID
IDType ID
Definition: flexcan.hpp:117
uavcan_kinetis::flexcan::CRCR_MBCRC_MASK
constexpr unsigned long CRCR_MBCRC_MASK
Definition: flexcan.hpp:613
uavcan_kinetis::flexcan::ESR1_FRMERR
constexpr unsigned long ESR1_FRMERR
Definition: flexcan.hpp:417
uavcan_kinetis::flexcan::MCR_FRZACK
constexpr unsigned long MCR_FRZACK
Definition: flexcan.hpp:249
uavcan_kinetis::flexcan::RXM14MASK30
constexpr unsigned long RXM14MASK30
Definition: flexcan.hpp:355
uavcan_kinetis::flexcan::DataType::b2
volatile uint32_t b2
Definition: flexcan.hpp:103
uavcan_kinetis::flexcan::MBcsType::ide
volatile uint32_t ide
Definition: flexcan.hpp:37
uavcan_kinetis::flexcan::CAN_IFLAG1_0
constexpr unsigned long CAN_IFLAG1_0
Definition: flexcan.hpp:533
uavcan_kinetis::flexcan::CAN_IFLAG1_31
constexpr unsigned long CAN_IFLAG1_31
Definition: flexcan.hpp:567
uavcan_kinetis::flexcan::CTRL2_TASD_MASK
constexpr unsigned long CTRL2_TASD_MASK
Definition: flexcan.hpp:576
uavcan_kinetis::flexcan::RXM15MASK28
constexpr unsigned long RXM15MASK28
Definition: flexcan.hpp:388
uavcan_kinetis::flexcan::RXMGMASK21
constexpr unsigned long RXMGMASK21
Definition: flexcan.hpp:311
uavcan_kinetis::flexcan::CanType::MB
union uavcan_kinetis::flexcan::CanType::@167 MB[HWMaxMB]
uavcan_kinetis::flexcan::CAN_IMASK1_16
constexpr unsigned long CAN_IMASK1_16
Definition: flexcan.hpp:479
uavcan_kinetis::flexcan::RXMGMASK6
constexpr unsigned long RXMGMASK6
Definition: flexcan.hpp:296
uavcan_kinetis::flexcan::RXM14MASK0
constexpr unsigned long RXM14MASK0
Definition: flexcan.hpp:325
uavcan_kinetis::flexcan::RXM14MASK2
constexpr unsigned long RXM14MASK2
Definition: flexcan.hpp:327
uavcan_kinetis::flexcan::RXM14MASK26
constexpr unsigned long RXM14MASK26
Definition: flexcan.hpp:351
uavcan_kinetis::flexcan::ESR1_RWRNINT
constexpr unsigned long ESR1_RWRNINT
Definition: flexcan.hpp:422
uavcan_kinetis::flexcan::FilterType::ext
volatile uint32_t ext
Definition: flexcan.hpp:81
uavcan_kinetis::flexcan::RXM15MASK2
constexpr unsigned long RXM15MASK2
Definition: flexcan.hpp:362
uavcan_kinetis::flexcan::RXM14MASK27
constexpr unsigned long RXM14MASK27
Definition: flexcan.hpp:352
uavcan_kinetis::flexcan::RXIMR31
constexpr unsigned long RXIMR31
Definition: flexcan.hpp:655
uavcan_kinetis::flexcan::RXM14MASK13
constexpr unsigned long RXM14MASK13
Definition: flexcan.hpp:338
uavcan_kinetis::flexcan::FIFOcsType::res
volatile uint32_t res
Definition: flexcan.hpp:55
uavcan_kinetis::flexcan::ESR1_ACKERR
constexpr unsigned long ESR1_ACKERR
Definition: flexcan.hpp:419
uavcan_kinetis::flexcan::RXMGMASK19
constexpr unsigned long RXMGMASK19
Definition: flexcan.hpp:309
uavcan_kinetis::flexcan::CAN_IFLAG2_6
constexpr unsigned long CAN_IFLAG2_6
Definition: flexcan.hpp:504
uavcan_kinetis
Definition: platform_specific_components/kinetis/libuavcan/driver/include/uavcan_kinetis/can.hpp:13
uavcan_kinetis::flexcan::CAN_IMASK1_9
constexpr unsigned long CAN_IMASK1_9
Definition: flexcan.hpp:472
uavcan_kinetis::flexcan::CAN_IMASK2_7
constexpr unsigned long CAN_IMASK2_7
Definition: flexcan.hpp:435
uavcan_kinetis::flexcan::CAN_IFLAG2_2
constexpr unsigned long CAN_IFLAG2_2
Definition: flexcan.hpp:500
uavcan_kinetis::flexcan::RXIMR23
constexpr unsigned long RXIMR23
Definition: flexcan.hpp:647
uavcan_kinetis::flexcan::CAN_IFLAG2_13
constexpr unsigned long CAN_IFLAG2_13
Definition: flexcan.hpp:511
uavcan_kinetis::flexcan::CAN_IMASK2_16
constexpr unsigned long CAN_IMASK2_16
Definition: flexcan.hpp:444
uavcan_kinetis::flexcan::CAN_IMASK2_5
constexpr unsigned long CAN_IMASK2_5
Definition: flexcan.hpp:433
uavcan_kinetis::flexcan::CTRL2_RFFN_SHIFT
constexpr unsigned long CTRL2_RFFN_SHIFT
Definition: flexcan.hpp:577
uavcan_kinetis::flexcan::RXM14MASK17
constexpr unsigned long RXM14MASK17
Definition: flexcan.hpp:342
uavcan_kinetis::flexcan::CAN_IMASK1_2
constexpr unsigned long CAN_IMASK1_2
Definition: flexcan.hpp:465
uavcan_kinetis::flexcan::ESR1_STFERR
constexpr unsigned long ESR1_STFERR
Definition: flexcan.hpp:416
uavcan_kinetis::flexcan::RXFIR_IDHIT_SHIFT
constexpr unsigned long RXFIR_IDHIT_SHIFT
Definition: flexcan.hpp:618
uavcan_kinetis::flexcan::CAN_IFLAG1_18
constexpr unsigned long CAN_IFLAG1_18
Definition: flexcan.hpp:554
uavcan_kinetis::flexcan::RXIMR5
constexpr unsigned long RXIMR5
Definition: flexcan.hpp:629
uavcan_kinetis::flexcan::MCR_WAKMSK
constexpr unsigned long MCR_WAKMSK
Definition: flexcan.hpp:251
uavcan_kinetis::flexcan::CanType::CTRL1
volatile uint32_t CTRL1
Definition: flexcan.hpp:155
uavcan_kinetis::flexcan::MCR_NOTRDY
constexpr unsigned long MCR_NOTRDY
Definition: flexcan.hpp:252
uavcan_kinetis::flexcan::FilterType::rtr
volatile uint32_t rtr
Definition: flexcan.hpp:92
uavcan_kinetis::flexcan::RXM15MASK13
constexpr unsigned long RXM15MASK13
Definition: flexcan.hpp:373
uavcan_kinetis::flexcan::CAN_IMASK2_4
constexpr unsigned long CAN_IMASK2_4
Definition: flexcan.hpp:432
uavcan_kinetis::flexcan::RxFiFoType::ID
IDType ID
Definition: flexcan.hpp:135
uavcan_kinetis::flexcan::CTRL2_RFFN_104MB
constexpr unsigned long CTRL2_RFFN_104MB(12U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::RXMGMASK10
constexpr unsigned long RXMGMASK10
Definition: flexcan.hpp:300
uavcan_kinetis::flexcan::CTRL1_RJW_MASK
constexpr unsigned long CTRL1_RJW_MASK
Definition: flexcan.hpp:279
uavcan_kinetis::flexcan::RXMGMASK12
constexpr unsigned long RXMGMASK12
Definition: flexcan.hpp:302
uavcan_kinetis::flexcan::CAN_IMASK1_19
constexpr unsigned long CAN_IMASK1_19
Definition: flexcan.hpp:482
uavcan_kinetis::flexcan::CTRL1_ROPSEG_MASK
constexpr unsigned long CTRL1_ROPSEG_MASK
Definition: flexcan.hpp:261
uavcan_kinetis::flexcan::MCR_FRZ
constexpr unsigned long MCR_FRZ
Definition: flexcan.hpp:255
uavcan_kinetis::flexcan::RXM15MASK25
constexpr unsigned long RXM15MASK25
Definition: flexcan.hpp:385
uavcan_kinetis::flexcan::CTRL1_TSYN
constexpr unsigned long CTRL1_TSYN
Definition: flexcan.hpp:264
uavcan_kinetis::flexcan::MBcsType::time_stamp
volatile uint32_t time_stamp
Definition: flexcan.hpp:34
uavcan_kinetis::flexcan::CAN_IFLAG1_7
constexpr unsigned long CAN_IFLAG1_7
Definition: flexcan.hpp:542
uavcan_kinetis::flexcan::RXIMR17
constexpr unsigned long RXIMR17
Definition: flexcan.hpp:641
uavcan_kinetis::flexcan::MessageBufferType::data
DataType data
Definition: flexcan.hpp:118
uavcan_kinetis::flexcan::CanType::Reserved4
uint32_t Reserved4
Definition: flexcan.hpp:170
uavcan_kinetis::flexcan::RXMGMASK14
constexpr unsigned long RXMGMASK14
Definition: flexcan.hpp:304
uavcan_kinetis::flexcan::ESR2_LPTM_MASK
constexpr unsigned long ESR2_LPTM_MASK
Definition: flexcan.hpp:604
uavcan_kinetis::flexcan::CTRL1_ERRMSK
constexpr unsigned long CTRL1_ERRMSK
Definition: flexcan.hpp:272
uavcan_kinetis::flexcan::MCR_MAXMB_MASK
constexpr unsigned long MCR_MAXMB_MASK
Definition: flexcan.hpp:229
uavcan_kinetis::flexcan::RXIMR22
constexpr unsigned long RXIMR22
Definition: flexcan.hpp:646
uavcan_kinetis::flexcan::RXM15MASK11
constexpr unsigned long RXM15MASK11
Definition: flexcan.hpp:371
uavcan_kinetis::flexcan::RXM15MASK0
constexpr unsigned long RXM15MASK0
Definition: flexcan.hpp:360
uavcan_kinetis::flexcan::CAN_IMASK2_2
constexpr unsigned long CAN_IMASK2_2
Definition: flexcan.hpp:430
uavcan_kinetis::flexcan::CTRL1_ROPSEG_SHIFT
constexpr unsigned long CTRL1_ROPSEG_SHIFT
Definition: flexcan.hpp:260
uavcan_kinetis::flexcan::DataType::b3
volatile uint32_t b3
Definition: flexcan.hpp:102
uavcan_kinetis::flexcan::CAN_IFLAG2_3
constexpr unsigned long CAN_IFLAG2_3
Definition: flexcan.hpp:501
uavcan_kinetis::flexcan::RXM14MASK18
constexpr unsigned long RXM14MASK18
Definition: flexcan.hpp:343
uavcan_kinetis::flexcan::CAN_IFLAG1_25
constexpr unsigned long CAN_IFLAG1_25
Definition: flexcan.hpp:561
uavcan_kinetis::flexcan::RXMGMASK28
constexpr unsigned long RXMGMASK28
Definition: flexcan.hpp:318
uavcan_kinetis::flexcan::CAN_IFLAG2_20
constexpr unsigned long CAN_IFLAG2_20
Definition: flexcan.hpp:518
uavcan_kinetis::flexcan::RXIMR11
constexpr unsigned long RXIMR11
Definition: flexcan.hpp:635
uavcan_kinetis::flexcan::RXMGMASK2
constexpr unsigned long RXMGMASK2
Definition: flexcan.hpp:292
uavcan_kinetis::flexcan::FIFOcsType::rtr
volatile uint32_t rtr
Definition: flexcan.hpp:52
uavcan_kinetis::flexcan::CTRL1_PSEG2_MASK
constexpr unsigned long CTRL1_PSEG2_MASK
Definition: flexcan.hpp:275
uavcan_kinetis::flexcan::CanType::CRCR
volatile uint32_t CRCR
Definition: flexcan.hpp:171
uavcan_kinetis::flexcan::CTRL2_RFFN_112MB
constexpr unsigned long CTRL2_RFFN_112MB(13U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CAN_IFLAG2_11
constexpr unsigned long CAN_IFLAG2_11
Definition: flexcan.hpp:509
uavcan_kinetis::flexcan::ESR2_IMB
constexpr unsigned long ESR2_IMB
Definition: flexcan.hpp:600
uavcan_kinetis::flexcan::ESR2_VPS
constexpr unsigned long ESR2_VPS
Definition: flexcan.hpp:601
uavcan_kinetis::flexcan::MCR_MAXMB_SHIFT
constexpr unsigned long MCR_MAXMB_SHIFT
Definition: flexcan.hpp:228
uavcan_kinetis::flexcan::NumHWFilters
@ NumHWFilters
Definition: flexcan.hpp:199
uavcan_kinetis::flexcan::MBcsType::srr
volatile uint32_t srr
Definition: flexcan.hpp:38
uavcan_kinetis::flexcan::CTRL1_PSEG1_SHIFT
constexpr unsigned long CTRL1_PSEG1_SHIFT
Definition: flexcan.hpp:276
uavcan_kinetis::flexcan::RXM15MASK17
constexpr unsigned long RXM15MASK17
Definition: flexcan.hpp:377
uavcan_kinetis::flexcan::IDType::res
volatile uint32_t res
Definition: flexcan.hpp:69
uavcan_kinetis::flexcan::DataType::h
volatile uint32_t h
Definition: flexcan.hpp:99
uavcan_kinetis::flexcan::CAN_IFLAG2_23
constexpr unsigned long CAN_IFLAG2_23
Definition: flexcan.hpp:521
uavcan_kinetis::flexcan::RXMGMASK11
constexpr unsigned long RXMGMASK11
Definition: flexcan.hpp:301
uavcan_kinetis::flexcan::CAN_IMASK2_28
constexpr unsigned long CAN_IMASK2_28
Definition: flexcan.hpp:456
uavcan_kinetis::flexcan::RXM14MASK9
constexpr unsigned long RXM14MASK9
Definition: flexcan.hpp:334
uavcan_kinetis::flexcan::TxMbTanswer
@ TxMbTanswer
Definition: flexcan.hpp:127
uavcan_kinetis::flexcan::CTRL2_RFFN_48MB
constexpr unsigned long CTRL2_RFFN_48MB(5U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CTRL2_EACEN
constexpr unsigned long CTRL2_EACEN
Definition: flexcan.hpp:571
uavcan_kinetis::flexcan::RXIMR4
constexpr unsigned long RXIMR4
Definition: flexcan.hpp:628
uavcan_kinetis::flexcan::CAN_IFLAG1_20
constexpr unsigned long CAN_IFLAG1_20
Definition: flexcan.hpp:556
uavcan_kinetis::flexcan::ESR1_ERRINT
constexpr unsigned long ESR1_ERRINT
Definition: flexcan.hpp:404
uavcan_kinetis::flexcan::CAN_IFLAG1_22
constexpr unsigned long CAN_IFLAG1_22
Definition: flexcan.hpp:558
uavcan_kinetis::flexcan::ECR_TXERRCNT_MASK
constexpr unsigned long ECR_TXERRCNT_MASK
Definition: flexcan.hpp:396
uavcan_kinetis::flexcan::MBcsType
Definition: flexcan.hpp:29
uavcan_kinetis::flexcan::RXMGMASK1
constexpr unsigned long RXMGMASK1
Definition: flexcan.hpp:291
uavcan_kinetis::flexcan::FilterType::resc
volatile uint32_t resc
Definition: flexcan.hpp:90
uavcan_kinetis::flexcan::CAN_IFLAG2_12
constexpr unsigned long CAN_IFLAG2_12
Definition: flexcan.hpp:510
uavcan_kinetis::flexcan::MCR_WRNEN
constexpr unsigned long MCR_WRNEN
Definition: flexcan.hpp:246
uavcan_kinetis::flexcan::RXMGMASK25
constexpr unsigned long RXMGMASK25
Definition: flexcan.hpp:315
uavcan_kinetis::flexcan::RXMGMASK26
constexpr unsigned long RXMGMASK26
Definition: flexcan.hpp:316
uavcan_kinetis::flexcan::CAN_IFLAG1_11
constexpr unsigned long CAN_IFLAG1_11
Definition: flexcan.hpp:547
uavcan_kinetis::flexcan::RXM14MASK19
constexpr unsigned long RXM14MASK19
Definition: flexcan.hpp:344
uavcan_kinetis::flexcan::CAN_IFLAG2_24
constexpr unsigned long CAN_IFLAG2_24
Definition: flexcan.hpp:522
uavcan_kinetis::flexcan::MCR_IDAM_FMTA
constexpr unsigned long MCR_IDAM_FMTA(0U<< MCR_IDAM_SHIFT)
uavcan_kinetis::flexcan::FiFo
@ FiFo
Definition: flexcan.hpp:187
uavcan_kinetis::flexcan::CTRL1_PRESDIV_MASK
constexpr unsigned long CTRL1_PRESDIV_MASK
Definition: flexcan.hpp:281
uavcan_kinetis::flexcan::CTRL1_LOM
constexpr unsigned long CTRL1_LOM
Definition: flexcan.hpp:262
uavcan_kinetis::flexcan::CAN_IMASK2_1
constexpr unsigned long CAN_IMASK2_1
Definition: flexcan.hpp:429
uavcan_kinetis::flexcan::CAN_IMASK2_3
constexpr unsigned long CAN_IMASK2_3
Definition: flexcan.hpp:431
uavcan_kinetis::flexcan::MCR_LPRIOEN
constexpr unsigned long MCR_LPRIOEN
Definition: flexcan.hpp:239
uavcan_kinetis::flexcan::CAN_IFLAG1_28
constexpr unsigned long CAN_IFLAG1_28
Definition: flexcan.hpp:564
uavcan_kinetis::flexcan::RXM15MASK6
constexpr unsigned long RXM15MASK6
Definition: flexcan.hpp:366
uavcan_kinetis::flexcan::RXM15MASK19
constexpr unsigned long RXM15MASK19
Definition: flexcan.hpp:379
uavcan_kinetis::flexcan::IDType::ext
volatile uint32_t ext
Definition: flexcan.hpp:64
uavcan_kinetis::flexcan::RXM15MASK9
constexpr unsigned long RXM15MASK9
Definition: flexcan.hpp:369
uavcan_kinetis::flexcan::CanType::Reserved2
uint32_t Reserved2
Definition: flexcan.hpp:165
uavcan_kinetis::flexcan::CAN_IMASK2_29
constexpr unsigned long CAN_IMASK2_29
Definition: flexcan.hpp:457
uavcan_kinetis::flexcan::CTRL2_RFFN_64MB
constexpr unsigned long CTRL2_RFFN_64MB(7U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::RXIMR12
constexpr unsigned long RXIMR12
Definition: flexcan.hpp:636
uavcan_kinetis::flexcan::RXIMR30
constexpr unsigned long RXIMR30
Definition: flexcan.hpp:654
uavcan_kinetis::flexcan::MCR_RFEN
constexpr unsigned long MCR_RFEN
Definition: flexcan.hpp:254
uavcan_kinetis::flexcan::RXM15MASK8
constexpr unsigned long RXM15MASK8
Definition: flexcan.hpp:368
uavcan_kinetis::flexcan::CAN_IMASK2_30
constexpr unsigned long CAN_IMASK2_30
Definition: flexcan.hpp:458
uavcan_kinetis::flexcan::MCR_HALT
constexpr unsigned long MCR_HALT
Definition: flexcan.hpp:253
uavcan_kinetis::flexcan::IDType::resex
volatile uint32_t resex
Definition: flexcan.hpp:65
uavcan_kinetis::flexcan::CTRL1_PRESDIV_SHIFT
constexpr unsigned long CTRL1_PRESDIV_SHIFT
Definition: flexcan.hpp:280
uavcan_kinetis::flexcan::CAN_IMASK2_22
constexpr unsigned long CAN_IMASK2_22
Definition: flexcan.hpp:450
uavcan_kinetis::flexcan::CAN_IMASK1_23
constexpr unsigned long CAN_IMASK1_23
Definition: flexcan.hpp:486
uavcan_kinetis::flexcan::RXIMR8
constexpr unsigned long RXIMR8
Definition: flexcan.hpp:632
uavcan_kinetis::flexcan::RXMGMASK18
constexpr unsigned long RXMGMASK18
Definition: flexcan.hpp:308
uavcan_kinetis::flexcan::FirstFilter
@ FirstFilter
Definition: flexcan.hpp:194
uavcan_kinetis::flexcan::RXM14MASK5
constexpr unsigned long RXM14MASK5
Definition: flexcan.hpp:330
uavcan_kinetis::flexcan::RXM14MASK7
constexpr unsigned long RXM14MASK7
Definition: flexcan.hpp:332
uavcan_kinetis::flexcan::RXMGMASK9
constexpr unsigned long RXMGMASK9
Definition: flexcan.hpp:299
uavcan_kinetis::flexcan::DataType::b5
volatile uint32_t b5
Definition: flexcan.hpp:108
uavcan_kinetis::flexcan::CAN_IMASK1_3
constexpr unsigned long CAN_IMASK1_3
Definition: flexcan.hpp:466
uavcan_kinetis::flexcan::CAN_IFLAG2_30
constexpr unsigned long CAN_IFLAG2_30
Definition: flexcan.hpp:528
uavcan_kinetis::flexcan::CAN_IMASK2_27
constexpr unsigned long CAN_IMASK2_27
Definition: flexcan.hpp:455
uavcan_kinetis::flexcan::TXMBMask
@ TXMBMask
Definition: flexcan.hpp:209
uavcan_kinetis::flexcan::CTRL1_RWRNMSK
constexpr unsigned long CTRL1_RWRNMSK
Definition: flexcan.hpp:268
uavcan_kinetis::flexcan::RXMGMASK16
constexpr unsigned long RXMGMASK16
Definition: flexcan.hpp:306
uavcan_kinetis::flexcan::RXM15MASK15
constexpr unsigned long RXM15MASK15
Definition: flexcan.hpp:375
uavcan_kinetis::flexcan::RXIMR20
constexpr unsigned long RXIMR20
Definition: flexcan.hpp:644
uavcan_kinetis::flexcan::CAN_IMASK1_20
constexpr unsigned long CAN_IMASK1_20
Definition: flexcan.hpp:483
uavcan_kinetis::flexcan::ESR1_BOFFINT
constexpr unsigned long ESR1_BOFFINT
Definition: flexcan.hpp:405
uavcan_kinetis::flexcan::RXIMR26
constexpr unsigned long RXIMR26
Definition: flexcan.hpp:650
uavcan.hpp
uavcan_kinetis::flexcan::CAN_IMASK1_24
constexpr unsigned long CAN_IMASK1_24
Definition: flexcan.hpp:487
uavcan_kinetis::flexcan::CAN_IMASK1_12
constexpr unsigned long CAN_IMASK1_12
Definition: flexcan.hpp:475
uavcan_kinetis::flexcan::CAN_IMASK1_13
constexpr unsigned long CAN_IMASK1_13
Definition: flexcan.hpp:476
uavcan_kinetis::flexcan::RXM14MASK25
constexpr unsigned long RXM14MASK25
Definition: flexcan.hpp:350
uavcan_kinetis::flexcan::CanType
Definition: flexcan.hpp:152
uavcan_kinetis::flexcan::CRCR_MBCRC_SHIFT
constexpr unsigned long CRCR_MBCRC_SHIFT
Definition: flexcan.hpp:612
uavcan_kinetis::flexcan::RXM15MASK16
constexpr unsigned long RXM15MASK16
Definition: flexcan.hpp:376
uavcan_kinetis::flexcan::CTRL1_CLKSRC
constexpr unsigned long CTRL1_CLKSRC
Definition: flexcan.hpp:271
uavcan_kinetis::flexcan::RXMGMASK29
constexpr unsigned long RXMGMASK29
Definition: flexcan.hpp:319
uavcan_kinetis::flexcan::MBcsType::res2
volatile uint32_t res2
Definition: flexcan.hpp:41
uavcan_kinetis::flexcan::CanType::IMASK1
volatile uint32_t IMASK1
Definition: flexcan.hpp:164
uavcan_kinetis::flexcan::mb_code_rx
mb_code_rx
Definition: flexcan.hpp:139
uavcan_kinetis::flexcan::RXIMR9
constexpr unsigned long RXIMR9
Definition: flexcan.hpp:633
uavcan_kinetis::flexcan::FilterType
Definition: flexcan.hpp:75
uavcan_kinetis::flexcan::RxFiFoType::CS
FIFOcsType CS
Definition: flexcan.hpp:134
uavcan_kinetis::flexcan::MCR_IDAM_SHIFT
constexpr unsigned long MCR_IDAM_SHIFT
Definition: flexcan.hpp:231
uavcan_kinetis::flexcan::RXMGMASK30
constexpr unsigned long RXMGMASK30
Definition: flexcan.hpp:320
uavcan_kinetis::flexcan::CAN_IMASK1_26
constexpr unsigned long CAN_IMASK1_26
Definition: flexcan.hpp:489
uavcan_kinetis::flexcan::CRCR_TXCRC_MASK
constexpr unsigned long CRCR_TXCRC_MASK
Definition: flexcan.hpp:609
uavcan_kinetis::flexcan::CanType::ESR1
volatile uint32_t ESR1
Definition: flexcan.hpp:162
uavcan_kinetis::flexcan::CAN_IFLAG1_24
constexpr unsigned long CAN_IFLAG1_24
Definition: flexcan.hpp:560
uavcan_kinetis::flexcan::CAN_IFLAG2_9
constexpr unsigned long CAN_IFLAG2_9
Definition: flexcan.hpp:507
uavcan_kinetis::flexcan::RXM14MASK22
constexpr unsigned long RXM14MASK22
Definition: flexcan.hpp:347
uavcan_kinetis::flexcan::CTRL1_PSEG1_MASK
constexpr unsigned long CTRL1_PSEG1_MASK
Definition: flexcan.hpp:277
uavcan_kinetis::flexcan::CTRL2_RFFN_56MB
constexpr unsigned long CTRL2_RFFN_56MB(6U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CAN_IMASK2_20
constexpr unsigned long CAN_IMASK2_20
Definition: flexcan.hpp:448
uavcan_kinetis::flexcan::RXM15MASK4
constexpr unsigned long RXM15MASK4
Definition: flexcan.hpp:364
uavcan_kinetis::flexcan::CAN_IFLAG1_21
constexpr unsigned long CAN_IFLAG1_21
Definition: flexcan.hpp:557
uavcan_kinetis::flexcan::CAN_IFLAG2_14
constexpr unsigned long CAN_IFLAG2_14
Definition: flexcan.hpp:512
uavcan_kinetis::flexcan::RXIMR29
constexpr unsigned long RXIMR29
Definition: flexcan.hpp:653
uavcan_kinetis::flexcan::RXM15MASK20
constexpr unsigned long RXM15MASK20
Definition: flexcan.hpp:380
uavcan_kinetis::flexcan::CAN_IFLAG2_21
constexpr unsigned long CAN_IFLAG2_21
Definition: flexcan.hpp:519
uavcan_kinetis::flexcan::RXMGMASK4
constexpr unsigned long RXMGMASK4
Definition: flexcan.hpp:294
uavcan_kinetis::flexcan::CAN_IFLAG2_15
constexpr unsigned long CAN_IFLAG2_15
Definition: flexcan.hpp:513
uavcan_kinetis::flexcan::DataType::b0
volatile uint32_t b0
Definition: flexcan.hpp:105
uavcan_kinetis::flexcan::CAN_IMASK2_0
constexpr unsigned long CAN_IMASK2_0
Definition: flexcan.hpp:428
uavcan_kinetis::flexcan::CanType::Reserved0
uint32_t Reserved0
Definition: flexcan.hpp:157
uavcan_kinetis::flexcan::CAN_IFLAG2_5
constexpr unsigned long CAN_IFLAG2_5
Definition: flexcan.hpp:503
uavcan_kinetis::flexcan::CAN_IFLAG1_5
constexpr unsigned long CAN_IFLAG1_5
Definition: flexcan.hpp:538
uavcan_kinetis::flexcan::RXM14MASK3
constexpr unsigned long RXM14MASK3
Definition: flexcan.hpp:328
uavcan_kinetis::flexcan::RXIMR1
constexpr unsigned long RXIMR1
Definition: flexcan.hpp:625
uavcan_kinetis::flexcan::ESR1_FLTCONF_PASV
constexpr unsigned long ESR1_FLTCONF_PASV
Definition: flexcan.hpp:410
uavcan_kinetis::flexcan::RXIMR14
constexpr unsigned long RXIMR14
Definition: flexcan.hpp:638
uavcan_kinetis::flexcan::RXM14MASK21
constexpr unsigned long RXM14MASK21
Definition: flexcan.hpp:346
uavcan_kinetis::flexcan::RXIMR25
constexpr unsigned long RXIMR25
Definition: flexcan.hpp:649
uavcan_kinetis::flexcan::MCR_IRMQ
constexpr unsigned long MCR_IRMQ
Definition: flexcan.hpp:241
uavcan_kinetis::flexcan::MCR_IDAM_MASK
constexpr unsigned long MCR_IDAM_MASK
Definition: flexcan.hpp:232
uavcan_kinetis::flexcan::CAN_IMASK1_27
constexpr unsigned long CAN_IMASK1_27
Definition: flexcan.hpp:490
uavcan_kinetis::flexcan::CTRL2_WRMFRZ
constexpr unsigned long CTRL2_WRMFRZ
Definition: flexcan.hpp:595
uavcan_kinetis::flexcan::MCR_SLFWAK
constexpr unsigned long MCR_SLFWAK
Definition: flexcan.hpp:247
uavcan_kinetis::flexcan::RXM14MASK6
constexpr unsigned long RXM14MASK6
Definition: flexcan.hpp:331
uavcan_kinetis::flexcan::RxFiFoType
Definition: flexcan.hpp:132
uavcan_kinetis::flexcan::CAN_IFLAG2_8
constexpr unsigned long CAN_IFLAG2_8
Definition: flexcan.hpp:506
uavcan_kinetis::flexcan::RXM15MASK30
constexpr unsigned long RXM15MASK30
Definition: flexcan.hpp:390
uavcan_kinetis::flexcan::CTRL2_RFFN_24MB
constexpr unsigned long CTRL2_RFFN_24MB(2U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CAN_IFLAG1_14
constexpr unsigned long CAN_IFLAG1_14
Definition: flexcan.hpp:550
uavcan_kinetis::flexcan::CTRL2_RFFN_88MB
constexpr unsigned long CTRL2_RFFN_88MB(10U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CAN_IFLAG1_16
constexpr unsigned long CAN_IFLAG1_16
Definition: flexcan.hpp:552
uavcan_kinetis::flexcan::CAN_IMASK2_25
constexpr unsigned long CAN_IMASK2_25
Definition: flexcan.hpp:453
uavcan_kinetis::flexcan::CRCR_TXCRC_SHIFT
constexpr unsigned long CRCR_TXCRC_SHIFT
Definition: flexcan.hpp:608
uavcan_kinetis::flexcan::CanType::ECR
volatile uint32_t ECR
Definition: flexcan.hpp:161
uavcan_kinetis::flexcan::CAN_IMASK1_0
constexpr unsigned long CAN_IMASK1_0
Definition: flexcan.hpp:463
uavcan_kinetis::flexcan::CAN_IMASK1_5
constexpr unsigned long CAN_IMASK1_5
Definition: flexcan.hpp:468
uavcan_kinetis::flexcan::CAN_MCR_IDAM_FMTB
constexpr unsigned long CAN_MCR_IDAM_FMTB(1U<< MCR_IDAM_SHIFT)
uavcan_kinetis::flexcan::CAN_IMASK2_11
constexpr unsigned long CAN_IMASK2_11
Definition: flexcan.hpp:439
uavcan_kinetis::flexcan::CAN_IMASK1_21
constexpr unsigned long CAN_IMASK1_21
Definition: flexcan.hpp:484
uavcan_kinetis::flexcan::CAN_IMASK2_12
constexpr unsigned long CAN_IMASK2_12
Definition: flexcan.hpp:440
uavcan_kinetis::flexcan::NumMBinFiFoAndFilters
@ NumMBinFiFoAndFilters
Definition: flexcan.hpp:200
uavcan_kinetis::flexcan::CTRL2_MRP
constexpr unsigned long CTRL2_MRP
Definition: flexcan.hpp:574
uavcan_kinetis::flexcan::RXM14MASK15
constexpr unsigned long RXM14MASK15
Definition: flexcan.hpp:340
uavcan_kinetis::flexcan::CAN_IMASK2_19
constexpr unsigned long CAN_IMASK2_19
Definition: flexcan.hpp:447
uavcan_kinetis::flexcan::RXMGMASK3
constexpr unsigned long RXMGMASK3
Definition: flexcan.hpp:293
uavcan_kinetis::flexcan::CanType::IFLAG1
volatile uint32_t IFLAG1
Definition: flexcan.hpp:166
uavcan_kinetis::flexcan::ESR2_LPTM_SHIFT
constexpr unsigned long ESR2_LPTM_SHIFT
Definition: flexcan.hpp:603
uavcan_kinetis::flexcan::DataType::b4
volatile uint32_t b4
Definition: flexcan.hpp:109
uavcan_kinetis::flexcan::CanType::Reserved3
uint32_t Reserved3
Definition: flexcan.hpp:169
uavcan_kinetis::flexcan::CAN_IFLAG1_29
constexpr unsigned long CAN_IFLAG1_29
Definition: flexcan.hpp:565
uavcan_kinetis::flexcan::CAN_IFLAG1_13
constexpr unsigned long CAN_IFLAG1_13
Definition: flexcan.hpp:549
uavcan_kinetis::flexcan::CAN_IMASK2_15
constexpr unsigned long CAN_IMASK2_15
Definition: flexcan.hpp:443
uavcan_kinetis::flexcan::CanType::RESERVED5
uint32_t RESERVED5[12]
Definition: flexcan.hpp:174
uavcan_kinetis::flexcan::CTRL2_RFFN_96MB
constexpr unsigned long CTRL2_RFFN_96MB(11U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::CAN_IFLAG2_29
constexpr unsigned long CAN_IFLAG2_29
Definition: flexcan.hpp:527
uavcan_kinetis::flexcan::CAN_IMASK1_31
constexpr unsigned long CAN_IMASK1_31
Definition: flexcan.hpp:494
uavcan_kinetis::flexcan::MBcsType::res
volatile uint32_t res
Definition: flexcan.hpp:39
uavcan_kinetis::flexcan::CAN_IMASK1_11
constexpr unsigned long CAN_IMASK1_11
Definition: flexcan.hpp:474
uavcan_kinetis::flexcan::CAN_IFLAG1_4
constexpr unsigned long CAN_IFLAG1_4
Definition: flexcan.hpp:537
uavcan_kinetis::flexcan::TIMER_SHIFT
constexpr unsigned long TIMER_SHIFT
Definition: flexcan.hpp:285
uavcan_kinetis::flexcan::CAN_IFLAG1_2
constexpr unsigned long CAN_IFLAG1_2
Definition: flexcan.hpp:535
uavcan_kinetis::flexcan::CTRL1_BOFFREC
constexpr unsigned long CTRL1_BOFFREC
Definition: flexcan.hpp:265
uavcan_kinetis::flexcan::CanType::RXFGMASK
volatile uint32_t RXFGMASK
Definition: flexcan.hpp:172
uavcan_kinetis::flexcan::CanType::RX15MASK
volatile uint32_t RX15MASK
Definition: flexcan.hpp:160
uavcan_kinetis::flexcan::mb_code_tx
mb_code_tx
Definition: flexcan.hpp:121
uavcan_kinetis::flexcan::CAN_IMASK2_31
constexpr unsigned long CAN_IMASK2_31
Definition: flexcan.hpp:459
uavcan_kinetis::flexcan::RXMGMASK17
constexpr unsigned long RXMGMASK17
Definition: flexcan.hpp:307
uavcan_kinetis::flexcan::RXM15MASK23
constexpr unsigned long RXM15MASK23
Definition: flexcan.hpp:383
uavcan_kinetis::flexcan::RXM15MASK3
constexpr unsigned long RXM15MASK3
Definition: flexcan.hpp:363
uavcan_kinetis::flexcan::ESR1_RXWRN
constexpr unsigned long ESR1_RXWRN
Definition: flexcan.hpp:414
uavcan_kinetis::flexcan::CAN_IFLAG1_8
constexpr unsigned long CAN_IFLAG1_8
Definition: flexcan.hpp:544
uavcan_kinetis::flexcan::kRxMbFull
@ kRxMbFull
Definition: flexcan.hpp:142
uavcan_kinetis::flexcan::FIFOcsType::ide
volatile uint32_t ide
Definition: flexcan.hpp:53
uavcan_kinetis::flexcan::CAN_IFLAG2_31
constexpr unsigned long CAN_IFLAG2_31
Definition: flexcan.hpp:529
uavcan_kinetis::flexcan::CAN_IMASK1_18
constexpr unsigned long CAN_IMASK1_18
Definition: flexcan.hpp:481
uavcan_kinetis::flexcan::RXM15MASK31
constexpr unsigned long RXM15MASK31
Definition: flexcan.hpp:391
uavcan_kinetis::flexcan::RXIMR3
constexpr unsigned long RXIMR3
Definition: flexcan.hpp:627
uavcan_kinetis::flexcan::RXM14MASK31
constexpr unsigned long RXM14MASK31
Definition: flexcan.hpp:356
uavcan_kinetis::flexcan::TIMER_MASK
constexpr unsigned long TIMER_MASK
Definition: flexcan.hpp:286
uavcan_kinetis::flexcan::MCR_SRXDIS
constexpr unsigned long MCR_SRXDIS
Definition: flexcan.hpp:242
uavcan_kinetis::flexcan::CTRL2_RFFN_32MB
constexpr unsigned long CTRL2_RFFN_32MB(3U<< CTRL2_RFFN_SHIFT)
uavcan_kinetis::flexcan::RXM14MASK14
constexpr unsigned long RXM14MASK14
Definition: flexcan.hpp:339
uavcan_kinetis::flexcan::RXIMR6
constexpr unsigned long RXIMR6
Definition: flexcan.hpp:630
uavcan_kinetis::flexcan::FIFOcsType::time_stamp
volatile uint32_t time_stamp
Definition: flexcan.hpp:50
uavcan_kinetis::flexcan::CanType::TIMER
volatile uint32_t TIMER
Definition: flexcan.hpp:156
uavcan_kinetis::flexcan::CAN_IMASK2_9
constexpr unsigned long CAN_IMASK2_9
Definition: flexcan.hpp:437
uavcan_kinetis::flexcan::RXIMR18
constexpr unsigned long RXIMR18
Definition: flexcan.hpp:642
uavcan_kinetis::flexcan::CAN_IFLAG2_26
constexpr unsigned long CAN_IFLAG2_26
Definition: flexcan.hpp:524
uavcan_kinetis::flexcan::kRxMbBusy
@ kRxMbBusy
Definition: flexcan.hpp:145
uavcan_kinetis::flexcan::CAN_IMASK2_18
constexpr unsigned long CAN_IMASK2_18
Definition: flexcan.hpp:446
uavcan_kinetis::flexcan::ECR_RXERRCNT_MASK
constexpr unsigned long ECR_RXERRCNT_MASK
Definition: flexcan.hpp:398
uavcan_kinetis::flexcan::RXIMR24
constexpr unsigned long RXIMR24
Definition: flexcan.hpp:648
uavcan_kinetis::flexcan::CAN_IFLAG2_0
constexpr unsigned long CAN_IFLAG2_0
Definition: flexcan.hpp:498
uavcan_kinetis::flexcan::CTRL1_BOFFMSK
constexpr unsigned long CTRL1_BOFFMSK
Definition: flexcan.hpp:273
uavcan_kinetis::flexcan::RXMGMASK15
constexpr unsigned long RXMGMASK15
Definition: flexcan.hpp:305
uavcan_kinetis::flexcan::ESR1_TWRNINT
constexpr unsigned long ESR1_TWRNINT
Definition: flexcan.hpp:423
uavcan_kinetis::flexcan::ESR1_RX
constexpr unsigned long ESR1_RX
Definition: flexcan.hpp:406
uavcan_kinetis::flexcan::RXIMR19
constexpr unsigned long RXIMR19
Definition: flexcan.hpp:643
uavcan_kinetis::flexcan::CAN_IMASK2_13
constexpr unsigned long CAN_IMASK2_13
Definition: flexcan.hpp:441
uavcan_kinetis::flexcan::RXM15MASK26
constexpr unsigned long RXM15MASK26
Definition: flexcan.hpp:386
uavcan_kinetis::flexcan::ESR1_CRCERR
constexpr unsigned long ESR1_CRCERR
Definition: flexcan.hpp:418
uavcan_kinetis::flexcan::IDType
Definition: flexcan.hpp:59
uavcan_kinetis::flexcan::CTRL2_TASD_SHIFT
constexpr unsigned long CTRL2_TASD_SHIFT
Definition: flexcan.hpp:575
uavcan_kinetis::flexcan::CAN_IFLAG2_22
constexpr unsigned long CAN_IFLAG2_22
Definition: flexcan.hpp:520
uavcan_kinetis::flexcan::RXMGMASK23
constexpr unsigned long RXMGMASK23
Definition: flexcan.hpp:313


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:02