struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic16 / pic18f2585.h
blobb2b153cef30cee6649c0206fc4239e09baab9942
1 /*
2 * This declarations of the PIC18F2585 MCU.
4 * This file is part of the GNU PIC library for SDCC, originally
5 * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
7 * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:23:45 UTC.
9 * SDCC is licensed under the GNU Public license (GPL) v2. Note that
10 * this license covers the code to the compiler and other executables,
11 * but explicitly does not cover any code or objects generated by sdcc.
13 * For pic device libraries and header files which are derived from
14 * Microchip header (.inc) and linker script (.lkr) files Microchip
15 * requires that "The header files should state that they are only to be
16 * used with authentic Microchip devices" which makes them incompatible
17 * with the GPL. Pic device libraries and header files are located at
18 * non-free/lib and non-free/include directories respectively.
19 * Sdcc should be run with the --use-non-free command line option in
20 * order to include non-free header files and libraries.
22 * See http://sdcc.sourceforge.net/ for the latest information on sdcc.
25 #ifndef __PIC18F2585_H__
26 #define __PIC18F2585_H__
28 //==============================================================================
30 //==============================================================================
32 // Register Definitions
34 //==============================================================================
37 //==============================================================================
38 // RXF6SIDH Bits
40 extern __at(0x0D60) __sfr RXF6SIDH;
42 typedef struct
44 unsigned SID3 : 1;
45 unsigned SID4 : 1;
46 unsigned SID5 : 1;
47 unsigned SID6 : 1;
48 unsigned SID7 : 1;
49 unsigned SID8 : 1;
50 unsigned SID9 : 1;
51 unsigned SID10 : 1;
52 } __RXF6SIDHbits_t;
54 extern __at(0x0D60) volatile __RXF6SIDHbits_t RXF6SIDHbits;
56 #define _RXF6SIDH_SID3 0x01
57 #define _RXF6SIDH_SID4 0x02
58 #define _RXF6SIDH_SID5 0x04
59 #define _RXF6SIDH_SID6 0x08
60 #define _RXF6SIDH_SID7 0x10
61 #define _RXF6SIDH_SID8 0x20
62 #define _RXF6SIDH_SID9 0x40
63 #define _RXF6SIDH_SID10 0x80
65 //==============================================================================
68 //==============================================================================
69 // RXF6SIDL Bits
71 extern __at(0x0D61) __sfr RXF6SIDL;
73 typedef union
75 struct
77 unsigned EID16 : 1;
78 unsigned EID17 : 1;
79 unsigned : 1;
80 unsigned EXIDEN : 1;
81 unsigned : 1;
82 unsigned SID0 : 1;
83 unsigned SID1 : 1;
84 unsigned SID2 : 1;
87 struct
89 unsigned : 1;
90 unsigned : 1;
91 unsigned : 1;
92 unsigned EXIDE : 1;
93 unsigned : 1;
94 unsigned : 1;
95 unsigned : 1;
96 unsigned : 1;
99 struct
101 unsigned : 5;
102 unsigned SID : 3;
104 } __RXF6SIDLbits_t;
106 extern __at(0x0D61) volatile __RXF6SIDLbits_t RXF6SIDLbits;
108 #define _RXF6SIDL_EID16 0x01
109 #define _RXF6SIDL_EID17 0x02
110 #define _RXF6SIDL_EXIDEN 0x08
111 #define _RXF6SIDL_EXIDE 0x08
112 #define _RXF6SIDL_SID0 0x20
113 #define _RXF6SIDL_SID1 0x40
114 #define _RXF6SIDL_SID2 0x80
116 //==============================================================================
119 //==============================================================================
120 // RXF6EIDH Bits
122 extern __at(0x0D62) __sfr RXF6EIDH;
124 typedef struct
126 unsigned EID8 : 1;
127 unsigned EID9 : 1;
128 unsigned EID10 : 1;
129 unsigned EID11 : 1;
130 unsigned EID12 : 1;
131 unsigned EID13 : 1;
132 unsigned EID14 : 1;
133 unsigned EID15 : 1;
134 } __RXF6EIDHbits_t;
136 extern __at(0x0D62) volatile __RXF6EIDHbits_t RXF6EIDHbits;
138 #define _RXF6EIDH_EID8 0x01
139 #define _RXF6EIDH_EID9 0x02
140 #define _RXF6EIDH_EID10 0x04
141 #define _RXF6EIDH_EID11 0x08
142 #define _RXF6EIDH_EID12 0x10
143 #define _RXF6EIDH_EID13 0x20
144 #define _RXF6EIDH_EID14 0x40
145 #define _RXF6EIDH_EID15 0x80
147 //==============================================================================
150 //==============================================================================
151 // RXF6EIDL Bits
153 extern __at(0x0D63) __sfr RXF6EIDL;
155 typedef struct
157 unsigned EID0 : 1;
158 unsigned EID1 : 1;
159 unsigned EID2 : 1;
160 unsigned EID3 : 1;
161 unsigned EID4 : 1;
162 unsigned EID5 : 1;
163 unsigned EID6 : 1;
164 unsigned EID7 : 1;
165 } __RXF6EIDLbits_t;
167 extern __at(0x0D63) volatile __RXF6EIDLbits_t RXF6EIDLbits;
169 #define _RXF6EIDL_EID0 0x01
170 #define _RXF6EIDL_EID1 0x02
171 #define _RXF6EIDL_EID2 0x04
172 #define _RXF6EIDL_EID3 0x08
173 #define _RXF6EIDL_EID4 0x10
174 #define _RXF6EIDL_EID5 0x20
175 #define _RXF6EIDL_EID6 0x40
176 #define _RXF6EIDL_EID7 0x80
178 //==============================================================================
181 //==============================================================================
182 // RXF7SIDH Bits
184 extern __at(0x0D64) __sfr RXF7SIDH;
186 typedef struct
188 unsigned SID3 : 1;
189 unsigned SID4 : 1;
190 unsigned SID5 : 1;
191 unsigned SID6 : 1;
192 unsigned SID7 : 1;
193 unsigned SID8 : 1;
194 unsigned SID9 : 1;
195 unsigned SID10 : 1;
196 } __RXF7SIDHbits_t;
198 extern __at(0x0D64) volatile __RXF7SIDHbits_t RXF7SIDHbits;
200 #define _RXF7SIDH_SID3 0x01
201 #define _RXF7SIDH_SID4 0x02
202 #define _RXF7SIDH_SID5 0x04
203 #define _RXF7SIDH_SID6 0x08
204 #define _RXF7SIDH_SID7 0x10
205 #define _RXF7SIDH_SID8 0x20
206 #define _RXF7SIDH_SID9 0x40
207 #define _RXF7SIDH_SID10 0x80
209 //==============================================================================
212 //==============================================================================
213 // RXF7SIDL Bits
215 extern __at(0x0D65) __sfr RXF7SIDL;
217 typedef union
219 struct
221 unsigned EID16 : 1;
222 unsigned EID17 : 1;
223 unsigned : 1;
224 unsigned EXIDEN : 1;
225 unsigned : 1;
226 unsigned SID0 : 1;
227 unsigned SID1 : 1;
228 unsigned SID2 : 1;
231 struct
233 unsigned : 1;
234 unsigned : 1;
235 unsigned : 1;
236 unsigned EXIDE : 1;
237 unsigned : 1;
238 unsigned : 1;
239 unsigned : 1;
240 unsigned : 1;
243 struct
245 unsigned : 5;
246 unsigned SID : 3;
248 } __RXF7SIDLbits_t;
250 extern __at(0x0D65) volatile __RXF7SIDLbits_t RXF7SIDLbits;
252 #define _RXF7SIDL_EID16 0x01
253 #define _RXF7SIDL_EID17 0x02
254 #define _RXF7SIDL_EXIDEN 0x08
255 #define _RXF7SIDL_EXIDE 0x08
256 #define _RXF7SIDL_SID0 0x20
257 #define _RXF7SIDL_SID1 0x40
258 #define _RXF7SIDL_SID2 0x80
260 //==============================================================================
263 //==============================================================================
264 // RXF7EIDH Bits
266 extern __at(0x0D66) __sfr RXF7EIDH;
268 typedef struct
270 unsigned EID8 : 1;
271 unsigned EID9 : 1;
272 unsigned EID10 : 1;
273 unsigned EID11 : 1;
274 unsigned EID12 : 1;
275 unsigned EID13 : 1;
276 unsigned EID14 : 1;
277 unsigned EID15 : 1;
278 } __RXF7EIDHbits_t;
280 extern __at(0x0D66) volatile __RXF7EIDHbits_t RXF7EIDHbits;
282 #define _RXF7EIDH_EID8 0x01
283 #define _RXF7EIDH_EID9 0x02
284 #define _RXF7EIDH_EID10 0x04
285 #define _RXF7EIDH_EID11 0x08
286 #define _RXF7EIDH_EID12 0x10
287 #define _RXF7EIDH_EID13 0x20
288 #define _RXF7EIDH_EID14 0x40
289 #define _RXF7EIDH_EID15 0x80
291 //==============================================================================
294 //==============================================================================
295 // RXF7EIDL Bits
297 extern __at(0x0D67) __sfr RXF7EIDL;
299 typedef struct
301 unsigned EID0 : 1;
302 unsigned EID1 : 1;
303 unsigned EID2 : 1;
304 unsigned EID3 : 1;
305 unsigned EID4 : 1;
306 unsigned EID5 : 1;
307 unsigned EID6 : 1;
308 unsigned EID7 : 1;
309 } __RXF7EIDLbits_t;
311 extern __at(0x0D67) volatile __RXF7EIDLbits_t RXF7EIDLbits;
313 #define _RXF7EIDL_EID0 0x01
314 #define _RXF7EIDL_EID1 0x02
315 #define _RXF7EIDL_EID2 0x04
316 #define _RXF7EIDL_EID3 0x08
317 #define _RXF7EIDL_EID4 0x10
318 #define _RXF7EIDL_EID5 0x20
319 #define _RXF7EIDL_EID6 0x40
320 #define _RXF7EIDL_EID7 0x80
322 //==============================================================================
325 //==============================================================================
326 // RXF8SIDH Bits
328 extern __at(0x0D68) __sfr RXF8SIDH;
330 typedef struct
332 unsigned SID3 : 1;
333 unsigned SID4 : 1;
334 unsigned SID5 : 1;
335 unsigned SID6 : 1;
336 unsigned SID7 : 1;
337 unsigned SID8 : 1;
338 unsigned SID9 : 1;
339 unsigned SID10 : 1;
340 } __RXF8SIDHbits_t;
342 extern __at(0x0D68) volatile __RXF8SIDHbits_t RXF8SIDHbits;
344 #define _RXF8SIDH_SID3 0x01
345 #define _RXF8SIDH_SID4 0x02
346 #define _RXF8SIDH_SID5 0x04
347 #define _RXF8SIDH_SID6 0x08
348 #define _RXF8SIDH_SID7 0x10
349 #define _RXF8SIDH_SID8 0x20
350 #define _RXF8SIDH_SID9 0x40
351 #define _RXF8SIDH_SID10 0x80
353 //==============================================================================
356 //==============================================================================
357 // RXF8SIDL Bits
359 extern __at(0x0D69) __sfr RXF8SIDL;
361 typedef union
363 struct
365 unsigned EID16 : 1;
366 unsigned EID17 : 1;
367 unsigned : 1;
368 unsigned EXIDEN : 1;
369 unsigned : 1;
370 unsigned SID0 : 1;
371 unsigned SID1 : 1;
372 unsigned SID2 : 1;
375 struct
377 unsigned : 1;
378 unsigned : 1;
379 unsigned : 1;
380 unsigned EXIDE : 1;
381 unsigned : 1;
382 unsigned : 1;
383 unsigned : 1;
384 unsigned : 1;
387 struct
389 unsigned : 5;
390 unsigned SID : 3;
392 } __RXF8SIDLbits_t;
394 extern __at(0x0D69) volatile __RXF8SIDLbits_t RXF8SIDLbits;
396 #define _RXF8SIDL_EID16 0x01
397 #define _RXF8SIDL_EID17 0x02
398 #define _RXF8SIDL_EXIDEN 0x08
399 #define _RXF8SIDL_EXIDE 0x08
400 #define _RXF8SIDL_SID0 0x20
401 #define _RXF8SIDL_SID1 0x40
402 #define _RXF8SIDL_SID2 0x80
404 //==============================================================================
407 //==============================================================================
408 // RXF8EIDH Bits
410 extern __at(0x0D6A) __sfr RXF8EIDH;
412 typedef struct
414 unsigned EID8 : 1;
415 unsigned EID9 : 1;
416 unsigned EID10 : 1;
417 unsigned EID11 : 1;
418 unsigned EID12 : 1;
419 unsigned EID13 : 1;
420 unsigned EID14 : 1;
421 unsigned EID15 : 1;
422 } __RXF8EIDHbits_t;
424 extern __at(0x0D6A) volatile __RXF8EIDHbits_t RXF8EIDHbits;
426 #define _RXF8EIDH_EID8 0x01
427 #define _RXF8EIDH_EID9 0x02
428 #define _RXF8EIDH_EID10 0x04
429 #define _RXF8EIDH_EID11 0x08
430 #define _RXF8EIDH_EID12 0x10
431 #define _RXF8EIDH_EID13 0x20
432 #define _RXF8EIDH_EID14 0x40
433 #define _RXF8EIDH_EID15 0x80
435 //==============================================================================
438 //==============================================================================
439 // RXF8EIDL Bits
441 extern __at(0x0D6B) __sfr RXF8EIDL;
443 typedef struct
445 unsigned EID0 : 1;
446 unsigned EID1 : 1;
447 unsigned EID2 : 1;
448 unsigned EID3 : 1;
449 unsigned EID4 : 1;
450 unsigned EID5 : 1;
451 unsigned EID6 : 1;
452 unsigned EID7 : 1;
453 } __RXF8EIDLbits_t;
455 extern __at(0x0D6B) volatile __RXF8EIDLbits_t RXF8EIDLbits;
457 #define _RXF8EIDL_EID0 0x01
458 #define _RXF8EIDL_EID1 0x02
459 #define _RXF8EIDL_EID2 0x04
460 #define _RXF8EIDL_EID3 0x08
461 #define _RXF8EIDL_EID4 0x10
462 #define _RXF8EIDL_EID5 0x20
463 #define _RXF8EIDL_EID6 0x40
464 #define _RXF8EIDL_EID7 0x80
466 //==============================================================================
469 //==============================================================================
470 // RXF9SIDH Bits
472 extern __at(0x0D70) __sfr RXF9SIDH;
474 typedef struct
476 unsigned SID3 : 1;
477 unsigned SID4 : 1;
478 unsigned SID5 : 1;
479 unsigned SID6 : 1;
480 unsigned SID7 : 1;
481 unsigned SID8 : 1;
482 unsigned SID9 : 1;
483 unsigned SID10 : 1;
484 } __RXF9SIDHbits_t;
486 extern __at(0x0D70) volatile __RXF9SIDHbits_t RXF9SIDHbits;
488 #define _RXF9SIDH_SID3 0x01
489 #define _RXF9SIDH_SID4 0x02
490 #define _RXF9SIDH_SID5 0x04
491 #define _RXF9SIDH_SID6 0x08
492 #define _RXF9SIDH_SID7 0x10
493 #define _RXF9SIDH_SID8 0x20
494 #define _RXF9SIDH_SID9 0x40
495 #define _RXF9SIDH_SID10 0x80
497 //==============================================================================
500 //==============================================================================
501 // RXF9SIDL Bits
503 extern __at(0x0D71) __sfr RXF9SIDL;
505 typedef union
507 struct
509 unsigned EID16 : 1;
510 unsigned EID17 : 1;
511 unsigned : 1;
512 unsigned EXIDEN : 1;
513 unsigned : 1;
514 unsigned SID0 : 1;
515 unsigned SID1 : 1;
516 unsigned SID2 : 1;
519 struct
521 unsigned : 1;
522 unsigned : 1;
523 unsigned : 1;
524 unsigned EXIDE : 1;
525 unsigned : 1;
526 unsigned : 1;
527 unsigned : 1;
528 unsigned : 1;
531 struct
533 unsigned : 5;
534 unsigned SID : 3;
536 } __RXF9SIDLbits_t;
538 extern __at(0x0D71) volatile __RXF9SIDLbits_t RXF9SIDLbits;
540 #define _RXF9SIDL_EID16 0x01
541 #define _RXF9SIDL_EID17 0x02
542 #define _RXF9SIDL_EXIDEN 0x08
543 #define _RXF9SIDL_EXIDE 0x08
544 #define _RXF9SIDL_SID0 0x20
545 #define _RXF9SIDL_SID1 0x40
546 #define _RXF9SIDL_SID2 0x80
548 //==============================================================================
551 //==============================================================================
552 // RXF9EIDH Bits
554 extern __at(0x0D72) __sfr RXF9EIDH;
556 typedef struct
558 unsigned EID8 : 1;
559 unsigned EID9 : 1;
560 unsigned EID10 : 1;
561 unsigned EID11 : 1;
562 unsigned EID12 : 1;
563 unsigned EID13 : 1;
564 unsigned EID14 : 1;
565 unsigned EID15 : 1;
566 } __RXF9EIDHbits_t;
568 extern __at(0x0D72) volatile __RXF9EIDHbits_t RXF9EIDHbits;
570 #define _RXF9EIDH_EID8 0x01
571 #define _RXF9EIDH_EID9 0x02
572 #define _RXF9EIDH_EID10 0x04
573 #define _RXF9EIDH_EID11 0x08
574 #define _RXF9EIDH_EID12 0x10
575 #define _RXF9EIDH_EID13 0x20
576 #define _RXF9EIDH_EID14 0x40
577 #define _RXF9EIDH_EID15 0x80
579 //==============================================================================
582 //==============================================================================
583 // RXF9EIDL Bits
585 extern __at(0x0D73) __sfr RXF9EIDL;
587 typedef struct
589 unsigned EID0 : 1;
590 unsigned EID1 : 1;
591 unsigned EID2 : 1;
592 unsigned EID3 : 1;
593 unsigned EID4 : 1;
594 unsigned EID5 : 1;
595 unsigned EID6 : 1;
596 unsigned EID7 : 1;
597 } __RXF9EIDLbits_t;
599 extern __at(0x0D73) volatile __RXF9EIDLbits_t RXF9EIDLbits;
601 #define _RXF9EIDL_EID0 0x01
602 #define _RXF9EIDL_EID1 0x02
603 #define _RXF9EIDL_EID2 0x04
604 #define _RXF9EIDL_EID3 0x08
605 #define _RXF9EIDL_EID4 0x10
606 #define _RXF9EIDL_EID5 0x20
607 #define _RXF9EIDL_EID6 0x40
608 #define _RXF9EIDL_EID7 0x80
610 //==============================================================================
613 //==============================================================================
614 // RXF10SIDH Bits
616 extern __at(0x0D74) __sfr RXF10SIDH;
618 typedef struct
620 unsigned SID3 : 1;
621 unsigned SID4 : 1;
622 unsigned SID5 : 1;
623 unsigned SID6 : 1;
624 unsigned SID7 : 1;
625 unsigned SID8 : 1;
626 unsigned SID9 : 1;
627 unsigned SID10 : 1;
628 } __RXF10SIDHbits_t;
630 extern __at(0x0D74) volatile __RXF10SIDHbits_t RXF10SIDHbits;
632 #define _RXF10SIDH_SID3 0x01
633 #define _RXF10SIDH_SID4 0x02
634 #define _RXF10SIDH_SID5 0x04
635 #define _RXF10SIDH_SID6 0x08
636 #define _RXF10SIDH_SID7 0x10
637 #define _RXF10SIDH_SID8 0x20
638 #define _RXF10SIDH_SID9 0x40
639 #define _RXF10SIDH_SID10 0x80
641 //==============================================================================
644 //==============================================================================
645 // RXF10SIDL Bits
647 extern __at(0x0D75) __sfr RXF10SIDL;
649 typedef union
651 struct
653 unsigned EID16 : 1;
654 unsigned EID17 : 1;
655 unsigned : 1;
656 unsigned EXIDEN : 1;
657 unsigned : 1;
658 unsigned SID0 : 1;
659 unsigned SID1 : 1;
660 unsigned SID2 : 1;
663 struct
665 unsigned : 1;
666 unsigned : 1;
667 unsigned : 1;
668 unsigned EXIDE : 1;
669 unsigned : 1;
670 unsigned : 1;
671 unsigned : 1;
672 unsigned : 1;
675 struct
677 unsigned : 5;
678 unsigned SID : 3;
680 } __RXF10SIDLbits_t;
682 extern __at(0x0D75) volatile __RXF10SIDLbits_t RXF10SIDLbits;
684 #define _RXF10SIDL_EID16 0x01
685 #define _RXF10SIDL_EID17 0x02
686 #define _RXF10SIDL_EXIDEN 0x08
687 #define _RXF10SIDL_EXIDE 0x08
688 #define _RXF10SIDL_SID0 0x20
689 #define _RXF10SIDL_SID1 0x40
690 #define _RXF10SIDL_SID2 0x80
692 //==============================================================================
695 //==============================================================================
696 // RXF10EIDH Bits
698 extern __at(0x0D76) __sfr RXF10EIDH;
700 typedef struct
702 unsigned EID8 : 1;
703 unsigned EID9 : 1;
704 unsigned EID10 : 1;
705 unsigned EID11 : 1;
706 unsigned EID12 : 1;
707 unsigned EID13 : 1;
708 unsigned EID14 : 1;
709 unsigned EID15 : 1;
710 } __RXF10EIDHbits_t;
712 extern __at(0x0D76) volatile __RXF10EIDHbits_t RXF10EIDHbits;
714 #define _RXF10EIDH_EID8 0x01
715 #define _RXF10EIDH_EID9 0x02
716 #define _RXF10EIDH_EID10 0x04
717 #define _RXF10EIDH_EID11 0x08
718 #define _RXF10EIDH_EID12 0x10
719 #define _RXF10EIDH_EID13 0x20
720 #define _RXF10EIDH_EID14 0x40
721 #define _RXF10EIDH_EID15 0x80
723 //==============================================================================
726 //==============================================================================
727 // RXF10EIDL Bits
729 extern __at(0x0D77) __sfr RXF10EIDL;
731 typedef struct
733 unsigned EID0 : 1;
734 unsigned EID1 : 1;
735 unsigned EID2 : 1;
736 unsigned EID3 : 1;
737 unsigned EID4 : 1;
738 unsigned EID5 : 1;
739 unsigned EID6 : 1;
740 unsigned EID7 : 1;
741 } __RXF10EIDLbits_t;
743 extern __at(0x0D77) volatile __RXF10EIDLbits_t RXF10EIDLbits;
745 #define _RXF10EIDL_EID0 0x01
746 #define _RXF10EIDL_EID1 0x02
747 #define _RXF10EIDL_EID2 0x04
748 #define _RXF10EIDL_EID3 0x08
749 #define _RXF10EIDL_EID4 0x10
750 #define _RXF10EIDL_EID5 0x20
751 #define _RXF10EIDL_EID6 0x40
752 #define _RXF10EIDL_EID7 0x80
754 //==============================================================================
757 //==============================================================================
758 // RXF11SIDH Bits
760 extern __at(0x0D78) __sfr RXF11SIDH;
762 typedef struct
764 unsigned SID3 : 1;
765 unsigned SID4 : 1;
766 unsigned SID5 : 1;
767 unsigned SID6 : 1;
768 unsigned SID7 : 1;
769 unsigned SID8 : 1;
770 unsigned SID9 : 1;
771 unsigned SID10 : 1;
772 } __RXF11SIDHbits_t;
774 extern __at(0x0D78) volatile __RXF11SIDHbits_t RXF11SIDHbits;
776 #define _RXF11SIDH_SID3 0x01
777 #define _RXF11SIDH_SID4 0x02
778 #define _RXF11SIDH_SID5 0x04
779 #define _RXF11SIDH_SID6 0x08
780 #define _RXF11SIDH_SID7 0x10
781 #define _RXF11SIDH_SID8 0x20
782 #define _RXF11SIDH_SID9 0x40
783 #define _RXF11SIDH_SID10 0x80
785 //==============================================================================
788 //==============================================================================
789 // RXF11SIDL Bits
791 extern __at(0x0D79) __sfr RXF11SIDL;
793 typedef union
795 struct
797 unsigned EID16 : 1;
798 unsigned EID17 : 1;
799 unsigned : 1;
800 unsigned EXIDEN : 1;
801 unsigned : 1;
802 unsigned SID0 : 1;
803 unsigned SID1 : 1;
804 unsigned SID2 : 1;
807 struct
809 unsigned : 1;
810 unsigned : 1;
811 unsigned : 1;
812 unsigned EXIDE : 1;
813 unsigned : 1;
814 unsigned : 1;
815 unsigned : 1;
816 unsigned : 1;
819 struct
821 unsigned : 5;
822 unsigned SID : 3;
824 } __RXF11SIDLbits_t;
826 extern __at(0x0D79) volatile __RXF11SIDLbits_t RXF11SIDLbits;
828 #define _RXF11SIDL_EID16 0x01
829 #define _RXF11SIDL_EID17 0x02
830 #define _RXF11SIDL_EXIDEN 0x08
831 #define _RXF11SIDL_EXIDE 0x08
832 #define _RXF11SIDL_SID0 0x20
833 #define _RXF11SIDL_SID1 0x40
834 #define _RXF11SIDL_SID2 0x80
836 //==============================================================================
839 //==============================================================================
840 // RXF11EIDH Bits
842 extern __at(0x0D7A) __sfr RXF11EIDH;
844 typedef struct
846 unsigned EID8 : 1;
847 unsigned EID9 : 1;
848 unsigned EID10 : 1;
849 unsigned EID11 : 1;
850 unsigned EID12 : 1;
851 unsigned EID13 : 1;
852 unsigned EID14 : 1;
853 unsigned EID15 : 1;
854 } __RXF11EIDHbits_t;
856 extern __at(0x0D7A) volatile __RXF11EIDHbits_t RXF11EIDHbits;
858 #define _RXF11EIDH_EID8 0x01
859 #define _RXF11EIDH_EID9 0x02
860 #define _RXF11EIDH_EID10 0x04
861 #define _RXF11EIDH_EID11 0x08
862 #define _RXF11EIDH_EID12 0x10
863 #define _RXF11EIDH_EID13 0x20
864 #define _RXF11EIDH_EID14 0x40
865 #define _RXF11EIDH_EID15 0x80
867 //==============================================================================
870 //==============================================================================
871 // RXF11EIDL Bits
873 extern __at(0x0D7B) __sfr RXF11EIDL;
875 typedef struct
877 unsigned EID0 : 1;
878 unsigned EID1 : 1;
879 unsigned EID2 : 1;
880 unsigned EID3 : 1;
881 unsigned EID4 : 1;
882 unsigned EID5 : 1;
883 unsigned EID6 : 1;
884 unsigned EID7 : 1;
885 } __RXF11EIDLbits_t;
887 extern __at(0x0D7B) volatile __RXF11EIDLbits_t RXF11EIDLbits;
889 #define _RXF11EIDL_EID0 0x01
890 #define _RXF11EIDL_EID1 0x02
891 #define _RXF11EIDL_EID2 0x04
892 #define _RXF11EIDL_EID3 0x08
893 #define _RXF11EIDL_EID4 0x10
894 #define _RXF11EIDL_EID5 0x20
895 #define _RXF11EIDL_EID6 0x40
896 #define _RXF11EIDL_EID7 0x80
898 //==============================================================================
901 //==============================================================================
902 // RXF12SIDH Bits
904 extern __at(0x0D80) __sfr RXF12SIDH;
906 typedef struct
908 unsigned SID3 : 1;
909 unsigned SID4 : 1;
910 unsigned SID5 : 1;
911 unsigned SID6 : 1;
912 unsigned SID7 : 1;
913 unsigned SID8 : 1;
914 unsigned SID9 : 1;
915 unsigned SID10 : 1;
916 } __RXF12SIDHbits_t;
918 extern __at(0x0D80) volatile __RXF12SIDHbits_t RXF12SIDHbits;
920 #define _RXF12SIDH_SID3 0x01
921 #define _RXF12SIDH_SID4 0x02
922 #define _RXF12SIDH_SID5 0x04
923 #define _RXF12SIDH_SID6 0x08
924 #define _RXF12SIDH_SID7 0x10
925 #define _RXF12SIDH_SID8 0x20
926 #define _RXF12SIDH_SID9 0x40
927 #define _RXF12SIDH_SID10 0x80
929 //==============================================================================
932 //==============================================================================
933 // RXF12SIDL Bits
935 extern __at(0x0D81) __sfr RXF12SIDL;
937 typedef union
939 struct
941 unsigned EID16 : 1;
942 unsigned EID17 : 1;
943 unsigned : 1;
944 unsigned EXIDEN : 1;
945 unsigned : 1;
946 unsigned SID0 : 1;
947 unsigned SID1 : 1;
948 unsigned SID2 : 1;
951 struct
953 unsigned : 1;
954 unsigned : 1;
955 unsigned : 1;
956 unsigned EXIDE : 1;
957 unsigned : 1;
958 unsigned : 1;
959 unsigned : 1;
960 unsigned : 1;
963 struct
965 unsigned : 5;
966 unsigned SID : 3;
968 } __RXF12SIDLbits_t;
970 extern __at(0x0D81) volatile __RXF12SIDLbits_t RXF12SIDLbits;
972 #define _RXF12SIDL_EID16 0x01
973 #define _RXF12SIDL_EID17 0x02
974 #define _RXF12SIDL_EXIDEN 0x08
975 #define _RXF12SIDL_EXIDE 0x08
976 #define _RXF12SIDL_SID0 0x20
977 #define _RXF12SIDL_SID1 0x40
978 #define _RXF12SIDL_SID2 0x80
980 //==============================================================================
983 //==============================================================================
984 // RXF12EIDH Bits
986 extern __at(0x0D82) __sfr RXF12EIDH;
988 typedef struct
990 unsigned EID8 : 1;
991 unsigned EID9 : 1;
992 unsigned EID10 : 1;
993 unsigned EID11 : 1;
994 unsigned EID12 : 1;
995 unsigned EID13 : 1;
996 unsigned EID14 : 1;
997 unsigned EID15 : 1;
998 } __RXF12EIDHbits_t;
1000 extern __at(0x0D82) volatile __RXF12EIDHbits_t RXF12EIDHbits;
1002 #define _RXF12EIDH_EID8 0x01
1003 #define _RXF12EIDH_EID9 0x02
1004 #define _RXF12EIDH_EID10 0x04
1005 #define _RXF12EIDH_EID11 0x08
1006 #define _RXF12EIDH_EID12 0x10
1007 #define _RXF12EIDH_EID13 0x20
1008 #define _RXF12EIDH_EID14 0x40
1009 #define _RXF12EIDH_EID15 0x80
1011 //==============================================================================
1014 //==============================================================================
1015 // RXF12EIDL Bits
1017 extern __at(0x0D83) __sfr RXF12EIDL;
1019 typedef struct
1021 unsigned EID0 : 1;
1022 unsigned EID1 : 1;
1023 unsigned EID2 : 1;
1024 unsigned EID3 : 1;
1025 unsigned EID4 : 1;
1026 unsigned EID5 : 1;
1027 unsigned EID6 : 1;
1028 unsigned EID7 : 1;
1029 } __RXF12EIDLbits_t;
1031 extern __at(0x0D83) volatile __RXF12EIDLbits_t RXF12EIDLbits;
1033 #define _RXF12EIDL_EID0 0x01
1034 #define _RXF12EIDL_EID1 0x02
1035 #define _RXF12EIDL_EID2 0x04
1036 #define _RXF12EIDL_EID3 0x08
1037 #define _RXF12EIDL_EID4 0x10
1038 #define _RXF12EIDL_EID5 0x20
1039 #define _RXF12EIDL_EID6 0x40
1040 #define _RXF12EIDL_EID7 0x80
1042 //==============================================================================
1045 //==============================================================================
1046 // RXF13SIDH Bits
1048 extern __at(0x0D84) __sfr RXF13SIDH;
1050 typedef struct
1052 unsigned SID3 : 1;
1053 unsigned SID4 : 1;
1054 unsigned SID5 : 1;
1055 unsigned SID6 : 1;
1056 unsigned SID7 : 1;
1057 unsigned SID8 : 1;
1058 unsigned SID9 : 1;
1059 unsigned SID10 : 1;
1060 } __RXF13SIDHbits_t;
1062 extern __at(0x0D84) volatile __RXF13SIDHbits_t RXF13SIDHbits;
1064 #define _RXF13SIDH_SID3 0x01
1065 #define _RXF13SIDH_SID4 0x02
1066 #define _RXF13SIDH_SID5 0x04
1067 #define _RXF13SIDH_SID6 0x08
1068 #define _RXF13SIDH_SID7 0x10
1069 #define _RXF13SIDH_SID8 0x20
1070 #define _RXF13SIDH_SID9 0x40
1071 #define _RXF13SIDH_SID10 0x80
1073 //==============================================================================
1076 //==============================================================================
1077 // RXF13SIDL Bits
1079 extern __at(0x0D85) __sfr RXF13SIDL;
1081 typedef union
1083 struct
1085 unsigned EID16 : 1;
1086 unsigned EID17 : 1;
1087 unsigned : 1;
1088 unsigned EXIDEN : 1;
1089 unsigned : 1;
1090 unsigned SID0 : 1;
1091 unsigned SID1 : 1;
1092 unsigned SID2 : 1;
1095 struct
1097 unsigned : 1;
1098 unsigned : 1;
1099 unsigned : 1;
1100 unsigned EXIDE : 1;
1101 unsigned : 1;
1102 unsigned : 1;
1103 unsigned : 1;
1104 unsigned : 1;
1107 struct
1109 unsigned : 5;
1110 unsigned SID : 3;
1112 } __RXF13SIDLbits_t;
1114 extern __at(0x0D85) volatile __RXF13SIDLbits_t RXF13SIDLbits;
1116 #define _RXF13SIDL_EID16 0x01
1117 #define _RXF13SIDL_EID17 0x02
1118 #define _RXF13SIDL_EXIDEN 0x08
1119 #define _RXF13SIDL_EXIDE 0x08
1120 #define _RXF13SIDL_SID0 0x20
1121 #define _RXF13SIDL_SID1 0x40
1122 #define _RXF13SIDL_SID2 0x80
1124 //==============================================================================
1127 //==============================================================================
1128 // RXF13EIDH Bits
1130 extern __at(0x0D86) __sfr RXF13EIDH;
1132 typedef struct
1134 unsigned EID8 : 1;
1135 unsigned EID9 : 1;
1136 unsigned EID10 : 1;
1137 unsigned EID11 : 1;
1138 unsigned EID12 : 1;
1139 unsigned EID13 : 1;
1140 unsigned EID14 : 1;
1141 unsigned EID15 : 1;
1142 } __RXF13EIDHbits_t;
1144 extern __at(0x0D86) volatile __RXF13EIDHbits_t RXF13EIDHbits;
1146 #define _RXF13EIDH_EID8 0x01
1147 #define _RXF13EIDH_EID9 0x02
1148 #define _RXF13EIDH_EID10 0x04
1149 #define _RXF13EIDH_EID11 0x08
1150 #define _RXF13EIDH_EID12 0x10
1151 #define _RXF13EIDH_EID13 0x20
1152 #define _RXF13EIDH_EID14 0x40
1153 #define _RXF13EIDH_EID15 0x80
1155 //==============================================================================
1158 //==============================================================================
1159 // RXF13EIDL Bits
1161 extern __at(0x0D87) __sfr RXF13EIDL;
1163 typedef struct
1165 unsigned EID0 : 1;
1166 unsigned EID1 : 1;
1167 unsigned EID2 : 1;
1168 unsigned EID3 : 1;
1169 unsigned EID4 : 1;
1170 unsigned EID5 : 1;
1171 unsigned EID6 : 1;
1172 unsigned EID7 : 1;
1173 } __RXF13EIDLbits_t;
1175 extern __at(0x0D87) volatile __RXF13EIDLbits_t RXF13EIDLbits;
1177 #define _RXF13EIDL_EID0 0x01
1178 #define _RXF13EIDL_EID1 0x02
1179 #define _RXF13EIDL_EID2 0x04
1180 #define _RXF13EIDL_EID3 0x08
1181 #define _RXF13EIDL_EID4 0x10
1182 #define _RXF13EIDL_EID5 0x20
1183 #define _RXF13EIDL_EID6 0x40
1184 #define _RXF13EIDL_EID7 0x80
1186 //==============================================================================
1189 //==============================================================================
1190 // RXF14SIDH Bits
1192 extern __at(0x0D88) __sfr RXF14SIDH;
1194 typedef struct
1196 unsigned SID3 : 1;
1197 unsigned SID4 : 1;
1198 unsigned SID5 : 1;
1199 unsigned SID6 : 1;
1200 unsigned SID7 : 1;
1201 unsigned SID8 : 1;
1202 unsigned SID9 : 1;
1203 unsigned SID10 : 1;
1204 } __RXF14SIDHbits_t;
1206 extern __at(0x0D88) volatile __RXF14SIDHbits_t RXF14SIDHbits;
1208 #define _RXF14SIDH_SID3 0x01
1209 #define _RXF14SIDH_SID4 0x02
1210 #define _RXF14SIDH_SID5 0x04
1211 #define _RXF14SIDH_SID6 0x08
1212 #define _RXF14SIDH_SID7 0x10
1213 #define _RXF14SIDH_SID8 0x20
1214 #define _RXF14SIDH_SID9 0x40
1215 #define _RXF14SIDH_SID10 0x80
1217 //==============================================================================
1220 //==============================================================================
1221 // RXF14SIDL Bits
1223 extern __at(0x0D89) __sfr RXF14SIDL;
1225 typedef union
1227 struct
1229 unsigned EID16 : 1;
1230 unsigned EID17 : 1;
1231 unsigned : 1;
1232 unsigned EXIDEN : 1;
1233 unsigned : 1;
1234 unsigned SID0 : 1;
1235 unsigned SID1 : 1;
1236 unsigned SID2 : 1;
1239 struct
1241 unsigned : 1;
1242 unsigned : 1;
1243 unsigned : 1;
1244 unsigned EXIDE : 1;
1245 unsigned : 1;
1246 unsigned : 1;
1247 unsigned : 1;
1248 unsigned : 1;
1251 struct
1253 unsigned : 5;
1254 unsigned SID : 3;
1256 } __RXF14SIDLbits_t;
1258 extern __at(0x0D89) volatile __RXF14SIDLbits_t RXF14SIDLbits;
1260 #define _RXF14SIDL_EID16 0x01
1261 #define _RXF14SIDL_EID17 0x02
1262 #define _RXF14SIDL_EXIDEN 0x08
1263 #define _RXF14SIDL_EXIDE 0x08
1264 #define _RXF14SIDL_SID0 0x20
1265 #define _RXF14SIDL_SID1 0x40
1266 #define _RXF14SIDL_SID2 0x80
1268 //==============================================================================
1271 //==============================================================================
1272 // RXF14EIDH Bits
1274 extern __at(0x0D8A) __sfr RXF14EIDH;
1276 typedef struct
1278 unsigned EID8 : 1;
1279 unsigned EID9 : 1;
1280 unsigned EID10 : 1;
1281 unsigned EID11 : 1;
1282 unsigned EID12 : 1;
1283 unsigned EID13 : 1;
1284 unsigned EID14 : 1;
1285 unsigned EID15 : 1;
1286 } __RXF14EIDHbits_t;
1288 extern __at(0x0D8A) volatile __RXF14EIDHbits_t RXF14EIDHbits;
1290 #define _RXF14EIDH_EID8 0x01
1291 #define _RXF14EIDH_EID9 0x02
1292 #define _RXF14EIDH_EID10 0x04
1293 #define _RXF14EIDH_EID11 0x08
1294 #define _RXF14EIDH_EID12 0x10
1295 #define _RXF14EIDH_EID13 0x20
1296 #define _RXF14EIDH_EID14 0x40
1297 #define _RXF14EIDH_EID15 0x80
1299 //==============================================================================
1302 //==============================================================================
1303 // RXF14EIDL Bits
1305 extern __at(0x0D8B) __sfr RXF14EIDL;
1307 typedef struct
1309 unsigned EID0 : 1;
1310 unsigned EID1 : 1;
1311 unsigned EID2 : 1;
1312 unsigned EID3 : 1;
1313 unsigned EID4 : 1;
1314 unsigned EID5 : 1;
1315 unsigned EID6 : 1;
1316 unsigned EID7 : 1;
1317 } __RXF14EIDLbits_t;
1319 extern __at(0x0D8B) volatile __RXF14EIDLbits_t RXF14EIDLbits;
1321 #define _RXF14EIDL_EID0 0x01
1322 #define _RXF14EIDL_EID1 0x02
1323 #define _RXF14EIDL_EID2 0x04
1324 #define _RXF14EIDL_EID3 0x08
1325 #define _RXF14EIDL_EID4 0x10
1326 #define _RXF14EIDL_EID5 0x20
1327 #define _RXF14EIDL_EID6 0x40
1328 #define _RXF14EIDL_EID7 0x80
1330 //==============================================================================
1333 //==============================================================================
1334 // RXF15SIDH Bits
1336 extern __at(0x0D90) __sfr RXF15SIDH;
1338 typedef struct
1340 unsigned SID3 : 1;
1341 unsigned SID4 : 1;
1342 unsigned SID5 : 1;
1343 unsigned SID6 : 1;
1344 unsigned SID7 : 1;
1345 unsigned SID8 : 1;
1346 unsigned SID9 : 1;
1347 unsigned SID10 : 1;
1348 } __RXF15SIDHbits_t;
1350 extern __at(0x0D90) volatile __RXF15SIDHbits_t RXF15SIDHbits;
1352 #define _RXF15SIDH_SID3 0x01
1353 #define _RXF15SIDH_SID4 0x02
1354 #define _RXF15SIDH_SID5 0x04
1355 #define _RXF15SIDH_SID6 0x08
1356 #define _RXF15SIDH_SID7 0x10
1357 #define _RXF15SIDH_SID8 0x20
1358 #define _RXF15SIDH_SID9 0x40
1359 #define _RXF15SIDH_SID10 0x80
1361 //==============================================================================
1364 //==============================================================================
1365 // RXF15SIDL Bits
1367 extern __at(0x0D91) __sfr RXF15SIDL;
1369 typedef union
1371 struct
1373 unsigned EID16 : 1;
1374 unsigned EID17 : 1;
1375 unsigned : 1;
1376 unsigned EXIDEN : 1;
1377 unsigned : 1;
1378 unsigned SID0 : 1;
1379 unsigned SID1 : 1;
1380 unsigned SID2 : 1;
1383 struct
1385 unsigned : 1;
1386 unsigned : 1;
1387 unsigned : 1;
1388 unsigned EXIDE : 1;
1389 unsigned : 1;
1390 unsigned : 1;
1391 unsigned : 1;
1392 unsigned : 1;
1395 struct
1397 unsigned : 5;
1398 unsigned SID : 3;
1400 } __RXF15SIDLbits_t;
1402 extern __at(0x0D91) volatile __RXF15SIDLbits_t RXF15SIDLbits;
1404 #define _RXF15SIDL_EID16 0x01
1405 #define _RXF15SIDL_EID17 0x02
1406 #define _RXF15SIDL_EXIDEN 0x08
1407 #define _RXF15SIDL_EXIDE 0x08
1408 #define _RXF15SIDL_SID0 0x20
1409 #define _RXF15SIDL_SID1 0x40
1410 #define _RXF15SIDL_SID2 0x80
1412 //==============================================================================
1415 //==============================================================================
1416 // RXF15EIDH Bits
1418 extern __at(0x0D92) __sfr RXF15EIDH;
1420 typedef struct
1422 unsigned EID8 : 1;
1423 unsigned EID9 : 1;
1424 unsigned EID10 : 1;
1425 unsigned EID11 : 1;
1426 unsigned EID12 : 1;
1427 unsigned EID13 : 1;
1428 unsigned EID14 : 1;
1429 unsigned EID15 : 1;
1430 } __RXF15EIDHbits_t;
1432 extern __at(0x0D92) volatile __RXF15EIDHbits_t RXF15EIDHbits;
1434 #define _RXF15EIDH_EID8 0x01
1435 #define _RXF15EIDH_EID9 0x02
1436 #define _RXF15EIDH_EID10 0x04
1437 #define _RXF15EIDH_EID11 0x08
1438 #define _RXF15EIDH_EID12 0x10
1439 #define _RXF15EIDH_EID13 0x20
1440 #define _RXF15EIDH_EID14 0x40
1441 #define _RXF15EIDH_EID15 0x80
1443 //==============================================================================
1446 //==============================================================================
1447 // RXF15EIDL Bits
1449 extern __at(0x0D93) __sfr RXF15EIDL;
1451 typedef struct
1453 unsigned EID0 : 1;
1454 unsigned EID1 : 1;
1455 unsigned EID2 : 1;
1456 unsigned EID3 : 1;
1457 unsigned EID4 : 1;
1458 unsigned EID5 : 1;
1459 unsigned EID6 : 1;
1460 unsigned EID7 : 1;
1461 } __RXF15EIDLbits_t;
1463 extern __at(0x0D93) volatile __RXF15EIDLbits_t RXF15EIDLbits;
1465 #define _RXF15EIDL_EID0 0x01
1466 #define _RXF15EIDL_EID1 0x02
1467 #define _RXF15EIDL_EID2 0x04
1468 #define _RXF15EIDL_EID3 0x08
1469 #define _RXF15EIDL_EID4 0x10
1470 #define _RXF15EIDL_EID5 0x20
1471 #define _RXF15EIDL_EID6 0x40
1472 #define _RXF15EIDL_EID7 0x80
1474 //==============================================================================
1477 //==============================================================================
1478 // RXFCON0 Bits
1480 extern __at(0x0DD4) __sfr RXFCON0;
1482 typedef struct
1484 unsigned RXF0EN : 1;
1485 unsigned RXF1EN : 1;
1486 unsigned RXF2EN : 1;
1487 unsigned RXF3EN : 1;
1488 unsigned RXF4EN : 1;
1489 unsigned RXF5EN : 1;
1490 unsigned RXF6EN : 1;
1491 unsigned RXF7EN : 1;
1492 } __RXFCON0bits_t;
1494 extern __at(0x0DD4) volatile __RXFCON0bits_t RXFCON0bits;
1496 #define _RXF0EN 0x01
1497 #define _RXF1EN 0x02
1498 #define _RXF2EN 0x04
1499 #define _RXF3EN 0x08
1500 #define _RXF4EN 0x10
1501 #define _RXF5EN 0x20
1502 #define _RXF6EN 0x40
1503 #define _RXF7EN 0x80
1505 //==============================================================================
1508 //==============================================================================
1509 // RXFCON1 Bits
1511 extern __at(0x0DD5) __sfr RXFCON1;
1513 typedef struct
1515 unsigned RXF8EN : 1;
1516 unsigned RXF9EN : 1;
1517 unsigned RXF10EN : 1;
1518 unsigned RXF11EN : 1;
1519 unsigned RXF12EN : 1;
1520 unsigned RXF13EN : 1;
1521 unsigned RXF14EN : 1;
1522 unsigned RXF15EN : 1;
1523 } __RXFCON1bits_t;
1525 extern __at(0x0DD5) volatile __RXFCON1bits_t RXFCON1bits;
1527 #define _RXF8EN 0x01
1528 #define _RXF9EN 0x02
1529 #define _RXF10EN 0x04
1530 #define _RXF11EN 0x08
1531 #define _RXF12EN 0x10
1532 #define _RXF13EN 0x20
1533 #define _RXF14EN 0x40
1534 #define _RXF15EN 0x80
1536 //==============================================================================
1539 //==============================================================================
1540 // SDFLC Bits
1542 extern __at(0x0DD8) __sfr SDFLC;
1544 typedef union
1546 struct
1548 unsigned FLC0 : 1;
1549 unsigned FLC1 : 1;
1550 unsigned FLC2 : 1;
1551 unsigned FLC3 : 1;
1552 unsigned FLC4 : 1;
1553 unsigned : 1;
1554 unsigned : 1;
1555 unsigned : 1;
1558 struct
1560 unsigned DFLC0 : 1;
1561 unsigned DFLC1 : 1;
1562 unsigned DFLC2 : 1;
1563 unsigned DFLC3 : 1;
1564 unsigned DFLC4 : 1;
1565 unsigned : 1;
1566 unsigned : 1;
1567 unsigned : 1;
1570 struct
1572 unsigned FLC : 5;
1573 unsigned : 3;
1576 struct
1578 unsigned DFLC : 5;
1579 unsigned : 3;
1581 } __SDFLCbits_t;
1583 extern __at(0x0DD8) volatile __SDFLCbits_t SDFLCbits;
1585 #define _FLC0 0x01
1586 #define _DFLC0 0x01
1587 #define _FLC1 0x02
1588 #define _DFLC1 0x02
1589 #define _FLC2 0x04
1590 #define _DFLC2 0x04
1591 #define _FLC3 0x08
1592 #define _DFLC3 0x08
1593 #define _FLC4 0x10
1594 #define _DFLC4 0x10
1596 //==============================================================================
1599 //==============================================================================
1600 // RXFBCON0 Bits
1602 extern __at(0x0DE0) __sfr RXFBCON0;
1604 typedef union
1606 struct
1608 unsigned F0BP_0 : 1;
1609 unsigned F0BP_1 : 1;
1610 unsigned F0BP_2 : 1;
1611 unsigned F0BP_3 : 1;
1612 unsigned F1BP_0 : 1;
1613 unsigned F1BP_1 : 1;
1614 unsigned F1BP_2 : 1;
1615 unsigned F1BP_3 : 1;
1618 struct
1620 unsigned F0BP_ : 4;
1621 unsigned : 4;
1624 struct
1626 unsigned : 4;
1627 unsigned F1BP_ : 4;
1629 } __RXFBCON0bits_t;
1631 extern __at(0x0DE0) volatile __RXFBCON0bits_t RXFBCON0bits;
1633 #define _F0BP_0 0x01
1634 #define _F0BP_1 0x02
1635 #define _F0BP_2 0x04
1636 #define _F0BP_3 0x08
1637 #define _F1BP_0 0x10
1638 #define _F1BP_1 0x20
1639 #define _F1BP_2 0x40
1640 #define _F1BP_3 0x80
1642 //==============================================================================
1645 //==============================================================================
1646 // RXFBCON1 Bits
1648 extern __at(0x0DE1) __sfr RXFBCON1;
1650 typedef union
1652 struct
1654 unsigned F2BP_0 : 1;
1655 unsigned F2BP_1 : 1;
1656 unsigned F2BP_2 : 1;
1657 unsigned F2BP_3 : 1;
1658 unsigned F3BP_0 : 1;
1659 unsigned F3BP_1 : 1;
1660 unsigned F3BP_2 : 1;
1661 unsigned F3BP_3 : 1;
1664 struct
1666 unsigned F2BP_ : 4;
1667 unsigned : 4;
1670 struct
1672 unsigned : 4;
1673 unsigned F3BP_ : 4;
1675 } __RXFBCON1bits_t;
1677 extern __at(0x0DE1) volatile __RXFBCON1bits_t RXFBCON1bits;
1679 #define _F2BP_0 0x01
1680 #define _F2BP_1 0x02
1681 #define _F2BP_2 0x04
1682 #define _F2BP_3 0x08
1683 #define _F3BP_0 0x10
1684 #define _F3BP_1 0x20
1685 #define _F3BP_2 0x40
1686 #define _F3BP_3 0x80
1688 //==============================================================================
1691 //==============================================================================
1692 // RXFBCON2 Bits
1694 extern __at(0x0DE2) __sfr RXFBCON2;
1696 typedef union
1698 struct
1700 unsigned F4BP_0 : 1;
1701 unsigned F4BP_1 : 1;
1702 unsigned F4BP_2 : 1;
1703 unsigned F4BP_3 : 1;
1704 unsigned F5BP_0 : 1;
1705 unsigned F5BP_1 : 1;
1706 unsigned F5BP_2 : 1;
1707 unsigned F5BP_3 : 1;
1710 struct
1712 unsigned F4BP_ : 4;
1713 unsigned : 4;
1716 struct
1718 unsigned : 4;
1719 unsigned F5BP_ : 4;
1721 } __RXFBCON2bits_t;
1723 extern __at(0x0DE2) volatile __RXFBCON2bits_t RXFBCON2bits;
1725 #define _F4BP_0 0x01
1726 #define _F4BP_1 0x02
1727 #define _F4BP_2 0x04
1728 #define _F4BP_3 0x08
1729 #define _F5BP_0 0x10
1730 #define _F5BP_1 0x20
1731 #define _F5BP_2 0x40
1732 #define _F5BP_3 0x80
1734 //==============================================================================
1737 //==============================================================================
1738 // RXFBCON3 Bits
1740 extern __at(0x0DE3) __sfr RXFBCON3;
1742 typedef union
1744 struct
1746 unsigned F6BP_0 : 1;
1747 unsigned F6BP_1 : 1;
1748 unsigned F6BP_2 : 1;
1749 unsigned F6BP_3 : 1;
1750 unsigned F7BP_0 : 1;
1751 unsigned F7BP_1 : 1;
1752 unsigned F7BP_2 : 1;
1753 unsigned F7BP_3 : 1;
1756 struct
1758 unsigned F6BP_ : 4;
1759 unsigned : 4;
1762 struct
1764 unsigned : 4;
1765 unsigned F7BP_ : 4;
1767 } __RXFBCON3bits_t;
1769 extern __at(0x0DE3) volatile __RXFBCON3bits_t RXFBCON3bits;
1771 #define _F6BP_0 0x01
1772 #define _F6BP_1 0x02
1773 #define _F6BP_2 0x04
1774 #define _F6BP_3 0x08
1775 #define _F7BP_0 0x10
1776 #define _F7BP_1 0x20
1777 #define _F7BP_2 0x40
1778 #define _F7BP_3 0x80
1780 //==============================================================================
1783 //==============================================================================
1784 // RXFBCON4 Bits
1786 extern __at(0x0DE4) __sfr RXFBCON4;
1788 typedef union
1790 struct
1792 unsigned F8BP_0 : 1;
1793 unsigned F8BP_1 : 1;
1794 unsigned F8BP_2 : 1;
1795 unsigned F8BP_3 : 1;
1796 unsigned F9BP_0 : 1;
1797 unsigned F9BP_1 : 1;
1798 unsigned F9BP_2 : 1;
1799 unsigned F9BP_3 : 1;
1802 struct
1804 unsigned F8BP_ : 4;
1805 unsigned : 4;
1808 struct
1810 unsigned : 4;
1811 unsigned F9BP_ : 4;
1813 } __RXFBCON4bits_t;
1815 extern __at(0x0DE4) volatile __RXFBCON4bits_t RXFBCON4bits;
1817 #define _F8BP_0 0x01
1818 #define _F8BP_1 0x02
1819 #define _F8BP_2 0x04
1820 #define _F8BP_3 0x08
1821 #define _F9BP_0 0x10
1822 #define _F9BP_1 0x20
1823 #define _F9BP_2 0x40
1824 #define _F9BP_3 0x80
1826 //==============================================================================
1829 //==============================================================================
1830 // RXFBCON5 Bits
1832 extern __at(0x0DE5) __sfr RXFBCON5;
1834 typedef union
1836 struct
1838 unsigned F10BP_0 : 1;
1839 unsigned F10BP_1 : 1;
1840 unsigned F10BP_2 : 1;
1841 unsigned F10BP_3 : 1;
1842 unsigned F11BP_0 : 1;
1843 unsigned F11BP_1 : 1;
1844 unsigned F11BP_2 : 1;
1845 unsigned F11BP_3 : 1;
1848 struct
1850 unsigned F10BP_ : 4;
1851 unsigned : 4;
1854 struct
1856 unsigned : 4;
1857 unsigned F11BP_ : 4;
1859 } __RXFBCON5bits_t;
1861 extern __at(0x0DE5) volatile __RXFBCON5bits_t RXFBCON5bits;
1863 #define _F10BP_0 0x01
1864 #define _F10BP_1 0x02
1865 #define _F10BP_2 0x04
1866 #define _F10BP_3 0x08
1867 #define _F11BP_0 0x10
1868 #define _F11BP_1 0x20
1869 #define _F11BP_2 0x40
1870 #define _F11BP_3 0x80
1872 //==============================================================================
1875 //==============================================================================
1876 // RXFBCON6 Bits
1878 extern __at(0x0DE6) __sfr RXFBCON6;
1880 typedef union
1882 struct
1884 unsigned F12BP_0 : 1;
1885 unsigned F12BP_1 : 1;
1886 unsigned F12BP_2 : 1;
1887 unsigned F12BP_3 : 1;
1888 unsigned F13BP_0 : 1;
1889 unsigned F13BP_1 : 1;
1890 unsigned F13BP_2 : 1;
1891 unsigned F13BP_3 : 1;
1894 struct
1896 unsigned F12BP_ : 4;
1897 unsigned : 4;
1900 struct
1902 unsigned : 4;
1903 unsigned F13BP_ : 4;
1905 } __RXFBCON6bits_t;
1907 extern __at(0x0DE6) volatile __RXFBCON6bits_t RXFBCON6bits;
1909 #define _F12BP_0 0x01
1910 #define _F12BP_1 0x02
1911 #define _F12BP_2 0x04
1912 #define _F12BP_3 0x08
1913 #define _F13BP_0 0x10
1914 #define _F13BP_1 0x20
1915 #define _F13BP_2 0x40
1916 #define _F13BP_3 0x80
1918 //==============================================================================
1921 //==============================================================================
1922 // RXFBCON7 Bits
1924 extern __at(0x0DE7) __sfr RXFBCON7;
1926 typedef union
1928 struct
1930 unsigned F14BP_0 : 1;
1931 unsigned F14BP_1 : 1;
1932 unsigned F14BP_2 : 1;
1933 unsigned F14BP_3 : 1;
1934 unsigned F15BP_0 : 1;
1935 unsigned F15BP_1 : 1;
1936 unsigned F15BP_2 : 1;
1937 unsigned F15BP_3 : 1;
1940 struct
1942 unsigned F14BP_ : 4;
1943 unsigned : 4;
1946 struct
1948 unsigned : 4;
1949 unsigned F15BP_ : 4;
1951 } __RXFBCON7bits_t;
1953 extern __at(0x0DE7) volatile __RXFBCON7bits_t RXFBCON7bits;
1955 #define _F14BP_0 0x01
1956 #define _F14BP_1 0x02
1957 #define _F14BP_2 0x04
1958 #define _F14BP_3 0x08
1959 #define _F15BP_0 0x10
1960 #define _F15BP_1 0x20
1961 #define _F15BP_2 0x40
1962 #define _F15BP_3 0x80
1964 //==============================================================================
1967 //==============================================================================
1968 // MSEL0 Bits
1970 extern __at(0x0DF0) __sfr MSEL0;
1972 typedef union
1974 struct
1976 unsigned FIL0_0 : 1;
1977 unsigned FIL0_1 : 1;
1978 unsigned FIL1_0 : 1;
1979 unsigned FIL1_1 : 1;
1980 unsigned FIL2_0 : 1;
1981 unsigned FIL2_1 : 1;
1982 unsigned FIL3_0 : 1;
1983 unsigned FIL3_1 : 1;
1986 struct
1988 unsigned FIL0_ : 2;
1989 unsigned : 6;
1992 struct
1994 unsigned : 2;
1995 unsigned FIL1_ : 2;
1996 unsigned : 4;
1999 struct
2001 unsigned : 4;
2002 unsigned FIL2_ : 2;
2003 unsigned : 2;
2006 struct
2008 unsigned : 6;
2009 unsigned FIL3_ : 2;
2011 } __MSEL0bits_t;
2013 extern __at(0x0DF0) volatile __MSEL0bits_t MSEL0bits;
2015 #define _FIL0_0 0x01
2016 #define _FIL0_1 0x02
2017 #define _FIL1_0 0x04
2018 #define _FIL1_1 0x08
2019 #define _FIL2_0 0x10
2020 #define _FIL2_1 0x20
2021 #define _FIL3_0 0x40
2022 #define _FIL3_1 0x80
2024 //==============================================================================
2027 //==============================================================================
2028 // MSEL1 Bits
2030 extern __at(0x0DF1) __sfr MSEL1;
2032 typedef union
2034 struct
2036 unsigned FIL4_0 : 1;
2037 unsigned FIL4_1 : 1;
2038 unsigned FIL5_0 : 1;
2039 unsigned FIL5_1 : 1;
2040 unsigned FIL6_0 : 1;
2041 unsigned FIL6_1 : 1;
2042 unsigned FIL7_0 : 1;
2043 unsigned FIL7_1 : 1;
2046 struct
2048 unsigned FIL4_ : 2;
2049 unsigned : 6;
2052 struct
2054 unsigned : 2;
2055 unsigned FIL5_ : 2;
2056 unsigned : 4;
2059 struct
2061 unsigned : 4;
2062 unsigned FIL6_ : 2;
2063 unsigned : 2;
2066 struct
2068 unsigned : 6;
2069 unsigned FIL7_ : 2;
2071 } __MSEL1bits_t;
2073 extern __at(0x0DF1) volatile __MSEL1bits_t MSEL1bits;
2075 #define _FIL4_0 0x01
2076 #define _FIL4_1 0x02
2077 #define _FIL5_0 0x04
2078 #define _FIL5_1 0x08
2079 #define _FIL6_0 0x10
2080 #define _FIL6_1 0x20
2081 #define _FIL7_0 0x40
2082 #define _FIL7_1 0x80
2084 //==============================================================================
2087 //==============================================================================
2088 // MSEL2 Bits
2090 extern __at(0x0DF2) __sfr MSEL2;
2092 typedef union
2094 struct
2096 unsigned FIL8_0 : 1;
2097 unsigned FIL8_1 : 1;
2098 unsigned FIL9_0 : 1;
2099 unsigned FIL9_1 : 1;
2100 unsigned FIL10_0 : 1;
2101 unsigned FIL10_1 : 1;
2102 unsigned FIL11_0 : 1;
2103 unsigned FIL11_1 : 1;
2106 struct
2108 unsigned FIL8_ : 2;
2109 unsigned : 6;
2112 struct
2114 unsigned : 2;
2115 unsigned FIL9_ : 2;
2116 unsigned : 4;
2119 struct
2121 unsigned : 4;
2122 unsigned FIL10_ : 2;
2123 unsigned : 2;
2126 struct
2128 unsigned : 6;
2129 unsigned FIL11_ : 2;
2131 } __MSEL2bits_t;
2133 extern __at(0x0DF2) volatile __MSEL2bits_t MSEL2bits;
2135 #define _FIL8_0 0x01
2136 #define _FIL8_1 0x02
2137 #define _FIL9_0 0x04
2138 #define _FIL9_1 0x08
2139 #define _FIL10_0 0x10
2140 #define _FIL10_1 0x20
2141 #define _FIL11_0 0x40
2142 #define _FIL11_1 0x80
2144 //==============================================================================
2147 //==============================================================================
2148 // MSEL3 Bits
2150 extern __at(0x0DF3) __sfr MSEL3;
2152 typedef union
2154 struct
2156 unsigned FIL12_0 : 1;
2157 unsigned FIL12_1 : 1;
2158 unsigned FIL13_0 : 1;
2159 unsigned FIL13_1 : 1;
2160 unsigned FIL14_0 : 1;
2161 unsigned FIL14_1 : 1;
2162 unsigned FIL15_0 : 1;
2163 unsigned FIL15_1 : 1;
2166 struct
2168 unsigned FIL12_ : 2;
2169 unsigned : 6;
2172 struct
2174 unsigned : 2;
2175 unsigned FIL13_ : 2;
2176 unsigned : 4;
2179 struct
2181 unsigned : 4;
2182 unsigned FIL14_ : 2;
2183 unsigned : 2;
2186 struct
2188 unsigned : 6;
2189 unsigned FIL15_ : 2;
2191 } __MSEL3bits_t;
2193 extern __at(0x0DF3) volatile __MSEL3bits_t MSEL3bits;
2195 #define _FIL12_0 0x01
2196 #define _FIL12_1 0x02
2197 #define _FIL13_0 0x04
2198 #define _FIL13_1 0x08
2199 #define _FIL14_0 0x10
2200 #define _FIL14_1 0x20
2201 #define _FIL15_0 0x40
2202 #define _FIL15_1 0x80
2204 //==============================================================================
2207 //==============================================================================
2208 // BSEL0 Bits
2210 extern __at(0x0DF8) __sfr BSEL0;
2212 typedef struct
2214 unsigned : 1;
2215 unsigned : 1;
2216 unsigned B0TXEN : 1;
2217 unsigned B1TXEN : 1;
2218 unsigned B2TXEN : 1;
2219 unsigned B3TXEN : 1;
2220 unsigned B4TXEN : 1;
2221 unsigned B5TXEN : 1;
2222 } __BSEL0bits_t;
2224 extern __at(0x0DF8) volatile __BSEL0bits_t BSEL0bits;
2226 #define _B0TXEN 0x04
2227 #define _B1TXEN 0x08
2228 #define _B2TXEN 0x10
2229 #define _B3TXEN 0x20
2230 #define _B4TXEN 0x40
2231 #define _B5TXEN 0x80
2233 //==============================================================================
2236 //==============================================================================
2237 // BIE0 Bits
2239 extern __at(0x0DFA) __sfr BIE0;
2241 typedef struct
2243 unsigned RXB0IE : 1;
2244 unsigned RXB1IE : 1;
2245 unsigned B0IE : 1;
2246 unsigned B1IE : 1;
2247 unsigned B2IE : 1;
2248 unsigned B3IE : 1;
2249 unsigned B4IE : 1;
2250 unsigned B5IE : 1;
2251 } __BIE0bits_t;
2253 extern __at(0x0DFA) volatile __BIE0bits_t BIE0bits;
2255 #define _RXB0IE 0x01
2256 #define _RXB1IE 0x02
2257 #define _B0IE 0x04
2258 #define _B1IE 0x08
2259 #define _B2IE 0x10
2260 #define _B3IE 0x20
2261 #define _B4IE 0x40
2262 #define _B5IE 0x80
2264 //==============================================================================
2267 //==============================================================================
2268 // TXBIE Bits
2270 extern __at(0x0DFC) __sfr TXBIE;
2272 typedef struct
2274 unsigned : 1;
2275 unsigned : 1;
2276 unsigned TXB0IE : 1;
2277 unsigned TXB1IE : 1;
2278 unsigned TXB2IE : 1;
2279 unsigned : 1;
2280 unsigned : 1;
2281 unsigned : 1;
2282 } __TXBIEbits_t;
2284 extern __at(0x0DFC) volatile __TXBIEbits_t TXBIEbits;
2286 #define _TXBIE_TXB0IE 0x04
2287 #define _TXBIE_TXB1IE 0x08
2288 #define _TXBIE_TXB2IE 0x10
2290 //==============================================================================
2293 //==============================================================================
2294 // B0CON Bits
2296 extern __at(0x0E20) __sfr B0CON;
2298 typedef union
2300 struct
2302 unsigned FILHIT0_TXPRI0 : 1;
2303 unsigned FILHIT1_TXPRI1 : 1;
2304 unsigned FILHIT2_RTREN : 1;
2305 unsigned FILHIT3_TXREQ : 1;
2306 unsigned FILHIT4_TXERR : 1;
2307 unsigned RXRTRRO_TXLARB : 1;
2308 unsigned RXM1_TXABT : 1;
2309 unsigned RXFUL_TXBIF : 1;
2312 struct
2314 unsigned FILHIT0 : 1;
2315 unsigned FILHIT1 : 1;
2316 unsigned FILHIT2 : 1;
2317 unsigned FILHIT3 : 1;
2318 unsigned FILHIT4 : 1;
2319 unsigned RTRRO : 1;
2320 unsigned RXM1 : 1;
2321 unsigned RXFUL : 1;
2324 struct
2326 unsigned TXPRI0 : 1;
2327 unsigned TXPRI1 : 1;
2328 unsigned RTREN : 1;
2329 unsigned TXREQ : 1;
2330 unsigned TXERR : 1;
2331 unsigned TXLARB : 1;
2332 unsigned TXABT : 1;
2333 unsigned TXBIF : 1;
2336 struct
2338 unsigned : 1;
2339 unsigned : 1;
2340 unsigned : 1;
2341 unsigned : 1;
2342 unsigned : 1;
2343 unsigned RXRTRRO : 1;
2344 unsigned : 1;
2345 unsigned : 1;
2348 struct
2350 unsigned TXPRI : 2;
2351 unsigned : 6;
2354 struct
2356 unsigned FILHIT : 5;
2357 unsigned : 3;
2359 } __B0CONbits_t;
2361 extern __at(0x0E20) volatile __B0CONbits_t B0CONbits;
2363 #define _FILHIT0_TXPRI0 0x01
2364 #define _FILHIT0 0x01
2365 #define _TXPRI0 0x01
2366 #define _FILHIT1_TXPRI1 0x02
2367 #define _FILHIT1 0x02
2368 #define _TXPRI1 0x02
2369 #define _FILHIT2_RTREN 0x04
2370 #define _FILHIT2 0x04
2371 #define _RTREN 0x04
2372 #define _FILHIT3_TXREQ 0x08
2373 #define _FILHIT3 0x08
2374 #define _TXREQ 0x08
2375 #define _FILHIT4_TXERR 0x10
2376 #define _FILHIT4 0x10
2377 #define _TXERR 0x10
2378 #define _RXRTRRO_TXLARB 0x20
2379 #define _RTRRO 0x20
2380 #define _TXLARB 0x20
2381 #define _RXRTRRO 0x20
2382 #define _RXM1_TXABT 0x40
2383 #define _RXM1 0x40
2384 #define _TXABT 0x40
2385 #define _RXFUL_TXBIF 0x80
2386 #define _RXFUL 0x80
2387 #define _TXBIF 0x80
2389 //==============================================================================
2392 //==============================================================================
2393 // B0SIDH Bits
2395 extern __at(0x0E21) __sfr B0SIDH;
2397 typedef struct
2399 unsigned SID3 : 1;
2400 unsigned SID4 : 1;
2401 unsigned SID5 : 1;
2402 unsigned SID6 : 1;
2403 unsigned SID7 : 1;
2404 unsigned SID8 : 1;
2405 unsigned SID9 : 1;
2406 unsigned SID10 : 1;
2407 } __B0SIDHbits_t;
2409 extern __at(0x0E21) volatile __B0SIDHbits_t B0SIDHbits;
2411 #define _SID3 0x01
2412 #define _SID4 0x02
2413 #define _SID5 0x04
2414 #define _SID6 0x08
2415 #define _SID7 0x10
2416 #define _SID8 0x20
2417 #define _SID9 0x40
2418 #define _SID10 0x80
2420 //==============================================================================
2423 //==============================================================================
2424 // B0SIDL Bits
2426 extern __at(0x0E22) __sfr B0SIDL;
2428 typedef union
2430 struct
2432 unsigned EID16 : 1;
2433 unsigned EID17 : 1;
2434 unsigned : 1;
2435 unsigned EXIDE : 1;
2436 unsigned SRR : 1;
2437 unsigned SID0 : 1;
2438 unsigned SID1 : 1;
2439 unsigned SID2 : 1;
2442 struct
2444 unsigned : 1;
2445 unsigned : 1;
2446 unsigned : 1;
2447 unsigned EXID : 1;
2448 unsigned : 1;
2449 unsigned : 1;
2450 unsigned : 1;
2451 unsigned : 1;
2454 struct
2456 unsigned : 5;
2457 unsigned SID : 3;
2459 } __B0SIDLbits_t;
2461 extern __at(0x0E22) volatile __B0SIDLbits_t B0SIDLbits;
2463 #define _EID16 0x01
2464 #define _EID17 0x02
2465 #define _EXIDE 0x08
2466 #define _EXID 0x08
2467 #define _SRR 0x10
2468 #define _SID0 0x20
2469 #define _SID1 0x40
2470 #define _SID2 0x80
2472 //==============================================================================
2475 //==============================================================================
2476 // B0EIDH Bits
2478 extern __at(0x0E23) __sfr B0EIDH;
2480 typedef struct
2482 unsigned EID8 : 1;
2483 unsigned EID9 : 1;
2484 unsigned EID10 : 1;
2485 unsigned EID11 : 1;
2486 unsigned EID12 : 1;
2487 unsigned EID13 : 1;
2488 unsigned EID14 : 1;
2489 unsigned EID15 : 1;
2490 } __B0EIDHbits_t;
2492 extern __at(0x0E23) volatile __B0EIDHbits_t B0EIDHbits;
2494 #define _EID8 0x01
2495 #define _EID9 0x02
2496 #define _EID10 0x04
2497 #define _EID11 0x08
2498 #define _EID12 0x10
2499 #define _EID13 0x20
2500 #define _EID14 0x40
2501 #define _EID15 0x80
2503 //==============================================================================
2506 //==============================================================================
2507 // B0EIDL Bits
2509 extern __at(0x0E24) __sfr B0EIDL;
2511 typedef struct
2513 unsigned EID0 : 1;
2514 unsigned EID1 : 1;
2515 unsigned EID2 : 1;
2516 unsigned EID3 : 1;
2517 unsigned EID4 : 1;
2518 unsigned EID5 : 1;
2519 unsigned EID6 : 1;
2520 unsigned EID7 : 1;
2521 } __B0EIDLbits_t;
2523 extern __at(0x0E24) volatile __B0EIDLbits_t B0EIDLbits;
2525 #define _EID0 0x01
2526 #define _EID1 0x02
2527 #define _EID2 0x04
2528 #define _EID3 0x08
2529 #define _EID4 0x10
2530 #define _EID5 0x20
2531 #define _EID6 0x40
2532 #define _EID7 0x80
2534 //==============================================================================
2537 //==============================================================================
2538 // B0DLC Bits
2540 extern __at(0x0E25) __sfr B0DLC;
2542 typedef union
2544 struct
2546 unsigned DLC0 : 1;
2547 unsigned DLC1 : 1;
2548 unsigned DLC2 : 1;
2549 unsigned DLC3 : 1;
2550 unsigned RB0 : 1;
2551 unsigned RB1 : 1;
2552 unsigned RXRTR_TXRTR : 1;
2553 unsigned : 1;
2556 struct
2558 unsigned : 1;
2559 unsigned : 1;
2560 unsigned : 1;
2561 unsigned : 1;
2562 unsigned RESRB0 : 1;
2563 unsigned RESRB1 : 1;
2564 unsigned TXRTR : 1;
2565 unsigned : 1;
2568 struct
2570 unsigned : 1;
2571 unsigned : 1;
2572 unsigned : 1;
2573 unsigned : 1;
2574 unsigned : 1;
2575 unsigned : 1;
2576 unsigned RXRTR : 1;
2577 unsigned : 1;
2580 struct
2582 unsigned DLC : 4;
2583 unsigned : 4;
2586 struct
2588 unsigned : 4;
2589 unsigned RB : 2;
2590 unsigned : 2;
2593 struct
2595 unsigned : 4;
2596 unsigned RESRB : 2;
2597 unsigned : 2;
2599 } __B0DLCbits_t;
2601 extern __at(0x0E25) volatile __B0DLCbits_t B0DLCbits;
2603 #define _DLC0 0x01
2604 #define _DLC1 0x02
2605 #define _DLC2 0x04
2606 #define _DLC3 0x08
2607 #define _RB0 0x10
2608 #define _RESRB0 0x10
2609 #define _RB1 0x20
2610 #define _RESRB1 0x20
2611 #define _RXRTR_TXRTR 0x40
2612 #define _TXRTR 0x40
2613 #define _RXRTR 0x40
2615 //==============================================================================
2618 //==============================================================================
2619 // B0D0 Bits
2621 extern __at(0x0E26) __sfr B0D0;
2623 typedef struct
2625 unsigned B0D00 : 1;
2626 unsigned B0D01 : 1;
2627 unsigned B0D02 : 1;
2628 unsigned B0D03 : 1;
2629 unsigned B0D04 : 1;
2630 unsigned B0D05 : 1;
2631 unsigned B0D06 : 1;
2632 unsigned B0D07 : 1;
2633 } __B0D0bits_t;
2635 extern __at(0x0E26) volatile __B0D0bits_t B0D0bits;
2637 #define _B0D00 0x01
2638 #define _B0D01 0x02
2639 #define _B0D02 0x04
2640 #define _B0D03 0x08
2641 #define _B0D04 0x10
2642 #define _B0D05 0x20
2643 #define _B0D06 0x40
2644 #define _B0D07 0x80
2646 //==============================================================================
2649 //==============================================================================
2650 // B0D1 Bits
2652 extern __at(0x0E27) __sfr B0D1;
2654 typedef struct
2656 unsigned B0D10 : 1;
2657 unsigned B0D11 : 1;
2658 unsigned B0D12 : 1;
2659 unsigned B0D13 : 1;
2660 unsigned B0D14 : 1;
2661 unsigned B0D15 : 1;
2662 unsigned B0D16 : 1;
2663 unsigned B0D17 : 1;
2664 } __B0D1bits_t;
2666 extern __at(0x0E27) volatile __B0D1bits_t B0D1bits;
2668 #define _B0D10 0x01
2669 #define _B0D11 0x02
2670 #define _B0D12 0x04
2671 #define _B0D13 0x08
2672 #define _B0D14 0x10
2673 #define _B0D15 0x20
2674 #define _B0D16 0x40
2675 #define _B0D17 0x80
2677 //==============================================================================
2680 //==============================================================================
2681 // B0D2 Bits
2683 extern __at(0x0E28) __sfr B0D2;
2685 typedef struct
2687 unsigned B0D20 : 1;
2688 unsigned B0D21 : 1;
2689 unsigned B0D22 : 1;
2690 unsigned B0D23 : 1;
2691 unsigned B0D24 : 1;
2692 unsigned B0D25 : 1;
2693 unsigned B0D26 : 1;
2694 unsigned B0D27 : 1;
2695 } __B0D2bits_t;
2697 extern __at(0x0E28) volatile __B0D2bits_t B0D2bits;
2699 #define _B0D20 0x01
2700 #define _B0D21 0x02
2701 #define _B0D22 0x04
2702 #define _B0D23 0x08
2703 #define _B0D24 0x10
2704 #define _B0D25 0x20
2705 #define _B0D26 0x40
2706 #define _B0D27 0x80
2708 //==============================================================================
2711 //==============================================================================
2712 // B0D3 Bits
2714 extern __at(0x0E29) __sfr B0D3;
2716 typedef struct
2718 unsigned B0D30 : 1;
2719 unsigned B0D31 : 1;
2720 unsigned B0D32 : 1;
2721 unsigned B0D33 : 1;
2722 unsigned B0D34 : 1;
2723 unsigned B0D35 : 1;
2724 unsigned B0D36 : 1;
2725 unsigned B0D37 : 1;
2726 } __B0D3bits_t;
2728 extern __at(0x0E29) volatile __B0D3bits_t B0D3bits;
2730 #define _B0D30 0x01
2731 #define _B0D31 0x02
2732 #define _B0D32 0x04
2733 #define _B0D33 0x08
2734 #define _B0D34 0x10
2735 #define _B0D35 0x20
2736 #define _B0D36 0x40
2737 #define _B0D37 0x80
2739 //==============================================================================
2742 //==============================================================================
2743 // B0D4 Bits
2745 extern __at(0x0E2A) __sfr B0D4;
2747 typedef struct
2749 unsigned B0D40 : 1;
2750 unsigned B0D41 : 1;
2751 unsigned B0D42 : 1;
2752 unsigned B0D43 : 1;
2753 unsigned B0D44 : 1;
2754 unsigned B0D45 : 1;
2755 unsigned B0D46 : 1;
2756 unsigned B0D47 : 1;
2757 } __B0D4bits_t;
2759 extern __at(0x0E2A) volatile __B0D4bits_t B0D4bits;
2761 #define _B0D40 0x01
2762 #define _B0D41 0x02
2763 #define _B0D42 0x04
2764 #define _B0D43 0x08
2765 #define _B0D44 0x10
2766 #define _B0D45 0x20
2767 #define _B0D46 0x40
2768 #define _B0D47 0x80
2770 //==============================================================================
2773 //==============================================================================
2774 // B0D5 Bits
2776 extern __at(0x0E2B) __sfr B0D5;
2778 typedef struct
2780 unsigned B0D50 : 1;
2781 unsigned B0D51 : 1;
2782 unsigned B0D52 : 1;
2783 unsigned B0D53 : 1;
2784 unsigned B0D54 : 1;
2785 unsigned B0D55 : 1;
2786 unsigned B0D56 : 1;
2787 unsigned B0D57 : 1;
2788 } __B0D5bits_t;
2790 extern __at(0x0E2B) volatile __B0D5bits_t B0D5bits;
2792 #define _B0D50 0x01
2793 #define _B0D51 0x02
2794 #define _B0D52 0x04
2795 #define _B0D53 0x08
2796 #define _B0D54 0x10
2797 #define _B0D55 0x20
2798 #define _B0D56 0x40
2799 #define _B0D57 0x80
2801 //==============================================================================
2804 //==============================================================================
2805 // B0D6 Bits
2807 extern __at(0x0E2C) __sfr B0D6;
2809 typedef struct
2811 unsigned B0D60 : 1;
2812 unsigned B0D61 : 1;
2813 unsigned B0D62 : 1;
2814 unsigned B0D63 : 1;
2815 unsigned B0D64 : 1;
2816 unsigned B0D65 : 1;
2817 unsigned B0D66 : 1;
2818 unsigned B0D67 : 1;
2819 } __B0D6bits_t;
2821 extern __at(0x0E2C) volatile __B0D6bits_t B0D6bits;
2823 #define _B0D60 0x01
2824 #define _B0D61 0x02
2825 #define _B0D62 0x04
2826 #define _B0D63 0x08
2827 #define _B0D64 0x10
2828 #define _B0D65 0x20
2829 #define _B0D66 0x40
2830 #define _B0D67 0x80
2832 //==============================================================================
2835 //==============================================================================
2836 // B0D7 Bits
2838 extern __at(0x0E2D) __sfr B0D7;
2840 typedef struct
2842 unsigned B0D70 : 1;
2843 unsigned B0D71 : 1;
2844 unsigned B0D72 : 1;
2845 unsigned B0D73 : 1;
2846 unsigned B0D74 : 1;
2847 unsigned B0D75 : 1;
2848 unsigned B0D76 : 1;
2849 unsigned B0D77 : 1;
2850 } __B0D7bits_t;
2852 extern __at(0x0E2D) volatile __B0D7bits_t B0D7bits;
2854 #define _B0D70 0x01
2855 #define _B0D71 0x02
2856 #define _B0D72 0x04
2857 #define _B0D73 0x08
2858 #define _B0D74 0x10
2859 #define _B0D75 0x20
2860 #define _B0D76 0x40
2861 #define _B0D77 0x80
2863 //==============================================================================
2866 //==============================================================================
2867 // CANSTAT_RO9 Bits
2869 extern __at(0x0E2E) __sfr CANSTAT_RO9;
2871 typedef union
2873 struct
2875 unsigned EICODE0 : 1;
2876 unsigned EICODE1_ICODE0 : 1;
2877 unsigned EICODE2_ICODE1 : 1;
2878 unsigned EICODE3_ICODE2 : 1;
2879 unsigned EICODE4 : 1;
2880 unsigned OPMODE0 : 1;
2881 unsigned OPMODE1 : 1;
2882 unsigned OPMODE2 : 1;
2885 struct
2887 unsigned ICODE0 : 1;
2888 unsigned ICODE1 : 1;
2889 unsigned ICODE2 : 1;
2890 unsigned ICODE3 : 1;
2891 unsigned ICODE4 : 1;
2892 unsigned : 1;
2893 unsigned : 1;
2894 unsigned : 1;
2897 struct
2899 unsigned ICODE : 5;
2900 unsigned : 3;
2903 struct
2905 unsigned : 5;
2906 unsigned OPMODE : 3;
2908 } __CANSTAT_RO9bits_t;
2910 extern __at(0x0E2E) volatile __CANSTAT_RO9bits_t CANSTAT_RO9bits;
2912 #define _CANSTAT_RO9_EICODE0 0x01
2913 #define _CANSTAT_RO9_ICODE0 0x01
2914 #define _CANSTAT_RO9_EICODE1_ICODE0 0x02
2915 #define _CANSTAT_RO9_ICODE1 0x02
2916 #define _CANSTAT_RO9_EICODE2_ICODE1 0x04
2917 #define _CANSTAT_RO9_ICODE2 0x04
2918 #define _CANSTAT_RO9_EICODE3_ICODE2 0x08
2919 #define _CANSTAT_RO9_ICODE3 0x08
2920 #define _CANSTAT_RO9_EICODE4 0x10
2921 #define _CANSTAT_RO9_ICODE4 0x10
2922 #define _CANSTAT_RO9_OPMODE0 0x20
2923 #define _CANSTAT_RO9_OPMODE1 0x40
2924 #define _CANSTAT_RO9_OPMODE2 0x80
2926 //==============================================================================
2929 //==============================================================================
2930 // CANCON_RO9 Bits
2932 extern __at(0x0E2F) __sfr CANCON_RO9;
2934 typedef union
2936 struct
2938 unsigned FP0 : 1;
2939 unsigned WIN0_FP1 : 1;
2940 unsigned WIN1_FP2 : 1;
2941 unsigned WIN2_FP3 : 1;
2942 unsigned ABAT : 1;
2943 unsigned REQOP0 : 1;
2944 unsigned REQOP1 : 1;
2945 unsigned REQOP2 : 1;
2948 struct
2950 unsigned : 1;
2951 unsigned WIN0 : 1;
2952 unsigned WIN1 : 1;
2953 unsigned WIN2 : 1;
2954 unsigned : 1;
2955 unsigned : 1;
2956 unsigned : 1;
2957 unsigned : 1;
2960 struct
2962 unsigned : 1;
2963 unsigned WIN : 3;
2964 unsigned : 4;
2967 struct
2969 unsigned : 5;
2970 unsigned REQOP : 3;
2972 } __CANCON_RO9bits_t;
2974 extern __at(0x0E2F) volatile __CANCON_RO9bits_t CANCON_RO9bits;
2976 #define _CANCON_RO9_FP0 0x01
2977 #define _CANCON_RO9_WIN0_FP1 0x02
2978 #define _CANCON_RO9_WIN0 0x02
2979 #define _CANCON_RO9_WIN1_FP2 0x04
2980 #define _CANCON_RO9_WIN1 0x04
2981 #define _CANCON_RO9_WIN2_FP3 0x08
2982 #define _CANCON_RO9_WIN2 0x08
2983 #define _CANCON_RO9_ABAT 0x10
2984 #define _CANCON_RO9_REQOP0 0x20
2985 #define _CANCON_RO9_REQOP1 0x40
2986 #define _CANCON_RO9_REQOP2 0x80
2988 //==============================================================================
2991 //==============================================================================
2992 // B1CON Bits
2994 extern __at(0x0E30) __sfr B1CON;
2996 typedef union
2998 struct
3000 unsigned FILHIT0_TXPRI0 : 1;
3001 unsigned FILHIT1_TXPRI1 : 1;
3002 unsigned FILHIT2_RTREN : 1;
3003 unsigned FILHIT3_TXREQ : 1;
3004 unsigned FILHIT4_TXERR : 1;
3005 unsigned RXRTRRO_TXLARB : 1;
3006 unsigned RXM1_TXABT : 1;
3007 unsigned RXFUL_TXBIF : 1;
3010 struct
3012 unsigned FILHIT0 : 1;
3013 unsigned FILHIT1 : 1;
3014 unsigned FILHIT2 : 1;
3015 unsigned FILHIT3 : 1;
3016 unsigned FILHIT4 : 1;
3017 unsigned RTRRO : 1;
3018 unsigned RXM1 : 1;
3019 unsigned RXFUL : 1;
3022 struct
3024 unsigned TXPRI0 : 1;
3025 unsigned TXPRI1 : 1;
3026 unsigned RTREN : 1;
3027 unsigned TXREQ : 1;
3028 unsigned TXERR : 1;
3029 unsigned TXLARB : 1;
3030 unsigned TXABT : 1;
3031 unsigned TXBIF : 1;
3034 struct
3036 unsigned : 1;
3037 unsigned : 1;
3038 unsigned : 1;
3039 unsigned : 1;
3040 unsigned : 1;
3041 unsigned RXRTRRO : 1;
3042 unsigned : 1;
3043 unsigned : 1;
3046 struct
3048 unsigned TXPRI : 2;
3049 unsigned : 6;
3052 struct
3054 unsigned FILHIT : 5;
3055 unsigned : 3;
3057 } __B1CONbits_t;
3059 extern __at(0x0E30) volatile __B1CONbits_t B1CONbits;
3061 #define _B1CON_FILHIT0_TXPRI0 0x01
3062 #define _B1CON_FILHIT0 0x01
3063 #define _B1CON_TXPRI0 0x01
3064 #define _B1CON_FILHIT1_TXPRI1 0x02
3065 #define _B1CON_FILHIT1 0x02
3066 #define _B1CON_TXPRI1 0x02
3067 #define _B1CON_FILHIT2_RTREN 0x04
3068 #define _B1CON_FILHIT2 0x04
3069 #define _B1CON_RTREN 0x04
3070 #define _B1CON_FILHIT3_TXREQ 0x08
3071 #define _B1CON_FILHIT3 0x08
3072 #define _B1CON_TXREQ 0x08
3073 #define _B1CON_FILHIT4_TXERR 0x10
3074 #define _B1CON_FILHIT4 0x10
3075 #define _B1CON_TXERR 0x10
3076 #define _B1CON_RXRTRRO_TXLARB 0x20
3077 #define _B1CON_RTRRO 0x20
3078 #define _B1CON_TXLARB 0x20
3079 #define _B1CON_RXRTRRO 0x20
3080 #define _B1CON_RXM1_TXABT 0x40
3081 #define _B1CON_RXM1 0x40
3082 #define _B1CON_TXABT 0x40
3083 #define _B1CON_RXFUL_TXBIF 0x80
3084 #define _B1CON_RXFUL 0x80
3085 #define _B1CON_TXBIF 0x80
3087 //==============================================================================
3090 //==============================================================================
3091 // B1SIDH Bits
3093 extern __at(0x0E31) __sfr B1SIDH;
3095 typedef struct
3097 unsigned SID3 : 1;
3098 unsigned SID4 : 1;
3099 unsigned SID5 : 1;
3100 unsigned SID6 : 1;
3101 unsigned SID7 : 1;
3102 unsigned SID8 : 1;
3103 unsigned SID9 : 1;
3104 unsigned SID10 : 1;
3105 } __B1SIDHbits_t;
3107 extern __at(0x0E31) volatile __B1SIDHbits_t B1SIDHbits;
3109 #define _B1SIDH_SID3 0x01
3110 #define _B1SIDH_SID4 0x02
3111 #define _B1SIDH_SID5 0x04
3112 #define _B1SIDH_SID6 0x08
3113 #define _B1SIDH_SID7 0x10
3114 #define _B1SIDH_SID8 0x20
3115 #define _B1SIDH_SID9 0x40
3116 #define _B1SIDH_SID10 0x80
3118 //==============================================================================
3121 //==============================================================================
3122 // B1SIDL Bits
3124 extern __at(0x0E32) __sfr B1SIDL;
3126 typedef union
3128 struct
3130 unsigned EID16 : 1;
3131 unsigned EID17 : 1;
3132 unsigned : 1;
3133 unsigned EXIDE : 1;
3134 unsigned SRR : 1;
3135 unsigned SID0 : 1;
3136 unsigned SID1 : 1;
3137 unsigned SID2 : 1;
3140 struct
3142 unsigned : 1;
3143 unsigned : 1;
3144 unsigned : 1;
3145 unsigned EXID : 1;
3146 unsigned : 1;
3147 unsigned : 1;
3148 unsigned : 1;
3149 unsigned : 1;
3152 struct
3154 unsigned : 5;
3155 unsigned SID : 3;
3157 } __B1SIDLbits_t;
3159 extern __at(0x0E32) volatile __B1SIDLbits_t B1SIDLbits;
3161 #define _B1SIDL_EID16 0x01
3162 #define _B1SIDL_EID17 0x02
3163 #define _B1SIDL_EXIDE 0x08
3164 #define _B1SIDL_EXID 0x08
3165 #define _B1SIDL_SRR 0x10
3166 #define _B1SIDL_SID0 0x20
3167 #define _B1SIDL_SID1 0x40
3168 #define _B1SIDL_SID2 0x80
3170 //==============================================================================
3173 //==============================================================================
3174 // B1EIDH Bits
3176 extern __at(0x0E33) __sfr B1EIDH;
3178 typedef struct
3180 unsigned EID8 : 1;
3181 unsigned EID9 : 1;
3182 unsigned EID10 : 1;
3183 unsigned EID11 : 1;
3184 unsigned EID12 : 1;
3185 unsigned EID13 : 1;
3186 unsigned EID14 : 1;
3187 unsigned EID15 : 1;
3188 } __B1EIDHbits_t;
3190 extern __at(0x0E33) volatile __B1EIDHbits_t B1EIDHbits;
3192 #define _B1EIDH_EID8 0x01
3193 #define _B1EIDH_EID9 0x02
3194 #define _B1EIDH_EID10 0x04
3195 #define _B1EIDH_EID11 0x08
3196 #define _B1EIDH_EID12 0x10
3197 #define _B1EIDH_EID13 0x20
3198 #define _B1EIDH_EID14 0x40
3199 #define _B1EIDH_EID15 0x80
3201 //==============================================================================
3204 //==============================================================================
3205 // B1EIDL Bits
3207 extern __at(0x0E34) __sfr B1EIDL;
3209 typedef struct
3211 unsigned EID0 : 1;
3212 unsigned EID1 : 1;
3213 unsigned EID2 : 1;
3214 unsigned EID3 : 1;
3215 unsigned EID4 : 1;
3216 unsigned EID5 : 1;
3217 unsigned EID6 : 1;
3218 unsigned EID7 : 1;
3219 } __B1EIDLbits_t;
3221 extern __at(0x0E34) volatile __B1EIDLbits_t B1EIDLbits;
3223 #define _B1EIDL_EID0 0x01
3224 #define _B1EIDL_EID1 0x02
3225 #define _B1EIDL_EID2 0x04
3226 #define _B1EIDL_EID3 0x08
3227 #define _B1EIDL_EID4 0x10
3228 #define _B1EIDL_EID5 0x20
3229 #define _B1EIDL_EID6 0x40
3230 #define _B1EIDL_EID7 0x80
3232 //==============================================================================
3235 //==============================================================================
3236 // B1DLC Bits
3238 extern __at(0x0E35) __sfr B1DLC;
3240 typedef union
3242 struct
3244 unsigned DLC0 : 1;
3245 unsigned DLC1 : 1;
3246 unsigned DLC2 : 1;
3247 unsigned DLC3 : 1;
3248 unsigned RB0 : 1;
3249 unsigned RB1 : 1;
3250 unsigned RXRTR_TXRTR : 1;
3251 unsigned : 1;
3254 struct
3256 unsigned : 1;
3257 unsigned : 1;
3258 unsigned : 1;
3259 unsigned : 1;
3260 unsigned RESRB0 : 1;
3261 unsigned RESRB1 : 1;
3262 unsigned TXRTR : 1;
3263 unsigned : 1;
3266 struct
3268 unsigned : 1;
3269 unsigned : 1;
3270 unsigned : 1;
3271 unsigned : 1;
3272 unsigned : 1;
3273 unsigned : 1;
3274 unsigned RXRTR : 1;
3275 unsigned : 1;
3278 struct
3280 unsigned DLC : 4;
3281 unsigned : 4;
3284 struct
3286 unsigned : 4;
3287 unsigned RB : 2;
3288 unsigned : 2;
3291 struct
3293 unsigned : 4;
3294 unsigned RESRB : 2;
3295 unsigned : 2;
3297 } __B1DLCbits_t;
3299 extern __at(0x0E35) volatile __B1DLCbits_t B1DLCbits;
3301 #define _B1DLC_DLC0 0x01
3302 #define _B1DLC_DLC1 0x02
3303 #define _B1DLC_DLC2 0x04
3304 #define _B1DLC_DLC3 0x08
3305 #define _B1DLC_RB0 0x10
3306 #define _B1DLC_RESRB0 0x10
3307 #define _B1DLC_RB1 0x20
3308 #define _B1DLC_RESRB1 0x20
3309 #define _B1DLC_RXRTR_TXRTR 0x40
3310 #define _B1DLC_TXRTR 0x40
3311 #define _B1DLC_RXRTR 0x40
3313 //==============================================================================
3316 //==============================================================================
3317 // B1D0 Bits
3319 extern __at(0x0E36) __sfr B1D0;
3321 typedef struct
3323 unsigned B1D00 : 1;
3324 unsigned B1D01 : 1;
3325 unsigned B1D02 : 1;
3326 unsigned B1D03 : 1;
3327 unsigned B1D04 : 1;
3328 unsigned B1D05 : 1;
3329 unsigned B1D06 : 1;
3330 unsigned B1D07 : 1;
3331 } __B1D0bits_t;
3333 extern __at(0x0E36) volatile __B1D0bits_t B1D0bits;
3335 #define _B1D00 0x01
3336 #define _B1D01 0x02
3337 #define _B1D02 0x04
3338 #define _B1D03 0x08
3339 #define _B1D04 0x10
3340 #define _B1D05 0x20
3341 #define _B1D06 0x40
3342 #define _B1D07 0x80
3344 //==============================================================================
3347 //==============================================================================
3348 // B1D1 Bits
3350 extern __at(0x0E37) __sfr B1D1;
3352 typedef struct
3354 unsigned B1D10 : 1;
3355 unsigned B1D11 : 1;
3356 unsigned B1D12 : 1;
3357 unsigned B1D13 : 1;
3358 unsigned B1D14 : 1;
3359 unsigned B1D15 : 1;
3360 unsigned B1D16 : 1;
3361 unsigned B1D17 : 1;
3362 } __B1D1bits_t;
3364 extern __at(0x0E37) volatile __B1D1bits_t B1D1bits;
3366 #define _B1D10 0x01
3367 #define _B1D11 0x02
3368 #define _B1D12 0x04
3369 #define _B1D13 0x08
3370 #define _B1D14 0x10
3371 #define _B1D15 0x20
3372 #define _B1D16 0x40
3373 #define _B1D17 0x80
3375 //==============================================================================
3378 //==============================================================================
3379 // B1D2 Bits
3381 extern __at(0x0E38) __sfr B1D2;
3383 typedef struct
3385 unsigned B1D20 : 1;
3386 unsigned B1D21 : 1;
3387 unsigned B1D22 : 1;
3388 unsigned B1D23 : 1;
3389 unsigned B1D24 : 1;
3390 unsigned B1D25 : 1;
3391 unsigned B1D26 : 1;
3392 unsigned B1D27 : 1;
3393 } __B1D2bits_t;
3395 extern __at(0x0E38) volatile __B1D2bits_t B1D2bits;
3397 #define _B1D20 0x01
3398 #define _B1D21 0x02
3399 #define _B1D22 0x04
3400 #define _B1D23 0x08
3401 #define _B1D24 0x10
3402 #define _B1D25 0x20
3403 #define _B1D26 0x40
3404 #define _B1D27 0x80
3406 //==============================================================================
3409 //==============================================================================
3410 // B1D3 Bits
3412 extern __at(0x0E39) __sfr B1D3;
3414 typedef struct
3416 unsigned B1D30 : 1;
3417 unsigned B1D31 : 1;
3418 unsigned B1D32 : 1;
3419 unsigned B1D33 : 1;
3420 unsigned B1D34 : 1;
3421 unsigned B1D35 : 1;
3422 unsigned B1D36 : 1;
3423 unsigned B1D37 : 1;
3424 } __B1D3bits_t;
3426 extern __at(0x0E39) volatile __B1D3bits_t B1D3bits;
3428 #define _B1D30 0x01
3429 #define _B1D31 0x02
3430 #define _B1D32 0x04
3431 #define _B1D33 0x08
3432 #define _B1D34 0x10
3433 #define _B1D35 0x20
3434 #define _B1D36 0x40
3435 #define _B1D37 0x80
3437 //==============================================================================
3440 //==============================================================================
3441 // B1D4 Bits
3443 extern __at(0x0E3A) __sfr B1D4;
3445 typedef struct
3447 unsigned B1D40 : 1;
3448 unsigned B1D41 : 1;
3449 unsigned B1D42 : 1;
3450 unsigned B1D43 : 1;
3451 unsigned B1D44 : 1;
3452 unsigned B1D45 : 1;
3453 unsigned B1D46 : 1;
3454 unsigned B1D47 : 1;
3455 } __B1D4bits_t;
3457 extern __at(0x0E3A) volatile __B1D4bits_t B1D4bits;
3459 #define _B1D40 0x01
3460 #define _B1D41 0x02
3461 #define _B1D42 0x04
3462 #define _B1D43 0x08
3463 #define _B1D44 0x10
3464 #define _B1D45 0x20
3465 #define _B1D46 0x40
3466 #define _B1D47 0x80
3468 //==============================================================================
3471 //==============================================================================
3472 // B1D5 Bits
3474 extern __at(0x0E3B) __sfr B1D5;
3476 typedef struct
3478 unsigned B1D50 : 1;
3479 unsigned B1D51 : 1;
3480 unsigned B1D52 : 1;
3481 unsigned B1D53 : 1;
3482 unsigned B1D54 : 1;
3483 unsigned B1D55 : 1;
3484 unsigned B1D56 : 1;
3485 unsigned B1D57 : 1;
3486 } __B1D5bits_t;
3488 extern __at(0x0E3B) volatile __B1D5bits_t B1D5bits;
3490 #define _B1D50 0x01
3491 #define _B1D51 0x02
3492 #define _B1D52 0x04
3493 #define _B1D53 0x08
3494 #define _B1D54 0x10
3495 #define _B1D55 0x20
3496 #define _B1D56 0x40
3497 #define _B1D57 0x80
3499 //==============================================================================
3502 //==============================================================================
3503 // B1D6 Bits
3505 extern __at(0x0E3C) __sfr B1D6;
3507 typedef struct
3509 unsigned B1D60 : 1;
3510 unsigned B1D61 : 1;
3511 unsigned B1D62 : 1;
3512 unsigned B1D63 : 1;
3513 unsigned B1D64 : 1;
3514 unsigned B1D65 : 1;
3515 unsigned B1D66 : 1;
3516 unsigned B1D67 : 1;
3517 } __B1D6bits_t;
3519 extern __at(0x0E3C) volatile __B1D6bits_t B1D6bits;
3521 #define _B1D60 0x01
3522 #define _B1D61 0x02
3523 #define _B1D62 0x04
3524 #define _B1D63 0x08
3525 #define _B1D64 0x10
3526 #define _B1D65 0x20
3527 #define _B1D66 0x40
3528 #define _B1D67 0x80
3530 //==============================================================================
3533 //==============================================================================
3534 // B1D7 Bits
3536 extern __at(0x0E3D) __sfr B1D7;
3538 typedef struct
3540 unsigned B1D70 : 1;
3541 unsigned B1D71 : 1;
3542 unsigned B1D72 : 1;
3543 unsigned B1D73 : 1;
3544 unsigned B1D74 : 1;
3545 unsigned B1D75 : 1;
3546 unsigned B1D76 : 1;
3547 unsigned B1D77 : 1;
3548 } __B1D7bits_t;
3550 extern __at(0x0E3D) volatile __B1D7bits_t B1D7bits;
3552 #define _B1D70 0x01
3553 #define _B1D71 0x02
3554 #define _B1D72 0x04
3555 #define _B1D73 0x08
3556 #define _B1D74 0x10
3557 #define _B1D75 0x20
3558 #define _B1D76 0x40
3559 #define _B1D77 0x80
3561 //==============================================================================
3564 //==============================================================================
3565 // CANSTAT_RO8 Bits
3567 extern __at(0x0E3E) __sfr CANSTAT_RO8;
3569 typedef union
3571 struct
3573 unsigned EICODE0 : 1;
3574 unsigned EICODE1_ICODE0 : 1;
3575 unsigned EICODE2_ICODE1 : 1;
3576 unsigned EICODE3_ICODE2 : 1;
3577 unsigned EICODE4 : 1;
3578 unsigned OPMODE0 : 1;
3579 unsigned OPMODE1 : 1;
3580 unsigned OPMODE2 : 1;
3583 struct
3585 unsigned ICODE0 : 1;
3586 unsigned ICODE1 : 1;
3587 unsigned ICODE2 : 1;
3588 unsigned ICODE3 : 1;
3589 unsigned ICODE4 : 1;
3590 unsigned : 1;
3591 unsigned : 1;
3592 unsigned : 1;
3595 struct
3597 unsigned ICODE : 5;
3598 unsigned : 3;
3601 struct
3603 unsigned : 5;
3604 unsigned OPMODE : 3;
3606 } __CANSTAT_RO8bits_t;
3608 extern __at(0x0E3E) volatile __CANSTAT_RO8bits_t CANSTAT_RO8bits;
3610 #define _CANSTAT_RO8_EICODE0 0x01
3611 #define _CANSTAT_RO8_ICODE0 0x01
3612 #define _CANSTAT_RO8_EICODE1_ICODE0 0x02
3613 #define _CANSTAT_RO8_ICODE1 0x02
3614 #define _CANSTAT_RO8_EICODE2_ICODE1 0x04
3615 #define _CANSTAT_RO8_ICODE2 0x04
3616 #define _CANSTAT_RO8_EICODE3_ICODE2 0x08
3617 #define _CANSTAT_RO8_ICODE3 0x08
3618 #define _CANSTAT_RO8_EICODE4 0x10
3619 #define _CANSTAT_RO8_ICODE4 0x10
3620 #define _CANSTAT_RO8_OPMODE0 0x20
3621 #define _CANSTAT_RO8_OPMODE1 0x40
3622 #define _CANSTAT_RO8_OPMODE2 0x80
3624 //==============================================================================
3627 //==============================================================================
3628 // CANCON_RO8 Bits
3630 extern __at(0x0E3F) __sfr CANCON_RO8;
3632 typedef union
3634 struct
3636 unsigned FP0 : 1;
3637 unsigned WIN0_FP1 : 1;
3638 unsigned WIN1_FP2 : 1;
3639 unsigned WIN2_FP3 : 1;
3640 unsigned ABAT : 1;
3641 unsigned REQOP0 : 1;
3642 unsigned REQOP1 : 1;
3643 unsigned REQOP2 : 1;
3646 struct
3648 unsigned : 1;
3649 unsigned WIN0 : 1;
3650 unsigned WIN1 : 1;
3651 unsigned WIN2 : 1;
3652 unsigned : 1;
3653 unsigned : 1;
3654 unsigned : 1;
3655 unsigned : 1;
3658 struct
3660 unsigned : 1;
3661 unsigned WIN : 3;
3662 unsigned : 4;
3665 struct
3667 unsigned : 5;
3668 unsigned REQOP : 3;
3670 } __CANCON_RO8bits_t;
3672 extern __at(0x0E3F) volatile __CANCON_RO8bits_t CANCON_RO8bits;
3674 #define _CANCON_RO8_FP0 0x01
3675 #define _CANCON_RO8_WIN0_FP1 0x02
3676 #define _CANCON_RO8_WIN0 0x02
3677 #define _CANCON_RO8_WIN1_FP2 0x04
3678 #define _CANCON_RO8_WIN1 0x04
3679 #define _CANCON_RO8_WIN2_FP3 0x08
3680 #define _CANCON_RO8_WIN2 0x08
3681 #define _CANCON_RO8_ABAT 0x10
3682 #define _CANCON_RO8_REQOP0 0x20
3683 #define _CANCON_RO8_REQOP1 0x40
3684 #define _CANCON_RO8_REQOP2 0x80
3686 //==============================================================================
3689 //==============================================================================
3690 // B2CON Bits
3692 extern __at(0x0E40) __sfr B2CON;
3694 typedef union
3696 struct
3698 unsigned FILHIT0_TXPRI0 : 1;
3699 unsigned FILHIT1_TXPRI1 : 1;
3700 unsigned FILHIT2_RTREN : 1;
3701 unsigned FILHIT3_TXREQ : 1;
3702 unsigned FILHIT4_TXERR : 1;
3703 unsigned RXRTRRO_TXLARB : 1;
3704 unsigned RXM1_TXABT : 1;
3705 unsigned RXFUL_TXBIF : 1;
3708 struct
3710 unsigned FILHIT0 : 1;
3711 unsigned FILHIT1 : 1;
3712 unsigned FILHIT2 : 1;
3713 unsigned FILHIT3 : 1;
3714 unsigned FILHIT4 : 1;
3715 unsigned RTRRO : 1;
3716 unsigned RXM1 : 1;
3717 unsigned RXFUL : 1;
3720 struct
3722 unsigned TXPRI0 : 1;
3723 unsigned TXPRI1 : 1;
3724 unsigned RTREN : 1;
3725 unsigned TXREQ : 1;
3726 unsigned TXERR : 1;
3727 unsigned TXLARB : 1;
3728 unsigned TXABT : 1;
3729 unsigned TXBIF : 1;
3732 struct
3734 unsigned : 1;
3735 unsigned : 1;
3736 unsigned : 1;
3737 unsigned : 1;
3738 unsigned : 1;
3739 unsigned RXRTRRO : 1;
3740 unsigned : 1;
3741 unsigned : 1;
3744 struct
3746 unsigned TXPRI : 2;
3747 unsigned : 6;
3750 struct
3752 unsigned FILHIT : 5;
3753 unsigned : 3;
3755 } __B2CONbits_t;
3757 extern __at(0x0E40) volatile __B2CONbits_t B2CONbits;
3759 #define _B2CON_FILHIT0_TXPRI0 0x01
3760 #define _B2CON_FILHIT0 0x01
3761 #define _B2CON_TXPRI0 0x01
3762 #define _B2CON_FILHIT1_TXPRI1 0x02
3763 #define _B2CON_FILHIT1 0x02
3764 #define _B2CON_TXPRI1 0x02
3765 #define _B2CON_FILHIT2_RTREN 0x04
3766 #define _B2CON_FILHIT2 0x04
3767 #define _B2CON_RTREN 0x04
3768 #define _B2CON_FILHIT3_TXREQ 0x08
3769 #define _B2CON_FILHIT3 0x08
3770 #define _B2CON_TXREQ 0x08
3771 #define _B2CON_FILHIT4_TXERR 0x10
3772 #define _B2CON_FILHIT4 0x10
3773 #define _B2CON_TXERR 0x10
3774 #define _B2CON_RXRTRRO_TXLARB 0x20
3775 #define _B2CON_RTRRO 0x20
3776 #define _B2CON_TXLARB 0x20
3777 #define _B2CON_RXRTRRO 0x20
3778 #define _B2CON_RXM1_TXABT 0x40
3779 #define _B2CON_RXM1 0x40
3780 #define _B2CON_TXABT 0x40
3781 #define _B2CON_RXFUL_TXBIF 0x80
3782 #define _B2CON_RXFUL 0x80
3783 #define _B2CON_TXBIF 0x80
3785 //==============================================================================
3788 //==============================================================================
3789 // B2SIDH Bits
3791 extern __at(0x0E41) __sfr B2SIDH;
3793 typedef struct
3795 unsigned SID3 : 1;
3796 unsigned SID4 : 1;
3797 unsigned SID5 : 1;
3798 unsigned SID6 : 1;
3799 unsigned SID7 : 1;
3800 unsigned SID8 : 1;
3801 unsigned SID9 : 1;
3802 unsigned SID10 : 1;
3803 } __B2SIDHbits_t;
3805 extern __at(0x0E41) volatile __B2SIDHbits_t B2SIDHbits;
3807 #define _B2SIDH_SID3 0x01
3808 #define _B2SIDH_SID4 0x02
3809 #define _B2SIDH_SID5 0x04
3810 #define _B2SIDH_SID6 0x08
3811 #define _B2SIDH_SID7 0x10
3812 #define _B2SIDH_SID8 0x20
3813 #define _B2SIDH_SID9 0x40
3814 #define _B2SIDH_SID10 0x80
3816 //==============================================================================
3819 //==============================================================================
3820 // B2SIDL Bits
3822 extern __at(0x0E42) __sfr B2SIDL;
3824 typedef union
3826 struct
3828 unsigned EID16 : 1;
3829 unsigned EID17 : 1;
3830 unsigned : 1;
3831 unsigned EXIDE : 1;
3832 unsigned SRR : 1;
3833 unsigned SID0 : 1;
3834 unsigned SID1 : 1;
3835 unsigned SID2 : 1;
3838 struct
3840 unsigned : 1;
3841 unsigned : 1;
3842 unsigned : 1;
3843 unsigned EXID : 1;
3844 unsigned : 1;
3845 unsigned : 1;
3846 unsigned : 1;
3847 unsigned : 1;
3850 struct
3852 unsigned : 5;
3853 unsigned SID : 3;
3855 } __B2SIDLbits_t;
3857 extern __at(0x0E42) volatile __B2SIDLbits_t B2SIDLbits;
3859 #define _B2SIDL_EID16 0x01
3860 #define _B2SIDL_EID17 0x02
3861 #define _B2SIDL_EXIDE 0x08
3862 #define _B2SIDL_EXID 0x08
3863 #define _B2SIDL_SRR 0x10
3864 #define _B2SIDL_SID0 0x20
3865 #define _B2SIDL_SID1 0x40
3866 #define _B2SIDL_SID2 0x80
3868 //==============================================================================
3871 //==============================================================================
3872 // B2EIDH Bits
3874 extern __at(0x0E43) __sfr B2EIDH;
3876 typedef struct
3878 unsigned EID8 : 1;
3879 unsigned EID9 : 1;
3880 unsigned EID10 : 1;
3881 unsigned EID11 : 1;
3882 unsigned EID12 : 1;
3883 unsigned EID13 : 1;
3884 unsigned EID14 : 1;
3885 unsigned EID15 : 1;
3886 } __B2EIDHbits_t;
3888 extern __at(0x0E43) volatile __B2EIDHbits_t B2EIDHbits;
3890 #define _B2EIDH_EID8 0x01
3891 #define _B2EIDH_EID9 0x02
3892 #define _B2EIDH_EID10 0x04
3893 #define _B2EIDH_EID11 0x08
3894 #define _B2EIDH_EID12 0x10
3895 #define _B2EIDH_EID13 0x20
3896 #define _B2EIDH_EID14 0x40
3897 #define _B2EIDH_EID15 0x80
3899 //==============================================================================
3902 //==============================================================================
3903 // B2EIDL Bits
3905 extern __at(0x0E44) __sfr B2EIDL;
3907 typedef struct
3909 unsigned EID0 : 1;
3910 unsigned EID1 : 1;
3911 unsigned EID2 : 1;
3912 unsigned EID3 : 1;
3913 unsigned EID4 : 1;
3914 unsigned EID5 : 1;
3915 unsigned EID6 : 1;
3916 unsigned EID7 : 1;
3917 } __B2EIDLbits_t;
3919 extern __at(0x0E44) volatile __B2EIDLbits_t B2EIDLbits;
3921 #define _B2EIDL_EID0 0x01
3922 #define _B2EIDL_EID1 0x02
3923 #define _B2EIDL_EID2 0x04
3924 #define _B2EIDL_EID3 0x08
3925 #define _B2EIDL_EID4 0x10
3926 #define _B2EIDL_EID5 0x20
3927 #define _B2EIDL_EID6 0x40
3928 #define _B2EIDL_EID7 0x80
3930 //==============================================================================
3933 //==============================================================================
3934 // B2DLC Bits
3936 extern __at(0x0E45) __sfr B2DLC;
3938 typedef union
3940 struct
3942 unsigned DLC0 : 1;
3943 unsigned DLC1 : 1;
3944 unsigned DLC2 : 1;
3945 unsigned DLC3 : 1;
3946 unsigned RB0 : 1;
3947 unsigned RB1 : 1;
3948 unsigned RXRTR_TXRTR : 1;
3949 unsigned : 1;
3952 struct
3954 unsigned : 1;
3955 unsigned : 1;
3956 unsigned : 1;
3957 unsigned : 1;
3958 unsigned RESRB0 : 1;
3959 unsigned RESRB1 : 1;
3960 unsigned TXRTR : 1;
3961 unsigned : 1;
3964 struct
3966 unsigned : 1;
3967 unsigned : 1;
3968 unsigned : 1;
3969 unsigned : 1;
3970 unsigned : 1;
3971 unsigned : 1;
3972 unsigned RXRTR : 1;
3973 unsigned : 1;
3976 struct
3978 unsigned DLC : 4;
3979 unsigned : 4;
3982 struct
3984 unsigned : 4;
3985 unsigned RESRB : 2;
3986 unsigned : 2;
3989 struct
3991 unsigned : 4;
3992 unsigned RB : 2;
3993 unsigned : 2;
3995 } __B2DLCbits_t;
3997 extern __at(0x0E45) volatile __B2DLCbits_t B2DLCbits;
3999 #define _B2DLC_DLC0 0x01
4000 #define _B2DLC_DLC1 0x02
4001 #define _B2DLC_DLC2 0x04
4002 #define _B2DLC_DLC3 0x08
4003 #define _B2DLC_RB0 0x10
4004 #define _B2DLC_RESRB0 0x10
4005 #define _B2DLC_RB1 0x20
4006 #define _B2DLC_RESRB1 0x20
4007 #define _B2DLC_RXRTR_TXRTR 0x40
4008 #define _B2DLC_TXRTR 0x40
4009 #define _B2DLC_RXRTR 0x40
4011 //==============================================================================
4014 //==============================================================================
4015 // B2D0 Bits
4017 extern __at(0x0E46) __sfr B2D0;
4019 typedef struct
4021 unsigned B2D00 : 1;
4022 unsigned B2D01 : 1;
4023 unsigned B2D02 : 1;
4024 unsigned B2D03 : 1;
4025 unsigned B2D04 : 1;
4026 unsigned B2D05 : 1;
4027 unsigned B2D06 : 1;
4028 unsigned B2D07 : 1;
4029 } __B2D0bits_t;
4031 extern __at(0x0E46) volatile __B2D0bits_t B2D0bits;
4033 #define _B2D00 0x01
4034 #define _B2D01 0x02
4035 #define _B2D02 0x04
4036 #define _B2D03 0x08
4037 #define _B2D04 0x10
4038 #define _B2D05 0x20
4039 #define _B2D06 0x40
4040 #define _B2D07 0x80
4042 //==============================================================================
4045 //==============================================================================
4046 // B2D1 Bits
4048 extern __at(0x0E47) __sfr B2D1;
4050 typedef struct
4052 unsigned B2D10 : 1;
4053 unsigned B2D11 : 1;
4054 unsigned B2D12 : 1;
4055 unsigned B2D13 : 1;
4056 unsigned B2D14 : 1;
4057 unsigned B2D15 : 1;
4058 unsigned B2D16 : 1;
4059 unsigned B2D17 : 1;
4060 } __B2D1bits_t;
4062 extern __at(0x0E47) volatile __B2D1bits_t B2D1bits;
4064 #define _B2D10 0x01
4065 #define _B2D11 0x02
4066 #define _B2D12 0x04
4067 #define _B2D13 0x08
4068 #define _B2D14 0x10
4069 #define _B2D15 0x20
4070 #define _B2D16 0x40
4071 #define _B2D17 0x80
4073 //==============================================================================
4076 //==============================================================================
4077 // B2D2 Bits
4079 extern __at(0x0E48) __sfr B2D2;
4081 typedef struct
4083 unsigned B2D20 : 1;
4084 unsigned B2D21 : 1;
4085 unsigned B2D22 : 1;
4086 unsigned B2D23 : 1;
4087 unsigned B2D24 : 1;
4088 unsigned B2D25 : 1;
4089 unsigned B2D26 : 1;
4090 unsigned B2D27 : 1;
4091 } __B2D2bits_t;
4093 extern __at(0x0E48) volatile __B2D2bits_t B2D2bits;
4095 #define _B2D20 0x01
4096 #define _B2D21 0x02
4097 #define _B2D22 0x04
4098 #define _B2D23 0x08
4099 #define _B2D24 0x10
4100 #define _B2D25 0x20
4101 #define _B2D26 0x40
4102 #define _B2D27 0x80
4104 //==============================================================================
4107 //==============================================================================
4108 // B2D3 Bits
4110 extern __at(0x0E49) __sfr B2D3;
4112 typedef struct
4114 unsigned B2D30 : 1;
4115 unsigned B2D31 : 1;
4116 unsigned B2D32 : 1;
4117 unsigned B2D33 : 1;
4118 unsigned B2D34 : 1;
4119 unsigned B2D35 : 1;
4120 unsigned B2D36 : 1;
4121 unsigned B2D37 : 1;
4122 } __B2D3bits_t;
4124 extern __at(0x0E49) volatile __B2D3bits_t B2D3bits;
4126 #define _B2D30 0x01
4127 #define _B2D31 0x02
4128 #define _B2D32 0x04
4129 #define _B2D33 0x08
4130 #define _B2D34 0x10
4131 #define _B2D35 0x20
4132 #define _B2D36 0x40
4133 #define _B2D37 0x80
4135 //==============================================================================
4138 //==============================================================================
4139 // B2D4 Bits
4141 extern __at(0x0E4A) __sfr B2D4;
4143 typedef struct
4145 unsigned B2D40 : 1;
4146 unsigned B2D41 : 1;
4147 unsigned B2D42 : 1;
4148 unsigned B2D43 : 1;
4149 unsigned B2D44 : 1;
4150 unsigned B2D45 : 1;
4151 unsigned B2D46 : 1;
4152 unsigned B2D47 : 1;
4153 } __B2D4bits_t;
4155 extern __at(0x0E4A) volatile __B2D4bits_t B2D4bits;
4157 #define _B2D40 0x01
4158 #define _B2D41 0x02
4159 #define _B2D42 0x04
4160 #define _B2D43 0x08
4161 #define _B2D44 0x10
4162 #define _B2D45 0x20
4163 #define _B2D46 0x40
4164 #define _B2D47 0x80
4166 //==============================================================================
4169 //==============================================================================
4170 // B2D5 Bits
4172 extern __at(0x0E4B) __sfr B2D5;
4174 typedef struct
4176 unsigned B2D50 : 1;
4177 unsigned B2D51 : 1;
4178 unsigned B2D52 : 1;
4179 unsigned B2D53 : 1;
4180 unsigned B2D54 : 1;
4181 unsigned B2D55 : 1;
4182 unsigned B2D56 : 1;
4183 unsigned B2D57 : 1;
4184 } __B2D5bits_t;
4186 extern __at(0x0E4B) volatile __B2D5bits_t B2D5bits;
4188 #define _B2D50 0x01
4189 #define _B2D51 0x02
4190 #define _B2D52 0x04
4191 #define _B2D53 0x08
4192 #define _B2D54 0x10
4193 #define _B2D55 0x20
4194 #define _B2D56 0x40
4195 #define _B2D57 0x80
4197 //==============================================================================
4200 //==============================================================================
4201 // B2D6 Bits
4203 extern __at(0x0E4C) __sfr B2D6;
4205 typedef struct
4207 unsigned B2D60 : 1;
4208 unsigned B2D61 : 1;
4209 unsigned B2D62 : 1;
4210 unsigned B2D63 : 1;
4211 unsigned B2D64 : 1;
4212 unsigned B2D65 : 1;
4213 unsigned B2D66 : 1;
4214 unsigned B2D67 : 1;
4215 } __B2D6bits_t;
4217 extern __at(0x0E4C) volatile __B2D6bits_t B2D6bits;
4219 #define _B2D60 0x01
4220 #define _B2D61 0x02
4221 #define _B2D62 0x04
4222 #define _B2D63 0x08
4223 #define _B2D64 0x10
4224 #define _B2D65 0x20
4225 #define _B2D66 0x40
4226 #define _B2D67 0x80
4228 //==============================================================================
4231 //==============================================================================
4232 // B2D7 Bits
4234 extern __at(0x0E4D) __sfr B2D7;
4236 typedef struct
4238 unsigned B2D70 : 1;
4239 unsigned B2D71 : 1;
4240 unsigned B2D72 : 1;
4241 unsigned B2D73 : 1;
4242 unsigned B2D74 : 1;
4243 unsigned B2D75 : 1;
4244 unsigned B2D76 : 1;
4245 unsigned B2D77 : 1;
4246 } __B2D7bits_t;
4248 extern __at(0x0E4D) volatile __B2D7bits_t B2D7bits;
4250 #define _B2D70 0x01
4251 #define _B2D71 0x02
4252 #define _B2D72 0x04
4253 #define _B2D73 0x08
4254 #define _B2D74 0x10
4255 #define _B2D75 0x20
4256 #define _B2D76 0x40
4257 #define _B2D77 0x80
4259 //==============================================================================
4262 //==============================================================================
4263 // CANSTAT_RO7 Bits
4265 extern __at(0x0E4E) __sfr CANSTAT_RO7;
4267 typedef union
4269 struct
4271 unsigned EICODE0 : 1;
4272 unsigned EICODE1_ICODE0 : 1;
4273 unsigned EICODE2_ICODE1 : 1;
4274 unsigned EICODE3_ICODE2 : 1;
4275 unsigned EICODE4 : 1;
4276 unsigned OPMODE0 : 1;
4277 unsigned OPMODE1 : 1;
4278 unsigned OPMODE2 : 1;
4281 struct
4283 unsigned ICODE0 : 1;
4284 unsigned ICODE1 : 1;
4285 unsigned ICODE2 : 1;
4286 unsigned ICODE3 : 1;
4287 unsigned ICODE4 : 1;
4288 unsigned : 1;
4289 unsigned : 1;
4290 unsigned : 1;
4293 struct
4295 unsigned ICODE : 5;
4296 unsigned : 3;
4299 struct
4301 unsigned : 5;
4302 unsigned OPMODE : 3;
4304 } __CANSTAT_RO7bits_t;
4306 extern __at(0x0E4E) volatile __CANSTAT_RO7bits_t CANSTAT_RO7bits;
4308 #define _CANSTAT_RO7_EICODE0 0x01
4309 #define _CANSTAT_RO7_ICODE0 0x01
4310 #define _CANSTAT_RO7_EICODE1_ICODE0 0x02
4311 #define _CANSTAT_RO7_ICODE1 0x02
4312 #define _CANSTAT_RO7_EICODE2_ICODE1 0x04
4313 #define _CANSTAT_RO7_ICODE2 0x04
4314 #define _CANSTAT_RO7_EICODE3_ICODE2 0x08
4315 #define _CANSTAT_RO7_ICODE3 0x08
4316 #define _CANSTAT_RO7_EICODE4 0x10
4317 #define _CANSTAT_RO7_ICODE4 0x10
4318 #define _CANSTAT_RO7_OPMODE0 0x20
4319 #define _CANSTAT_RO7_OPMODE1 0x40
4320 #define _CANSTAT_RO7_OPMODE2 0x80
4322 //==============================================================================
4325 //==============================================================================
4326 // CANCON_RO7 Bits
4328 extern __at(0x0E4F) __sfr CANCON_RO7;
4330 typedef union
4332 struct
4334 unsigned FP0 : 1;
4335 unsigned WIN0_FP1 : 1;
4336 unsigned WIN1_FP2 : 1;
4337 unsigned WIN2_FP3 : 1;
4338 unsigned ABAT : 1;
4339 unsigned REQOP0 : 1;
4340 unsigned REQOP1 : 1;
4341 unsigned REQOP2 : 1;
4344 struct
4346 unsigned : 1;
4347 unsigned WIN0 : 1;
4348 unsigned WIN1 : 1;
4349 unsigned WIN2 : 1;
4350 unsigned : 1;
4351 unsigned : 1;
4352 unsigned : 1;
4353 unsigned : 1;
4356 struct
4358 unsigned : 1;
4359 unsigned WIN : 3;
4360 unsigned : 4;
4363 struct
4365 unsigned : 5;
4366 unsigned REQOP : 3;
4368 } __CANCON_RO7bits_t;
4370 extern __at(0x0E4F) volatile __CANCON_RO7bits_t CANCON_RO7bits;
4372 #define _CANCON_RO7_FP0 0x01
4373 #define _CANCON_RO7_WIN0_FP1 0x02
4374 #define _CANCON_RO7_WIN0 0x02
4375 #define _CANCON_RO7_WIN1_FP2 0x04
4376 #define _CANCON_RO7_WIN1 0x04
4377 #define _CANCON_RO7_WIN2_FP3 0x08
4378 #define _CANCON_RO7_WIN2 0x08
4379 #define _CANCON_RO7_ABAT 0x10
4380 #define _CANCON_RO7_REQOP0 0x20
4381 #define _CANCON_RO7_REQOP1 0x40
4382 #define _CANCON_RO7_REQOP2 0x80
4384 //==============================================================================
4387 //==============================================================================
4388 // B3CON Bits
4390 extern __at(0x0E50) __sfr B3CON;
4392 typedef union
4394 struct
4396 unsigned FILHIT0_TXPRI0 : 1;
4397 unsigned FILHIT1_TXPRI1 : 1;
4398 unsigned FILHIT2_RTREN : 1;
4399 unsigned FILHIT3_TXREQ : 1;
4400 unsigned FILHIT4_TXERR : 1;
4401 unsigned RXRTRRO_TXLARB : 1;
4402 unsigned RXM1_TXABT : 1;
4403 unsigned RXFUL_TXBIF : 1;
4406 struct
4408 unsigned FILHIT0 : 1;
4409 unsigned FILHIT1 : 1;
4410 unsigned FILHIT2 : 1;
4411 unsigned FILHIT3 : 1;
4412 unsigned FILHIT4 : 1;
4413 unsigned RTRRO : 1;
4414 unsigned RXM1 : 1;
4415 unsigned RXFUL : 1;
4418 struct
4420 unsigned TXPRI0 : 1;
4421 unsigned TXPRI1 : 1;
4422 unsigned RTREN : 1;
4423 unsigned TXREQ : 1;
4424 unsigned TXERR : 1;
4425 unsigned TXLARB : 1;
4426 unsigned TXABT : 1;
4427 unsigned TXBIF : 1;
4430 struct
4432 unsigned : 1;
4433 unsigned : 1;
4434 unsigned : 1;
4435 unsigned : 1;
4436 unsigned : 1;
4437 unsigned RXRTRRO : 1;
4438 unsigned : 1;
4439 unsigned : 1;
4442 struct
4444 unsigned FILHIT : 5;
4445 unsigned : 3;
4448 struct
4450 unsigned TXPRI : 2;
4451 unsigned : 6;
4453 } __B3CONbits_t;
4455 extern __at(0x0E50) volatile __B3CONbits_t B3CONbits;
4457 #define _B3CON_FILHIT0_TXPRI0 0x01
4458 #define _B3CON_FILHIT0 0x01
4459 #define _B3CON_TXPRI0 0x01
4460 #define _B3CON_FILHIT1_TXPRI1 0x02
4461 #define _B3CON_FILHIT1 0x02
4462 #define _B3CON_TXPRI1 0x02
4463 #define _B3CON_FILHIT2_RTREN 0x04
4464 #define _B3CON_FILHIT2 0x04
4465 #define _B3CON_RTREN 0x04
4466 #define _B3CON_FILHIT3_TXREQ 0x08
4467 #define _B3CON_FILHIT3 0x08
4468 #define _B3CON_TXREQ 0x08
4469 #define _B3CON_FILHIT4_TXERR 0x10
4470 #define _B3CON_FILHIT4 0x10
4471 #define _B3CON_TXERR 0x10
4472 #define _B3CON_RXRTRRO_TXLARB 0x20
4473 #define _B3CON_RTRRO 0x20
4474 #define _B3CON_TXLARB 0x20
4475 #define _B3CON_RXRTRRO 0x20
4476 #define _B3CON_RXM1_TXABT 0x40
4477 #define _B3CON_RXM1 0x40
4478 #define _B3CON_TXABT 0x40
4479 #define _B3CON_RXFUL_TXBIF 0x80
4480 #define _B3CON_RXFUL 0x80
4481 #define _B3CON_TXBIF 0x80
4483 //==============================================================================
4486 //==============================================================================
4487 // B3SIDH Bits
4489 extern __at(0x0E51) __sfr B3SIDH;
4491 typedef struct
4493 unsigned SID3 : 1;
4494 unsigned SID4 : 1;
4495 unsigned SID5 : 1;
4496 unsigned SID6 : 1;
4497 unsigned SID7 : 1;
4498 unsigned SID8 : 1;
4499 unsigned SID9 : 1;
4500 unsigned SID10 : 1;
4501 } __B3SIDHbits_t;
4503 extern __at(0x0E51) volatile __B3SIDHbits_t B3SIDHbits;
4505 #define _B3SIDH_SID3 0x01
4506 #define _B3SIDH_SID4 0x02
4507 #define _B3SIDH_SID5 0x04
4508 #define _B3SIDH_SID6 0x08
4509 #define _B3SIDH_SID7 0x10
4510 #define _B3SIDH_SID8 0x20
4511 #define _B3SIDH_SID9 0x40
4512 #define _B3SIDH_SID10 0x80
4514 //==============================================================================
4517 //==============================================================================
4518 // B3SIDL Bits
4520 extern __at(0x0E52) __sfr B3SIDL;
4522 typedef union
4524 struct
4526 unsigned EID16 : 1;
4527 unsigned EID17 : 1;
4528 unsigned : 1;
4529 unsigned EXIDE : 1;
4530 unsigned SRR : 1;
4531 unsigned SID0 : 1;
4532 unsigned SID1 : 1;
4533 unsigned SID2 : 1;
4536 struct
4538 unsigned : 1;
4539 unsigned : 1;
4540 unsigned : 1;
4541 unsigned EXID : 1;
4542 unsigned : 1;
4543 unsigned : 1;
4544 unsigned : 1;
4545 unsigned : 1;
4548 struct
4550 unsigned : 5;
4551 unsigned SID : 3;
4553 } __B3SIDLbits_t;
4555 extern __at(0x0E52) volatile __B3SIDLbits_t B3SIDLbits;
4557 #define _B3SIDL_EID16 0x01
4558 #define _B3SIDL_EID17 0x02
4559 #define _B3SIDL_EXIDE 0x08
4560 #define _B3SIDL_EXID 0x08
4561 #define _B3SIDL_SRR 0x10
4562 #define _B3SIDL_SID0 0x20
4563 #define _B3SIDL_SID1 0x40
4564 #define _B3SIDL_SID2 0x80
4566 //==============================================================================
4569 //==============================================================================
4570 // B3EIDH Bits
4572 extern __at(0x0E53) __sfr B3EIDH;
4574 typedef struct
4576 unsigned EID8 : 1;
4577 unsigned EID9 : 1;
4578 unsigned EID10 : 1;
4579 unsigned EID11 : 1;
4580 unsigned EID12 : 1;
4581 unsigned EID13 : 1;
4582 unsigned EID14 : 1;
4583 unsigned EID15 : 1;
4584 } __B3EIDHbits_t;
4586 extern __at(0x0E53) volatile __B3EIDHbits_t B3EIDHbits;
4588 #define _B3EIDH_EID8 0x01
4589 #define _B3EIDH_EID9 0x02
4590 #define _B3EIDH_EID10 0x04
4591 #define _B3EIDH_EID11 0x08
4592 #define _B3EIDH_EID12 0x10
4593 #define _B3EIDH_EID13 0x20
4594 #define _B3EIDH_EID14 0x40
4595 #define _B3EIDH_EID15 0x80
4597 //==============================================================================
4600 //==============================================================================
4601 // B3EIDL Bits
4603 extern __at(0x0E54) __sfr B3EIDL;
4605 typedef struct
4607 unsigned EID0 : 1;
4608 unsigned EID1 : 1;
4609 unsigned EID2 : 1;
4610 unsigned EID3 : 1;
4611 unsigned EID4 : 1;
4612 unsigned EID5 : 1;
4613 unsigned EID6 : 1;
4614 unsigned EID7 : 1;
4615 } __B3EIDLbits_t;
4617 extern __at(0x0E54) volatile __B3EIDLbits_t B3EIDLbits;
4619 #define _B3EIDL_EID0 0x01
4620 #define _B3EIDL_EID1 0x02
4621 #define _B3EIDL_EID2 0x04
4622 #define _B3EIDL_EID3 0x08
4623 #define _B3EIDL_EID4 0x10
4624 #define _B3EIDL_EID5 0x20
4625 #define _B3EIDL_EID6 0x40
4626 #define _B3EIDL_EID7 0x80
4628 //==============================================================================
4631 //==============================================================================
4632 // B3DLC Bits
4634 extern __at(0x0E55) __sfr B3DLC;
4636 typedef union
4638 struct
4640 unsigned DLC0 : 1;
4641 unsigned DLC1 : 1;
4642 unsigned DLC2 : 1;
4643 unsigned DLC3 : 1;
4644 unsigned RB0 : 1;
4645 unsigned RB1 : 1;
4646 unsigned RXRTR_TXRTR : 1;
4647 unsigned : 1;
4650 struct
4652 unsigned : 1;
4653 unsigned : 1;
4654 unsigned : 1;
4655 unsigned : 1;
4656 unsigned RESRB0 : 1;
4657 unsigned RESRB1 : 1;
4658 unsigned TXRTR : 1;
4659 unsigned : 1;
4662 struct
4664 unsigned : 1;
4665 unsigned : 1;
4666 unsigned : 1;
4667 unsigned : 1;
4668 unsigned : 1;
4669 unsigned : 1;
4670 unsigned RXRTR : 1;
4671 unsigned : 1;
4674 struct
4676 unsigned DLC : 4;
4677 unsigned : 4;
4680 struct
4682 unsigned : 4;
4683 unsigned RB : 2;
4684 unsigned : 2;
4687 struct
4689 unsigned : 4;
4690 unsigned RESRB : 2;
4691 unsigned : 2;
4693 } __B3DLCbits_t;
4695 extern __at(0x0E55) volatile __B3DLCbits_t B3DLCbits;
4697 #define _B3DLC_DLC0 0x01
4698 #define _B3DLC_DLC1 0x02
4699 #define _B3DLC_DLC2 0x04
4700 #define _B3DLC_DLC3 0x08
4701 #define _B3DLC_RB0 0x10
4702 #define _B3DLC_RESRB0 0x10
4703 #define _B3DLC_RB1 0x20
4704 #define _B3DLC_RESRB1 0x20
4705 #define _B3DLC_RXRTR_TXRTR 0x40
4706 #define _B3DLC_TXRTR 0x40
4707 #define _B3DLC_RXRTR 0x40
4709 //==============================================================================
4712 //==============================================================================
4713 // B3D0 Bits
4715 extern __at(0x0E56) __sfr B3D0;
4717 typedef struct
4719 unsigned B3D00 : 1;
4720 unsigned B3D01 : 1;
4721 unsigned B3D02 : 1;
4722 unsigned B3D03 : 1;
4723 unsigned B3D04 : 1;
4724 unsigned B3D05 : 1;
4725 unsigned B3D06 : 1;
4726 unsigned B3D07 : 1;
4727 } __B3D0bits_t;
4729 extern __at(0x0E56) volatile __B3D0bits_t B3D0bits;
4731 #define _B3D00 0x01
4732 #define _B3D01 0x02
4733 #define _B3D02 0x04
4734 #define _B3D03 0x08
4735 #define _B3D04 0x10
4736 #define _B3D05 0x20
4737 #define _B3D06 0x40
4738 #define _B3D07 0x80
4740 //==============================================================================
4743 //==============================================================================
4744 // B3D1 Bits
4746 extern __at(0x0E57) __sfr B3D1;
4748 typedef struct
4750 unsigned B3D10 : 1;
4751 unsigned B3D11 : 1;
4752 unsigned B3D12 : 1;
4753 unsigned B3D13 : 1;
4754 unsigned B3D14 : 1;
4755 unsigned B3D15 : 1;
4756 unsigned B3D16 : 1;
4757 unsigned B3D17 : 1;
4758 } __B3D1bits_t;
4760 extern __at(0x0E57) volatile __B3D1bits_t B3D1bits;
4762 #define _B3D10 0x01
4763 #define _B3D11 0x02
4764 #define _B3D12 0x04
4765 #define _B3D13 0x08
4766 #define _B3D14 0x10
4767 #define _B3D15 0x20
4768 #define _B3D16 0x40
4769 #define _B3D17 0x80
4771 //==============================================================================
4774 //==============================================================================
4775 // B3D2 Bits
4777 extern __at(0x0E58) __sfr B3D2;
4779 typedef struct
4781 unsigned B3D20 : 1;
4782 unsigned B3D21 : 1;
4783 unsigned B3D22 : 1;
4784 unsigned B3D23 : 1;
4785 unsigned B3D24 : 1;
4786 unsigned B3D25 : 1;
4787 unsigned B3D26 : 1;
4788 unsigned B3D27 : 1;
4789 } __B3D2bits_t;
4791 extern __at(0x0E58) volatile __B3D2bits_t B3D2bits;
4793 #define _B3D20 0x01
4794 #define _B3D21 0x02
4795 #define _B3D22 0x04
4796 #define _B3D23 0x08
4797 #define _B3D24 0x10
4798 #define _B3D25 0x20
4799 #define _B3D26 0x40
4800 #define _B3D27 0x80
4802 //==============================================================================
4805 //==============================================================================
4806 // B3D3 Bits
4808 extern __at(0x0E59) __sfr B3D3;
4810 typedef struct
4812 unsigned B3D30 : 1;
4813 unsigned B3D31 : 1;
4814 unsigned B3D32 : 1;
4815 unsigned B3D33 : 1;
4816 unsigned B3D34 : 1;
4817 unsigned B3D35 : 1;
4818 unsigned B3D36 : 1;
4819 unsigned B3D37 : 1;
4820 } __B3D3bits_t;
4822 extern __at(0x0E59) volatile __B3D3bits_t B3D3bits;
4824 #define _B3D30 0x01
4825 #define _B3D31 0x02
4826 #define _B3D32 0x04
4827 #define _B3D33 0x08
4828 #define _B3D34 0x10
4829 #define _B3D35 0x20
4830 #define _B3D36 0x40
4831 #define _B3D37 0x80
4833 //==============================================================================
4836 //==============================================================================
4837 // B3D4 Bits
4839 extern __at(0x0E5A) __sfr B3D4;
4841 typedef struct
4843 unsigned B3D40 : 1;
4844 unsigned B3D41 : 1;
4845 unsigned B3D42 : 1;
4846 unsigned B3D43 : 1;
4847 unsigned B3D44 : 1;
4848 unsigned B3D45 : 1;
4849 unsigned B3D46 : 1;
4850 unsigned B3D47 : 1;
4851 } __B3D4bits_t;
4853 extern __at(0x0E5A) volatile __B3D4bits_t B3D4bits;
4855 #define _B3D40 0x01
4856 #define _B3D41 0x02
4857 #define _B3D42 0x04
4858 #define _B3D43 0x08
4859 #define _B3D44 0x10
4860 #define _B3D45 0x20
4861 #define _B3D46 0x40
4862 #define _B3D47 0x80
4864 //==============================================================================
4867 //==============================================================================
4868 // B3D5 Bits
4870 extern __at(0x0E5B) __sfr B3D5;
4872 typedef struct
4874 unsigned B3D50 : 1;
4875 unsigned B3D51 : 1;
4876 unsigned B3D52 : 1;
4877 unsigned B3D53 : 1;
4878 unsigned B3D54 : 1;
4879 unsigned B3D55 : 1;
4880 unsigned B3D56 : 1;
4881 unsigned B3D57 : 1;
4882 } __B3D5bits_t;
4884 extern __at(0x0E5B) volatile __B3D5bits_t B3D5bits;
4886 #define _B3D50 0x01
4887 #define _B3D51 0x02
4888 #define _B3D52 0x04
4889 #define _B3D53 0x08
4890 #define _B3D54 0x10
4891 #define _B3D55 0x20
4892 #define _B3D56 0x40
4893 #define _B3D57 0x80
4895 //==============================================================================
4898 //==============================================================================
4899 // B3D6 Bits
4901 extern __at(0x0E5C) __sfr B3D6;
4903 typedef struct
4905 unsigned B3D60 : 1;
4906 unsigned B3D61 : 1;
4907 unsigned B3D62 : 1;
4908 unsigned B3D63 : 1;
4909 unsigned B3D64 : 1;
4910 unsigned B3D65 : 1;
4911 unsigned B3D66 : 1;
4912 unsigned B3D67 : 1;
4913 } __B3D6bits_t;
4915 extern __at(0x0E5C) volatile __B3D6bits_t B3D6bits;
4917 #define _B3D60 0x01
4918 #define _B3D61 0x02
4919 #define _B3D62 0x04
4920 #define _B3D63 0x08
4921 #define _B3D64 0x10
4922 #define _B3D65 0x20
4923 #define _B3D66 0x40
4924 #define _B3D67 0x80
4926 //==============================================================================
4929 //==============================================================================
4930 // B3D7 Bits
4932 extern __at(0x0E5D) __sfr B3D7;
4934 typedef struct
4936 unsigned B3D70 : 1;
4937 unsigned B3D71 : 1;
4938 unsigned B3D72 : 1;
4939 unsigned B3D73 : 1;
4940 unsigned B3D74 : 1;
4941 unsigned B3D75 : 1;
4942 unsigned B3D76 : 1;
4943 unsigned B3D77 : 1;
4944 } __B3D7bits_t;
4946 extern __at(0x0E5D) volatile __B3D7bits_t B3D7bits;
4948 #define _B3D70 0x01
4949 #define _B3D71 0x02
4950 #define _B3D72 0x04
4951 #define _B3D73 0x08
4952 #define _B3D74 0x10
4953 #define _B3D75 0x20
4954 #define _B3D76 0x40
4955 #define _B3D77 0x80
4957 //==============================================================================
4960 //==============================================================================
4961 // CANSTAT_RO6 Bits
4963 extern __at(0x0E5E) __sfr CANSTAT_RO6;
4965 typedef union
4967 struct
4969 unsigned EICODE0 : 1;
4970 unsigned EICODE1_ICODE0 : 1;
4971 unsigned EICODE2_ICODE1 : 1;
4972 unsigned EICODE3_ICODE2 : 1;
4973 unsigned EICODE4 : 1;
4974 unsigned OPMODE0 : 1;
4975 unsigned OPMODE1 : 1;
4976 unsigned OPMODE2 : 1;
4979 struct
4981 unsigned ICODE0 : 1;
4982 unsigned ICODE1 : 1;
4983 unsigned ICODE2 : 1;
4984 unsigned ICODE3 : 1;
4985 unsigned ICODE4 : 1;
4986 unsigned : 1;
4987 unsigned : 1;
4988 unsigned : 1;
4991 struct
4993 unsigned ICODE : 5;
4994 unsigned : 3;
4997 struct
4999 unsigned : 5;
5000 unsigned OPMODE : 3;
5002 } __CANSTAT_RO6bits_t;
5004 extern __at(0x0E5E) volatile __CANSTAT_RO6bits_t CANSTAT_RO6bits;
5006 #define _CANSTAT_RO6_EICODE0 0x01
5007 #define _CANSTAT_RO6_ICODE0 0x01
5008 #define _CANSTAT_RO6_EICODE1_ICODE0 0x02
5009 #define _CANSTAT_RO6_ICODE1 0x02
5010 #define _CANSTAT_RO6_EICODE2_ICODE1 0x04
5011 #define _CANSTAT_RO6_ICODE2 0x04
5012 #define _CANSTAT_RO6_EICODE3_ICODE2 0x08
5013 #define _CANSTAT_RO6_ICODE3 0x08
5014 #define _CANSTAT_RO6_EICODE4 0x10
5015 #define _CANSTAT_RO6_ICODE4 0x10
5016 #define _CANSTAT_RO6_OPMODE0 0x20
5017 #define _CANSTAT_RO6_OPMODE1 0x40
5018 #define _CANSTAT_RO6_OPMODE2 0x80
5020 //==============================================================================
5023 //==============================================================================
5024 // CANCON_RO6 Bits
5026 extern __at(0x0E5F) __sfr CANCON_RO6;
5028 typedef union
5030 struct
5032 unsigned FP0 : 1;
5033 unsigned WIN0_FP1 : 1;
5034 unsigned WIN1_FP2 : 1;
5035 unsigned WIN2_FP3 : 1;
5036 unsigned ABAT : 1;
5037 unsigned REQOP0 : 1;
5038 unsigned REQOP1 : 1;
5039 unsigned REQOP2 : 1;
5042 struct
5044 unsigned : 1;
5045 unsigned WIN0 : 1;
5046 unsigned WIN1 : 1;
5047 unsigned WIN2 : 1;
5048 unsigned : 1;
5049 unsigned : 1;
5050 unsigned : 1;
5051 unsigned : 1;
5054 struct
5056 unsigned : 1;
5057 unsigned WIN : 3;
5058 unsigned : 4;
5061 struct
5063 unsigned : 5;
5064 unsigned REQOP : 3;
5066 } __CANCON_RO6bits_t;
5068 extern __at(0x0E5F) volatile __CANCON_RO6bits_t CANCON_RO6bits;
5070 #define _CANCON_RO6_FP0 0x01
5071 #define _CANCON_RO6_WIN0_FP1 0x02
5072 #define _CANCON_RO6_WIN0 0x02
5073 #define _CANCON_RO6_WIN1_FP2 0x04
5074 #define _CANCON_RO6_WIN1 0x04
5075 #define _CANCON_RO6_WIN2_FP3 0x08
5076 #define _CANCON_RO6_WIN2 0x08
5077 #define _CANCON_RO6_ABAT 0x10
5078 #define _CANCON_RO6_REQOP0 0x20
5079 #define _CANCON_RO6_REQOP1 0x40
5080 #define _CANCON_RO6_REQOP2 0x80
5082 //==============================================================================
5085 //==============================================================================
5086 // B4CON Bits
5088 extern __at(0x0E60) __sfr B4CON;
5090 typedef union
5092 struct
5094 unsigned FILHIT0_TXPRI0 : 1;
5095 unsigned FILHIT1_TXPRI1 : 1;
5096 unsigned FILHIT2_RTREN : 1;
5097 unsigned FILHIT3_TXREQ : 1;
5098 unsigned FILHIT4_TXERR : 1;
5099 unsigned RXRTRRO_TXLARB : 1;
5100 unsigned RXM1_TXABT : 1;
5101 unsigned RXFUL_TXBIF : 1;
5104 struct
5106 unsigned FILHIT0 : 1;
5107 unsigned FILHIT1 : 1;
5108 unsigned FILHIT2 : 1;
5109 unsigned FILHIT3 : 1;
5110 unsigned FILHIT4 : 1;
5111 unsigned RTRRO : 1;
5112 unsigned RXM1 : 1;
5113 unsigned RXFUL : 1;
5116 struct
5118 unsigned TXPRI0 : 1;
5119 unsigned TXPRI1 : 1;
5120 unsigned RTREN : 1;
5121 unsigned TXREQ : 1;
5122 unsigned TXERR : 1;
5123 unsigned TXLARB : 1;
5124 unsigned TXABT : 1;
5125 unsigned TXBIF : 1;
5128 struct
5130 unsigned : 1;
5131 unsigned : 1;
5132 unsigned : 1;
5133 unsigned : 1;
5134 unsigned : 1;
5135 unsigned RXRTRRO : 1;
5136 unsigned : 1;
5137 unsigned : 1;
5140 struct
5142 unsigned TXPRI : 2;
5143 unsigned : 6;
5146 struct
5148 unsigned FILHIT : 5;
5149 unsigned : 3;
5151 } __B4CONbits_t;
5153 extern __at(0x0E60) volatile __B4CONbits_t B4CONbits;
5155 #define _B4CON_FILHIT0_TXPRI0 0x01
5156 #define _B4CON_FILHIT0 0x01
5157 #define _B4CON_TXPRI0 0x01
5158 #define _B4CON_FILHIT1_TXPRI1 0x02
5159 #define _B4CON_FILHIT1 0x02
5160 #define _B4CON_TXPRI1 0x02
5161 #define _B4CON_FILHIT2_RTREN 0x04
5162 #define _B4CON_FILHIT2 0x04
5163 #define _B4CON_RTREN 0x04
5164 #define _B4CON_FILHIT3_TXREQ 0x08
5165 #define _B4CON_FILHIT3 0x08
5166 #define _B4CON_TXREQ 0x08
5167 #define _B4CON_FILHIT4_TXERR 0x10
5168 #define _B4CON_FILHIT4 0x10
5169 #define _B4CON_TXERR 0x10
5170 #define _B4CON_RXRTRRO_TXLARB 0x20
5171 #define _B4CON_RTRRO 0x20
5172 #define _B4CON_TXLARB 0x20
5173 #define _B4CON_RXRTRRO 0x20
5174 #define _B4CON_RXM1_TXABT 0x40
5175 #define _B4CON_RXM1 0x40
5176 #define _B4CON_TXABT 0x40
5177 #define _B4CON_RXFUL_TXBIF 0x80
5178 #define _B4CON_RXFUL 0x80
5179 #define _B4CON_TXBIF 0x80
5181 //==============================================================================
5184 //==============================================================================
5185 // B4SIDH Bits
5187 extern __at(0x0E61) __sfr B4SIDH;
5189 typedef struct
5191 unsigned SID3 : 1;
5192 unsigned SID4 : 1;
5193 unsigned SID5 : 1;
5194 unsigned SID6 : 1;
5195 unsigned SID7 : 1;
5196 unsigned SID8 : 1;
5197 unsigned SID9 : 1;
5198 unsigned SID10 : 1;
5199 } __B4SIDHbits_t;
5201 extern __at(0x0E61) volatile __B4SIDHbits_t B4SIDHbits;
5203 #define _B4SIDH_SID3 0x01
5204 #define _B4SIDH_SID4 0x02
5205 #define _B4SIDH_SID5 0x04
5206 #define _B4SIDH_SID6 0x08
5207 #define _B4SIDH_SID7 0x10
5208 #define _B4SIDH_SID8 0x20
5209 #define _B4SIDH_SID9 0x40
5210 #define _B4SIDH_SID10 0x80
5212 //==============================================================================
5215 //==============================================================================
5216 // B4SIDL Bits
5218 extern __at(0x0E62) __sfr B4SIDL;
5220 typedef union
5222 struct
5224 unsigned EID16 : 1;
5225 unsigned EID17 : 1;
5226 unsigned : 1;
5227 unsigned EXIDE : 1;
5228 unsigned SRR : 1;
5229 unsigned SID0 : 1;
5230 unsigned SID1 : 1;
5231 unsigned SID2 : 1;
5234 struct
5236 unsigned : 1;
5237 unsigned : 1;
5238 unsigned : 1;
5239 unsigned EXID : 1;
5240 unsigned : 1;
5241 unsigned : 1;
5242 unsigned : 1;
5243 unsigned : 1;
5246 struct
5248 unsigned : 5;
5249 unsigned SID : 3;
5251 } __B4SIDLbits_t;
5253 extern __at(0x0E62) volatile __B4SIDLbits_t B4SIDLbits;
5255 #define _B4SIDL_EID16 0x01
5256 #define _B4SIDL_EID17 0x02
5257 #define _B4SIDL_EXIDE 0x08
5258 #define _B4SIDL_EXID 0x08
5259 #define _B4SIDL_SRR 0x10
5260 #define _B4SIDL_SID0 0x20
5261 #define _B4SIDL_SID1 0x40
5262 #define _B4SIDL_SID2 0x80
5264 //==============================================================================
5267 //==============================================================================
5268 // B4EIDH Bits
5270 extern __at(0x0E63) __sfr B4EIDH;
5272 typedef struct
5274 unsigned EID8 : 1;
5275 unsigned EID9 : 1;
5276 unsigned EID10 : 1;
5277 unsigned EID11 : 1;
5278 unsigned EID12 : 1;
5279 unsigned EID13 : 1;
5280 unsigned EID14 : 1;
5281 unsigned EID15 : 1;
5282 } __B4EIDHbits_t;
5284 extern __at(0x0E63) volatile __B4EIDHbits_t B4EIDHbits;
5286 #define _B4EIDH_EID8 0x01
5287 #define _B4EIDH_EID9 0x02
5288 #define _B4EIDH_EID10 0x04
5289 #define _B4EIDH_EID11 0x08
5290 #define _B4EIDH_EID12 0x10
5291 #define _B4EIDH_EID13 0x20
5292 #define _B4EIDH_EID14 0x40
5293 #define _B4EIDH_EID15 0x80
5295 //==============================================================================
5298 //==============================================================================
5299 // B4EIDL Bits
5301 extern __at(0x0E64) __sfr B4EIDL;
5303 typedef struct
5305 unsigned EID0 : 1;
5306 unsigned EID1 : 1;
5307 unsigned EID2 : 1;
5308 unsigned EID3 : 1;
5309 unsigned EID4 : 1;
5310 unsigned EID5 : 1;
5311 unsigned EID6 : 1;
5312 unsigned EID7 : 1;
5313 } __B4EIDLbits_t;
5315 extern __at(0x0E64) volatile __B4EIDLbits_t B4EIDLbits;
5317 #define _B4EIDL_EID0 0x01
5318 #define _B4EIDL_EID1 0x02
5319 #define _B4EIDL_EID2 0x04
5320 #define _B4EIDL_EID3 0x08
5321 #define _B4EIDL_EID4 0x10
5322 #define _B4EIDL_EID5 0x20
5323 #define _B4EIDL_EID6 0x40
5324 #define _B4EIDL_EID7 0x80
5326 //==============================================================================
5329 //==============================================================================
5330 // B4DLC Bits
5332 extern __at(0x0E65) __sfr B4DLC;
5334 typedef union
5336 struct
5338 unsigned DLC0 : 1;
5339 unsigned DLC1 : 1;
5340 unsigned DLC2 : 1;
5341 unsigned DLC3 : 1;
5342 unsigned RB0 : 1;
5343 unsigned RB1 : 1;
5344 unsigned RXRTR_TXRTR : 1;
5345 unsigned : 1;
5348 struct
5350 unsigned : 1;
5351 unsigned : 1;
5352 unsigned : 1;
5353 unsigned : 1;
5354 unsigned RESRB0 : 1;
5355 unsigned RESRB1 : 1;
5356 unsigned TXRTR : 1;
5357 unsigned : 1;
5360 struct
5362 unsigned : 1;
5363 unsigned : 1;
5364 unsigned : 1;
5365 unsigned : 1;
5366 unsigned : 1;
5367 unsigned : 1;
5368 unsigned RXRTR : 1;
5369 unsigned : 1;
5372 struct
5374 unsigned DLC : 4;
5375 unsigned : 4;
5378 struct
5380 unsigned : 4;
5381 unsigned RB : 2;
5382 unsigned : 2;
5385 struct
5387 unsigned : 4;
5388 unsigned RESRB : 2;
5389 unsigned : 2;
5391 } __B4DLCbits_t;
5393 extern __at(0x0E65) volatile __B4DLCbits_t B4DLCbits;
5395 #define _B4DLC_DLC0 0x01
5396 #define _B4DLC_DLC1 0x02
5397 #define _B4DLC_DLC2 0x04
5398 #define _B4DLC_DLC3 0x08
5399 #define _B4DLC_RB0 0x10
5400 #define _B4DLC_RESRB0 0x10
5401 #define _B4DLC_RB1 0x20
5402 #define _B4DLC_RESRB1 0x20
5403 #define _B4DLC_RXRTR_TXRTR 0x40
5404 #define _B4DLC_TXRTR 0x40
5405 #define _B4DLC_RXRTR 0x40
5407 //==============================================================================
5410 //==============================================================================
5411 // B4D0 Bits
5413 extern __at(0x0E66) __sfr B4D0;
5415 typedef struct
5417 unsigned B4D00 : 1;
5418 unsigned B4D01 : 1;
5419 unsigned B4D02 : 1;
5420 unsigned B4D03 : 1;
5421 unsigned B4D04 : 1;
5422 unsigned B4D05 : 1;
5423 unsigned B4D06 : 1;
5424 unsigned B4D07 : 1;
5425 } __B4D0bits_t;
5427 extern __at(0x0E66) volatile __B4D0bits_t B4D0bits;
5429 #define _B4D00 0x01
5430 #define _B4D01 0x02
5431 #define _B4D02 0x04
5432 #define _B4D03 0x08
5433 #define _B4D04 0x10
5434 #define _B4D05 0x20
5435 #define _B4D06 0x40
5436 #define _B4D07 0x80
5438 //==============================================================================
5441 //==============================================================================
5442 // B4D1 Bits
5444 extern __at(0x0E67) __sfr B4D1;
5446 typedef struct
5448 unsigned B4D10 : 1;
5449 unsigned B4D11 : 1;
5450 unsigned B4D12 : 1;
5451 unsigned B4D13 : 1;
5452 unsigned B4D14 : 1;
5453 unsigned B4D15 : 1;
5454 unsigned B4D16 : 1;
5455 unsigned B4D17 : 1;
5456 } __B4D1bits_t;
5458 extern __at(0x0E67) volatile __B4D1bits_t B4D1bits;
5460 #define _B4D10 0x01
5461 #define _B4D11 0x02
5462 #define _B4D12 0x04
5463 #define _B4D13 0x08
5464 #define _B4D14 0x10
5465 #define _B4D15 0x20
5466 #define _B4D16 0x40
5467 #define _B4D17 0x80
5469 //==============================================================================
5472 //==============================================================================
5473 // B4D2 Bits
5475 extern __at(0x0E68) __sfr B4D2;
5477 typedef struct
5479 unsigned B4D20 : 1;
5480 unsigned B4D21 : 1;
5481 unsigned B4D22 : 1;
5482 unsigned B4D23 : 1;
5483 unsigned B4D24 : 1;
5484 unsigned B4D25 : 1;
5485 unsigned B4D26 : 1;
5486 unsigned B4D27 : 1;
5487 } __B4D2bits_t;
5489 extern __at(0x0E68) volatile __B4D2bits_t B4D2bits;
5491 #define _B4D20 0x01
5492 #define _B4D21 0x02
5493 #define _B4D22 0x04
5494 #define _B4D23 0x08
5495 #define _B4D24 0x10
5496 #define _B4D25 0x20
5497 #define _B4D26 0x40
5498 #define _B4D27 0x80
5500 //==============================================================================
5503 //==============================================================================
5504 // B4D3 Bits
5506 extern __at(0x0E69) __sfr B4D3;
5508 typedef struct
5510 unsigned B4D30 : 1;
5511 unsigned B4D31 : 1;
5512 unsigned B4D32 : 1;
5513 unsigned B4D33 : 1;
5514 unsigned B4D34 : 1;
5515 unsigned B4D35 : 1;
5516 unsigned B4D36 : 1;
5517 unsigned B4D37 : 1;
5518 } __B4D3bits_t;
5520 extern __at(0x0E69) volatile __B4D3bits_t B4D3bits;
5522 #define _B4D30 0x01
5523 #define _B4D31 0x02
5524 #define _B4D32 0x04
5525 #define _B4D33 0x08
5526 #define _B4D34 0x10
5527 #define _B4D35 0x20
5528 #define _B4D36 0x40
5529 #define _B4D37 0x80
5531 //==============================================================================
5534 //==============================================================================
5535 // B4D4 Bits
5537 extern __at(0x0E6A) __sfr B4D4;
5539 typedef struct
5541 unsigned B4D40 : 1;
5542 unsigned B4D41 : 1;
5543 unsigned B4D42 : 1;
5544 unsigned B4D43 : 1;
5545 unsigned B4D44 : 1;
5546 unsigned B4D45 : 1;
5547 unsigned B4D46 : 1;
5548 unsigned B4D47 : 1;
5549 } __B4D4bits_t;
5551 extern __at(0x0E6A) volatile __B4D4bits_t B4D4bits;
5553 #define _B4D40 0x01
5554 #define _B4D41 0x02
5555 #define _B4D42 0x04
5556 #define _B4D43 0x08
5557 #define _B4D44 0x10
5558 #define _B4D45 0x20
5559 #define _B4D46 0x40
5560 #define _B4D47 0x80
5562 //==============================================================================
5565 //==============================================================================
5566 // B4D5 Bits
5568 extern __at(0x0E6B) __sfr B4D5;
5570 typedef struct
5572 unsigned B4D50 : 1;
5573 unsigned B4D51 : 1;
5574 unsigned B4D52 : 1;
5575 unsigned B4D53 : 1;
5576 unsigned B4D54 : 1;
5577 unsigned B4D55 : 1;
5578 unsigned B4D56 : 1;
5579 unsigned B4D57 : 1;
5580 } __B4D5bits_t;
5582 extern __at(0x0E6B) volatile __B4D5bits_t B4D5bits;
5584 #define _B4D50 0x01
5585 #define _B4D51 0x02
5586 #define _B4D52 0x04
5587 #define _B4D53 0x08
5588 #define _B4D54 0x10
5589 #define _B4D55 0x20
5590 #define _B4D56 0x40
5591 #define _B4D57 0x80
5593 //==============================================================================
5596 //==============================================================================
5597 // B4D6 Bits
5599 extern __at(0x0E6C) __sfr B4D6;
5601 typedef struct
5603 unsigned B4D60 : 1;
5604 unsigned B4D61 : 1;
5605 unsigned B4D62 : 1;
5606 unsigned B4D63 : 1;
5607 unsigned B4D64 : 1;
5608 unsigned B4D65 : 1;
5609 unsigned B4D66 : 1;
5610 unsigned B4D67 : 1;
5611 } __B4D6bits_t;
5613 extern __at(0x0E6C) volatile __B4D6bits_t B4D6bits;
5615 #define _B4D60 0x01
5616 #define _B4D61 0x02
5617 #define _B4D62 0x04
5618 #define _B4D63 0x08
5619 #define _B4D64 0x10
5620 #define _B4D65 0x20
5621 #define _B4D66 0x40
5622 #define _B4D67 0x80
5624 //==============================================================================
5627 //==============================================================================
5628 // B4D7 Bits
5630 extern __at(0x0E6D) __sfr B4D7;
5632 typedef union
5634 struct
5636 unsigned B4D70 : 1;
5637 unsigned B4D71 : 1;
5638 unsigned B4D72 : 1;
5639 unsigned B4D73 : 1;
5640 unsigned B4D74 : 1;
5641 unsigned B4D75 : 1;
5642 unsigned B4D76 : 1;
5643 unsigned B4D77 : 1;
5646 struct
5648 unsigned : 1;
5649 unsigned : 1;
5650 unsigned : 1;
5651 unsigned : 1;
5652 unsigned : 1;
5653 unsigned : 1;
5654 unsigned : 1;
5655 unsigned B46D77 : 1;
5657 } __B4D7bits_t;
5659 extern __at(0x0E6D) volatile __B4D7bits_t B4D7bits;
5661 #define _B4D70 0x01
5662 #define _B4D71 0x02
5663 #define _B4D72 0x04
5664 #define _B4D73 0x08
5665 #define _B4D74 0x10
5666 #define _B4D75 0x20
5667 #define _B4D76 0x40
5668 #define _B4D77 0x80
5669 #define _B46D77 0x80
5671 //==============================================================================
5674 //==============================================================================
5675 // CANSTAT_RO5 Bits
5677 extern __at(0x0E6E) __sfr CANSTAT_RO5;
5679 typedef union
5681 struct
5683 unsigned EICODE0 : 1;
5684 unsigned EICODE1_ICODE0 : 1;
5685 unsigned EICODE2_ICODE1 : 1;
5686 unsigned EICODE3_ICODE2 : 1;
5687 unsigned EICODE4 : 1;
5688 unsigned OPMODE0 : 1;
5689 unsigned OPMODE1 : 1;
5690 unsigned OPMODE2 : 1;
5693 struct
5695 unsigned ICODE0 : 1;
5696 unsigned ICODE1 : 1;
5697 unsigned ICODE2 : 1;
5698 unsigned ICODE3 : 1;
5699 unsigned ICODE4 : 1;
5700 unsigned : 1;
5701 unsigned : 1;
5702 unsigned : 1;
5705 struct
5707 unsigned ICODE : 5;
5708 unsigned : 3;
5711 struct
5713 unsigned : 5;
5714 unsigned OPMODE : 3;
5716 } __CANSTAT_RO5bits_t;
5718 extern __at(0x0E6E) volatile __CANSTAT_RO5bits_t CANSTAT_RO5bits;
5720 #define _CANSTAT_RO5_EICODE0 0x01
5721 #define _CANSTAT_RO5_ICODE0 0x01
5722 #define _CANSTAT_RO5_EICODE1_ICODE0 0x02
5723 #define _CANSTAT_RO5_ICODE1 0x02
5724 #define _CANSTAT_RO5_EICODE2_ICODE1 0x04
5725 #define _CANSTAT_RO5_ICODE2 0x04
5726 #define _CANSTAT_RO5_EICODE3_ICODE2 0x08
5727 #define _CANSTAT_RO5_ICODE3 0x08
5728 #define _CANSTAT_RO5_EICODE4 0x10
5729 #define _CANSTAT_RO5_ICODE4 0x10
5730 #define _CANSTAT_RO5_OPMODE0 0x20
5731 #define _CANSTAT_RO5_OPMODE1 0x40
5732 #define _CANSTAT_RO5_OPMODE2 0x80
5734 //==============================================================================
5737 //==============================================================================
5738 // CANCON_RO5 Bits
5740 extern __at(0x0E6F) __sfr CANCON_RO5;
5742 typedef union
5744 struct
5746 unsigned FP0 : 1;
5747 unsigned WIN0_FP1 : 1;
5748 unsigned WIN1_FP2 : 1;
5749 unsigned WIN2_FP3 : 1;
5750 unsigned ABAT : 1;
5751 unsigned REQOP0 : 1;
5752 unsigned REQOP1 : 1;
5753 unsigned REQOP2 : 1;
5756 struct
5758 unsigned : 1;
5759 unsigned WIN0 : 1;
5760 unsigned WIN1 : 1;
5761 unsigned WIN2 : 1;
5762 unsigned : 1;
5763 unsigned : 1;
5764 unsigned : 1;
5765 unsigned : 1;
5768 struct
5770 unsigned : 1;
5771 unsigned WIN : 3;
5772 unsigned : 4;
5775 struct
5777 unsigned : 5;
5778 unsigned REQOP : 3;
5780 } __CANCON_RO5bits_t;
5782 extern __at(0x0E6F) volatile __CANCON_RO5bits_t CANCON_RO5bits;
5784 #define _CANCON_RO5_FP0 0x01
5785 #define _CANCON_RO5_WIN0_FP1 0x02
5786 #define _CANCON_RO5_WIN0 0x02
5787 #define _CANCON_RO5_WIN1_FP2 0x04
5788 #define _CANCON_RO5_WIN1 0x04
5789 #define _CANCON_RO5_WIN2_FP3 0x08
5790 #define _CANCON_RO5_WIN2 0x08
5791 #define _CANCON_RO5_ABAT 0x10
5792 #define _CANCON_RO5_REQOP0 0x20
5793 #define _CANCON_RO5_REQOP1 0x40
5794 #define _CANCON_RO5_REQOP2 0x80
5796 //==============================================================================
5799 //==============================================================================
5800 // B5CON Bits
5802 extern __at(0x0E70) __sfr B5CON;
5804 typedef union
5806 struct
5808 unsigned FILHIT0_TXPRI0 : 1;
5809 unsigned FILHIT1_TXPRI1 : 1;
5810 unsigned FILHIT2_RTREN : 1;
5811 unsigned FILHIT3_TXREQ : 1;
5812 unsigned FILHIT4_TXERR : 1;
5813 unsigned RXRTRRO_TXLARB : 1;
5814 unsigned RXM1_TXABT : 1;
5815 unsigned RXFUL_TXBIF : 1;
5818 struct
5820 unsigned FILHIT0 : 1;
5821 unsigned FILHIT1 : 1;
5822 unsigned FILHIT2 : 1;
5823 unsigned FILHIT3 : 1;
5824 unsigned FILHIT4 : 1;
5825 unsigned RTRRO : 1;
5826 unsigned RXM1 : 1;
5827 unsigned RXFUL : 1;
5830 struct
5832 unsigned TXPRI0 : 1;
5833 unsigned TXPRI1 : 1;
5834 unsigned RTREN : 1;
5835 unsigned TXREQ : 1;
5836 unsigned TXERR : 1;
5837 unsigned TXLARB : 1;
5838 unsigned TXABT : 1;
5839 unsigned TXBIF : 1;
5842 struct
5844 unsigned : 1;
5845 unsigned : 1;
5846 unsigned : 1;
5847 unsigned : 1;
5848 unsigned : 1;
5849 unsigned RXRTRRO : 1;
5850 unsigned : 1;
5851 unsigned : 1;
5854 struct
5856 unsigned FILHIT : 5;
5857 unsigned : 3;
5860 struct
5862 unsigned TXPRI : 2;
5863 unsigned : 6;
5865 } __B5CONbits_t;
5867 extern __at(0x0E70) volatile __B5CONbits_t B5CONbits;
5869 #define _B5CON_FILHIT0_TXPRI0 0x01
5870 #define _B5CON_FILHIT0 0x01
5871 #define _B5CON_TXPRI0 0x01
5872 #define _B5CON_FILHIT1_TXPRI1 0x02
5873 #define _B5CON_FILHIT1 0x02
5874 #define _B5CON_TXPRI1 0x02
5875 #define _B5CON_FILHIT2_RTREN 0x04
5876 #define _B5CON_FILHIT2 0x04
5877 #define _B5CON_RTREN 0x04
5878 #define _B5CON_FILHIT3_TXREQ 0x08
5879 #define _B5CON_FILHIT3 0x08
5880 #define _B5CON_TXREQ 0x08
5881 #define _B5CON_FILHIT4_TXERR 0x10
5882 #define _B5CON_FILHIT4 0x10
5883 #define _B5CON_TXERR 0x10
5884 #define _B5CON_RXRTRRO_TXLARB 0x20
5885 #define _B5CON_RTRRO 0x20
5886 #define _B5CON_TXLARB 0x20
5887 #define _B5CON_RXRTRRO 0x20
5888 #define _B5CON_RXM1_TXABT 0x40
5889 #define _B5CON_RXM1 0x40
5890 #define _B5CON_TXABT 0x40
5891 #define _B5CON_RXFUL_TXBIF 0x80
5892 #define _B5CON_RXFUL 0x80
5893 #define _B5CON_TXBIF 0x80
5895 //==============================================================================
5898 //==============================================================================
5899 // B5SIDH Bits
5901 extern __at(0x0E71) __sfr B5SIDH;
5903 typedef struct
5905 unsigned SID3 : 1;
5906 unsigned SID4 : 1;
5907 unsigned SID5 : 1;
5908 unsigned SID6 : 1;
5909 unsigned SID7 : 1;
5910 unsigned SID8 : 1;
5911 unsigned SID9 : 1;
5912 unsigned SID10 : 1;
5913 } __B5SIDHbits_t;
5915 extern __at(0x0E71) volatile __B5SIDHbits_t B5SIDHbits;
5917 #define _B5SIDH_SID3 0x01
5918 #define _B5SIDH_SID4 0x02
5919 #define _B5SIDH_SID5 0x04
5920 #define _B5SIDH_SID6 0x08
5921 #define _B5SIDH_SID7 0x10
5922 #define _B5SIDH_SID8 0x20
5923 #define _B5SIDH_SID9 0x40
5924 #define _B5SIDH_SID10 0x80
5926 //==============================================================================
5929 //==============================================================================
5930 // B5SIDL Bits
5932 extern __at(0x0E72) __sfr B5SIDL;
5934 typedef union
5936 struct
5938 unsigned EID16 : 1;
5939 unsigned EID17 : 1;
5940 unsigned : 1;
5941 unsigned EXIDE : 1;
5942 unsigned SRR : 1;
5943 unsigned SID0 : 1;
5944 unsigned SID1 : 1;
5945 unsigned SID2 : 1;
5948 struct
5950 unsigned : 1;
5951 unsigned : 1;
5952 unsigned : 1;
5953 unsigned EXID : 1;
5954 unsigned : 1;
5955 unsigned : 1;
5956 unsigned : 1;
5957 unsigned : 1;
5960 struct
5962 unsigned : 1;
5963 unsigned : 1;
5964 unsigned : 1;
5965 unsigned EXIDEN : 1;
5966 unsigned : 1;
5967 unsigned : 1;
5968 unsigned : 1;
5969 unsigned : 1;
5972 struct
5974 unsigned : 5;
5975 unsigned SID : 3;
5977 } __B5SIDLbits_t;
5979 extern __at(0x0E72) volatile __B5SIDLbits_t B5SIDLbits;
5981 #define _B5SIDL_EID16 0x01
5982 #define _B5SIDL_EID17 0x02
5983 #define _B5SIDL_EXIDE 0x08
5984 #define _B5SIDL_EXID 0x08
5985 #define _B5SIDL_EXIDEN 0x08
5986 #define _B5SIDL_SRR 0x10
5987 #define _B5SIDL_SID0 0x20
5988 #define _B5SIDL_SID1 0x40
5989 #define _B5SIDL_SID2 0x80
5991 //==============================================================================
5994 //==============================================================================
5995 // B5EIDH Bits
5997 extern __at(0x0E73) __sfr B5EIDH;
5999 typedef struct
6001 unsigned EID8 : 1;
6002 unsigned EID9 : 1;
6003 unsigned EID10 : 1;
6004 unsigned EID11 : 1;
6005 unsigned EID12 : 1;
6006 unsigned EID13 : 1;
6007 unsigned EID14 : 1;
6008 unsigned EID15 : 1;
6009 } __B5EIDHbits_t;
6011 extern __at(0x0E73) volatile __B5EIDHbits_t B5EIDHbits;
6013 #define _B5EIDH_EID8 0x01
6014 #define _B5EIDH_EID9 0x02
6015 #define _B5EIDH_EID10 0x04
6016 #define _B5EIDH_EID11 0x08
6017 #define _B5EIDH_EID12 0x10
6018 #define _B5EIDH_EID13 0x20
6019 #define _B5EIDH_EID14 0x40
6020 #define _B5EIDH_EID15 0x80
6022 //==============================================================================
6025 //==============================================================================
6026 // B5EIDL Bits
6028 extern __at(0x0E74) __sfr B5EIDL;
6030 typedef struct
6032 unsigned EID0 : 1;
6033 unsigned EID1 : 1;
6034 unsigned EID2 : 1;
6035 unsigned EID3 : 1;
6036 unsigned EID4 : 1;
6037 unsigned EID5 : 1;
6038 unsigned EID6 : 1;
6039 unsigned EID7 : 1;
6040 } __B5EIDLbits_t;
6042 extern __at(0x0E74) volatile __B5EIDLbits_t B5EIDLbits;
6044 #define _B5EIDL_EID0 0x01
6045 #define _B5EIDL_EID1 0x02
6046 #define _B5EIDL_EID2 0x04
6047 #define _B5EIDL_EID3 0x08
6048 #define _B5EIDL_EID4 0x10
6049 #define _B5EIDL_EID5 0x20
6050 #define _B5EIDL_EID6 0x40
6051 #define _B5EIDL_EID7 0x80
6053 //==============================================================================
6056 //==============================================================================
6057 // B5DLC Bits
6059 extern __at(0x0E75) __sfr B5DLC;
6061 typedef union
6063 struct
6065 unsigned DLC0 : 1;
6066 unsigned DLC1 : 1;
6067 unsigned DLC2 : 1;
6068 unsigned DLC3 : 1;
6069 unsigned RB0 : 1;
6070 unsigned RB1 : 1;
6071 unsigned RXRTR_TXRTR : 1;
6072 unsigned : 1;
6075 struct
6077 unsigned : 1;
6078 unsigned : 1;
6079 unsigned : 1;
6080 unsigned : 1;
6081 unsigned RESRB0 : 1;
6082 unsigned RESRB1 : 1;
6083 unsigned RXRTR : 1;
6084 unsigned : 1;
6087 struct
6089 unsigned DLC : 4;
6090 unsigned : 4;
6093 struct
6095 unsigned : 4;
6096 unsigned RB : 2;
6097 unsigned : 2;
6100 struct
6102 unsigned : 4;
6103 unsigned RESRB : 2;
6104 unsigned : 2;
6106 } __B5DLCbits_t;
6108 extern __at(0x0E75) volatile __B5DLCbits_t B5DLCbits;
6110 #define _B5DLC_DLC0 0x01
6111 #define _B5DLC_DLC1 0x02
6112 #define _B5DLC_DLC2 0x04
6113 #define _B5DLC_DLC3 0x08
6114 #define _B5DLC_RB0 0x10
6115 #define _B5DLC_RESRB0 0x10
6116 #define _B5DLC_RB1 0x20
6117 #define _B5DLC_RESRB1 0x20
6118 #define _B5DLC_RXRTR_TXRTR 0x40
6119 #define _B5DLC_RXRTR 0x40
6121 //==============================================================================
6124 //==============================================================================
6125 // B5D0 Bits
6127 extern __at(0x0E76) __sfr B5D0;
6129 typedef union
6131 struct
6133 unsigned B5D00 : 1;
6134 unsigned B5D01 : 1;
6135 unsigned B5D02 : 1;
6136 unsigned B5D03 : 1;
6137 unsigned B5D04 : 1;
6138 unsigned B5D05 : 1;
6139 unsigned B5D06 : 1;
6140 unsigned B5D07 : 1;
6143 struct
6145 unsigned : 1;
6146 unsigned : 1;
6147 unsigned : 1;
6148 unsigned : 1;
6149 unsigned : 1;
6150 unsigned : 1;
6151 unsigned : 1;
6152 unsigned B57D07 : 1;
6154 } __B5D0bits_t;
6156 extern __at(0x0E76) volatile __B5D0bits_t B5D0bits;
6158 #define _B5D00 0x01
6159 #define _B5D01 0x02
6160 #define _B5D02 0x04
6161 #define _B5D03 0x08
6162 #define _B5D04 0x10
6163 #define _B5D05 0x20
6164 #define _B5D06 0x40
6165 #define _B5D07 0x80
6166 #define _B57D07 0x80
6168 //==============================================================================
6171 //==============================================================================
6172 // B5D1 Bits
6174 extern __at(0x0E77) __sfr B5D1;
6176 typedef struct
6178 unsigned B5D10 : 1;
6179 unsigned B5D11 : 1;
6180 unsigned B5D12 : 1;
6181 unsigned B5D13 : 1;
6182 unsigned B5D14 : 1;
6183 unsigned B5D15 : 1;
6184 unsigned B5D16 : 1;
6185 unsigned B5D17 : 1;
6186 } __B5D1bits_t;
6188 extern __at(0x0E77) volatile __B5D1bits_t B5D1bits;
6190 #define _B5D10 0x01
6191 #define _B5D11 0x02
6192 #define _B5D12 0x04
6193 #define _B5D13 0x08
6194 #define _B5D14 0x10
6195 #define _B5D15 0x20
6196 #define _B5D16 0x40
6197 #define _B5D17 0x80
6199 //==============================================================================
6202 //==============================================================================
6203 // B5D2 Bits
6205 extern __at(0x0E78) __sfr B5D2;
6207 typedef union
6209 struct
6211 unsigned B5D20 : 1;
6212 unsigned B5D21 : 1;
6213 unsigned B5D22 : 1;
6214 unsigned B5D23 : 1;
6215 unsigned B5D24 : 1;
6216 unsigned B5D25 : 1;
6217 unsigned B5D26 : 1;
6218 unsigned B5D27 : 1;
6221 struct
6223 unsigned : 1;
6224 unsigned : 1;
6225 unsigned : 1;
6226 unsigned B57D23 : 1;
6227 unsigned : 1;
6228 unsigned : 1;
6229 unsigned : 1;
6230 unsigned : 1;
6232 } __B5D2bits_t;
6234 extern __at(0x0E78) volatile __B5D2bits_t B5D2bits;
6236 #define _B5D20 0x01
6237 #define _B5D21 0x02
6238 #define _B5D22 0x04
6239 #define _B5D23 0x08
6240 #define _B57D23 0x08
6241 #define _B5D24 0x10
6242 #define _B5D25 0x20
6243 #define _B5D26 0x40
6244 #define _B5D27 0x80
6246 //==============================================================================
6249 //==============================================================================
6250 // B5D3 Bits
6252 extern __at(0x0E79) __sfr B5D3;
6254 typedef struct
6256 unsigned B5D30 : 1;
6257 unsigned B5D31 : 1;
6258 unsigned B5D32 : 1;
6259 unsigned B5D33 : 1;
6260 unsigned B5D34 : 1;
6261 unsigned B5D35 : 1;
6262 unsigned B5D36 : 1;
6263 unsigned B5D37 : 1;
6264 } __B5D3bits_t;
6266 extern __at(0x0E79) volatile __B5D3bits_t B5D3bits;
6268 #define _B5D30 0x01
6269 #define _B5D31 0x02
6270 #define _B5D32 0x04
6271 #define _B5D33 0x08
6272 #define _B5D34 0x10
6273 #define _B5D35 0x20
6274 #define _B5D36 0x40
6275 #define _B5D37 0x80
6277 //==============================================================================
6280 //==============================================================================
6281 // B5D4 Bits
6283 extern __at(0x0E7A) __sfr B5D4;
6285 typedef struct
6287 unsigned B5D40 : 1;
6288 unsigned B5D41 : 1;
6289 unsigned B5D42 : 1;
6290 unsigned B5D43 : 1;
6291 unsigned B5D44 : 1;
6292 unsigned B5D45 : 1;
6293 unsigned B5D46 : 1;
6294 unsigned B5D47 : 1;
6295 } __B5D4bits_t;
6297 extern __at(0x0E7A) volatile __B5D4bits_t B5D4bits;
6299 #define _B5D40 0x01
6300 #define _B5D41 0x02
6301 #define _B5D42 0x04
6302 #define _B5D43 0x08
6303 #define _B5D44 0x10
6304 #define _B5D45 0x20
6305 #define _B5D46 0x40
6306 #define _B5D47 0x80
6308 //==============================================================================
6311 //==============================================================================
6312 // B5D5 Bits
6314 extern __at(0x0E7B) __sfr B5D5;
6316 typedef struct
6318 unsigned B5D50 : 1;
6319 unsigned B5D51 : 1;
6320 unsigned B5D52 : 1;
6321 unsigned B5D53 : 1;
6322 unsigned B5D54 : 1;
6323 unsigned B5D55 : 1;
6324 unsigned B5D56 : 1;
6325 unsigned B5D57 : 1;
6326 } __B5D5bits_t;
6328 extern __at(0x0E7B) volatile __B5D5bits_t B5D5bits;
6330 #define _B5D50 0x01
6331 #define _B5D51 0x02
6332 #define _B5D52 0x04
6333 #define _B5D53 0x08
6334 #define _B5D54 0x10
6335 #define _B5D55 0x20
6336 #define _B5D56 0x40
6337 #define _B5D57 0x80
6339 //==============================================================================
6342 //==============================================================================
6343 // B5D6 Bits
6345 extern __at(0x0E7C) __sfr B5D6;
6347 typedef struct
6349 unsigned B5D60 : 1;
6350 unsigned B5D61 : 1;
6351 unsigned B5D62 : 1;
6352 unsigned B5D63 : 1;
6353 unsigned B5D64 : 1;
6354 unsigned B5D65 : 1;
6355 unsigned B5D66 : 1;
6356 unsigned B5D67 : 1;
6357 } __B5D6bits_t;
6359 extern __at(0x0E7C) volatile __B5D6bits_t B5D6bits;
6361 #define _B5D60 0x01
6362 #define _B5D61 0x02
6363 #define _B5D62 0x04
6364 #define _B5D63 0x08
6365 #define _B5D64 0x10
6366 #define _B5D65 0x20
6367 #define _B5D66 0x40
6368 #define _B5D67 0x80
6370 //==============================================================================
6373 //==============================================================================
6374 // B5D7 Bits
6376 extern __at(0x0E7D) __sfr B5D7;
6378 typedef struct
6380 unsigned B5D70 : 1;
6381 unsigned B5D71 : 1;
6382 unsigned B5D72 : 1;
6383 unsigned B5D73 : 1;
6384 unsigned B5D74 : 1;
6385 unsigned B5D75 : 1;
6386 unsigned B5D76 : 1;
6387 unsigned B5D77 : 1;
6388 } __B5D7bits_t;
6390 extern __at(0x0E7D) volatile __B5D7bits_t B5D7bits;
6392 #define _B5D70 0x01
6393 #define _B5D71 0x02
6394 #define _B5D72 0x04
6395 #define _B5D73 0x08
6396 #define _B5D74 0x10
6397 #define _B5D75 0x20
6398 #define _B5D76 0x40
6399 #define _B5D77 0x80
6401 //==============================================================================
6404 //==============================================================================
6405 // CANSTAT_RO4 Bits
6407 extern __at(0x0E7E) __sfr CANSTAT_RO4;
6409 typedef union
6411 struct
6413 unsigned EICODE0 : 1;
6414 unsigned EICODE1_ICODE0 : 1;
6415 unsigned EICODE2_ICODE1 : 1;
6416 unsigned EICODE3_ICODE2 : 1;
6417 unsigned EICODE4 : 1;
6418 unsigned OPMODE0 : 1;
6419 unsigned OPMODE1 : 1;
6420 unsigned OPMODE2 : 1;
6423 struct
6425 unsigned ICODE0 : 1;
6426 unsigned ICODE1 : 1;
6427 unsigned ICODE2 : 1;
6428 unsigned ICODE3 : 1;
6429 unsigned ICODE4 : 1;
6430 unsigned : 1;
6431 unsigned : 1;
6432 unsigned : 1;
6435 struct
6437 unsigned ICODE : 5;
6438 unsigned : 3;
6441 struct
6443 unsigned : 5;
6444 unsigned OPMODE : 3;
6446 } __CANSTAT_RO4bits_t;
6448 extern __at(0x0E7E) volatile __CANSTAT_RO4bits_t CANSTAT_RO4bits;
6450 #define _CANSTAT_RO4_EICODE0 0x01
6451 #define _CANSTAT_RO4_ICODE0 0x01
6452 #define _CANSTAT_RO4_EICODE1_ICODE0 0x02
6453 #define _CANSTAT_RO4_ICODE1 0x02
6454 #define _CANSTAT_RO4_EICODE2_ICODE1 0x04
6455 #define _CANSTAT_RO4_ICODE2 0x04
6456 #define _CANSTAT_RO4_EICODE3_ICODE2 0x08
6457 #define _CANSTAT_RO4_ICODE3 0x08
6458 #define _CANSTAT_RO4_EICODE4 0x10
6459 #define _CANSTAT_RO4_ICODE4 0x10
6460 #define _CANSTAT_RO4_OPMODE0 0x20
6461 #define _CANSTAT_RO4_OPMODE1 0x40
6462 #define _CANSTAT_RO4_OPMODE2 0x80
6464 //==============================================================================
6467 //==============================================================================
6468 // CANCON_RO4 Bits
6470 extern __at(0x0E7F) __sfr CANCON_RO4;
6472 typedef union
6474 struct
6476 unsigned FP0 : 1;
6477 unsigned WIN0_FP1 : 1;
6478 unsigned WIN1_FP2 : 1;
6479 unsigned WIN2_FP3 : 1;
6480 unsigned ABAT : 1;
6481 unsigned REQOP0 : 1;
6482 unsigned REQOP1 : 1;
6483 unsigned REQOP2 : 1;
6486 struct
6488 unsigned : 1;
6489 unsigned WIN0 : 1;
6490 unsigned WIN1 : 1;
6491 unsigned WIN2 : 1;
6492 unsigned : 1;
6493 unsigned : 1;
6494 unsigned : 1;
6495 unsigned : 1;
6498 struct
6500 unsigned : 1;
6501 unsigned WIN : 3;
6502 unsigned : 4;
6505 struct
6507 unsigned : 5;
6508 unsigned REQOP : 3;
6510 } __CANCON_RO4bits_t;
6512 extern __at(0x0E7F) volatile __CANCON_RO4bits_t CANCON_RO4bits;
6514 #define _CANCON_RO4_FP0 0x01
6515 #define _CANCON_RO4_WIN0_FP1 0x02
6516 #define _CANCON_RO4_WIN0 0x02
6517 #define _CANCON_RO4_WIN1_FP2 0x04
6518 #define _CANCON_RO4_WIN1 0x04
6519 #define _CANCON_RO4_WIN2_FP3 0x08
6520 #define _CANCON_RO4_WIN2 0x08
6521 #define _CANCON_RO4_ABAT 0x10
6522 #define _CANCON_RO4_REQOP0 0x20
6523 #define _CANCON_RO4_REQOP1 0x40
6524 #define _CANCON_RO4_REQOP2 0x80
6526 //==============================================================================
6529 //==============================================================================
6530 // RXF0SIDH Bits
6532 extern __at(0x0F00) __sfr RXF0SIDH;
6534 typedef struct
6536 unsigned SID3 : 1;
6537 unsigned SID4 : 1;
6538 unsigned SID5 : 1;
6539 unsigned SID6 : 1;
6540 unsigned SID7 : 1;
6541 unsigned SID8 : 1;
6542 unsigned SID9 : 1;
6543 unsigned SID10 : 1;
6544 } __RXF0SIDHbits_t;
6546 extern __at(0x0F00) volatile __RXF0SIDHbits_t RXF0SIDHbits;
6548 #define _RXF0SIDH_SID3 0x01
6549 #define _RXF0SIDH_SID4 0x02
6550 #define _RXF0SIDH_SID5 0x04
6551 #define _RXF0SIDH_SID6 0x08
6552 #define _RXF0SIDH_SID7 0x10
6553 #define _RXF0SIDH_SID8 0x20
6554 #define _RXF0SIDH_SID9 0x40
6555 #define _RXF0SIDH_SID10 0x80
6557 //==============================================================================
6560 //==============================================================================
6561 // RXF0SIDL Bits
6563 extern __at(0x0F01) __sfr RXF0SIDL;
6565 typedef union
6567 struct
6569 unsigned EID16 : 1;
6570 unsigned EID17 : 1;
6571 unsigned : 1;
6572 unsigned EXIDEN : 1;
6573 unsigned : 1;
6574 unsigned SID0 : 1;
6575 unsigned SID1 : 1;
6576 unsigned SID2 : 1;
6579 struct
6581 unsigned : 1;
6582 unsigned : 1;
6583 unsigned : 1;
6584 unsigned EXIDE : 1;
6585 unsigned : 1;
6586 unsigned : 1;
6587 unsigned : 1;
6588 unsigned : 1;
6591 struct
6593 unsigned : 5;
6594 unsigned SID : 3;
6596 } __RXF0SIDLbits_t;
6598 extern __at(0x0F01) volatile __RXF0SIDLbits_t RXF0SIDLbits;
6600 #define _RXF0SIDL_EID16 0x01
6601 #define _RXF0SIDL_EID17 0x02
6602 #define _RXF0SIDL_EXIDEN 0x08
6603 #define _RXF0SIDL_EXIDE 0x08
6604 #define _RXF0SIDL_SID0 0x20
6605 #define _RXF0SIDL_SID1 0x40
6606 #define _RXF0SIDL_SID2 0x80
6608 //==============================================================================
6611 //==============================================================================
6612 // RXF0EIDH Bits
6614 extern __at(0x0F02) __sfr RXF0EIDH;
6616 typedef struct
6618 unsigned EID8 : 1;
6619 unsigned EID9 : 1;
6620 unsigned EID10 : 1;
6621 unsigned EID11 : 1;
6622 unsigned EID12 : 1;
6623 unsigned EID13 : 1;
6624 unsigned EID14 : 1;
6625 unsigned EID15 : 1;
6626 } __RXF0EIDHbits_t;
6628 extern __at(0x0F02) volatile __RXF0EIDHbits_t RXF0EIDHbits;
6630 #define _RXF0EIDH_EID8 0x01
6631 #define _RXF0EIDH_EID9 0x02
6632 #define _RXF0EIDH_EID10 0x04
6633 #define _RXF0EIDH_EID11 0x08
6634 #define _RXF0EIDH_EID12 0x10
6635 #define _RXF0EIDH_EID13 0x20
6636 #define _RXF0EIDH_EID14 0x40
6637 #define _RXF0EIDH_EID15 0x80
6639 //==============================================================================
6642 //==============================================================================
6643 // RXF0EIDL Bits
6645 extern __at(0x0F03) __sfr RXF0EIDL;
6647 typedef struct
6649 unsigned EID0 : 1;
6650 unsigned EID1 : 1;
6651 unsigned EID2 : 1;
6652 unsigned EID3 : 1;
6653 unsigned EID4 : 1;
6654 unsigned EID5 : 1;
6655 unsigned EID6 : 1;
6656 unsigned EID7 : 1;
6657 } __RXF0EIDLbits_t;
6659 extern __at(0x0F03) volatile __RXF0EIDLbits_t RXF0EIDLbits;
6661 #define _RXF0EIDL_EID0 0x01
6662 #define _RXF0EIDL_EID1 0x02
6663 #define _RXF0EIDL_EID2 0x04
6664 #define _RXF0EIDL_EID3 0x08
6665 #define _RXF0EIDL_EID4 0x10
6666 #define _RXF0EIDL_EID5 0x20
6667 #define _RXF0EIDL_EID6 0x40
6668 #define _RXF0EIDL_EID7 0x80
6670 //==============================================================================
6673 //==============================================================================
6674 // RXF1SIDH Bits
6676 extern __at(0x0F04) __sfr RXF1SIDH;
6678 typedef struct
6680 unsigned SID3 : 1;
6681 unsigned SID4 : 1;
6682 unsigned SID5 : 1;
6683 unsigned SID6 : 1;
6684 unsigned SID7 : 1;
6685 unsigned SID8 : 1;
6686 unsigned SID9 : 1;
6687 unsigned SID10 : 1;
6688 } __RXF1SIDHbits_t;
6690 extern __at(0x0F04) volatile __RXF1SIDHbits_t RXF1SIDHbits;
6692 #define _RXF1SIDH_SID3 0x01
6693 #define _RXF1SIDH_SID4 0x02
6694 #define _RXF1SIDH_SID5 0x04
6695 #define _RXF1SIDH_SID6 0x08
6696 #define _RXF1SIDH_SID7 0x10
6697 #define _RXF1SIDH_SID8 0x20
6698 #define _RXF1SIDH_SID9 0x40
6699 #define _RXF1SIDH_SID10 0x80
6701 //==============================================================================
6704 //==============================================================================
6705 // RXF1SIDL Bits
6707 extern __at(0x0F05) __sfr RXF1SIDL;
6709 typedef union
6711 struct
6713 unsigned EID16 : 1;
6714 unsigned EID17 : 1;
6715 unsigned : 1;
6716 unsigned EXIDEN : 1;
6717 unsigned : 1;
6718 unsigned SID0 : 1;
6719 unsigned SID1 : 1;
6720 unsigned SID2 : 1;
6723 struct
6725 unsigned : 1;
6726 unsigned : 1;
6727 unsigned : 1;
6728 unsigned EXIDE : 1;
6729 unsigned : 1;
6730 unsigned : 1;
6731 unsigned : 1;
6732 unsigned : 1;
6735 struct
6737 unsigned : 5;
6738 unsigned SID : 3;
6740 } __RXF1SIDLbits_t;
6742 extern __at(0x0F05) volatile __RXF1SIDLbits_t RXF1SIDLbits;
6744 #define _RXF1SIDL_EID16 0x01
6745 #define _RXF1SIDL_EID17 0x02
6746 #define _RXF1SIDL_EXIDEN 0x08
6747 #define _RXF1SIDL_EXIDE 0x08
6748 #define _RXF1SIDL_SID0 0x20
6749 #define _RXF1SIDL_SID1 0x40
6750 #define _RXF1SIDL_SID2 0x80
6752 //==============================================================================
6755 //==============================================================================
6756 // RXF1EIDH Bits
6758 extern __at(0x0F06) __sfr RXF1EIDH;
6760 typedef struct
6762 unsigned EID8 : 1;
6763 unsigned EID9 : 1;
6764 unsigned EID10 : 1;
6765 unsigned EID11 : 1;
6766 unsigned EID12 : 1;
6767 unsigned EID13 : 1;
6768 unsigned EID14 : 1;
6769 unsigned EID15 : 1;
6770 } __RXF1EIDHbits_t;
6772 extern __at(0x0F06) volatile __RXF1EIDHbits_t RXF1EIDHbits;
6774 #define _RXF1EIDH_EID8 0x01
6775 #define _RXF1EIDH_EID9 0x02
6776 #define _RXF1EIDH_EID10 0x04
6777 #define _RXF1EIDH_EID11 0x08
6778 #define _RXF1EIDH_EID12 0x10
6779 #define _RXF1EIDH_EID13 0x20
6780 #define _RXF1EIDH_EID14 0x40
6781 #define _RXF1EIDH_EID15 0x80
6783 //==============================================================================
6786 //==============================================================================
6787 // RXF1EIDL Bits
6789 extern __at(0x0F07) __sfr RXF1EIDL;
6791 typedef struct
6793 unsigned EID0 : 1;
6794 unsigned EID1 : 1;
6795 unsigned EID2 : 1;
6796 unsigned EID3 : 1;
6797 unsigned EID4 : 1;
6798 unsigned EID5 : 1;
6799 unsigned EID6 : 1;
6800 unsigned EID7 : 1;
6801 } __RXF1EIDLbits_t;
6803 extern __at(0x0F07) volatile __RXF1EIDLbits_t RXF1EIDLbits;
6805 #define _RXF1EIDL_EID0 0x01
6806 #define _RXF1EIDL_EID1 0x02
6807 #define _RXF1EIDL_EID2 0x04
6808 #define _RXF1EIDL_EID3 0x08
6809 #define _RXF1EIDL_EID4 0x10
6810 #define _RXF1EIDL_EID5 0x20
6811 #define _RXF1EIDL_EID6 0x40
6812 #define _RXF1EIDL_EID7 0x80
6814 //==============================================================================
6817 //==============================================================================
6818 // RXF2SIDH Bits
6820 extern __at(0x0F08) __sfr RXF2SIDH;
6822 typedef struct
6824 unsigned SID3 : 1;
6825 unsigned SID4 : 1;
6826 unsigned SID5 : 1;
6827 unsigned SID6 : 1;
6828 unsigned SID7 : 1;
6829 unsigned SID8 : 1;
6830 unsigned SID9 : 1;
6831 unsigned SID10 : 1;
6832 } __RXF2SIDHbits_t;
6834 extern __at(0x0F08) volatile __RXF2SIDHbits_t RXF2SIDHbits;
6836 #define _RXF2SIDH_SID3 0x01
6837 #define _RXF2SIDH_SID4 0x02
6838 #define _RXF2SIDH_SID5 0x04
6839 #define _RXF2SIDH_SID6 0x08
6840 #define _RXF2SIDH_SID7 0x10
6841 #define _RXF2SIDH_SID8 0x20
6842 #define _RXF2SIDH_SID9 0x40
6843 #define _RXF2SIDH_SID10 0x80
6845 //==============================================================================
6848 //==============================================================================
6849 // RXF2SIDL Bits
6851 extern __at(0x0F09) __sfr RXF2SIDL;
6853 typedef union
6855 struct
6857 unsigned EID16 : 1;
6858 unsigned EID17 : 1;
6859 unsigned : 1;
6860 unsigned EXIDEN : 1;
6861 unsigned : 1;
6862 unsigned SID0 : 1;
6863 unsigned SID1 : 1;
6864 unsigned SID2 : 1;
6867 struct
6869 unsigned : 1;
6870 unsigned : 1;
6871 unsigned : 1;
6872 unsigned EXIDE : 1;
6873 unsigned : 1;
6874 unsigned : 1;
6875 unsigned : 1;
6876 unsigned : 1;
6879 struct
6881 unsigned : 5;
6882 unsigned SID : 3;
6884 } __RXF2SIDLbits_t;
6886 extern __at(0x0F09) volatile __RXF2SIDLbits_t RXF2SIDLbits;
6888 #define _RXF2SIDL_EID16 0x01
6889 #define _RXF2SIDL_EID17 0x02
6890 #define _RXF2SIDL_EXIDEN 0x08
6891 #define _RXF2SIDL_EXIDE 0x08
6892 #define _RXF2SIDL_SID0 0x20
6893 #define _RXF2SIDL_SID1 0x40
6894 #define _RXF2SIDL_SID2 0x80
6896 //==============================================================================
6899 //==============================================================================
6900 // RXF2EIDH Bits
6902 extern __at(0x0F0A) __sfr RXF2EIDH;
6904 typedef struct
6906 unsigned EID8 : 1;
6907 unsigned EID9 : 1;
6908 unsigned EID10 : 1;
6909 unsigned EID11 : 1;
6910 unsigned EID12 : 1;
6911 unsigned EID13 : 1;
6912 unsigned EID14 : 1;
6913 unsigned EID15 : 1;
6914 } __RXF2EIDHbits_t;
6916 extern __at(0x0F0A) volatile __RXF2EIDHbits_t RXF2EIDHbits;
6918 #define _RXF2EIDH_EID8 0x01
6919 #define _RXF2EIDH_EID9 0x02
6920 #define _RXF2EIDH_EID10 0x04
6921 #define _RXF2EIDH_EID11 0x08
6922 #define _RXF2EIDH_EID12 0x10
6923 #define _RXF2EIDH_EID13 0x20
6924 #define _RXF2EIDH_EID14 0x40
6925 #define _RXF2EIDH_EID15 0x80
6927 //==============================================================================
6930 //==============================================================================
6931 // RXF2EIDL Bits
6933 extern __at(0x0F0B) __sfr RXF2EIDL;
6935 typedef struct
6937 unsigned EID0 : 1;
6938 unsigned EID1 : 1;
6939 unsigned EID2 : 1;
6940 unsigned EID3 : 1;
6941 unsigned EID4 : 1;
6942 unsigned EID5 : 1;
6943 unsigned EID6 : 1;
6944 unsigned EID7 : 1;
6945 } __RXF2EIDLbits_t;
6947 extern __at(0x0F0B) volatile __RXF2EIDLbits_t RXF2EIDLbits;
6949 #define _RXF2EIDL_EID0 0x01
6950 #define _RXF2EIDL_EID1 0x02
6951 #define _RXF2EIDL_EID2 0x04
6952 #define _RXF2EIDL_EID3 0x08
6953 #define _RXF2EIDL_EID4 0x10
6954 #define _RXF2EIDL_EID5 0x20
6955 #define _RXF2EIDL_EID6 0x40
6956 #define _RXF2EIDL_EID7 0x80
6958 //==============================================================================
6961 //==============================================================================
6962 // RXF3SIDH Bits
6964 extern __at(0x0F0C) __sfr RXF3SIDH;
6966 typedef struct
6968 unsigned SID3 : 1;
6969 unsigned SID4 : 1;
6970 unsigned SID5 : 1;
6971 unsigned SID6 : 1;
6972 unsigned SID7 : 1;
6973 unsigned SID8 : 1;
6974 unsigned SID9 : 1;
6975 unsigned SID10 : 1;
6976 } __RXF3SIDHbits_t;
6978 extern __at(0x0F0C) volatile __RXF3SIDHbits_t RXF3SIDHbits;
6980 #define _RXF3SIDH_SID3 0x01
6981 #define _RXF3SIDH_SID4 0x02
6982 #define _RXF3SIDH_SID5 0x04
6983 #define _RXF3SIDH_SID6 0x08
6984 #define _RXF3SIDH_SID7 0x10
6985 #define _RXF3SIDH_SID8 0x20
6986 #define _RXF3SIDH_SID9 0x40
6987 #define _RXF3SIDH_SID10 0x80
6989 //==============================================================================
6992 //==============================================================================
6993 // RXF3SIDL Bits
6995 extern __at(0x0F0D) __sfr RXF3SIDL;
6997 typedef union
6999 struct
7001 unsigned EID16 : 1;
7002 unsigned EID17 : 1;
7003 unsigned : 1;
7004 unsigned EXIDEN : 1;
7005 unsigned : 1;
7006 unsigned SID0 : 1;
7007 unsigned SID1 : 1;
7008 unsigned SID2 : 1;
7011 struct
7013 unsigned : 1;
7014 unsigned : 1;
7015 unsigned : 1;
7016 unsigned EXIDE : 1;
7017 unsigned : 1;
7018 unsigned : 1;
7019 unsigned : 1;
7020 unsigned : 1;
7023 struct
7025 unsigned : 5;
7026 unsigned SID : 3;
7028 } __RXF3SIDLbits_t;
7030 extern __at(0x0F0D) volatile __RXF3SIDLbits_t RXF3SIDLbits;
7032 #define _RXF3SIDL_EID16 0x01
7033 #define _RXF3SIDL_EID17 0x02
7034 #define _RXF3SIDL_EXIDEN 0x08
7035 #define _RXF3SIDL_EXIDE 0x08
7036 #define _RXF3SIDL_SID0 0x20
7037 #define _RXF3SIDL_SID1 0x40
7038 #define _RXF3SIDL_SID2 0x80
7040 //==============================================================================
7043 //==============================================================================
7044 // RXF3EIDH Bits
7046 extern __at(0x0F0E) __sfr RXF3EIDH;
7048 typedef struct
7050 unsigned EID8 : 1;
7051 unsigned EID9 : 1;
7052 unsigned EID10 : 1;
7053 unsigned EID11 : 1;
7054 unsigned EID12 : 1;
7055 unsigned EID13 : 1;
7056 unsigned EID14 : 1;
7057 unsigned EID15 : 1;
7058 } __RXF3EIDHbits_t;
7060 extern __at(0x0F0E) volatile __RXF3EIDHbits_t RXF3EIDHbits;
7062 #define _RXF3EIDH_EID8 0x01
7063 #define _RXF3EIDH_EID9 0x02
7064 #define _RXF3EIDH_EID10 0x04
7065 #define _RXF3EIDH_EID11 0x08
7066 #define _RXF3EIDH_EID12 0x10
7067 #define _RXF3EIDH_EID13 0x20
7068 #define _RXF3EIDH_EID14 0x40
7069 #define _RXF3EIDH_EID15 0x80
7071 //==============================================================================
7074 //==============================================================================
7075 // RXF3EIDL Bits
7077 extern __at(0x0F0F) __sfr RXF3EIDL;
7079 typedef struct
7081 unsigned EID0 : 1;
7082 unsigned EID1 : 1;
7083 unsigned EID2 : 1;
7084 unsigned EID3 : 1;
7085 unsigned EID4 : 1;
7086 unsigned EID5 : 1;
7087 unsigned EID6 : 1;
7088 unsigned EID7 : 1;
7089 } __RXF3EIDLbits_t;
7091 extern __at(0x0F0F) volatile __RXF3EIDLbits_t RXF3EIDLbits;
7093 #define _RXF3EIDL_EID0 0x01
7094 #define _RXF3EIDL_EID1 0x02
7095 #define _RXF3EIDL_EID2 0x04
7096 #define _RXF3EIDL_EID3 0x08
7097 #define _RXF3EIDL_EID4 0x10
7098 #define _RXF3EIDL_EID5 0x20
7099 #define _RXF3EIDL_EID6 0x40
7100 #define _RXF3EIDL_EID7 0x80
7102 //==============================================================================
7105 //==============================================================================
7106 // RXF4SIDH Bits
7108 extern __at(0x0F10) __sfr RXF4SIDH;
7110 typedef struct
7112 unsigned SID3 : 1;
7113 unsigned SID4 : 1;
7114 unsigned SID5 : 1;
7115 unsigned SID6 : 1;
7116 unsigned SID7 : 1;
7117 unsigned SID8 : 1;
7118 unsigned SID9 : 1;
7119 unsigned SID10 : 1;
7120 } __RXF4SIDHbits_t;
7122 extern __at(0x0F10) volatile __RXF4SIDHbits_t RXF4SIDHbits;
7124 #define _RXF4SIDH_SID3 0x01
7125 #define _RXF4SIDH_SID4 0x02
7126 #define _RXF4SIDH_SID5 0x04
7127 #define _RXF4SIDH_SID6 0x08
7128 #define _RXF4SIDH_SID7 0x10
7129 #define _RXF4SIDH_SID8 0x20
7130 #define _RXF4SIDH_SID9 0x40
7131 #define _RXF4SIDH_SID10 0x80
7133 //==============================================================================
7136 //==============================================================================
7137 // RXF4SIDL Bits
7139 extern __at(0x0F11) __sfr RXF4SIDL;
7141 typedef union
7143 struct
7145 unsigned EID16 : 1;
7146 unsigned EID17 : 1;
7147 unsigned : 1;
7148 unsigned EXIDEN : 1;
7149 unsigned : 1;
7150 unsigned SID0 : 1;
7151 unsigned SID1 : 1;
7152 unsigned SID2 : 1;
7155 struct
7157 unsigned : 1;
7158 unsigned : 1;
7159 unsigned : 1;
7160 unsigned EXIDE : 1;
7161 unsigned : 1;
7162 unsigned : 1;
7163 unsigned : 1;
7164 unsigned : 1;
7167 struct
7169 unsigned : 5;
7170 unsigned SID : 3;
7172 } __RXF4SIDLbits_t;
7174 extern __at(0x0F11) volatile __RXF4SIDLbits_t RXF4SIDLbits;
7176 #define _RXF4SIDL_EID16 0x01
7177 #define _RXF4SIDL_EID17 0x02
7178 #define _RXF4SIDL_EXIDEN 0x08
7179 #define _RXF4SIDL_EXIDE 0x08
7180 #define _RXF4SIDL_SID0 0x20
7181 #define _RXF4SIDL_SID1 0x40
7182 #define _RXF4SIDL_SID2 0x80
7184 //==============================================================================
7187 //==============================================================================
7188 // RXF4EIDH Bits
7190 extern __at(0x0F12) __sfr RXF4EIDH;
7192 typedef struct
7194 unsigned EID8 : 1;
7195 unsigned EID9 : 1;
7196 unsigned EID10 : 1;
7197 unsigned EID11 : 1;
7198 unsigned EID12 : 1;
7199 unsigned EID13 : 1;
7200 unsigned EID14 : 1;
7201 unsigned EID15 : 1;
7202 } __RXF4EIDHbits_t;
7204 extern __at(0x0F12) volatile __RXF4EIDHbits_t RXF4EIDHbits;
7206 #define _RXF4EIDH_EID8 0x01
7207 #define _RXF4EIDH_EID9 0x02
7208 #define _RXF4EIDH_EID10 0x04
7209 #define _RXF4EIDH_EID11 0x08
7210 #define _RXF4EIDH_EID12 0x10
7211 #define _RXF4EIDH_EID13 0x20
7212 #define _RXF4EIDH_EID14 0x40
7213 #define _RXF4EIDH_EID15 0x80
7215 //==============================================================================
7218 //==============================================================================
7219 // RXF4EIDL Bits
7221 extern __at(0x0F13) __sfr RXF4EIDL;
7223 typedef struct
7225 unsigned EID0 : 1;
7226 unsigned EID1 : 1;
7227 unsigned EID2 : 1;
7228 unsigned EID3 : 1;
7229 unsigned EID4 : 1;
7230 unsigned EID5 : 1;
7231 unsigned EID6 : 1;
7232 unsigned EID7 : 1;
7233 } __RXF4EIDLbits_t;
7235 extern __at(0x0F13) volatile __RXF4EIDLbits_t RXF4EIDLbits;
7237 #define _RXF4EIDL_EID0 0x01
7238 #define _RXF4EIDL_EID1 0x02
7239 #define _RXF4EIDL_EID2 0x04
7240 #define _RXF4EIDL_EID3 0x08
7241 #define _RXF4EIDL_EID4 0x10
7242 #define _RXF4EIDL_EID5 0x20
7243 #define _RXF4EIDL_EID6 0x40
7244 #define _RXF4EIDL_EID7 0x80
7246 //==============================================================================
7249 //==============================================================================
7250 // RXF5SIDH Bits
7252 extern __at(0x0F14) __sfr RXF5SIDH;
7254 typedef struct
7256 unsigned SID3 : 1;
7257 unsigned SID4 : 1;
7258 unsigned SID5 : 1;
7259 unsigned SID6 : 1;
7260 unsigned SID7 : 1;
7261 unsigned SID8 : 1;
7262 unsigned SID9 : 1;
7263 unsigned SID10 : 1;
7264 } __RXF5SIDHbits_t;
7266 extern __at(0x0F14) volatile __RXF5SIDHbits_t RXF5SIDHbits;
7268 #define _RXF5SIDH_SID3 0x01
7269 #define _RXF5SIDH_SID4 0x02
7270 #define _RXF5SIDH_SID5 0x04
7271 #define _RXF5SIDH_SID6 0x08
7272 #define _RXF5SIDH_SID7 0x10
7273 #define _RXF5SIDH_SID8 0x20
7274 #define _RXF5SIDH_SID9 0x40
7275 #define _RXF5SIDH_SID10 0x80
7277 //==============================================================================
7280 //==============================================================================
7281 // RXF5SIDL Bits
7283 extern __at(0x0F15) __sfr RXF5SIDL;
7285 typedef union
7287 struct
7289 unsigned EID16 : 1;
7290 unsigned EID17 : 1;
7291 unsigned : 1;
7292 unsigned EXIDEN : 1;
7293 unsigned : 1;
7294 unsigned SID0 : 1;
7295 unsigned SID1 : 1;
7296 unsigned SID2 : 1;
7299 struct
7301 unsigned : 1;
7302 unsigned : 1;
7303 unsigned : 1;
7304 unsigned EXIDE : 1;
7305 unsigned : 1;
7306 unsigned : 1;
7307 unsigned : 1;
7308 unsigned : 1;
7311 struct
7313 unsigned : 5;
7314 unsigned SID : 3;
7316 } __RXF5SIDLbits_t;
7318 extern __at(0x0F15) volatile __RXF5SIDLbits_t RXF5SIDLbits;
7320 #define _RXF5SIDL_EID16 0x01
7321 #define _RXF5SIDL_EID17 0x02
7322 #define _RXF5SIDL_EXIDEN 0x08
7323 #define _RXF5SIDL_EXIDE 0x08
7324 #define _RXF5SIDL_SID0 0x20
7325 #define _RXF5SIDL_SID1 0x40
7326 #define _RXF5SIDL_SID2 0x80
7328 //==============================================================================
7331 //==============================================================================
7332 // RXF5EIDH Bits
7334 extern __at(0x0F16) __sfr RXF5EIDH;
7336 typedef struct
7338 unsigned EID8 : 1;
7339 unsigned EID9 : 1;
7340 unsigned EID10 : 1;
7341 unsigned EID11 : 1;
7342 unsigned EID12 : 1;
7343 unsigned EID13 : 1;
7344 unsigned EID14 : 1;
7345 unsigned EID15 : 1;
7346 } __RXF5EIDHbits_t;
7348 extern __at(0x0F16) volatile __RXF5EIDHbits_t RXF5EIDHbits;
7350 #define _RXF5EIDH_EID8 0x01
7351 #define _RXF5EIDH_EID9 0x02
7352 #define _RXF5EIDH_EID10 0x04
7353 #define _RXF5EIDH_EID11 0x08
7354 #define _RXF5EIDH_EID12 0x10
7355 #define _RXF5EIDH_EID13 0x20
7356 #define _RXF5EIDH_EID14 0x40
7357 #define _RXF5EIDH_EID15 0x80
7359 //==============================================================================
7362 //==============================================================================
7363 // RXF5EIDL Bits
7365 extern __at(0x0F17) __sfr RXF5EIDL;
7367 typedef struct
7369 unsigned EID0 : 1;
7370 unsigned EID1 : 1;
7371 unsigned EID2 : 1;
7372 unsigned EID3 : 1;
7373 unsigned EID4 : 1;
7374 unsigned EID5 : 1;
7375 unsigned EID6 : 1;
7376 unsigned EID7 : 1;
7377 } __RXF5EIDLbits_t;
7379 extern __at(0x0F17) volatile __RXF5EIDLbits_t RXF5EIDLbits;
7381 #define _RXF5EIDL_EID0 0x01
7382 #define _RXF5EIDL_EID1 0x02
7383 #define _RXF5EIDL_EID2 0x04
7384 #define _RXF5EIDL_EID3 0x08
7385 #define _RXF5EIDL_EID4 0x10
7386 #define _RXF5EIDL_EID5 0x20
7387 #define _RXF5EIDL_EID6 0x40
7388 #define _RXF5EIDL_EID7 0x80
7390 //==============================================================================
7393 //==============================================================================
7394 // RXM0SIDH Bits
7396 extern __at(0x0F18) __sfr RXM0SIDH;
7398 typedef struct
7400 unsigned SID3 : 1;
7401 unsigned SID4 : 1;
7402 unsigned SID5 : 1;
7403 unsigned SID6 : 1;
7404 unsigned SID7 : 1;
7405 unsigned SID8 : 1;
7406 unsigned SID9 : 1;
7407 unsigned SID10 : 1;
7408 } __RXM0SIDHbits_t;
7410 extern __at(0x0F18) volatile __RXM0SIDHbits_t RXM0SIDHbits;
7412 #define _RXM0SIDH_SID3 0x01
7413 #define _RXM0SIDH_SID4 0x02
7414 #define _RXM0SIDH_SID5 0x04
7415 #define _RXM0SIDH_SID6 0x08
7416 #define _RXM0SIDH_SID7 0x10
7417 #define _RXM0SIDH_SID8 0x20
7418 #define _RXM0SIDH_SID9 0x40
7419 #define _RXM0SIDH_SID10 0x80
7421 //==============================================================================
7424 //==============================================================================
7425 // RXM0SIDL Bits
7427 extern __at(0x0F19) __sfr RXM0SIDL;
7429 typedef union
7431 struct
7433 unsigned EID16 : 1;
7434 unsigned EID17 : 1;
7435 unsigned : 1;
7436 unsigned EXIDEN : 1;
7437 unsigned : 1;
7438 unsigned SID0 : 1;
7439 unsigned SID1 : 1;
7440 unsigned SID2 : 1;
7443 struct
7445 unsigned : 5;
7446 unsigned SID : 3;
7448 } __RXM0SIDLbits_t;
7450 extern __at(0x0F19) volatile __RXM0SIDLbits_t RXM0SIDLbits;
7452 #define _RXM0SIDL_EID16 0x01
7453 #define _RXM0SIDL_EID17 0x02
7454 #define _RXM0SIDL_EXIDEN 0x08
7455 #define _RXM0SIDL_SID0 0x20
7456 #define _RXM0SIDL_SID1 0x40
7457 #define _RXM0SIDL_SID2 0x80
7459 //==============================================================================
7462 //==============================================================================
7463 // RXM0EIDH Bits
7465 extern __at(0x0F1A) __sfr RXM0EIDH;
7467 typedef struct
7469 unsigned EID8 : 1;
7470 unsigned EID9 : 1;
7471 unsigned EID10 : 1;
7472 unsigned EID11 : 1;
7473 unsigned EID12 : 1;
7474 unsigned EID13 : 1;
7475 unsigned EID14 : 1;
7476 unsigned EID15 : 1;
7477 } __RXM0EIDHbits_t;
7479 extern __at(0x0F1A) volatile __RXM0EIDHbits_t RXM0EIDHbits;
7481 #define _RXM0EIDH_EID8 0x01
7482 #define _RXM0EIDH_EID9 0x02
7483 #define _RXM0EIDH_EID10 0x04
7484 #define _RXM0EIDH_EID11 0x08
7485 #define _RXM0EIDH_EID12 0x10
7486 #define _RXM0EIDH_EID13 0x20
7487 #define _RXM0EIDH_EID14 0x40
7488 #define _RXM0EIDH_EID15 0x80
7490 //==============================================================================
7493 //==============================================================================
7494 // RXM0EIDL Bits
7496 extern __at(0x0F1B) __sfr RXM0EIDL;
7498 typedef struct
7500 unsigned EID0 : 1;
7501 unsigned EID1 : 1;
7502 unsigned EID2 : 1;
7503 unsigned EID3 : 1;
7504 unsigned EID4 : 1;
7505 unsigned EID5 : 1;
7506 unsigned EID6 : 1;
7507 unsigned EID7 : 1;
7508 } __RXM0EIDLbits_t;
7510 extern __at(0x0F1B) volatile __RXM0EIDLbits_t RXM0EIDLbits;
7512 #define _RXM0EIDL_EID0 0x01
7513 #define _RXM0EIDL_EID1 0x02
7514 #define _RXM0EIDL_EID2 0x04
7515 #define _RXM0EIDL_EID3 0x08
7516 #define _RXM0EIDL_EID4 0x10
7517 #define _RXM0EIDL_EID5 0x20
7518 #define _RXM0EIDL_EID6 0x40
7519 #define _RXM0EIDL_EID7 0x80
7521 //==============================================================================
7524 //==============================================================================
7525 // RXM1SIDH Bits
7527 extern __at(0x0F1C) __sfr RXM1SIDH;
7529 typedef struct
7531 unsigned SID3 : 1;
7532 unsigned SID4 : 1;
7533 unsigned SID5 : 1;
7534 unsigned SID6 : 1;
7535 unsigned SID7 : 1;
7536 unsigned SID8 : 1;
7537 unsigned SID9 : 1;
7538 unsigned SID10 : 1;
7539 } __RXM1SIDHbits_t;
7541 extern __at(0x0F1C) volatile __RXM1SIDHbits_t RXM1SIDHbits;
7543 #define _RXM1SIDH_SID3 0x01
7544 #define _RXM1SIDH_SID4 0x02
7545 #define _RXM1SIDH_SID5 0x04
7546 #define _RXM1SIDH_SID6 0x08
7547 #define _RXM1SIDH_SID7 0x10
7548 #define _RXM1SIDH_SID8 0x20
7549 #define _RXM1SIDH_SID9 0x40
7550 #define _RXM1SIDH_SID10 0x80
7552 //==============================================================================
7555 //==============================================================================
7556 // RXM1SIDL Bits
7558 extern __at(0x0F1D) __sfr RXM1SIDL;
7560 typedef union
7562 struct
7564 unsigned EID16 : 1;
7565 unsigned EID17 : 1;
7566 unsigned : 1;
7567 unsigned EXIDEN : 1;
7568 unsigned : 1;
7569 unsigned SID0 : 1;
7570 unsigned SID1 : 1;
7571 unsigned SID2 : 1;
7574 struct
7576 unsigned : 5;
7577 unsigned SID : 3;
7579 } __RXM1SIDLbits_t;
7581 extern __at(0x0F1D) volatile __RXM1SIDLbits_t RXM1SIDLbits;
7583 #define _RXM1SIDL_EID16 0x01
7584 #define _RXM1SIDL_EID17 0x02
7585 #define _RXM1SIDL_EXIDEN 0x08
7586 #define _RXM1SIDL_SID0 0x20
7587 #define _RXM1SIDL_SID1 0x40
7588 #define _RXM1SIDL_SID2 0x80
7590 //==============================================================================
7593 //==============================================================================
7594 // RXM1EIDH Bits
7596 extern __at(0x0F1E) __sfr RXM1EIDH;
7598 typedef struct
7600 unsigned EID8 : 1;
7601 unsigned EID9 : 1;
7602 unsigned EID10 : 1;
7603 unsigned EID11 : 1;
7604 unsigned EID12 : 1;
7605 unsigned EID13 : 1;
7606 unsigned EID14 : 1;
7607 unsigned EID15 : 1;
7608 } __RXM1EIDHbits_t;
7610 extern __at(0x0F1E) volatile __RXM1EIDHbits_t RXM1EIDHbits;
7612 #define _RXM1EIDH_EID8 0x01
7613 #define _RXM1EIDH_EID9 0x02
7614 #define _RXM1EIDH_EID10 0x04
7615 #define _RXM1EIDH_EID11 0x08
7616 #define _RXM1EIDH_EID12 0x10
7617 #define _RXM1EIDH_EID13 0x20
7618 #define _RXM1EIDH_EID14 0x40
7619 #define _RXM1EIDH_EID15 0x80
7621 //==============================================================================
7624 //==============================================================================
7625 // RXM1EIDL Bits
7627 extern __at(0x0F1F) __sfr RXM1EIDL;
7629 typedef struct
7631 unsigned EID0 : 1;
7632 unsigned EID1 : 1;
7633 unsigned EID2 : 1;
7634 unsigned EID3 : 1;
7635 unsigned EID4 : 1;
7636 unsigned EID5 : 1;
7637 unsigned EID6 : 1;
7638 unsigned EID7 : 1;
7639 } __RXM1EIDLbits_t;
7641 extern __at(0x0F1F) volatile __RXM1EIDLbits_t RXM1EIDLbits;
7643 #define _RXM1EIDL_EID0 0x01
7644 #define _RXM1EIDL_EID1 0x02
7645 #define _RXM1EIDL_EID2 0x04
7646 #define _RXM1EIDL_EID3 0x08
7647 #define _RXM1EIDL_EID4 0x10
7648 #define _RXM1EIDL_EID5 0x20
7649 #define _RXM1EIDL_EID6 0x40
7650 #define _RXM1EIDL_EID7 0x80
7652 //==============================================================================
7655 //==============================================================================
7656 // TXB2CON Bits
7658 extern __at(0x0F20) __sfr TXB2CON;
7660 typedef union
7662 struct
7664 unsigned TXPRI0 : 1;
7665 unsigned TXPRI1 : 1;
7666 unsigned : 1;
7667 unsigned TXREQ : 1;
7668 unsigned TXERR : 1;
7669 unsigned TXLARB : 1;
7670 unsigned TXABT : 1;
7671 unsigned TXBIF : 1;
7674 struct
7676 unsigned : 1;
7677 unsigned : 1;
7678 unsigned : 1;
7679 unsigned : 1;
7680 unsigned : 1;
7681 unsigned : 1;
7682 unsigned : 1;
7683 unsigned TXBIFBXB2CON : 1;
7686 struct
7688 unsigned TXPRI : 2;
7689 unsigned : 6;
7691 } __TXB2CONbits_t;
7693 extern __at(0x0F20) volatile __TXB2CONbits_t TXB2CONbits;
7695 #define _TXB2CON_TXPRI0 0x01
7696 #define _TXB2CON_TXPRI1 0x02
7697 #define _TXB2CON_TXREQ 0x08
7698 #define _TXB2CON_TXERR 0x10
7699 #define _TXB2CON_TXLARB 0x20
7700 #define _TXB2CON_TXABT 0x40
7701 #define _TXB2CON_TXBIF 0x80
7702 #define _TXB2CON_TXBIFBXB2CON 0x80
7704 //==============================================================================
7707 //==============================================================================
7708 // TXB2SIDH Bits
7710 extern __at(0x0F21) __sfr TXB2SIDH;
7712 typedef struct
7714 unsigned SID3 : 1;
7715 unsigned SID4 : 1;
7716 unsigned SID5 : 1;
7717 unsigned SID6 : 1;
7718 unsigned SID7 : 1;
7719 unsigned SID8 : 1;
7720 unsigned SID9 : 1;
7721 unsigned SID10 : 1;
7722 } __TXB2SIDHbits_t;
7724 extern __at(0x0F21) volatile __TXB2SIDHbits_t TXB2SIDHbits;
7726 #define _TXB2SIDH_SID3 0x01
7727 #define _TXB2SIDH_SID4 0x02
7728 #define _TXB2SIDH_SID5 0x04
7729 #define _TXB2SIDH_SID6 0x08
7730 #define _TXB2SIDH_SID7 0x10
7731 #define _TXB2SIDH_SID8 0x20
7732 #define _TXB2SIDH_SID9 0x40
7733 #define _TXB2SIDH_SID10 0x80
7735 //==============================================================================
7738 //==============================================================================
7739 // TXB2SIDL Bits
7741 extern __at(0x0F22) __sfr TXB2SIDL;
7743 typedef union
7745 struct
7747 unsigned EID16 : 1;
7748 unsigned EID17 : 1;
7749 unsigned : 1;
7750 unsigned EXIDE : 1;
7751 unsigned : 1;
7752 unsigned SID0 : 1;
7753 unsigned SID1 : 1;
7754 unsigned SID2 : 1;
7757 struct
7759 unsigned : 5;
7760 unsigned SID : 3;
7762 } __TXB2SIDLbits_t;
7764 extern __at(0x0F22) volatile __TXB2SIDLbits_t TXB2SIDLbits;
7766 #define _TXB2SIDL_EID16 0x01
7767 #define _TXB2SIDL_EID17 0x02
7768 #define _TXB2SIDL_EXIDE 0x08
7769 #define _TXB2SIDL_SID0 0x20
7770 #define _TXB2SIDL_SID1 0x40
7771 #define _TXB2SIDL_SID2 0x80
7773 //==============================================================================
7776 //==============================================================================
7777 // TXB2EIDH Bits
7779 extern __at(0x0F23) __sfr TXB2EIDH;
7781 typedef struct
7783 unsigned EID8 : 1;
7784 unsigned EID9 : 1;
7785 unsigned EID10 : 1;
7786 unsigned EID11 : 1;
7787 unsigned EID12 : 1;
7788 unsigned EID13 : 1;
7789 unsigned EID14 : 1;
7790 unsigned EID15 : 1;
7791 } __TXB2EIDHbits_t;
7793 extern __at(0x0F23) volatile __TXB2EIDHbits_t TXB2EIDHbits;
7795 #define _TXB2EIDH_EID8 0x01
7796 #define _TXB2EIDH_EID9 0x02
7797 #define _TXB2EIDH_EID10 0x04
7798 #define _TXB2EIDH_EID11 0x08
7799 #define _TXB2EIDH_EID12 0x10
7800 #define _TXB2EIDH_EID13 0x20
7801 #define _TXB2EIDH_EID14 0x40
7802 #define _TXB2EIDH_EID15 0x80
7804 //==============================================================================
7807 //==============================================================================
7808 // TXB2EIDL Bits
7810 extern __at(0x0F24) __sfr TXB2EIDL;
7812 typedef struct
7814 unsigned EID0 : 1;
7815 unsigned EID1 : 1;
7816 unsigned EID2 : 1;
7817 unsigned EID3 : 1;
7818 unsigned EID4 : 1;
7819 unsigned EID5 : 1;
7820 unsigned EID6 : 1;
7821 unsigned EID7 : 1;
7822 } __TXB2EIDLbits_t;
7824 extern __at(0x0F24) volatile __TXB2EIDLbits_t TXB2EIDLbits;
7826 #define _TXB2EIDL_EID0 0x01
7827 #define _TXB2EIDL_EID1 0x02
7828 #define _TXB2EIDL_EID2 0x04
7829 #define _TXB2EIDL_EID3 0x08
7830 #define _TXB2EIDL_EID4 0x10
7831 #define _TXB2EIDL_EID5 0x20
7832 #define _TXB2EIDL_EID6 0x40
7833 #define _TXB2EIDL_EID7 0x80
7835 //==============================================================================
7838 //==============================================================================
7839 // TXB2DLC Bits
7841 extern __at(0x0F25) __sfr TXB2DLC;
7843 typedef union
7845 struct
7847 unsigned DLC0 : 1;
7848 unsigned DLC1 : 1;
7849 unsigned DLC2 : 1;
7850 unsigned DLC3 : 1;
7851 unsigned : 1;
7852 unsigned : 1;
7853 unsigned TXRTR : 1;
7854 unsigned : 1;
7857 struct
7859 unsigned DLC : 4;
7860 unsigned : 4;
7862 } __TXB2DLCbits_t;
7864 extern __at(0x0F25) volatile __TXB2DLCbits_t TXB2DLCbits;
7866 #define _TXB2DLC_DLC0 0x01
7867 #define _TXB2DLC_DLC1 0x02
7868 #define _TXB2DLC_DLC2 0x04
7869 #define _TXB2DLC_DLC3 0x08
7870 #define _TXB2DLC_TXRTR 0x40
7872 //==============================================================================
7875 //==============================================================================
7876 // TXB2D0 Bits
7878 extern __at(0x0F26) __sfr TXB2D0;
7880 typedef struct
7882 unsigned TXB2D00 : 1;
7883 unsigned TXB2D01 : 1;
7884 unsigned TXB2D02 : 1;
7885 unsigned TXB2D03 : 1;
7886 unsigned TXB2D04 : 1;
7887 unsigned TXB2D05 : 1;
7888 unsigned TXB2D06 : 1;
7889 unsigned TXB2D07 : 1;
7890 } __TXB2D0bits_t;
7892 extern __at(0x0F26) volatile __TXB2D0bits_t TXB2D0bits;
7894 #define _TXB2D00 0x01
7895 #define _TXB2D01 0x02
7896 #define _TXB2D02 0x04
7897 #define _TXB2D03 0x08
7898 #define _TXB2D04 0x10
7899 #define _TXB2D05 0x20
7900 #define _TXB2D06 0x40
7901 #define _TXB2D07 0x80
7903 //==============================================================================
7906 //==============================================================================
7907 // TXB2D1 Bits
7909 extern __at(0x0F27) __sfr TXB2D1;
7911 typedef struct
7913 unsigned TXB2D10 : 1;
7914 unsigned TXB2D11 : 1;
7915 unsigned TXB2D12 : 1;
7916 unsigned TXB2D13 : 1;
7917 unsigned TXB2D14 : 1;
7918 unsigned TXB2D15 : 1;
7919 unsigned TXB2D16 : 1;
7920 unsigned TXB2D17 : 1;
7921 } __TXB2D1bits_t;
7923 extern __at(0x0F27) volatile __TXB2D1bits_t TXB2D1bits;
7925 #define _TXB2D10 0x01
7926 #define _TXB2D11 0x02
7927 #define _TXB2D12 0x04
7928 #define _TXB2D13 0x08
7929 #define _TXB2D14 0x10
7930 #define _TXB2D15 0x20
7931 #define _TXB2D16 0x40
7932 #define _TXB2D17 0x80
7934 //==============================================================================
7937 //==============================================================================
7938 // TXB2D2 Bits
7940 extern __at(0x0F28) __sfr TXB2D2;
7942 typedef struct
7944 unsigned TXB2D20 : 1;
7945 unsigned TXB2D21 : 1;
7946 unsigned TXB2D22 : 1;
7947 unsigned TXB2D23 : 1;
7948 unsigned TXB2D24 : 1;
7949 unsigned TXB2D25 : 1;
7950 unsigned TXB2D26 : 1;
7951 unsigned TXB2D27 : 1;
7952 } __TXB2D2bits_t;
7954 extern __at(0x0F28) volatile __TXB2D2bits_t TXB2D2bits;
7956 #define _TXB2D20 0x01
7957 #define _TXB2D21 0x02
7958 #define _TXB2D22 0x04
7959 #define _TXB2D23 0x08
7960 #define _TXB2D24 0x10
7961 #define _TXB2D25 0x20
7962 #define _TXB2D26 0x40
7963 #define _TXB2D27 0x80
7965 //==============================================================================
7968 //==============================================================================
7969 // TXB2D3 Bits
7971 extern __at(0x0F29) __sfr TXB2D3;
7973 typedef struct
7975 unsigned TXB2D30 : 1;
7976 unsigned TXB2D31 : 1;
7977 unsigned TXB2D32 : 1;
7978 unsigned TXB2D33 : 1;
7979 unsigned TXB2D34 : 1;
7980 unsigned TXB2D35 : 1;
7981 unsigned TXB2D36 : 1;
7982 unsigned TXB2D37 : 1;
7983 } __TXB2D3bits_t;
7985 extern __at(0x0F29) volatile __TXB2D3bits_t TXB2D3bits;
7987 #define _TXB2D30 0x01
7988 #define _TXB2D31 0x02
7989 #define _TXB2D32 0x04
7990 #define _TXB2D33 0x08
7991 #define _TXB2D34 0x10
7992 #define _TXB2D35 0x20
7993 #define _TXB2D36 0x40
7994 #define _TXB2D37 0x80
7996 //==============================================================================
7999 //==============================================================================
8000 // TXB2D4 Bits
8002 extern __at(0x0F2A) __sfr TXB2D4;
8004 typedef struct
8006 unsigned TXB2D40 : 1;
8007 unsigned TXB2D41 : 1;
8008 unsigned TXB2D42 : 1;
8009 unsigned TXB2D43 : 1;
8010 unsigned TXB2D44 : 1;
8011 unsigned TXB2D45 : 1;
8012 unsigned TXB2D46 : 1;
8013 unsigned TXB2D47 : 1;
8014 } __TXB2D4bits_t;
8016 extern __at(0x0F2A) volatile __TXB2D4bits_t TXB2D4bits;
8018 #define _TXB2D40 0x01
8019 #define _TXB2D41 0x02
8020 #define _TXB2D42 0x04
8021 #define _TXB2D43 0x08
8022 #define _TXB2D44 0x10
8023 #define _TXB2D45 0x20
8024 #define _TXB2D46 0x40
8025 #define _TXB2D47 0x80
8027 //==============================================================================
8030 //==============================================================================
8031 // TXB2D5 Bits
8033 extern __at(0x0F2B) __sfr TXB2D5;
8035 typedef struct
8037 unsigned TXB2D50 : 1;
8038 unsigned TXB2D51 : 1;
8039 unsigned TXB2D52 : 1;
8040 unsigned TXB2D53 : 1;
8041 unsigned TXB2D54 : 1;
8042 unsigned TXB2D55 : 1;
8043 unsigned TXB2D56 : 1;
8044 unsigned TXB2D57 : 1;
8045 } __TXB2D5bits_t;
8047 extern __at(0x0F2B) volatile __TXB2D5bits_t TXB2D5bits;
8049 #define _TXB2D50 0x01
8050 #define _TXB2D51 0x02
8051 #define _TXB2D52 0x04
8052 #define _TXB2D53 0x08
8053 #define _TXB2D54 0x10
8054 #define _TXB2D55 0x20
8055 #define _TXB2D56 0x40
8056 #define _TXB2D57 0x80
8058 //==============================================================================
8061 //==============================================================================
8062 // TXB2D6 Bits
8064 extern __at(0x0F2C) __sfr TXB2D6;
8066 typedef struct
8068 unsigned TXB2D60 : 1;
8069 unsigned TXB2D61 : 1;
8070 unsigned TXB2D62 : 1;
8071 unsigned TXB2D63 : 1;
8072 unsigned TXB2D64 : 1;
8073 unsigned TXB2D65 : 1;
8074 unsigned TXB2D66 : 1;
8075 unsigned TXB2D67 : 1;
8076 } __TXB2D6bits_t;
8078 extern __at(0x0F2C) volatile __TXB2D6bits_t TXB2D6bits;
8080 #define _TXB2D60 0x01
8081 #define _TXB2D61 0x02
8082 #define _TXB2D62 0x04
8083 #define _TXB2D63 0x08
8084 #define _TXB2D64 0x10
8085 #define _TXB2D65 0x20
8086 #define _TXB2D66 0x40
8087 #define _TXB2D67 0x80
8089 //==============================================================================
8092 //==============================================================================
8093 // TXB2D7 Bits
8095 extern __at(0x0F2D) __sfr TXB2D7;
8097 typedef struct
8099 unsigned TXB2D70 : 1;
8100 unsigned TXB2D71 : 1;
8101 unsigned TXB2D72 : 1;
8102 unsigned TXB2D73 : 1;
8103 unsigned TXB2D74 : 1;
8104 unsigned TXB2D75 : 1;
8105 unsigned TXB2D76 : 1;
8106 unsigned TXB2D77 : 1;
8107 } __TXB2D7bits_t;
8109 extern __at(0x0F2D) volatile __TXB2D7bits_t TXB2D7bits;
8111 #define _TXB2D70 0x01
8112 #define _TXB2D71 0x02
8113 #define _TXB2D72 0x04
8114 #define _TXB2D73 0x08
8115 #define _TXB2D74 0x10
8116 #define _TXB2D75 0x20
8117 #define _TXB2D76 0x40
8118 #define _TXB2D77 0x80
8120 //==============================================================================
8123 //==============================================================================
8124 // CANSTAT_RO3 Bits
8126 extern __at(0x0F2E) __sfr CANSTAT_RO3;
8128 typedef union
8130 struct
8132 unsigned EICODE0 : 1;
8133 unsigned EICODE1_ICODE0 : 1;
8134 unsigned EICODE2_ICODE1 : 1;
8135 unsigned EICODE3_ICODE2 : 1;
8136 unsigned EICODE4 : 1;
8137 unsigned OPMODE0 : 1;
8138 unsigned OPMODE1 : 1;
8139 unsigned OPMODE2 : 1;
8142 struct
8144 unsigned ICODE0 : 1;
8145 unsigned ICODE1 : 1;
8146 unsigned ICODE2 : 1;
8147 unsigned ICODE3 : 1;
8148 unsigned ICODE4 : 1;
8149 unsigned : 1;
8150 unsigned : 1;
8151 unsigned : 1;
8154 struct
8156 unsigned ICODE : 5;
8157 unsigned : 3;
8160 struct
8162 unsigned : 5;
8163 unsigned OPMODE : 3;
8165 } __CANSTAT_RO3bits_t;
8167 extern __at(0x0F2E) volatile __CANSTAT_RO3bits_t CANSTAT_RO3bits;
8169 #define _CANSTAT_RO3_EICODE0 0x01
8170 #define _CANSTAT_RO3_ICODE0 0x01
8171 #define _CANSTAT_RO3_EICODE1_ICODE0 0x02
8172 #define _CANSTAT_RO3_ICODE1 0x02
8173 #define _CANSTAT_RO3_EICODE2_ICODE1 0x04
8174 #define _CANSTAT_RO3_ICODE2 0x04
8175 #define _CANSTAT_RO3_EICODE3_ICODE2 0x08
8176 #define _CANSTAT_RO3_ICODE3 0x08
8177 #define _CANSTAT_RO3_EICODE4 0x10
8178 #define _CANSTAT_RO3_ICODE4 0x10
8179 #define _CANSTAT_RO3_OPMODE0 0x20
8180 #define _CANSTAT_RO3_OPMODE1 0x40
8181 #define _CANSTAT_RO3_OPMODE2 0x80
8183 //==============================================================================
8186 //==============================================================================
8187 // CANCON_RO3 Bits
8189 extern __at(0x0F2F) __sfr CANCON_RO3;
8191 typedef union
8193 struct
8195 unsigned FP0 : 1;
8196 unsigned WIN0_FP1 : 1;
8197 unsigned WIN1_FP2 : 1;
8198 unsigned WIN2_FP3 : 1;
8199 unsigned ABAT : 1;
8200 unsigned REQOP0 : 1;
8201 unsigned REQOP1 : 1;
8202 unsigned REQOP2 : 1;
8205 struct
8207 unsigned : 1;
8208 unsigned WIN0 : 1;
8209 unsigned WIN1 : 1;
8210 unsigned WIN2 : 1;
8211 unsigned : 1;
8212 unsigned : 1;
8213 unsigned : 1;
8214 unsigned : 1;
8217 struct
8219 unsigned : 1;
8220 unsigned WIN : 3;
8221 unsigned : 4;
8224 struct
8226 unsigned : 5;
8227 unsigned REQOP : 3;
8229 } __CANCON_RO3bits_t;
8231 extern __at(0x0F2F) volatile __CANCON_RO3bits_t CANCON_RO3bits;
8233 #define _CANCON_RO3_FP0 0x01
8234 #define _CANCON_RO3_WIN0_FP1 0x02
8235 #define _CANCON_RO3_WIN0 0x02
8236 #define _CANCON_RO3_WIN1_FP2 0x04
8237 #define _CANCON_RO3_WIN1 0x04
8238 #define _CANCON_RO3_WIN2_FP3 0x08
8239 #define _CANCON_RO3_WIN2 0x08
8240 #define _CANCON_RO3_ABAT 0x10
8241 #define _CANCON_RO3_REQOP0 0x20
8242 #define _CANCON_RO3_REQOP1 0x40
8243 #define _CANCON_RO3_REQOP2 0x80
8245 //==============================================================================
8248 //==============================================================================
8249 // TXB1CON Bits
8251 extern __at(0x0F30) __sfr TXB1CON;
8253 typedef union
8255 struct
8257 unsigned TXPRI0 : 1;
8258 unsigned TXPRI1 : 1;
8259 unsigned : 1;
8260 unsigned TXREQ : 1;
8261 unsigned TXERR : 1;
8262 unsigned TXLARB : 1;
8263 unsigned TXABT : 1;
8264 unsigned TXBIF : 1;
8267 struct
8269 unsigned : 1;
8270 unsigned : 1;
8271 unsigned : 1;
8272 unsigned : 1;
8273 unsigned : 1;
8274 unsigned : 1;
8275 unsigned : 1;
8276 unsigned TXBIFTXB1CON : 1;
8279 struct
8281 unsigned TXPRI : 2;
8282 unsigned : 6;
8284 } __TXB1CONbits_t;
8286 extern __at(0x0F30) volatile __TXB1CONbits_t TXB1CONbits;
8288 #define _TXB1CON_TXPRI0 0x01
8289 #define _TXB1CON_TXPRI1 0x02
8290 #define _TXB1CON_TXREQ 0x08
8291 #define _TXB1CON_TXERR 0x10
8292 #define _TXB1CON_TXLARB 0x20
8293 #define _TXB1CON_TXABT 0x40
8294 #define _TXB1CON_TXBIF 0x80
8295 #define _TXB1CON_TXBIFTXB1CON 0x80
8297 //==============================================================================
8300 //==============================================================================
8301 // TXB1SIDH Bits
8303 extern __at(0x0F31) __sfr TXB1SIDH;
8305 typedef struct
8307 unsigned SID3 : 1;
8308 unsigned SID4 : 1;
8309 unsigned SID5 : 1;
8310 unsigned SID6 : 1;
8311 unsigned SID7 : 1;
8312 unsigned SID8 : 1;
8313 unsigned SID9 : 1;
8314 unsigned SID10 : 1;
8315 } __TXB1SIDHbits_t;
8317 extern __at(0x0F31) volatile __TXB1SIDHbits_t TXB1SIDHbits;
8319 #define _TXB1SIDH_SID3 0x01
8320 #define _TXB1SIDH_SID4 0x02
8321 #define _TXB1SIDH_SID5 0x04
8322 #define _TXB1SIDH_SID6 0x08
8323 #define _TXB1SIDH_SID7 0x10
8324 #define _TXB1SIDH_SID8 0x20
8325 #define _TXB1SIDH_SID9 0x40
8326 #define _TXB1SIDH_SID10 0x80
8328 //==============================================================================
8331 //==============================================================================
8332 // TXB1SIDL Bits
8334 extern __at(0x0F32) __sfr TXB1SIDL;
8336 typedef union
8338 struct
8340 unsigned EID16 : 1;
8341 unsigned EID17 : 1;
8342 unsigned : 1;
8343 unsigned EXIDE : 1;
8344 unsigned : 1;
8345 unsigned SID0 : 1;
8346 unsigned SID1 : 1;
8347 unsigned SID2 : 1;
8350 struct
8352 unsigned : 5;
8353 unsigned SID : 3;
8355 } __TXB1SIDLbits_t;
8357 extern __at(0x0F32) volatile __TXB1SIDLbits_t TXB1SIDLbits;
8359 #define _TXB1SIDL_EID16 0x01
8360 #define _TXB1SIDL_EID17 0x02
8361 #define _TXB1SIDL_EXIDE 0x08
8362 #define _TXB1SIDL_SID0 0x20
8363 #define _TXB1SIDL_SID1 0x40
8364 #define _TXB1SIDL_SID2 0x80
8366 //==============================================================================
8369 //==============================================================================
8370 // TXB1EIDH Bits
8372 extern __at(0x0F33) __sfr TXB1EIDH;
8374 typedef struct
8376 unsigned EID8 : 1;
8377 unsigned EID9 : 1;
8378 unsigned EID10 : 1;
8379 unsigned EID11 : 1;
8380 unsigned EID12 : 1;
8381 unsigned EID13 : 1;
8382 unsigned EID14 : 1;
8383 unsigned EID15 : 1;
8384 } __TXB1EIDHbits_t;
8386 extern __at(0x0F33) volatile __TXB1EIDHbits_t TXB1EIDHbits;
8388 #define _TXB1EIDH_EID8 0x01
8389 #define _TXB1EIDH_EID9 0x02
8390 #define _TXB1EIDH_EID10 0x04
8391 #define _TXB1EIDH_EID11 0x08
8392 #define _TXB1EIDH_EID12 0x10
8393 #define _TXB1EIDH_EID13 0x20
8394 #define _TXB1EIDH_EID14 0x40
8395 #define _TXB1EIDH_EID15 0x80
8397 //==============================================================================
8400 //==============================================================================
8401 // TXB1EIDL Bits
8403 extern __at(0x0F34) __sfr TXB1EIDL;
8405 typedef struct
8407 unsigned EID0 : 1;
8408 unsigned EID1 : 1;
8409 unsigned EID2 : 1;
8410 unsigned EID3 : 1;
8411 unsigned EID4 : 1;
8412 unsigned EID5 : 1;
8413 unsigned EID6 : 1;
8414 unsigned EID7 : 1;
8415 } __TXB1EIDLbits_t;
8417 extern __at(0x0F34) volatile __TXB1EIDLbits_t TXB1EIDLbits;
8419 #define _TXB1EIDL_EID0 0x01
8420 #define _TXB1EIDL_EID1 0x02
8421 #define _TXB1EIDL_EID2 0x04
8422 #define _TXB1EIDL_EID3 0x08
8423 #define _TXB1EIDL_EID4 0x10
8424 #define _TXB1EIDL_EID5 0x20
8425 #define _TXB1EIDL_EID6 0x40
8426 #define _TXB1EIDL_EID7 0x80
8428 //==============================================================================
8431 //==============================================================================
8432 // TXB1DLC Bits
8434 extern __at(0x0F35) __sfr TXB1DLC;
8436 typedef union
8438 struct
8440 unsigned DLC0 : 1;
8441 unsigned DLC1 : 1;
8442 unsigned DLC2 : 1;
8443 unsigned DLC3 : 1;
8444 unsigned : 1;
8445 unsigned : 1;
8446 unsigned TXRTR : 1;
8447 unsigned : 1;
8450 struct
8452 unsigned DLC : 4;
8453 unsigned : 4;
8455 } __TXB1DLCbits_t;
8457 extern __at(0x0F35) volatile __TXB1DLCbits_t TXB1DLCbits;
8459 #define _TXB1DLC_DLC0 0x01
8460 #define _TXB1DLC_DLC1 0x02
8461 #define _TXB1DLC_DLC2 0x04
8462 #define _TXB1DLC_DLC3 0x08
8463 #define _TXB1DLC_TXRTR 0x40
8465 //==============================================================================
8468 //==============================================================================
8469 // TXB1D0 Bits
8471 extern __at(0x0F36) __sfr TXB1D0;
8473 typedef struct
8475 unsigned TXB1D00 : 1;
8476 unsigned TXB1D01 : 1;
8477 unsigned TXB1D02 : 1;
8478 unsigned TXB1D03 : 1;
8479 unsigned TXB1D04 : 1;
8480 unsigned TXB1D05 : 1;
8481 unsigned TXB1D06 : 1;
8482 unsigned TXB1D07 : 1;
8483 } __TXB1D0bits_t;
8485 extern __at(0x0F36) volatile __TXB1D0bits_t TXB1D0bits;
8487 #define _TXB1D00 0x01
8488 #define _TXB1D01 0x02
8489 #define _TXB1D02 0x04
8490 #define _TXB1D03 0x08
8491 #define _TXB1D04 0x10
8492 #define _TXB1D05 0x20
8493 #define _TXB1D06 0x40
8494 #define _TXB1D07 0x80
8496 //==============================================================================
8499 //==============================================================================
8500 // TXB1D1 Bits
8502 extern __at(0x0F37) __sfr TXB1D1;
8504 typedef struct
8506 unsigned TXB1D10 : 1;
8507 unsigned TXB1D11 : 1;
8508 unsigned TXB1D12 : 1;
8509 unsigned TXB1D13 : 1;
8510 unsigned TXB1D14 : 1;
8511 unsigned TXB1D15 : 1;
8512 unsigned TXB1D16 : 1;
8513 unsigned TXB1D17 : 1;
8514 } __TXB1D1bits_t;
8516 extern __at(0x0F37) volatile __TXB1D1bits_t TXB1D1bits;
8518 #define _TXB1D10 0x01
8519 #define _TXB1D11 0x02
8520 #define _TXB1D12 0x04
8521 #define _TXB1D13 0x08
8522 #define _TXB1D14 0x10
8523 #define _TXB1D15 0x20
8524 #define _TXB1D16 0x40
8525 #define _TXB1D17 0x80
8527 //==============================================================================
8530 //==============================================================================
8531 // TXB1D2 Bits
8533 extern __at(0x0F38) __sfr TXB1D2;
8535 typedef struct
8537 unsigned TXB1D20 : 1;
8538 unsigned TXB1D21 : 1;
8539 unsigned TXB1D22 : 1;
8540 unsigned TXB1D23 : 1;
8541 unsigned TXB1D24 : 1;
8542 unsigned TXB1D25 : 1;
8543 unsigned TXB1D26 : 1;
8544 unsigned TXB1D27 : 1;
8545 } __TXB1D2bits_t;
8547 extern __at(0x0F38) volatile __TXB1D2bits_t TXB1D2bits;
8549 #define _TXB1D20 0x01
8550 #define _TXB1D21 0x02
8551 #define _TXB1D22 0x04
8552 #define _TXB1D23 0x08
8553 #define _TXB1D24 0x10
8554 #define _TXB1D25 0x20
8555 #define _TXB1D26 0x40
8556 #define _TXB1D27 0x80
8558 //==============================================================================
8561 //==============================================================================
8562 // TXB1D3 Bits
8564 extern __at(0x0F39) __sfr TXB1D3;
8566 typedef struct
8568 unsigned TXB1D30 : 1;
8569 unsigned TXB1D31 : 1;
8570 unsigned TXB1D32 : 1;
8571 unsigned TXB1D33 : 1;
8572 unsigned TXB1D34 : 1;
8573 unsigned TXB1D35 : 1;
8574 unsigned TXB1D36 : 1;
8575 unsigned TXB1D37 : 1;
8576 } __TXB1D3bits_t;
8578 extern __at(0x0F39) volatile __TXB1D3bits_t TXB1D3bits;
8580 #define _TXB1D30 0x01
8581 #define _TXB1D31 0x02
8582 #define _TXB1D32 0x04
8583 #define _TXB1D33 0x08
8584 #define _TXB1D34 0x10
8585 #define _TXB1D35 0x20
8586 #define _TXB1D36 0x40
8587 #define _TXB1D37 0x80
8589 //==============================================================================
8592 //==============================================================================
8593 // TXB1D4 Bits
8595 extern __at(0x0F3A) __sfr TXB1D4;
8597 typedef struct
8599 unsigned TXB1D40 : 1;
8600 unsigned TXB1D41 : 1;
8601 unsigned TXB1D42 : 1;
8602 unsigned TXB1D43 : 1;
8603 unsigned TXB1D44 : 1;
8604 unsigned TXB1D45 : 1;
8605 unsigned TXB1D46 : 1;
8606 unsigned TXB1D47 : 1;
8607 } __TXB1D4bits_t;
8609 extern __at(0x0F3A) volatile __TXB1D4bits_t TXB1D4bits;
8611 #define _TXB1D40 0x01
8612 #define _TXB1D41 0x02
8613 #define _TXB1D42 0x04
8614 #define _TXB1D43 0x08
8615 #define _TXB1D44 0x10
8616 #define _TXB1D45 0x20
8617 #define _TXB1D46 0x40
8618 #define _TXB1D47 0x80
8620 //==============================================================================
8623 //==============================================================================
8624 // TXB1D5 Bits
8626 extern __at(0x0F3B) __sfr TXB1D5;
8628 typedef struct
8630 unsigned TXB1D50 : 1;
8631 unsigned TXB1D51 : 1;
8632 unsigned TXB1D52 : 1;
8633 unsigned TXB1D53 : 1;
8634 unsigned TXB1D54 : 1;
8635 unsigned TXB1D55 : 1;
8636 unsigned TXB1D56 : 1;
8637 unsigned TXB1D57 : 1;
8638 } __TXB1D5bits_t;
8640 extern __at(0x0F3B) volatile __TXB1D5bits_t TXB1D5bits;
8642 #define _TXB1D50 0x01
8643 #define _TXB1D51 0x02
8644 #define _TXB1D52 0x04
8645 #define _TXB1D53 0x08
8646 #define _TXB1D54 0x10
8647 #define _TXB1D55 0x20
8648 #define _TXB1D56 0x40
8649 #define _TXB1D57 0x80
8651 //==============================================================================
8654 //==============================================================================
8655 // TXB1D6 Bits
8657 extern __at(0x0F3C) __sfr TXB1D6;
8659 typedef struct
8661 unsigned TXB1D60 : 1;
8662 unsigned TXB1D61 : 1;
8663 unsigned TXB1D62 : 1;
8664 unsigned TXB1D63 : 1;
8665 unsigned TXB1D64 : 1;
8666 unsigned TXB1D65 : 1;
8667 unsigned TXB1D66 : 1;
8668 unsigned TXB1D67 : 1;
8669 } __TXB1D6bits_t;
8671 extern __at(0x0F3C) volatile __TXB1D6bits_t TXB1D6bits;
8673 #define _TXB1D60 0x01
8674 #define _TXB1D61 0x02
8675 #define _TXB1D62 0x04
8676 #define _TXB1D63 0x08
8677 #define _TXB1D64 0x10
8678 #define _TXB1D65 0x20
8679 #define _TXB1D66 0x40
8680 #define _TXB1D67 0x80
8682 //==============================================================================
8685 //==============================================================================
8686 // TXB1D7 Bits
8688 extern __at(0x0F3D) __sfr TXB1D7;
8690 typedef struct
8692 unsigned TXB1D70 : 1;
8693 unsigned TXB1D71 : 1;
8694 unsigned TXB1D72 : 1;
8695 unsigned TXB1D73 : 1;
8696 unsigned TXB1D74 : 1;
8697 unsigned TXB1D75 : 1;
8698 unsigned TXB1D76 : 1;
8699 unsigned TXB1D77 : 1;
8700 } __TXB1D7bits_t;
8702 extern __at(0x0F3D) volatile __TXB1D7bits_t TXB1D7bits;
8704 #define _TXB1D70 0x01
8705 #define _TXB1D71 0x02
8706 #define _TXB1D72 0x04
8707 #define _TXB1D73 0x08
8708 #define _TXB1D74 0x10
8709 #define _TXB1D75 0x20
8710 #define _TXB1D76 0x40
8711 #define _TXB1D77 0x80
8713 //==============================================================================
8716 //==============================================================================
8717 // CANSTAT_RO2 Bits
8719 extern __at(0x0F3E) __sfr CANSTAT_RO2;
8721 typedef union
8723 struct
8725 unsigned EICODE0 : 1;
8726 unsigned EICODE1_ICODE0 : 1;
8727 unsigned EICODE2_ICODE1 : 1;
8728 unsigned EICODE3_ICODE2 : 1;
8729 unsigned EICODE4 : 1;
8730 unsigned OPMODE0 : 1;
8731 unsigned OPMODE1 : 1;
8732 unsigned OPMODE2 : 1;
8735 struct
8737 unsigned ICODE0 : 1;
8738 unsigned ICODE1 : 1;
8739 unsigned ICODE2 : 1;
8740 unsigned ICODE3 : 1;
8741 unsigned ICODE4 : 1;
8742 unsigned : 1;
8743 unsigned : 1;
8744 unsigned : 1;
8747 struct
8749 unsigned ICODE : 5;
8750 unsigned : 3;
8753 struct
8755 unsigned : 5;
8756 unsigned OPMODE : 3;
8758 } __CANSTAT_RO2bits_t;
8760 extern __at(0x0F3E) volatile __CANSTAT_RO2bits_t CANSTAT_RO2bits;
8762 #define _CANSTAT_RO2_EICODE0 0x01
8763 #define _CANSTAT_RO2_ICODE0 0x01
8764 #define _CANSTAT_RO2_EICODE1_ICODE0 0x02
8765 #define _CANSTAT_RO2_ICODE1 0x02
8766 #define _CANSTAT_RO2_EICODE2_ICODE1 0x04
8767 #define _CANSTAT_RO2_ICODE2 0x04
8768 #define _CANSTAT_RO2_EICODE3_ICODE2 0x08
8769 #define _CANSTAT_RO2_ICODE3 0x08
8770 #define _CANSTAT_RO2_EICODE4 0x10
8771 #define _CANSTAT_RO2_ICODE4 0x10
8772 #define _CANSTAT_RO2_OPMODE0 0x20
8773 #define _CANSTAT_RO2_OPMODE1 0x40
8774 #define _CANSTAT_RO2_OPMODE2 0x80
8776 //==============================================================================
8779 //==============================================================================
8780 // CANCON_RO2 Bits
8782 extern __at(0x0F3F) __sfr CANCON_RO2;
8784 typedef union
8786 struct
8788 unsigned FP0 : 1;
8789 unsigned WIN0_FP1 : 1;
8790 unsigned WIN1_FP2 : 1;
8791 unsigned WIN2_FP3 : 1;
8792 unsigned ABAT : 1;
8793 unsigned REQOP0 : 1;
8794 unsigned REQOP1 : 1;
8795 unsigned REQOP2 : 1;
8798 struct
8800 unsigned : 1;
8801 unsigned WIN0 : 1;
8802 unsigned WIN1 : 1;
8803 unsigned WIN2 : 1;
8804 unsigned : 1;
8805 unsigned : 1;
8806 unsigned : 1;
8807 unsigned : 1;
8810 struct
8812 unsigned : 1;
8813 unsigned WIN : 3;
8814 unsigned : 4;
8817 struct
8819 unsigned : 5;
8820 unsigned REQOP : 3;
8822 } __CANCON_RO2bits_t;
8824 extern __at(0x0F3F) volatile __CANCON_RO2bits_t CANCON_RO2bits;
8826 #define _CANCON_RO2_FP0 0x01
8827 #define _CANCON_RO2_WIN0_FP1 0x02
8828 #define _CANCON_RO2_WIN0 0x02
8829 #define _CANCON_RO2_WIN1_FP2 0x04
8830 #define _CANCON_RO2_WIN1 0x04
8831 #define _CANCON_RO2_WIN2_FP3 0x08
8832 #define _CANCON_RO2_WIN2 0x08
8833 #define _CANCON_RO2_ABAT 0x10
8834 #define _CANCON_RO2_REQOP0 0x20
8835 #define _CANCON_RO2_REQOP1 0x40
8836 #define _CANCON_RO2_REQOP2 0x80
8838 //==============================================================================
8841 //==============================================================================
8842 // TXB0CON Bits
8844 extern __at(0x0F40) __sfr TXB0CON;
8846 typedef union
8848 struct
8850 unsigned TXPRI0 : 1;
8851 unsigned TXPRI1 : 1;
8852 unsigned : 1;
8853 unsigned TXREQ : 1;
8854 unsigned TXERR : 1;
8855 unsigned TXLARB : 1;
8856 unsigned TXABT : 1;
8857 unsigned TXBIF : 1;
8860 struct
8862 unsigned TXPRI : 2;
8863 unsigned : 6;
8865 } __TXB0CONbits_t;
8867 extern __at(0x0F40) volatile __TXB0CONbits_t TXB0CONbits;
8869 #define _TXB0CON_TXPRI0 0x01
8870 #define _TXB0CON_TXPRI1 0x02
8871 #define _TXB0CON_TXREQ 0x08
8872 #define _TXB0CON_TXERR 0x10
8873 #define _TXB0CON_TXLARB 0x20
8874 #define _TXB0CON_TXABT 0x40
8875 #define _TXB0CON_TXBIF 0x80
8877 //==============================================================================
8880 //==============================================================================
8881 // TXB0SIDH Bits
8883 extern __at(0x0F41) __sfr TXB0SIDH;
8885 typedef struct
8887 unsigned SID3 : 1;
8888 unsigned SID4 : 1;
8889 unsigned SID5 : 1;
8890 unsigned SID6 : 1;
8891 unsigned SID7 : 1;
8892 unsigned SID8 : 1;
8893 unsigned SID9 : 1;
8894 unsigned SID10 : 1;
8895 } __TXB0SIDHbits_t;
8897 extern __at(0x0F41) volatile __TXB0SIDHbits_t TXB0SIDHbits;
8899 #define _TXB0SIDH_SID3 0x01
8900 #define _TXB0SIDH_SID4 0x02
8901 #define _TXB0SIDH_SID5 0x04
8902 #define _TXB0SIDH_SID6 0x08
8903 #define _TXB0SIDH_SID7 0x10
8904 #define _TXB0SIDH_SID8 0x20
8905 #define _TXB0SIDH_SID9 0x40
8906 #define _TXB0SIDH_SID10 0x80
8908 //==============================================================================
8911 //==============================================================================
8912 // TXB0SIDL Bits
8914 extern __at(0x0F42) __sfr TXB0SIDL;
8916 typedef union
8918 struct
8920 unsigned EID16 : 1;
8921 unsigned EID17 : 1;
8922 unsigned : 1;
8923 unsigned EXIDE : 1;
8924 unsigned : 1;
8925 unsigned SID0 : 1;
8926 unsigned SID1 : 1;
8927 unsigned SID2 : 1;
8930 struct
8932 unsigned : 5;
8933 unsigned SID : 3;
8935 } __TXB0SIDLbits_t;
8937 extern __at(0x0F42) volatile __TXB0SIDLbits_t TXB0SIDLbits;
8939 #define _TXB0SIDL_EID16 0x01
8940 #define _TXB0SIDL_EID17 0x02
8941 #define _TXB0SIDL_EXIDE 0x08
8942 #define _TXB0SIDL_SID0 0x20
8943 #define _TXB0SIDL_SID1 0x40
8944 #define _TXB0SIDL_SID2 0x80
8946 //==============================================================================
8949 //==============================================================================
8950 // TXB0EIDH Bits
8952 extern __at(0x0F43) __sfr TXB0EIDH;
8954 typedef struct
8956 unsigned EID8 : 1;
8957 unsigned EID9 : 1;
8958 unsigned EID10 : 1;
8959 unsigned EID11 : 1;
8960 unsigned EID12 : 1;
8961 unsigned EID13 : 1;
8962 unsigned EID14 : 1;
8963 unsigned EID15 : 1;
8964 } __TXB0EIDHbits_t;
8966 extern __at(0x0F43) volatile __TXB0EIDHbits_t TXB0EIDHbits;
8968 #define _TXB0EIDH_EID8 0x01
8969 #define _TXB0EIDH_EID9 0x02
8970 #define _TXB0EIDH_EID10 0x04
8971 #define _TXB0EIDH_EID11 0x08
8972 #define _TXB0EIDH_EID12 0x10
8973 #define _TXB0EIDH_EID13 0x20
8974 #define _TXB0EIDH_EID14 0x40
8975 #define _TXB0EIDH_EID15 0x80
8977 //==============================================================================
8980 //==============================================================================
8981 // TXB0EIDL Bits
8983 extern __at(0x0F44) __sfr TXB0EIDL;
8985 typedef struct
8987 unsigned EID0 : 1;
8988 unsigned EID1 : 1;
8989 unsigned EID2 : 1;
8990 unsigned EID3 : 1;
8991 unsigned EID4 : 1;
8992 unsigned EID5 : 1;
8993 unsigned EID6 : 1;
8994 unsigned EID7 : 1;
8995 } __TXB0EIDLbits_t;
8997 extern __at(0x0F44) volatile __TXB0EIDLbits_t TXB0EIDLbits;
8999 #define _TXB0EIDL_EID0 0x01
9000 #define _TXB0EIDL_EID1 0x02
9001 #define _TXB0EIDL_EID2 0x04
9002 #define _TXB0EIDL_EID3 0x08
9003 #define _TXB0EIDL_EID4 0x10
9004 #define _TXB0EIDL_EID5 0x20
9005 #define _TXB0EIDL_EID6 0x40
9006 #define _TXB0EIDL_EID7 0x80
9008 //==============================================================================
9011 //==============================================================================
9012 // TXB0DLC Bits
9014 extern __at(0x0F45) __sfr TXB0DLC;
9016 typedef union
9018 struct
9020 unsigned DLC0 : 1;
9021 unsigned DLC1 : 1;
9022 unsigned DLC2 : 1;
9023 unsigned DLC3 : 1;
9024 unsigned : 1;
9025 unsigned : 1;
9026 unsigned TXRTR : 1;
9027 unsigned : 1;
9030 struct
9032 unsigned DLC : 4;
9033 unsigned : 4;
9035 } __TXB0DLCbits_t;
9037 extern __at(0x0F45) volatile __TXB0DLCbits_t TXB0DLCbits;
9039 #define _TXB0DLC_DLC0 0x01
9040 #define _TXB0DLC_DLC1 0x02
9041 #define _TXB0DLC_DLC2 0x04
9042 #define _TXB0DLC_DLC3 0x08
9043 #define _TXB0DLC_TXRTR 0x40
9045 //==============================================================================
9048 //==============================================================================
9049 // TXB0D0 Bits
9051 extern __at(0x0F46) __sfr TXB0D0;
9053 typedef struct
9055 unsigned TXB0D00 : 1;
9056 unsigned TXB0D01 : 1;
9057 unsigned TXB0D02 : 1;
9058 unsigned TXB0D03 : 1;
9059 unsigned TXB0D04 : 1;
9060 unsigned TXB0D05 : 1;
9061 unsigned TXB0D06 : 1;
9062 unsigned TXB0D07 : 1;
9063 } __TXB0D0bits_t;
9065 extern __at(0x0F46) volatile __TXB0D0bits_t TXB0D0bits;
9067 #define _TXB0D00 0x01
9068 #define _TXB0D01 0x02
9069 #define _TXB0D02 0x04
9070 #define _TXB0D03 0x08
9071 #define _TXB0D04 0x10
9072 #define _TXB0D05 0x20
9073 #define _TXB0D06 0x40
9074 #define _TXB0D07 0x80
9076 //==============================================================================
9079 //==============================================================================
9080 // TXB0D1 Bits
9082 extern __at(0x0F47) __sfr TXB0D1;
9084 typedef struct
9086 unsigned TXB0D10 : 1;
9087 unsigned TXB0D11 : 1;
9088 unsigned TXB0D12 : 1;
9089 unsigned TXB0D13 : 1;
9090 unsigned TXB0D14 : 1;
9091 unsigned TXB0D15 : 1;
9092 unsigned TXB0D16 : 1;
9093 unsigned TXB0D17 : 1;
9094 } __TXB0D1bits_t;
9096 extern __at(0x0F47) volatile __TXB0D1bits_t TXB0D1bits;
9098 #define _TXB0D10 0x01
9099 #define _TXB0D11 0x02
9100 #define _TXB0D12 0x04
9101 #define _TXB0D13 0x08
9102 #define _TXB0D14 0x10
9103 #define _TXB0D15 0x20
9104 #define _TXB0D16 0x40
9105 #define _TXB0D17 0x80
9107 //==============================================================================
9110 //==============================================================================
9111 // TXB0D2 Bits
9113 extern __at(0x0F48) __sfr TXB0D2;
9115 typedef struct
9117 unsigned TXB0D20 : 1;
9118 unsigned TXB0D21 : 1;
9119 unsigned TXB0D22 : 1;
9120 unsigned TXB0D23 : 1;
9121 unsigned TXB0D24 : 1;
9122 unsigned TXB0D25 : 1;
9123 unsigned TXB0D26 : 1;
9124 unsigned TXB0D27 : 1;
9125 } __TXB0D2bits_t;
9127 extern __at(0x0F48) volatile __TXB0D2bits_t TXB0D2bits;
9129 #define _TXB0D20 0x01
9130 #define _TXB0D21 0x02
9131 #define _TXB0D22 0x04
9132 #define _TXB0D23 0x08
9133 #define _TXB0D24 0x10
9134 #define _TXB0D25 0x20
9135 #define _TXB0D26 0x40
9136 #define _TXB0D27 0x80
9138 //==============================================================================
9141 //==============================================================================
9142 // TXB0D3 Bits
9144 extern __at(0x0F49) __sfr TXB0D3;
9146 typedef struct
9148 unsigned TXB0D30 : 1;
9149 unsigned TXB0D31 : 1;
9150 unsigned TXB0D32 : 1;
9151 unsigned TXB0D33 : 1;
9152 unsigned TXB0D34 : 1;
9153 unsigned TXB0D35 : 1;
9154 unsigned TXB0D36 : 1;
9155 unsigned TXB0D37 : 1;
9156 } __TXB0D3bits_t;
9158 extern __at(0x0F49) volatile __TXB0D3bits_t TXB0D3bits;
9160 #define _TXB0D30 0x01
9161 #define _TXB0D31 0x02
9162 #define _TXB0D32 0x04
9163 #define _TXB0D33 0x08
9164 #define _TXB0D34 0x10
9165 #define _TXB0D35 0x20
9166 #define _TXB0D36 0x40
9167 #define _TXB0D37 0x80
9169 //==============================================================================
9172 //==============================================================================
9173 // TXB0D4 Bits
9175 extern __at(0x0F4A) __sfr TXB0D4;
9177 typedef struct
9179 unsigned TXB0D40 : 1;
9180 unsigned TXB0D41 : 1;
9181 unsigned TXB0D42 : 1;
9182 unsigned TXB0D43 : 1;
9183 unsigned TXB0D44 : 1;
9184 unsigned TXB0D45 : 1;
9185 unsigned TXB0D46 : 1;
9186 unsigned TXB0D47 : 1;
9187 } __TXB0D4bits_t;
9189 extern __at(0x0F4A) volatile __TXB0D4bits_t TXB0D4bits;
9191 #define _TXB0D40 0x01
9192 #define _TXB0D41 0x02
9193 #define _TXB0D42 0x04
9194 #define _TXB0D43 0x08
9195 #define _TXB0D44 0x10
9196 #define _TXB0D45 0x20
9197 #define _TXB0D46 0x40
9198 #define _TXB0D47 0x80
9200 //==============================================================================
9203 //==============================================================================
9204 // TXB0D5 Bits
9206 extern __at(0x0F4B) __sfr TXB0D5;
9208 typedef struct
9210 unsigned TXB0D50 : 1;
9211 unsigned TXB0D51 : 1;
9212 unsigned TXB0D52 : 1;
9213 unsigned TXB0D53 : 1;
9214 unsigned TXB0D54 : 1;
9215 unsigned TXB0D55 : 1;
9216 unsigned TXB0D56 : 1;
9217 unsigned TXB0D57 : 1;
9218 } __TXB0D5bits_t;
9220 extern __at(0x0F4B) volatile __TXB0D5bits_t TXB0D5bits;
9222 #define _TXB0D50 0x01
9223 #define _TXB0D51 0x02
9224 #define _TXB0D52 0x04
9225 #define _TXB0D53 0x08
9226 #define _TXB0D54 0x10
9227 #define _TXB0D55 0x20
9228 #define _TXB0D56 0x40
9229 #define _TXB0D57 0x80
9231 //==============================================================================
9234 //==============================================================================
9235 // TXB0D6 Bits
9237 extern __at(0x0F4C) __sfr TXB0D6;
9239 typedef struct
9241 unsigned TXB0D60 : 1;
9242 unsigned TXB0D61 : 1;
9243 unsigned TXB0D62 : 1;
9244 unsigned TXB0D63 : 1;
9245 unsigned TXB0D64 : 1;
9246 unsigned TXB0D65 : 1;
9247 unsigned TXB0D66 : 1;
9248 unsigned TXB0D67 : 1;
9249 } __TXB0D6bits_t;
9251 extern __at(0x0F4C) volatile __TXB0D6bits_t TXB0D6bits;
9253 #define _TXB0D60 0x01
9254 #define _TXB0D61 0x02
9255 #define _TXB0D62 0x04
9256 #define _TXB0D63 0x08
9257 #define _TXB0D64 0x10
9258 #define _TXB0D65 0x20
9259 #define _TXB0D66 0x40
9260 #define _TXB0D67 0x80
9262 //==============================================================================
9265 //==============================================================================
9266 // TXB0D7 Bits
9268 extern __at(0x0F4D) __sfr TXB0D7;
9270 typedef struct
9272 unsigned TXB0D70 : 1;
9273 unsigned TXB0D71 : 1;
9274 unsigned TXB0D72 : 1;
9275 unsigned TXB0D73 : 1;
9276 unsigned TXB0D74 : 1;
9277 unsigned TXB0D75 : 1;
9278 unsigned TXB0D76 : 1;
9279 unsigned TXB0D77 : 1;
9280 } __TXB0D7bits_t;
9282 extern __at(0x0F4D) volatile __TXB0D7bits_t TXB0D7bits;
9284 #define _TXB0D70 0x01
9285 #define _TXB0D71 0x02
9286 #define _TXB0D72 0x04
9287 #define _TXB0D73 0x08
9288 #define _TXB0D74 0x10
9289 #define _TXB0D75 0x20
9290 #define _TXB0D76 0x40
9291 #define _TXB0D77 0x80
9293 //==============================================================================
9296 //==============================================================================
9297 // CANSTAT_RO1 Bits
9299 extern __at(0x0F4E) __sfr CANSTAT_RO1;
9301 typedef union
9303 struct
9305 unsigned EICODE0 : 1;
9306 unsigned EICODE1_ICODE0 : 1;
9307 unsigned EICODE2_ICODE1 : 1;
9308 unsigned EICODE3_ICODE2 : 1;
9309 unsigned EICODE4 : 1;
9310 unsigned OPMODE0 : 1;
9311 unsigned OPMODE1 : 1;
9312 unsigned OPMODE2 : 1;
9315 struct
9317 unsigned ICODE0 : 1;
9318 unsigned ICODE1 : 1;
9319 unsigned ICODE2 : 1;
9320 unsigned ICODE3 : 1;
9321 unsigned ICODE4 : 1;
9322 unsigned : 1;
9323 unsigned : 1;
9324 unsigned : 1;
9327 struct
9329 unsigned ICODE : 5;
9330 unsigned : 3;
9333 struct
9335 unsigned : 5;
9336 unsigned OPMODE : 3;
9338 } __CANSTAT_RO1bits_t;
9340 extern __at(0x0F4E) volatile __CANSTAT_RO1bits_t CANSTAT_RO1bits;
9342 #define _CANSTAT_RO1_EICODE0 0x01
9343 #define _CANSTAT_RO1_ICODE0 0x01
9344 #define _CANSTAT_RO1_EICODE1_ICODE0 0x02
9345 #define _CANSTAT_RO1_ICODE1 0x02
9346 #define _CANSTAT_RO1_EICODE2_ICODE1 0x04
9347 #define _CANSTAT_RO1_ICODE2 0x04
9348 #define _CANSTAT_RO1_EICODE3_ICODE2 0x08
9349 #define _CANSTAT_RO1_ICODE3 0x08
9350 #define _CANSTAT_RO1_EICODE4 0x10
9351 #define _CANSTAT_RO1_ICODE4 0x10
9352 #define _CANSTAT_RO1_OPMODE0 0x20
9353 #define _CANSTAT_RO1_OPMODE1 0x40
9354 #define _CANSTAT_RO1_OPMODE2 0x80
9356 //==============================================================================
9359 //==============================================================================
9360 // CANCON_RO1 Bits
9362 extern __at(0x0F4F) __sfr CANCON_RO1;
9364 typedef union
9366 struct
9368 unsigned FP0 : 1;
9369 unsigned WIN0_FP1 : 1;
9370 unsigned WIN1_FP2 : 1;
9371 unsigned WIN2_FP3 : 1;
9372 unsigned ABAT : 1;
9373 unsigned REQOP0 : 1;
9374 unsigned REQOP1 : 1;
9375 unsigned REQOP2 : 1;
9378 struct
9380 unsigned : 1;
9381 unsigned WIN0 : 1;
9382 unsigned WIN1 : 1;
9383 unsigned WIN2 : 1;
9384 unsigned : 1;
9385 unsigned : 1;
9386 unsigned : 1;
9387 unsigned : 1;
9390 struct
9392 unsigned : 1;
9393 unsigned WIN : 3;
9394 unsigned : 4;
9397 struct
9399 unsigned : 5;
9400 unsigned REQOP : 3;
9402 } __CANCON_RO1bits_t;
9404 extern __at(0x0F4F) volatile __CANCON_RO1bits_t CANCON_RO1bits;
9406 #define _CANCON_RO1_FP0 0x01
9407 #define _CANCON_RO1_WIN0_FP1 0x02
9408 #define _CANCON_RO1_WIN0 0x02
9409 #define _CANCON_RO1_WIN1_FP2 0x04
9410 #define _CANCON_RO1_WIN1 0x04
9411 #define _CANCON_RO1_WIN2_FP3 0x08
9412 #define _CANCON_RO1_WIN2 0x08
9413 #define _CANCON_RO1_ABAT 0x10
9414 #define _CANCON_RO1_REQOP0 0x20
9415 #define _CANCON_RO1_REQOP1 0x40
9416 #define _CANCON_RO1_REQOP2 0x80
9418 //==============================================================================
9421 //==============================================================================
9422 // RXB1CON Bits
9424 extern __at(0x0F50) __sfr RXB1CON;
9426 typedef union
9428 struct
9430 unsigned FILHIT0 : 1;
9431 unsigned FILHIT1 : 1;
9432 unsigned FILHIT2 : 1;
9433 unsigned RXRTRRO_FILHIT3 : 1;
9434 unsigned FILHIT4 : 1;
9435 unsigned RXM0_RTRRO : 1;
9436 unsigned RXM1 : 1;
9437 unsigned RXFUL : 1;
9440 struct
9442 unsigned : 1;
9443 unsigned : 1;
9444 unsigned : 1;
9445 unsigned RXRTRRO : 1;
9446 unsigned : 1;
9447 unsigned RXM0 : 1;
9448 unsigned : 1;
9449 unsigned : 1;
9452 struct
9454 unsigned : 1;
9455 unsigned : 1;
9456 unsigned : 1;
9457 unsigned FILHIT3 : 1;
9458 unsigned : 1;
9459 unsigned RTRRO : 1;
9460 unsigned : 1;
9461 unsigned : 1;
9464 struct
9466 unsigned FILHIT : 5;
9467 unsigned : 3;
9470 struct
9472 unsigned : 5;
9473 unsigned RXM : 2;
9474 unsigned : 1;
9476 } __RXB1CONbits_t;
9478 extern __at(0x0F50) volatile __RXB1CONbits_t RXB1CONbits;
9480 #define _RXB1CON_FILHIT0 0x01
9481 #define _RXB1CON_FILHIT1 0x02
9482 #define _RXB1CON_FILHIT2 0x04
9483 #define _RXB1CON_RXRTRRO_FILHIT3 0x08
9484 #define _RXB1CON_RXRTRRO 0x08
9485 #define _RXB1CON_FILHIT3 0x08
9486 #define _RXB1CON_FILHIT4 0x10
9487 #define _RXB1CON_RXM0_RTRRO 0x20
9488 #define _RXB1CON_RXM0 0x20
9489 #define _RXB1CON_RTRRO 0x20
9490 #define _RXB1CON_RXM1 0x40
9491 #define _RXB1CON_RXFUL 0x80
9493 //==============================================================================
9496 //==============================================================================
9497 // RXB1SIDH Bits
9499 extern __at(0x0F51) __sfr RXB1SIDH;
9501 typedef struct
9503 unsigned SID3 : 1;
9504 unsigned SID4 : 1;
9505 unsigned SID5 : 1;
9506 unsigned SID6 : 1;
9507 unsigned SID7 : 1;
9508 unsigned SID8 : 1;
9509 unsigned SID9 : 1;
9510 unsigned SID10 : 1;
9511 } __RXB1SIDHbits_t;
9513 extern __at(0x0F51) volatile __RXB1SIDHbits_t RXB1SIDHbits;
9515 #define _RXB1SIDH_SID3 0x01
9516 #define _RXB1SIDH_SID4 0x02
9517 #define _RXB1SIDH_SID5 0x04
9518 #define _RXB1SIDH_SID6 0x08
9519 #define _RXB1SIDH_SID7 0x10
9520 #define _RXB1SIDH_SID8 0x20
9521 #define _RXB1SIDH_SID9 0x40
9522 #define _RXB1SIDH_SID10 0x80
9524 //==============================================================================
9527 //==============================================================================
9528 // RXB1SIDL Bits
9530 extern __at(0x0F52) __sfr RXB1SIDL;
9532 typedef union
9534 struct
9536 unsigned EID16 : 1;
9537 unsigned EID17 : 1;
9538 unsigned : 1;
9539 unsigned EXID : 1;
9540 unsigned SRR : 1;
9541 unsigned SID0 : 1;
9542 unsigned SID1 : 1;
9543 unsigned SID2 : 1;
9546 struct
9548 unsigned : 5;
9549 unsigned SID : 3;
9551 } __RXB1SIDLbits_t;
9553 extern __at(0x0F52) volatile __RXB1SIDLbits_t RXB1SIDLbits;
9555 #define _RXB1SIDL_EID16 0x01
9556 #define _RXB1SIDL_EID17 0x02
9557 #define _RXB1SIDL_EXID 0x08
9558 #define _RXB1SIDL_SRR 0x10
9559 #define _RXB1SIDL_SID0 0x20
9560 #define _RXB1SIDL_SID1 0x40
9561 #define _RXB1SIDL_SID2 0x80
9563 //==============================================================================
9566 //==============================================================================
9567 // RXB1EIDH Bits
9569 extern __at(0x0F53) __sfr RXB1EIDH;
9571 typedef struct
9573 unsigned EID8 : 1;
9574 unsigned EID9 : 1;
9575 unsigned EID10 : 1;
9576 unsigned EID11 : 1;
9577 unsigned EID12 : 1;
9578 unsigned EID13 : 1;
9579 unsigned EID14 : 1;
9580 unsigned EID15 : 1;
9581 } __RXB1EIDHbits_t;
9583 extern __at(0x0F53) volatile __RXB1EIDHbits_t RXB1EIDHbits;
9585 #define _RXB1EIDH_EID8 0x01
9586 #define _RXB1EIDH_EID9 0x02
9587 #define _RXB1EIDH_EID10 0x04
9588 #define _RXB1EIDH_EID11 0x08
9589 #define _RXB1EIDH_EID12 0x10
9590 #define _RXB1EIDH_EID13 0x20
9591 #define _RXB1EIDH_EID14 0x40
9592 #define _RXB1EIDH_EID15 0x80
9594 //==============================================================================
9597 //==============================================================================
9598 // RXB1EIDL Bits
9600 extern __at(0x0F54) __sfr RXB1EIDL;
9602 typedef struct
9604 unsigned EID0 : 1;
9605 unsigned EID1 : 1;
9606 unsigned EID2 : 1;
9607 unsigned EID3 : 1;
9608 unsigned EID4 : 1;
9609 unsigned EID5 : 1;
9610 unsigned EID6 : 1;
9611 unsigned EID7 : 1;
9612 } __RXB1EIDLbits_t;
9614 extern __at(0x0F54) volatile __RXB1EIDLbits_t RXB1EIDLbits;
9616 #define _RXB1EIDL_EID0 0x01
9617 #define _RXB1EIDL_EID1 0x02
9618 #define _RXB1EIDL_EID2 0x04
9619 #define _RXB1EIDL_EID3 0x08
9620 #define _RXB1EIDL_EID4 0x10
9621 #define _RXB1EIDL_EID5 0x20
9622 #define _RXB1EIDL_EID6 0x40
9623 #define _RXB1EIDL_EID7 0x80
9625 //==============================================================================
9628 //==============================================================================
9629 // RXB1DLC Bits
9631 extern __at(0x0F55) __sfr RXB1DLC;
9633 typedef union
9635 struct
9637 unsigned DLC0 : 1;
9638 unsigned DLC1 : 1;
9639 unsigned DLC2 : 1;
9640 unsigned DLC3 : 1;
9641 unsigned RB0 : 1;
9642 unsigned RB1 : 1;
9643 unsigned RXRTR : 1;
9644 unsigned : 1;
9647 struct
9649 unsigned : 1;
9650 unsigned : 1;
9651 unsigned : 1;
9652 unsigned : 1;
9653 unsigned RESRB0 : 1;
9654 unsigned RESRB1 : 1;
9655 unsigned : 1;
9656 unsigned : 1;
9659 struct
9661 unsigned DLC : 4;
9662 unsigned : 4;
9665 struct
9667 unsigned : 4;
9668 unsigned RESRB : 2;
9669 unsigned : 2;
9672 struct
9674 unsigned : 4;
9675 unsigned RB : 2;
9676 unsigned : 2;
9678 } __RXB1DLCbits_t;
9680 extern __at(0x0F55) volatile __RXB1DLCbits_t RXB1DLCbits;
9682 #define _RXB1DLC_DLC0 0x01
9683 #define _RXB1DLC_DLC1 0x02
9684 #define _RXB1DLC_DLC2 0x04
9685 #define _RXB1DLC_DLC3 0x08
9686 #define _RXB1DLC_RB0 0x10
9687 #define _RXB1DLC_RESRB0 0x10
9688 #define _RXB1DLC_RB1 0x20
9689 #define _RXB1DLC_RESRB1 0x20
9690 #define _RXB1DLC_RXRTR 0x40
9692 //==============================================================================
9695 //==============================================================================
9696 // RXB1D0 Bits
9698 extern __at(0x0F56) __sfr RXB1D0;
9700 typedef struct
9702 unsigned RXB1D00 : 1;
9703 unsigned RXB1D01 : 1;
9704 unsigned RXB1D02 : 1;
9705 unsigned RXB1D03 : 1;
9706 unsigned RXB1D04 : 1;
9707 unsigned RXB1D05 : 1;
9708 unsigned RXB1D06 : 1;
9709 unsigned RXB1D07 : 1;
9710 } __RXB1D0bits_t;
9712 extern __at(0x0F56) volatile __RXB1D0bits_t RXB1D0bits;
9714 #define _RXB1D00 0x01
9715 #define _RXB1D01 0x02
9716 #define _RXB1D02 0x04
9717 #define _RXB1D03 0x08
9718 #define _RXB1D04 0x10
9719 #define _RXB1D05 0x20
9720 #define _RXB1D06 0x40
9721 #define _RXB1D07 0x80
9723 //==============================================================================
9726 //==============================================================================
9727 // RXB1D1 Bits
9729 extern __at(0x0F57) __sfr RXB1D1;
9731 typedef struct
9733 unsigned RXB1D10 : 1;
9734 unsigned RXB1D11 : 1;
9735 unsigned RXB1D12 : 1;
9736 unsigned RXB1D13 : 1;
9737 unsigned RXB1D14 : 1;
9738 unsigned RXB1D15 : 1;
9739 unsigned RXB1D16 : 1;
9740 unsigned RXB1D17 : 1;
9741 } __RXB1D1bits_t;
9743 extern __at(0x0F57) volatile __RXB1D1bits_t RXB1D1bits;
9745 #define _RXB1D10 0x01
9746 #define _RXB1D11 0x02
9747 #define _RXB1D12 0x04
9748 #define _RXB1D13 0x08
9749 #define _RXB1D14 0x10
9750 #define _RXB1D15 0x20
9751 #define _RXB1D16 0x40
9752 #define _RXB1D17 0x80
9754 //==============================================================================
9757 //==============================================================================
9758 // RXB1D2 Bits
9760 extern __at(0x0F58) __sfr RXB1D2;
9762 typedef struct
9764 unsigned RXB1D20 : 1;
9765 unsigned RXB1D21 : 1;
9766 unsigned RXB1D22 : 1;
9767 unsigned RXB1D23 : 1;
9768 unsigned RXB1D24 : 1;
9769 unsigned RXB1D25 : 1;
9770 unsigned RXB1D26 : 1;
9771 unsigned RXB1D27 : 1;
9772 } __RXB1D2bits_t;
9774 extern __at(0x0F58) volatile __RXB1D2bits_t RXB1D2bits;
9776 #define _RXB1D20 0x01
9777 #define _RXB1D21 0x02
9778 #define _RXB1D22 0x04
9779 #define _RXB1D23 0x08
9780 #define _RXB1D24 0x10
9781 #define _RXB1D25 0x20
9782 #define _RXB1D26 0x40
9783 #define _RXB1D27 0x80
9785 //==============================================================================
9788 //==============================================================================
9789 // RXB1D3 Bits
9791 extern __at(0x0F59) __sfr RXB1D3;
9793 typedef struct
9795 unsigned RXB1D30 : 1;
9796 unsigned RXB1D31 : 1;
9797 unsigned RXB1D32 : 1;
9798 unsigned RXB1D33 : 1;
9799 unsigned RXB1D34 : 1;
9800 unsigned RXB1D35 : 1;
9801 unsigned RXB1D36 : 1;
9802 unsigned RXB1D37 : 1;
9803 } __RXB1D3bits_t;
9805 extern __at(0x0F59) volatile __RXB1D3bits_t RXB1D3bits;
9807 #define _RXB1D30 0x01
9808 #define _RXB1D31 0x02
9809 #define _RXB1D32 0x04
9810 #define _RXB1D33 0x08
9811 #define _RXB1D34 0x10
9812 #define _RXB1D35 0x20
9813 #define _RXB1D36 0x40
9814 #define _RXB1D37 0x80
9816 //==============================================================================
9819 //==============================================================================
9820 // RXB1D4 Bits
9822 extern __at(0x0F5A) __sfr RXB1D4;
9824 typedef struct
9826 unsigned RXB1D40 : 1;
9827 unsigned RXB1D41 : 1;
9828 unsigned RXB1D42 : 1;
9829 unsigned RXB1D43 : 1;
9830 unsigned RXB1D44 : 1;
9831 unsigned RXB1D45 : 1;
9832 unsigned RXB1D46 : 1;
9833 unsigned RXB1D47 : 1;
9834 } __RXB1D4bits_t;
9836 extern __at(0x0F5A) volatile __RXB1D4bits_t RXB1D4bits;
9838 #define _RXB1D40 0x01
9839 #define _RXB1D41 0x02
9840 #define _RXB1D42 0x04
9841 #define _RXB1D43 0x08
9842 #define _RXB1D44 0x10
9843 #define _RXB1D45 0x20
9844 #define _RXB1D46 0x40
9845 #define _RXB1D47 0x80
9847 //==============================================================================
9850 //==============================================================================
9851 // RXB1D5 Bits
9853 extern __at(0x0F5B) __sfr RXB1D5;
9855 typedef struct
9857 unsigned RXB1D50 : 1;
9858 unsigned RXB1D51 : 1;
9859 unsigned RXB1D52 : 1;
9860 unsigned RXB1D53 : 1;
9861 unsigned RXB1D54 : 1;
9862 unsigned RXB1D55 : 1;
9863 unsigned RXB1D56 : 1;
9864 unsigned RXB1D57 : 1;
9865 } __RXB1D5bits_t;
9867 extern __at(0x0F5B) volatile __RXB1D5bits_t RXB1D5bits;
9869 #define _RXB1D50 0x01
9870 #define _RXB1D51 0x02
9871 #define _RXB1D52 0x04
9872 #define _RXB1D53 0x08
9873 #define _RXB1D54 0x10
9874 #define _RXB1D55 0x20
9875 #define _RXB1D56 0x40
9876 #define _RXB1D57 0x80
9878 //==============================================================================
9881 //==============================================================================
9882 // RXB1D6 Bits
9884 extern __at(0x0F5C) __sfr RXB1D6;
9886 typedef struct
9888 unsigned RXB1D60 : 1;
9889 unsigned RXB1D61 : 1;
9890 unsigned RXB1D62 : 1;
9891 unsigned RXB1D63 : 1;
9892 unsigned RXB1D64 : 1;
9893 unsigned RXB1D65 : 1;
9894 unsigned RXB1D66 : 1;
9895 unsigned RXB1D67 : 1;
9896 } __RXB1D6bits_t;
9898 extern __at(0x0F5C) volatile __RXB1D6bits_t RXB1D6bits;
9900 #define _RXB1D60 0x01
9901 #define _RXB1D61 0x02
9902 #define _RXB1D62 0x04
9903 #define _RXB1D63 0x08
9904 #define _RXB1D64 0x10
9905 #define _RXB1D65 0x20
9906 #define _RXB1D66 0x40
9907 #define _RXB1D67 0x80
9909 //==============================================================================
9912 //==============================================================================
9913 // RXB1D7 Bits
9915 extern __at(0x0F5D) __sfr RXB1D7;
9917 typedef struct
9919 unsigned RXB1D70 : 1;
9920 unsigned RXB1D71 : 1;
9921 unsigned RXB1D72 : 1;
9922 unsigned RXB1D73 : 1;
9923 unsigned RXB1D74 : 1;
9924 unsigned RXB1D75 : 1;
9925 unsigned RXB1D76 : 1;
9926 unsigned RXB1D77 : 1;
9927 } __RXB1D7bits_t;
9929 extern __at(0x0F5D) volatile __RXB1D7bits_t RXB1D7bits;
9931 #define _RXB1D70 0x01
9932 #define _RXB1D71 0x02
9933 #define _RXB1D72 0x04
9934 #define _RXB1D73 0x08
9935 #define _RXB1D74 0x10
9936 #define _RXB1D75 0x20
9937 #define _RXB1D76 0x40
9938 #define _RXB1D77 0x80
9940 //==============================================================================
9943 //==============================================================================
9944 // CANSTAT_RO0 Bits
9946 extern __at(0x0F5E) __sfr CANSTAT_RO0;
9948 typedef union
9950 struct
9952 unsigned EICODE0 : 1;
9953 unsigned EICODE1_ICODE0 : 1;
9954 unsigned EICODE2_ICODE1 : 1;
9955 unsigned EICODE3_ICODE2 : 1;
9956 unsigned EICODE4 : 1;
9957 unsigned OPMODE0 : 1;
9958 unsigned OPMODE1 : 1;
9959 unsigned OPMODE2 : 1;
9962 struct
9964 unsigned ICODE0 : 1;
9965 unsigned ICODE1 : 1;
9966 unsigned ICODE2 : 1;
9967 unsigned ICODE3 : 1;
9968 unsigned ICODE4 : 1;
9969 unsigned : 1;
9970 unsigned : 1;
9971 unsigned : 1;
9974 struct
9976 unsigned ICODE : 5;
9977 unsigned : 3;
9980 struct
9982 unsigned : 5;
9983 unsigned OPMODE : 3;
9985 } __CANSTAT_RO0bits_t;
9987 extern __at(0x0F5E) volatile __CANSTAT_RO0bits_t CANSTAT_RO0bits;
9989 #define _CANSTAT_RO0_EICODE0 0x01
9990 #define _CANSTAT_RO0_ICODE0 0x01
9991 #define _CANSTAT_RO0_EICODE1_ICODE0 0x02
9992 #define _CANSTAT_RO0_ICODE1 0x02
9993 #define _CANSTAT_RO0_EICODE2_ICODE1 0x04
9994 #define _CANSTAT_RO0_ICODE2 0x04
9995 #define _CANSTAT_RO0_EICODE3_ICODE2 0x08
9996 #define _CANSTAT_RO0_ICODE3 0x08
9997 #define _CANSTAT_RO0_EICODE4 0x10
9998 #define _CANSTAT_RO0_ICODE4 0x10
9999 #define _CANSTAT_RO0_OPMODE0 0x20
10000 #define _CANSTAT_RO0_OPMODE1 0x40
10001 #define _CANSTAT_RO0_OPMODE2 0x80
10003 //==============================================================================
10006 //==============================================================================
10007 // CANCON_RO0 Bits
10009 extern __at(0x0F5F) __sfr CANCON_RO0;
10011 typedef union
10013 struct
10015 unsigned FP0 : 1;
10016 unsigned WIN0_FP1 : 1;
10017 unsigned WIN1_FP2 : 1;
10018 unsigned WIN2_FP3 : 1;
10019 unsigned ABAT : 1;
10020 unsigned REQOP0 : 1;
10021 unsigned REQOP1 : 1;
10022 unsigned REQOP2 : 1;
10025 struct
10027 unsigned : 1;
10028 unsigned WIN0 : 1;
10029 unsigned WIN1 : 1;
10030 unsigned WIN2 : 1;
10031 unsigned : 1;
10032 unsigned : 1;
10033 unsigned : 1;
10034 unsigned : 1;
10037 struct
10039 unsigned : 1;
10040 unsigned WIN : 3;
10041 unsigned : 4;
10044 struct
10046 unsigned : 5;
10047 unsigned REQOP : 3;
10049 } __CANCON_RO0bits_t;
10051 extern __at(0x0F5F) volatile __CANCON_RO0bits_t CANCON_RO0bits;
10053 #define _CANCON_RO0_FP0 0x01
10054 #define _CANCON_RO0_WIN0_FP1 0x02
10055 #define _CANCON_RO0_WIN0 0x02
10056 #define _CANCON_RO0_WIN1_FP2 0x04
10057 #define _CANCON_RO0_WIN1 0x04
10058 #define _CANCON_RO0_WIN2_FP3 0x08
10059 #define _CANCON_RO0_WIN2 0x08
10060 #define _CANCON_RO0_ABAT 0x10
10061 #define _CANCON_RO0_REQOP0 0x20
10062 #define _CANCON_RO0_REQOP1 0x40
10063 #define _CANCON_RO0_REQOP2 0x80
10065 //==============================================================================
10068 //==============================================================================
10069 // RXB0CON Bits
10071 extern __at(0x0F60) __sfr RXB0CON;
10073 typedef union
10075 struct
10077 unsigned FILHIT0 : 1;
10078 unsigned JTOFF_FILHIT1 : 1;
10079 unsigned RXB0DBEN_FILHIT2 : 1;
10080 unsigned RXRTRRO_FILHIT3 : 1;
10081 unsigned FILHIT4 : 1;
10082 unsigned RXM0_RTRRO : 1;
10083 unsigned RXM1 : 1;
10084 unsigned RXFUL : 1;
10087 struct
10089 unsigned : 1;
10090 unsigned JTOFF : 1;
10091 unsigned RXB0DBEN : 1;
10092 unsigned RXRTRRO : 1;
10093 unsigned : 1;
10094 unsigned RXM0 : 1;
10095 unsigned : 1;
10096 unsigned : 1;
10099 struct
10101 unsigned : 1;
10102 unsigned FILHIT1 : 1;
10103 unsigned FILHIT2 : 1;
10104 unsigned FILHIT3 : 1;
10105 unsigned : 1;
10106 unsigned RTRRO : 1;
10107 unsigned : 1;
10108 unsigned : 1;
10111 struct
10113 unsigned : 1;
10114 unsigned : 1;
10115 unsigned RXBODBEN : 1;
10116 unsigned : 1;
10117 unsigned : 1;
10118 unsigned : 1;
10119 unsigned : 1;
10120 unsigned : 1;
10123 struct
10125 unsigned FILHIT : 5;
10126 unsigned : 3;
10129 struct
10131 unsigned : 5;
10132 unsigned RXM : 2;
10133 unsigned : 1;
10135 } __RXB0CONbits_t;
10137 extern __at(0x0F60) volatile __RXB0CONbits_t RXB0CONbits;
10139 #define _RXB0CON_FILHIT0 0x01
10140 #define _RXB0CON_JTOFF_FILHIT1 0x02
10141 #define _RXB0CON_JTOFF 0x02
10142 #define _RXB0CON_FILHIT1 0x02
10143 #define _RXB0CON_RXB0DBEN_FILHIT2 0x04
10144 #define _RXB0CON_RXB0DBEN 0x04
10145 #define _RXB0CON_FILHIT2 0x04
10146 #define _RXB0CON_RXBODBEN 0x04
10147 #define _RXB0CON_RXRTRRO_FILHIT3 0x08
10148 #define _RXB0CON_RXRTRRO 0x08
10149 #define _RXB0CON_FILHIT3 0x08
10150 #define _RXB0CON_FILHIT4 0x10
10151 #define _RXB0CON_RXM0_RTRRO 0x20
10152 #define _RXB0CON_RXM0 0x20
10153 #define _RXB0CON_RTRRO 0x20
10154 #define _RXB0CON_RXM1 0x40
10155 #define _RXB0CON_RXFUL 0x80
10157 //==============================================================================
10160 //==============================================================================
10161 // RXB0SIDH Bits
10163 extern __at(0x0F61) __sfr RXB0SIDH;
10165 typedef struct
10167 unsigned SID3 : 1;
10168 unsigned SID4 : 1;
10169 unsigned SID5 : 1;
10170 unsigned SID6 : 1;
10171 unsigned SID7 : 1;
10172 unsigned SID8 : 1;
10173 unsigned SID9 : 1;
10174 unsigned SID10 : 1;
10175 } __RXB0SIDHbits_t;
10177 extern __at(0x0F61) volatile __RXB0SIDHbits_t RXB0SIDHbits;
10179 #define _RXB0SIDH_SID3 0x01
10180 #define _RXB0SIDH_SID4 0x02
10181 #define _RXB0SIDH_SID5 0x04
10182 #define _RXB0SIDH_SID6 0x08
10183 #define _RXB0SIDH_SID7 0x10
10184 #define _RXB0SIDH_SID8 0x20
10185 #define _RXB0SIDH_SID9 0x40
10186 #define _RXB0SIDH_SID10 0x80
10188 //==============================================================================
10191 //==============================================================================
10192 // RXB0SIDL Bits
10194 extern __at(0x0F62) __sfr RXB0SIDL;
10196 typedef union
10198 struct
10200 unsigned EID16 : 1;
10201 unsigned EID17 : 1;
10202 unsigned : 1;
10203 unsigned EXID : 1;
10204 unsigned SRR : 1;
10205 unsigned SID0 : 1;
10206 unsigned SID1 : 1;
10207 unsigned SID2 : 1;
10210 struct
10212 unsigned : 5;
10213 unsigned SID : 3;
10215 } __RXB0SIDLbits_t;
10217 extern __at(0x0F62) volatile __RXB0SIDLbits_t RXB0SIDLbits;
10219 #define _RXB0SIDL_EID16 0x01
10220 #define _RXB0SIDL_EID17 0x02
10221 #define _RXB0SIDL_EXID 0x08
10222 #define _RXB0SIDL_SRR 0x10
10223 #define _RXB0SIDL_SID0 0x20
10224 #define _RXB0SIDL_SID1 0x40
10225 #define _RXB0SIDL_SID2 0x80
10227 //==============================================================================
10230 //==============================================================================
10231 // RXB0EIDH Bits
10233 extern __at(0x0F63) __sfr RXB0EIDH;
10235 typedef struct
10237 unsigned EID8 : 1;
10238 unsigned EID9 : 1;
10239 unsigned EID10 : 1;
10240 unsigned EID11 : 1;
10241 unsigned EID12 : 1;
10242 unsigned EID13 : 1;
10243 unsigned EID14 : 1;
10244 unsigned EID15 : 1;
10245 } __RXB0EIDHbits_t;
10247 extern __at(0x0F63) volatile __RXB0EIDHbits_t RXB0EIDHbits;
10249 #define _RXB0EIDH_EID8 0x01
10250 #define _RXB0EIDH_EID9 0x02
10251 #define _RXB0EIDH_EID10 0x04
10252 #define _RXB0EIDH_EID11 0x08
10253 #define _RXB0EIDH_EID12 0x10
10254 #define _RXB0EIDH_EID13 0x20
10255 #define _RXB0EIDH_EID14 0x40
10256 #define _RXB0EIDH_EID15 0x80
10258 //==============================================================================
10261 //==============================================================================
10262 // RXB0EIDL Bits
10264 extern __at(0x0F64) __sfr RXB0EIDL;
10266 typedef struct
10268 unsigned EID0 : 1;
10269 unsigned EID1 : 1;
10270 unsigned EID2 : 1;
10271 unsigned EID3 : 1;
10272 unsigned EID4 : 1;
10273 unsigned EID5 : 1;
10274 unsigned EID6 : 1;
10275 unsigned EID7 : 1;
10276 } __RXB0EIDLbits_t;
10278 extern __at(0x0F64) volatile __RXB0EIDLbits_t RXB0EIDLbits;
10280 #define _RXB0EIDL_EID0 0x01
10281 #define _RXB0EIDL_EID1 0x02
10282 #define _RXB0EIDL_EID2 0x04
10283 #define _RXB0EIDL_EID3 0x08
10284 #define _RXB0EIDL_EID4 0x10
10285 #define _RXB0EIDL_EID5 0x20
10286 #define _RXB0EIDL_EID6 0x40
10287 #define _RXB0EIDL_EID7 0x80
10289 //==============================================================================
10292 //==============================================================================
10293 // RXB0DLC Bits
10295 extern __at(0x0F65) __sfr RXB0DLC;
10297 typedef union
10299 struct
10301 unsigned DLC0 : 1;
10302 unsigned DLC1 : 1;
10303 unsigned DLC2 : 1;
10304 unsigned DLC3 : 1;
10305 unsigned RB0 : 1;
10306 unsigned RB1 : 1;
10307 unsigned RXRTR : 1;
10308 unsigned : 1;
10311 struct
10313 unsigned : 1;
10314 unsigned : 1;
10315 unsigned : 1;
10316 unsigned : 1;
10317 unsigned RESRB0 : 1;
10318 unsigned RESRB1 : 1;
10319 unsigned : 1;
10320 unsigned : 1;
10323 struct
10325 unsigned DLC : 4;
10326 unsigned : 4;
10329 struct
10331 unsigned : 4;
10332 unsigned RESRB : 2;
10333 unsigned : 2;
10336 struct
10338 unsigned : 4;
10339 unsigned RB : 2;
10340 unsigned : 2;
10342 } __RXB0DLCbits_t;
10344 extern __at(0x0F65) volatile __RXB0DLCbits_t RXB0DLCbits;
10346 #define _RXB0DLC_DLC0 0x01
10347 #define _RXB0DLC_DLC1 0x02
10348 #define _RXB0DLC_DLC2 0x04
10349 #define _RXB0DLC_DLC3 0x08
10350 #define _RXB0DLC_RB0 0x10
10351 #define _RXB0DLC_RESRB0 0x10
10352 #define _RXB0DLC_RB1 0x20
10353 #define _RXB0DLC_RESRB1 0x20
10354 #define _RXB0DLC_RXRTR 0x40
10356 //==============================================================================
10359 //==============================================================================
10360 // RXB0D0 Bits
10362 extern __at(0x0F66) __sfr RXB0D0;
10364 typedef struct
10366 unsigned RXB0D00 : 1;
10367 unsigned RXB0D01 : 1;
10368 unsigned RXB0D02 : 1;
10369 unsigned RXB0D03 : 1;
10370 unsigned RXB0D04 : 1;
10371 unsigned RXB0D05 : 1;
10372 unsigned RXB0D06 : 1;
10373 unsigned RXB0D07 : 1;
10374 } __RXB0D0bits_t;
10376 extern __at(0x0F66) volatile __RXB0D0bits_t RXB0D0bits;
10378 #define _RXB0D00 0x01
10379 #define _RXB0D01 0x02
10380 #define _RXB0D02 0x04
10381 #define _RXB0D03 0x08
10382 #define _RXB0D04 0x10
10383 #define _RXB0D05 0x20
10384 #define _RXB0D06 0x40
10385 #define _RXB0D07 0x80
10387 //==============================================================================
10390 //==============================================================================
10391 // RXB0D1 Bits
10393 extern __at(0x0F67) __sfr RXB0D1;
10395 typedef struct
10397 unsigned RXB0D10 : 1;
10398 unsigned RXB0D11 : 1;
10399 unsigned RXB0D12 : 1;
10400 unsigned RXB0D13 : 1;
10401 unsigned RXB0D14 : 1;
10402 unsigned RXB0D15 : 1;
10403 unsigned RXB0D16 : 1;
10404 unsigned RXB0D17 : 1;
10405 } __RXB0D1bits_t;
10407 extern __at(0x0F67) volatile __RXB0D1bits_t RXB0D1bits;
10409 #define _RXB0D10 0x01
10410 #define _RXB0D11 0x02
10411 #define _RXB0D12 0x04
10412 #define _RXB0D13 0x08
10413 #define _RXB0D14 0x10
10414 #define _RXB0D15 0x20
10415 #define _RXB0D16 0x40
10416 #define _RXB0D17 0x80
10418 //==============================================================================
10421 //==============================================================================
10422 // RXB0D2 Bits
10424 extern __at(0x0F68) __sfr RXB0D2;
10426 typedef struct
10428 unsigned RXB0D20 : 1;
10429 unsigned RXB0D21 : 1;
10430 unsigned RXB0D22 : 1;
10431 unsigned RXB0D23 : 1;
10432 unsigned RXB0D24 : 1;
10433 unsigned RXB0D25 : 1;
10434 unsigned RXB0D26 : 1;
10435 unsigned RXB0D27 : 1;
10436 } __RXB0D2bits_t;
10438 extern __at(0x0F68) volatile __RXB0D2bits_t RXB0D2bits;
10440 #define _RXB0D20 0x01
10441 #define _RXB0D21 0x02
10442 #define _RXB0D22 0x04
10443 #define _RXB0D23 0x08
10444 #define _RXB0D24 0x10
10445 #define _RXB0D25 0x20
10446 #define _RXB0D26 0x40
10447 #define _RXB0D27 0x80
10449 //==============================================================================
10452 //==============================================================================
10453 // RXB0D3 Bits
10455 extern __at(0x0F69) __sfr RXB0D3;
10457 typedef struct
10459 unsigned RXB0D30 : 1;
10460 unsigned RXB0D31 : 1;
10461 unsigned RXB0D32 : 1;
10462 unsigned RXB0D33 : 1;
10463 unsigned RXB0D34 : 1;
10464 unsigned RXB0D35 : 1;
10465 unsigned RXB0D36 : 1;
10466 unsigned RXB0D37 : 1;
10467 } __RXB0D3bits_t;
10469 extern __at(0x0F69) volatile __RXB0D3bits_t RXB0D3bits;
10471 #define _RXB0D30 0x01
10472 #define _RXB0D31 0x02
10473 #define _RXB0D32 0x04
10474 #define _RXB0D33 0x08
10475 #define _RXB0D34 0x10
10476 #define _RXB0D35 0x20
10477 #define _RXB0D36 0x40
10478 #define _RXB0D37 0x80
10480 //==============================================================================
10483 //==============================================================================
10484 // RXB0D4 Bits
10486 extern __at(0x0F6A) __sfr RXB0D4;
10488 typedef struct
10490 unsigned RXB0D40 : 1;
10491 unsigned RXB0D41 : 1;
10492 unsigned RXB0D42 : 1;
10493 unsigned RXB0D43 : 1;
10494 unsigned RXB0D44 : 1;
10495 unsigned RXB0D45 : 1;
10496 unsigned RXB0D46 : 1;
10497 unsigned RXB0D47 : 1;
10498 } __RXB0D4bits_t;
10500 extern __at(0x0F6A) volatile __RXB0D4bits_t RXB0D4bits;
10502 #define _RXB0D40 0x01
10503 #define _RXB0D41 0x02
10504 #define _RXB0D42 0x04
10505 #define _RXB0D43 0x08
10506 #define _RXB0D44 0x10
10507 #define _RXB0D45 0x20
10508 #define _RXB0D46 0x40
10509 #define _RXB0D47 0x80
10511 //==============================================================================
10514 //==============================================================================
10515 // RXB0D5 Bits
10517 extern __at(0x0F6B) __sfr RXB0D5;
10519 typedef struct
10521 unsigned RXB0D50 : 1;
10522 unsigned RXB0D51 : 1;
10523 unsigned RXB0D52 : 1;
10524 unsigned RXB0D53 : 1;
10525 unsigned RXB0D54 : 1;
10526 unsigned RXB0D55 : 1;
10527 unsigned RXB0D56 : 1;
10528 unsigned RXB0D57 : 1;
10529 } __RXB0D5bits_t;
10531 extern __at(0x0F6B) volatile __RXB0D5bits_t RXB0D5bits;
10533 #define _RXB0D50 0x01
10534 #define _RXB0D51 0x02
10535 #define _RXB0D52 0x04
10536 #define _RXB0D53 0x08
10537 #define _RXB0D54 0x10
10538 #define _RXB0D55 0x20
10539 #define _RXB0D56 0x40
10540 #define _RXB0D57 0x80
10542 //==============================================================================
10545 //==============================================================================
10546 // RXB0D6 Bits
10548 extern __at(0x0F6C) __sfr RXB0D6;
10550 typedef struct
10552 unsigned RXB0D60 : 1;
10553 unsigned RXB0D61 : 1;
10554 unsigned RXB0D62 : 1;
10555 unsigned RXB0D63 : 1;
10556 unsigned RXB0D64 : 1;
10557 unsigned RXB0D65 : 1;
10558 unsigned RXB0D66 : 1;
10559 unsigned RXB0D67 : 1;
10560 } __RXB0D6bits_t;
10562 extern __at(0x0F6C) volatile __RXB0D6bits_t RXB0D6bits;
10564 #define _RXB0D60 0x01
10565 #define _RXB0D61 0x02
10566 #define _RXB0D62 0x04
10567 #define _RXB0D63 0x08
10568 #define _RXB0D64 0x10
10569 #define _RXB0D65 0x20
10570 #define _RXB0D66 0x40
10571 #define _RXB0D67 0x80
10573 //==============================================================================
10576 //==============================================================================
10577 // RXB0D7 Bits
10579 extern __at(0x0F6D) __sfr RXB0D7;
10581 typedef struct
10583 unsigned RXB0D70 : 1;
10584 unsigned RXB0D71 : 1;
10585 unsigned RXB0D72 : 1;
10586 unsigned RXB0D73 : 1;
10587 unsigned RXB0D74 : 1;
10588 unsigned RXB0D75 : 1;
10589 unsigned RXB0D76 : 1;
10590 unsigned RXB0D77 : 1;
10591 } __RXB0D7bits_t;
10593 extern __at(0x0F6D) volatile __RXB0D7bits_t RXB0D7bits;
10595 #define _RXB0D70 0x01
10596 #define _RXB0D71 0x02
10597 #define _RXB0D72 0x04
10598 #define _RXB0D73 0x08
10599 #define _RXB0D74 0x10
10600 #define _RXB0D75 0x20
10601 #define _RXB0D76 0x40
10602 #define _RXB0D77 0x80
10604 //==============================================================================
10607 //==============================================================================
10608 // CANSTAT Bits
10610 extern __at(0x0F6E) __sfr CANSTAT;
10612 typedef union
10614 struct
10616 unsigned EICODE0 : 1;
10617 unsigned EICODE1_ICODE0 : 1;
10618 unsigned EICODE2_ICODE1 : 1;
10619 unsigned EICODE3_ICODE2 : 1;
10620 unsigned EICODE4 : 1;
10621 unsigned OPMODE0 : 1;
10622 unsigned OPMODE1 : 1;
10623 unsigned OPMODE2 : 1;
10626 struct
10628 unsigned ICODE0 : 1;
10629 unsigned ICODE1 : 1;
10630 unsigned ICODE2 : 1;
10631 unsigned ICODE3 : 1;
10632 unsigned : 1;
10633 unsigned : 1;
10634 unsigned : 1;
10635 unsigned : 1;
10638 struct
10640 unsigned : 1;
10641 unsigned EICODE1 : 1;
10642 unsigned EICODE2 : 1;
10643 unsigned EICODE3 : 1;
10644 unsigned : 1;
10645 unsigned : 1;
10646 unsigned : 1;
10647 unsigned : 1;
10650 struct
10652 unsigned EICODE : 5;
10653 unsigned : 3;
10656 struct
10658 unsigned ICODE : 4;
10659 unsigned : 4;
10662 struct
10664 unsigned : 5;
10665 unsigned OPMODE : 3;
10667 } __CANSTATbits_t;
10669 extern __at(0x0F6E) volatile __CANSTATbits_t CANSTATbits;
10671 #define _EICODE0 0x01
10672 #define _ICODE0 0x01
10673 #define _EICODE1_ICODE0 0x02
10674 #define _ICODE1 0x02
10675 #define _EICODE1 0x02
10676 #define _EICODE2_ICODE1 0x04
10677 #define _ICODE2 0x04
10678 #define _EICODE2 0x04
10679 #define _EICODE3_ICODE2 0x08
10680 #define _ICODE3 0x08
10681 #define _EICODE3 0x08
10682 #define _EICODE4 0x10
10683 #define _OPMODE0 0x20
10684 #define _OPMODE1 0x40
10685 #define _OPMODE2 0x80
10687 //==============================================================================
10690 //==============================================================================
10691 // CANCON Bits
10693 extern __at(0x0F6F) __sfr CANCON;
10695 typedef union
10697 struct
10699 unsigned FP0 : 1;
10700 unsigned WIN0_FP1 : 1;
10701 unsigned WIN1_FP2 : 1;
10702 unsigned WIN2_FP3 : 1;
10703 unsigned ABAT : 1;
10704 unsigned REQOP0 : 1;
10705 unsigned REQOP1 : 1;
10706 unsigned REQOP2 : 1;
10709 struct
10711 unsigned : 1;
10712 unsigned WIN0 : 1;
10713 unsigned WIN1 : 1;
10714 unsigned WIN2 : 1;
10715 unsigned : 1;
10716 unsigned : 1;
10717 unsigned : 1;
10718 unsigned : 1;
10721 struct
10723 unsigned : 1;
10724 unsigned FP1 : 1;
10725 unsigned FP2 : 1;
10726 unsigned FP3 : 1;
10727 unsigned : 1;
10728 unsigned : 1;
10729 unsigned : 1;
10730 unsigned : 1;
10733 struct
10735 unsigned FP : 4;
10736 unsigned : 4;
10739 struct
10741 unsigned : 1;
10742 unsigned WIN : 3;
10743 unsigned : 4;
10746 struct
10748 unsigned : 5;
10749 unsigned REQOP : 3;
10751 } __CANCONbits_t;
10753 extern __at(0x0F6F) volatile __CANCONbits_t CANCONbits;
10755 #define _FP0 0x01
10756 #define _WIN0_FP1 0x02
10757 #define _WIN0 0x02
10758 #define _FP1 0x02
10759 #define _WIN1_FP2 0x04
10760 #define _WIN1 0x04
10761 #define _FP2 0x04
10762 #define _WIN2_FP3 0x08
10763 #define _WIN2 0x08
10764 #define _FP3 0x08
10765 #define _ABAT 0x10
10766 #define _REQOP0 0x20
10767 #define _REQOP1 0x40
10768 #define _REQOP2 0x80
10770 //==============================================================================
10773 //==============================================================================
10774 // BRGCON1 Bits
10776 extern __at(0x0F70) __sfr BRGCON1;
10778 typedef union
10780 struct
10782 unsigned BRP0 : 1;
10783 unsigned BRP1 : 1;
10784 unsigned BRP2 : 1;
10785 unsigned BRP3 : 1;
10786 unsigned BRP4 : 1;
10787 unsigned BRP5 : 1;
10788 unsigned SJW0 : 1;
10789 unsigned SJW1 : 1;
10792 struct
10794 unsigned BRP : 6;
10795 unsigned : 2;
10798 struct
10800 unsigned : 6;
10801 unsigned SJW : 2;
10803 } __BRGCON1bits_t;
10805 extern __at(0x0F70) volatile __BRGCON1bits_t BRGCON1bits;
10807 #define _BRP0 0x01
10808 #define _BRP1 0x02
10809 #define _BRP2 0x04
10810 #define _BRP3 0x08
10811 #define _BRP4 0x10
10812 #define _BRP5 0x20
10813 #define _SJW0 0x40
10814 #define _SJW1 0x80
10816 //==============================================================================
10819 //==============================================================================
10820 // BRGCON2 Bits
10822 extern __at(0x0F71) __sfr BRGCON2;
10824 typedef union
10826 struct
10828 unsigned PRSEG0 : 1;
10829 unsigned PRSEG1 : 1;
10830 unsigned PRSEG2 : 1;
10831 unsigned SEG1PH0 : 1;
10832 unsigned SEG1PH1 : 1;
10833 unsigned SEG1PH2 : 1;
10834 unsigned SAM : 1;
10835 unsigned SEG2PHT : 1;
10838 struct
10840 unsigned : 1;
10841 unsigned : 1;
10842 unsigned : 1;
10843 unsigned : 1;
10844 unsigned : 1;
10845 unsigned : 1;
10846 unsigned : 1;
10847 unsigned SEG2PHTS : 1;
10850 struct
10852 unsigned PRSEG : 3;
10853 unsigned : 5;
10856 struct
10858 unsigned : 3;
10859 unsigned SEG1PH : 3;
10860 unsigned : 2;
10862 } __BRGCON2bits_t;
10864 extern __at(0x0F71) volatile __BRGCON2bits_t BRGCON2bits;
10866 #define _PRSEG0 0x01
10867 #define _PRSEG1 0x02
10868 #define _PRSEG2 0x04
10869 #define _SEG1PH0 0x08
10870 #define _SEG1PH1 0x10
10871 #define _SEG1PH2 0x20
10872 #define _SAM 0x40
10873 #define _SEG2PHT 0x80
10874 #define _SEG2PHTS 0x80
10876 //==============================================================================
10879 //==============================================================================
10880 // BRGCON3 Bits
10882 extern __at(0x0F72) __sfr BRGCON3;
10884 typedef union
10886 struct
10888 unsigned SEG2PH0 : 1;
10889 unsigned SEG2PH1 : 1;
10890 unsigned SEG2PH2 : 1;
10891 unsigned : 1;
10892 unsigned : 1;
10893 unsigned : 1;
10894 unsigned WAKFIL : 1;
10895 unsigned WAKDIS : 1;
10898 struct
10900 unsigned SEG2PH : 3;
10901 unsigned : 5;
10903 } __BRGCON3bits_t;
10905 extern __at(0x0F72) volatile __BRGCON3bits_t BRGCON3bits;
10907 #define _SEG2PH0 0x01
10908 #define _SEG2PH1 0x02
10909 #define _SEG2PH2 0x04
10910 #define _WAKFIL 0x40
10911 #define _WAKDIS 0x80
10913 //==============================================================================
10916 //==============================================================================
10917 // CIOCON Bits
10919 extern __at(0x0F73) __sfr CIOCON;
10921 typedef struct
10923 unsigned : 1;
10924 unsigned : 1;
10925 unsigned : 1;
10926 unsigned : 1;
10927 unsigned CANCAP : 1;
10928 unsigned ENDRHI : 1;
10929 unsigned : 1;
10930 unsigned : 1;
10931 } __CIOCONbits_t;
10933 extern __at(0x0F73) volatile __CIOCONbits_t CIOCONbits;
10935 #define _CANCAP 0x10
10936 #define _ENDRHI 0x20
10938 //==============================================================================
10941 //==============================================================================
10942 // COMSTAT Bits
10944 extern __at(0x0F74) __sfr COMSTAT;
10946 typedef union
10948 struct
10950 unsigned EWARN : 1;
10951 unsigned RXWARN : 1;
10952 unsigned TXWARN : 1;
10953 unsigned RXBP : 1;
10954 unsigned TXBP : 1;
10955 unsigned TXBO : 1;
10956 unsigned RXBnOVFL : 1;
10957 unsigned RXB0OVFL_NOT_FIFOEMPTY : 1;
10960 struct
10962 unsigned : 1;
10963 unsigned : 1;
10964 unsigned : 1;
10965 unsigned : 1;
10966 unsigned : 1;
10967 unsigned : 1;
10968 unsigned RXB1OVFL : 1;
10969 unsigned RXB0OVFL : 1;
10972 struct
10974 unsigned : 1;
10975 unsigned : 1;
10976 unsigned : 1;
10977 unsigned : 1;
10978 unsigned : 1;
10979 unsigned : 1;
10980 unsigned : 1;
10981 unsigned FIFOEMPTY : 1;
10984 struct
10986 unsigned : 1;
10987 unsigned : 1;
10988 unsigned : 1;
10989 unsigned : 1;
10990 unsigned : 1;
10991 unsigned : 1;
10992 unsigned : 1;
10993 unsigned NOT_FIFOEMPTY : 1;
10995 } __COMSTATbits_t;
10997 extern __at(0x0F74) volatile __COMSTATbits_t COMSTATbits;
10999 #define _EWARN 0x01
11000 #define _RXWARN 0x02
11001 #define _TXWARN 0x04
11002 #define _RXBP 0x08
11003 #define _TXBP 0x10
11004 #define _TXBO 0x20
11005 #define _RXBnOVFL 0x40
11006 #define _RXB1OVFL 0x40
11007 #define _RXB0OVFL_NOT_FIFOEMPTY 0x80
11008 #define _RXB0OVFL 0x80
11009 #define _FIFOEMPTY 0x80
11010 #define _NOT_FIFOEMPTY 0x80
11012 //==============================================================================
11015 //==============================================================================
11016 // RXERRCNT Bits
11018 extern __at(0x0F75) __sfr RXERRCNT;
11020 typedef struct
11022 unsigned REC0 : 1;
11023 unsigned REC1 : 1;
11024 unsigned REC2 : 1;
11025 unsigned REC3 : 1;
11026 unsigned REC4 : 1;
11027 unsigned REC5 : 1;
11028 unsigned REC6 : 1;
11029 unsigned REC7 : 1;
11030 } __RXERRCNTbits_t;
11032 extern __at(0x0F75) volatile __RXERRCNTbits_t RXERRCNTbits;
11034 #define _REC0 0x01
11035 #define _REC1 0x02
11036 #define _REC2 0x04
11037 #define _REC3 0x08
11038 #define _REC4 0x10
11039 #define _REC5 0x20
11040 #define _REC6 0x40
11041 #define _REC7 0x80
11043 //==============================================================================
11046 //==============================================================================
11047 // TXERRCNT Bits
11049 extern __at(0x0F76) __sfr TXERRCNT;
11051 typedef struct
11053 unsigned TEC0 : 1;
11054 unsigned TEC1 : 1;
11055 unsigned TEC2 : 1;
11056 unsigned TEC3 : 1;
11057 unsigned TEC4 : 1;
11058 unsigned TEC5 : 1;
11059 unsigned TEC6 : 1;
11060 unsigned TEC7 : 1;
11061 } __TXERRCNTbits_t;
11063 extern __at(0x0F76) volatile __TXERRCNTbits_t TXERRCNTbits;
11065 #define _TEC0 0x01
11066 #define _TEC1 0x02
11067 #define _TEC2 0x04
11068 #define _TEC3 0x08
11069 #define _TEC4 0x10
11070 #define _TEC5 0x20
11071 #define _TEC6 0x40
11072 #define _TEC7 0x80
11074 //==============================================================================
11077 //==============================================================================
11078 // ECANCON Bits
11080 extern __at(0x0F77) __sfr ECANCON;
11082 typedef union
11084 struct
11086 unsigned EWIN0 : 1;
11087 unsigned EWIN1 : 1;
11088 unsigned EWIN2 : 1;
11089 unsigned EWIN3 : 1;
11090 unsigned EWIN4 : 1;
11091 unsigned FIFOWM : 1;
11092 unsigned MDSEL0 : 1;
11093 unsigned MDSEL1 : 1;
11096 struct
11098 unsigned : 1;
11099 unsigned : 1;
11100 unsigned : 1;
11101 unsigned : 1;
11102 unsigned : 1;
11103 unsigned F : 1;
11104 unsigned : 1;
11105 unsigned : 1;
11108 struct
11110 unsigned EWIN : 5;
11111 unsigned : 3;
11114 struct
11116 unsigned : 6;
11117 unsigned MDSEL : 2;
11119 } __ECANCONbits_t;
11121 extern __at(0x0F77) volatile __ECANCONbits_t ECANCONbits;
11123 #define _EWIN0 0x01
11124 #define _EWIN1 0x02
11125 #define _EWIN2 0x04
11126 #define _EWIN3 0x08
11127 #define _EWIN4 0x10
11128 #define _FIFOWM 0x20
11129 #define _F 0x20
11130 #define _MDSEL0 0x40
11131 #define _MDSEL1 0x80
11133 //==============================================================================
11136 //==============================================================================
11137 // PORTA Bits
11139 extern __at(0x0F80) __sfr PORTA;
11141 typedef union
11143 struct
11145 unsigned RA0 : 1;
11146 unsigned RA1 : 1;
11147 unsigned RA2 : 1;
11148 unsigned RA3 : 1;
11149 unsigned RA4 : 1;
11150 unsigned RA5 : 1;
11151 unsigned RA6 : 1;
11152 unsigned RA7 : 1;
11155 struct
11157 unsigned AN0 : 1;
11158 unsigned AN1 : 1;
11159 unsigned AN2 : 1;
11160 unsigned AN3 : 1;
11161 unsigned T0CKI : 1;
11162 unsigned AN4 : 1;
11163 unsigned OSC2 : 1;
11164 unsigned OSC1 : 1;
11167 struct
11169 unsigned CVREF : 1;
11170 unsigned : 1;
11171 unsigned VREFM : 1;
11172 unsigned VREFP : 1;
11173 unsigned : 1;
11174 unsigned HLVDIN : 1;
11175 unsigned CLKO : 1;
11176 unsigned CLKI : 1;
11179 struct
11181 unsigned : 1;
11182 unsigned : 1;
11183 unsigned : 1;
11184 unsigned : 1;
11185 unsigned : 1;
11186 unsigned LVDIN : 1;
11187 unsigned : 1;
11188 unsigned : 1;
11191 struct
11193 unsigned : 1;
11194 unsigned : 1;
11195 unsigned : 1;
11196 unsigned : 1;
11197 unsigned : 1;
11198 unsigned SS : 1;
11199 unsigned : 1;
11200 unsigned : 1;
11203 struct
11205 unsigned : 1;
11206 unsigned : 1;
11207 unsigned : 1;
11208 unsigned : 1;
11209 unsigned : 1;
11210 unsigned NOT_SS : 1;
11211 unsigned : 1;
11212 unsigned : 1;
11214 } __PORTAbits_t;
11216 extern __at(0x0F80) volatile __PORTAbits_t PORTAbits;
11218 #define _PORTA_RA0 0x01
11219 #define _PORTA_AN0 0x01
11220 #define _PORTA_CVREF 0x01
11221 #define _PORTA_RA1 0x02
11222 #define _PORTA_AN1 0x02
11223 #define _PORTA_RA2 0x04
11224 #define _PORTA_AN2 0x04
11225 #define _PORTA_VREFM 0x04
11226 #define _PORTA_RA3 0x08
11227 #define _PORTA_AN3 0x08
11228 #define _PORTA_VREFP 0x08
11229 #define _PORTA_RA4 0x10
11230 #define _PORTA_T0CKI 0x10
11231 #define _PORTA_RA5 0x20
11232 #define _PORTA_AN4 0x20
11233 #define _PORTA_HLVDIN 0x20
11234 #define _PORTA_LVDIN 0x20
11235 #define _PORTA_SS 0x20
11236 #define _PORTA_NOT_SS 0x20
11237 #define _PORTA_RA6 0x40
11238 #define _PORTA_OSC2 0x40
11239 #define _PORTA_CLKO 0x40
11240 #define _PORTA_RA7 0x80
11241 #define _PORTA_OSC1 0x80
11242 #define _PORTA_CLKI 0x80
11244 //==============================================================================
11247 //==============================================================================
11248 // PORTB Bits
11250 extern __at(0x0F81) __sfr PORTB;
11252 typedef union
11254 struct
11256 unsigned RB0 : 1;
11257 unsigned RB1 : 1;
11258 unsigned RB2 : 1;
11259 unsigned RB3 : 1;
11260 unsigned RB4 : 1;
11261 unsigned RB5 : 1;
11262 unsigned RB6 : 1;
11263 unsigned RB7 : 1;
11266 struct
11268 unsigned INT0 : 1;
11269 unsigned INT1 : 1;
11270 unsigned INT2 : 1;
11271 unsigned CANRX : 1;
11272 unsigned KBI0 : 1;
11273 unsigned KBI1 : 1;
11274 unsigned KBI2 : 1;
11275 unsigned KBI3 : 1;
11278 struct
11280 unsigned AN10 : 1;
11281 unsigned AN8 : 1;
11282 unsigned CANTX : 1;
11283 unsigned : 1;
11284 unsigned AN9 : 1;
11285 unsigned PGM : 1;
11286 unsigned PGC : 1;
11287 unsigned PGD : 1;
11290 struct
11292 unsigned FLT0 : 1;
11293 unsigned : 1;
11294 unsigned : 1;
11295 unsigned : 1;
11296 unsigned : 1;
11297 unsigned : 1;
11298 unsigned : 1;
11299 unsigned : 1;
11302 struct
11304 unsigned INT : 3;
11305 unsigned : 5;
11308 struct
11310 unsigned : 4;
11311 unsigned KBI : 4;
11313 } __PORTBbits_t;
11315 extern __at(0x0F81) volatile __PORTBbits_t PORTBbits;
11317 #define _PORTB_RB0 0x01
11318 #define _PORTB_INT0 0x01
11319 #define _PORTB_AN10 0x01
11320 #define _PORTB_FLT0 0x01
11321 #define _PORTB_RB1 0x02
11322 #define _PORTB_INT1 0x02
11323 #define _PORTB_AN8 0x02
11324 #define _PORTB_RB2 0x04
11325 #define _PORTB_INT2 0x04
11326 #define _PORTB_CANTX 0x04
11327 #define _PORTB_RB3 0x08
11328 #define _PORTB_CANRX 0x08
11329 #define _PORTB_RB4 0x10
11330 #define _PORTB_KBI0 0x10
11331 #define _PORTB_AN9 0x10
11332 #define _PORTB_RB5 0x20
11333 #define _PORTB_KBI1 0x20
11334 #define _PORTB_PGM 0x20
11335 #define _PORTB_RB6 0x40
11336 #define _PORTB_KBI2 0x40
11337 #define _PORTB_PGC 0x40
11338 #define _PORTB_RB7 0x80
11339 #define _PORTB_KBI3 0x80
11340 #define _PORTB_PGD 0x80
11342 //==============================================================================
11345 //==============================================================================
11346 // PORTC Bits
11348 extern __at(0x0F82) __sfr PORTC;
11350 typedef union
11352 struct
11354 unsigned RC0 : 1;
11355 unsigned RC1 : 1;
11356 unsigned RC2 : 1;
11357 unsigned RC3 : 1;
11358 unsigned RC4 : 1;
11359 unsigned RC5 : 1;
11360 unsigned RC6 : 1;
11361 unsigned RC7 : 1;
11364 struct
11366 unsigned T1OSO : 1;
11367 unsigned T1OSI : 1;
11368 unsigned CCP1 : 1;
11369 unsigned SCK : 1;
11370 unsigned SDI : 1;
11371 unsigned SDO : 1;
11372 unsigned TX : 1;
11373 unsigned RX : 1;
11376 struct
11378 unsigned T13CKI : 1;
11379 unsigned : 1;
11380 unsigned : 1;
11381 unsigned SCL : 1;
11382 unsigned SDA : 1;
11383 unsigned : 1;
11384 unsigned CK : 1;
11385 unsigned : 1;
11387 } __PORTCbits_t;
11389 extern __at(0x0F82) volatile __PORTCbits_t PORTCbits;
11391 #define _PORTC_RC0 0x01
11392 #define _PORTC_T1OSO 0x01
11393 #define _PORTC_T13CKI 0x01
11394 #define _PORTC_RC1 0x02
11395 #define _PORTC_T1OSI 0x02
11396 #define _PORTC_RC2 0x04
11397 #define _PORTC_CCP1 0x04
11398 #define _PORTC_RC3 0x08
11399 #define _PORTC_SCK 0x08
11400 #define _PORTC_SCL 0x08
11401 #define _PORTC_RC4 0x10
11402 #define _PORTC_SDI 0x10
11403 #define _PORTC_SDA 0x10
11404 #define _PORTC_RC5 0x20
11405 #define _PORTC_SDO 0x20
11406 #define _PORTC_RC6 0x40
11407 #define _PORTC_TX 0x40
11408 #define _PORTC_CK 0x40
11409 #define _PORTC_RC7 0x80
11410 #define _PORTC_RX 0x80
11412 //==============================================================================
11415 //==============================================================================
11416 // PORTE Bits
11418 extern __at(0x0F84) __sfr PORTE;
11420 typedef struct
11422 unsigned : 1;
11423 unsigned : 1;
11424 unsigned : 1;
11425 unsigned RE3 : 1;
11426 unsigned : 1;
11427 unsigned : 1;
11428 unsigned : 1;
11429 unsigned : 1;
11430 } __PORTEbits_t;
11432 extern __at(0x0F84) volatile __PORTEbits_t PORTEbits;
11434 #define _RE3 0x08
11436 //==============================================================================
11439 //==============================================================================
11440 // LATA Bits
11442 extern __at(0x0F89) __sfr LATA;
11444 typedef struct
11446 unsigned LATA0 : 1;
11447 unsigned LATA1 : 1;
11448 unsigned LATA2 : 1;
11449 unsigned LATA3 : 1;
11450 unsigned LATA4 : 1;
11451 unsigned LATA5 : 1;
11452 unsigned LATA6 : 1;
11453 unsigned LATA7 : 1;
11454 } __LATAbits_t;
11456 extern __at(0x0F89) volatile __LATAbits_t LATAbits;
11458 #define _LATA0 0x01
11459 #define _LATA1 0x02
11460 #define _LATA2 0x04
11461 #define _LATA3 0x08
11462 #define _LATA4 0x10
11463 #define _LATA5 0x20
11464 #define _LATA6 0x40
11465 #define _LATA7 0x80
11467 //==============================================================================
11470 //==============================================================================
11471 // LATB Bits
11473 extern __at(0x0F8A) __sfr LATB;
11475 typedef struct
11477 unsigned LATB0 : 1;
11478 unsigned LATB1 : 1;
11479 unsigned LATB2 : 1;
11480 unsigned LATB3 : 1;
11481 unsigned LATB4 : 1;
11482 unsigned LATB5 : 1;
11483 unsigned LATB6 : 1;
11484 unsigned LATB7 : 1;
11485 } __LATBbits_t;
11487 extern __at(0x0F8A) volatile __LATBbits_t LATBbits;
11489 #define _LATB0 0x01
11490 #define _LATB1 0x02
11491 #define _LATB2 0x04
11492 #define _LATB3 0x08
11493 #define _LATB4 0x10
11494 #define _LATB5 0x20
11495 #define _LATB6 0x40
11496 #define _LATB7 0x80
11498 //==============================================================================
11501 //==============================================================================
11502 // LATC Bits
11504 extern __at(0x0F8B) __sfr LATC;
11506 typedef struct
11508 unsigned LATC0 : 1;
11509 unsigned LATC1 : 1;
11510 unsigned LATC2 : 1;
11511 unsigned LATC3 : 1;
11512 unsigned LATC4 : 1;
11513 unsigned LATC5 : 1;
11514 unsigned LATC6 : 1;
11515 unsigned LATC7 : 1;
11516 } __LATCbits_t;
11518 extern __at(0x0F8B) volatile __LATCbits_t LATCbits;
11520 #define _LATC0 0x01
11521 #define _LATC1 0x02
11522 #define _LATC2 0x04
11523 #define _LATC3 0x08
11524 #define _LATC4 0x10
11525 #define _LATC5 0x20
11526 #define _LATC6 0x40
11527 #define _LATC7 0x80
11529 //==============================================================================
11532 //==============================================================================
11533 // DDRA Bits
11535 extern __at(0x0F92) __sfr DDRA;
11537 typedef union
11539 struct
11541 unsigned TRISA0 : 1;
11542 unsigned TRISA1 : 1;
11543 unsigned TRISA2 : 1;
11544 unsigned TRISA3 : 1;
11545 unsigned TRISA4 : 1;
11546 unsigned TRISA5 : 1;
11547 unsigned TRISA6 : 1;
11548 unsigned TRISA7 : 1;
11551 struct
11553 unsigned RA0 : 1;
11554 unsigned RA1 : 1;
11555 unsigned RA2 : 1;
11556 unsigned RA3 : 1;
11557 unsigned RA4 : 1;
11558 unsigned RA5 : 1;
11559 unsigned RA6 : 1;
11560 unsigned RA7 : 1;
11562 } __DDRAbits_t;
11564 extern __at(0x0F92) volatile __DDRAbits_t DDRAbits;
11566 #define _TRISA0 0x01
11567 #define _RA0 0x01
11568 #define _TRISA1 0x02
11569 #define _RA1 0x02
11570 #define _TRISA2 0x04
11571 #define _RA2 0x04
11572 #define _TRISA3 0x08
11573 #define _RA3 0x08
11574 #define _TRISA4 0x10
11575 #define _RA4 0x10
11576 #define _TRISA5 0x20
11577 #define _RA5 0x20
11578 #define _TRISA6 0x40
11579 #define _RA6 0x40
11580 #define _TRISA7 0x80
11581 #define _RA7 0x80
11583 //==============================================================================
11586 //==============================================================================
11587 // TRISA Bits
11589 extern __at(0x0F92) __sfr TRISA;
11591 typedef union
11593 struct
11595 unsigned TRISA0 : 1;
11596 unsigned TRISA1 : 1;
11597 unsigned TRISA2 : 1;
11598 unsigned TRISA3 : 1;
11599 unsigned TRISA4 : 1;
11600 unsigned TRISA5 : 1;
11601 unsigned TRISA6 : 1;
11602 unsigned TRISA7 : 1;
11605 struct
11607 unsigned RA0 : 1;
11608 unsigned RA1 : 1;
11609 unsigned RA2 : 1;
11610 unsigned RA3 : 1;
11611 unsigned RA4 : 1;
11612 unsigned RA5 : 1;
11613 unsigned RA6 : 1;
11614 unsigned RA7 : 1;
11616 } __TRISAbits_t;
11618 extern __at(0x0F92) volatile __TRISAbits_t TRISAbits;
11620 #define _TRISA_TRISA0 0x01
11621 #define _TRISA_RA0 0x01
11622 #define _TRISA_TRISA1 0x02
11623 #define _TRISA_RA1 0x02
11624 #define _TRISA_TRISA2 0x04
11625 #define _TRISA_RA2 0x04
11626 #define _TRISA_TRISA3 0x08
11627 #define _TRISA_RA3 0x08
11628 #define _TRISA_TRISA4 0x10
11629 #define _TRISA_RA4 0x10
11630 #define _TRISA_TRISA5 0x20
11631 #define _TRISA_RA5 0x20
11632 #define _TRISA_TRISA6 0x40
11633 #define _TRISA_RA6 0x40
11634 #define _TRISA_TRISA7 0x80
11635 #define _TRISA_RA7 0x80
11637 //==============================================================================
11640 //==============================================================================
11641 // DDRB Bits
11643 extern __at(0x0F93) __sfr DDRB;
11645 typedef union
11647 struct
11649 unsigned TRISB0 : 1;
11650 unsigned TRISB1 : 1;
11651 unsigned TRISB2 : 1;
11652 unsigned TRISB3 : 1;
11653 unsigned TRISB4 : 1;
11654 unsigned TRISB5 : 1;
11655 unsigned TRISB6 : 1;
11656 unsigned TRISB7 : 1;
11659 struct
11661 unsigned RB0 : 1;
11662 unsigned RB1 : 1;
11663 unsigned RB2 : 1;
11664 unsigned RB3 : 1;
11665 unsigned RB4 : 1;
11666 unsigned RB5 : 1;
11667 unsigned RB6 : 1;
11668 unsigned RB7 : 1;
11670 } __DDRBbits_t;
11672 extern __at(0x0F93) volatile __DDRBbits_t DDRBbits;
11674 #define _DDRB_TRISB0 0x01
11675 #define _DDRB_RB0 0x01
11676 #define _DDRB_TRISB1 0x02
11677 #define _DDRB_RB1 0x02
11678 #define _DDRB_TRISB2 0x04
11679 #define _DDRB_RB2 0x04
11680 #define _DDRB_TRISB3 0x08
11681 #define _DDRB_RB3 0x08
11682 #define _DDRB_TRISB4 0x10
11683 #define _DDRB_RB4 0x10
11684 #define _DDRB_TRISB5 0x20
11685 #define _DDRB_RB5 0x20
11686 #define _DDRB_TRISB6 0x40
11687 #define _DDRB_RB6 0x40
11688 #define _DDRB_TRISB7 0x80
11689 #define _DDRB_RB7 0x80
11691 //==============================================================================
11694 //==============================================================================
11695 // TRISB Bits
11697 extern __at(0x0F93) __sfr TRISB;
11699 typedef union
11701 struct
11703 unsigned TRISB0 : 1;
11704 unsigned TRISB1 : 1;
11705 unsigned TRISB2 : 1;
11706 unsigned TRISB3 : 1;
11707 unsigned TRISB4 : 1;
11708 unsigned TRISB5 : 1;
11709 unsigned TRISB6 : 1;
11710 unsigned TRISB7 : 1;
11713 struct
11715 unsigned RB0 : 1;
11716 unsigned RB1 : 1;
11717 unsigned RB2 : 1;
11718 unsigned RB3 : 1;
11719 unsigned RB4 : 1;
11720 unsigned RB5 : 1;
11721 unsigned RB6 : 1;
11722 unsigned RB7 : 1;
11724 } __TRISBbits_t;
11726 extern __at(0x0F93) volatile __TRISBbits_t TRISBbits;
11728 #define _TRISB_TRISB0 0x01
11729 #define _TRISB_RB0 0x01
11730 #define _TRISB_TRISB1 0x02
11731 #define _TRISB_RB1 0x02
11732 #define _TRISB_TRISB2 0x04
11733 #define _TRISB_RB2 0x04
11734 #define _TRISB_TRISB3 0x08
11735 #define _TRISB_RB3 0x08
11736 #define _TRISB_TRISB4 0x10
11737 #define _TRISB_RB4 0x10
11738 #define _TRISB_TRISB5 0x20
11739 #define _TRISB_RB5 0x20
11740 #define _TRISB_TRISB6 0x40
11741 #define _TRISB_RB6 0x40
11742 #define _TRISB_TRISB7 0x80
11743 #define _TRISB_RB7 0x80
11745 //==============================================================================
11748 //==============================================================================
11749 // DDRC Bits
11751 extern __at(0x0F94) __sfr DDRC;
11753 typedef union
11755 struct
11757 unsigned TRISC0 : 1;
11758 unsigned TRISC1 : 1;
11759 unsigned TRISC2 : 1;
11760 unsigned TRISC3 : 1;
11761 unsigned TRISC4 : 1;
11762 unsigned TRISC5 : 1;
11763 unsigned TRISC6 : 1;
11764 unsigned TRISC7 : 1;
11767 struct
11769 unsigned RC0 : 1;
11770 unsigned RC1 : 1;
11771 unsigned RC2 : 1;
11772 unsigned RC3 : 1;
11773 unsigned RC4 : 1;
11774 unsigned RC5 : 1;
11775 unsigned RC6 : 1;
11776 unsigned RC7 : 1;
11778 } __DDRCbits_t;
11780 extern __at(0x0F94) volatile __DDRCbits_t DDRCbits;
11782 #define _TRISC0 0x01
11783 #define _RC0 0x01
11784 #define _TRISC1 0x02
11785 #define _RC1 0x02
11786 #define _TRISC2 0x04
11787 #define _RC2 0x04
11788 #define _TRISC3 0x08
11789 #define _RC3 0x08
11790 #define _TRISC4 0x10
11791 #define _RC4 0x10
11792 #define _TRISC5 0x20
11793 #define _RC5 0x20
11794 #define _TRISC6 0x40
11795 #define _RC6 0x40
11796 #define _TRISC7 0x80
11797 #define _RC7 0x80
11799 //==============================================================================
11802 //==============================================================================
11803 // TRISC Bits
11805 extern __at(0x0F94) __sfr TRISC;
11807 typedef union
11809 struct
11811 unsigned TRISC0 : 1;
11812 unsigned TRISC1 : 1;
11813 unsigned TRISC2 : 1;
11814 unsigned TRISC3 : 1;
11815 unsigned TRISC4 : 1;
11816 unsigned TRISC5 : 1;
11817 unsigned TRISC6 : 1;
11818 unsigned TRISC7 : 1;
11821 struct
11823 unsigned RC0 : 1;
11824 unsigned RC1 : 1;
11825 unsigned RC2 : 1;
11826 unsigned RC3 : 1;
11827 unsigned RC4 : 1;
11828 unsigned RC5 : 1;
11829 unsigned RC6 : 1;
11830 unsigned RC7 : 1;
11832 } __TRISCbits_t;
11834 extern __at(0x0F94) volatile __TRISCbits_t TRISCbits;
11836 #define _TRISC_TRISC0 0x01
11837 #define _TRISC_RC0 0x01
11838 #define _TRISC_TRISC1 0x02
11839 #define _TRISC_RC1 0x02
11840 #define _TRISC_TRISC2 0x04
11841 #define _TRISC_RC2 0x04
11842 #define _TRISC_TRISC3 0x08
11843 #define _TRISC_RC3 0x08
11844 #define _TRISC_TRISC4 0x10
11845 #define _TRISC_RC4 0x10
11846 #define _TRISC_TRISC5 0x20
11847 #define _TRISC_RC5 0x20
11848 #define _TRISC_TRISC6 0x40
11849 #define _TRISC_RC6 0x40
11850 #define _TRISC_TRISC7 0x80
11851 #define _TRISC_RC7 0x80
11853 //==============================================================================
11856 //==============================================================================
11857 // OSCTUNE Bits
11859 extern __at(0x0F9B) __sfr OSCTUNE;
11861 typedef union
11863 struct
11865 unsigned TUN0 : 1;
11866 unsigned TUN1 : 1;
11867 unsigned TUN2 : 1;
11868 unsigned TUN3 : 1;
11869 unsigned TUN4 : 1;
11870 unsigned : 1;
11871 unsigned PLLEN : 1;
11872 unsigned INTSRC : 1;
11875 struct
11877 unsigned : 1;
11878 unsigned : 1;
11879 unsigned : 1;
11880 unsigned : 1;
11881 unsigned : 1;
11882 unsigned : 1;
11883 unsigned : 1;
11884 unsigned INTSCR : 1;
11887 struct
11889 unsigned TUN : 5;
11890 unsigned : 3;
11892 } __OSCTUNEbits_t;
11894 extern __at(0x0F9B) volatile __OSCTUNEbits_t OSCTUNEbits;
11896 #define _TUN0 0x01
11897 #define _TUN1 0x02
11898 #define _TUN2 0x04
11899 #define _TUN3 0x08
11900 #define _TUN4 0x10
11901 #define _PLLEN 0x40
11902 #define _INTSRC 0x80
11903 #define _INTSCR 0x80
11905 //==============================================================================
11908 //==============================================================================
11909 // PIE1 Bits
11911 extern __at(0x0F9D) __sfr PIE1;
11913 typedef struct
11915 unsigned TMR1IE : 1;
11916 unsigned TMR2IE : 1;
11917 unsigned CCP1IE : 1;
11918 unsigned SSPIE : 1;
11919 unsigned TXIE : 1;
11920 unsigned RCIE : 1;
11921 unsigned ADIE : 1;
11922 unsigned : 1;
11923 } __PIE1bits_t;
11925 extern __at(0x0F9D) volatile __PIE1bits_t PIE1bits;
11927 #define _TMR1IE 0x01
11928 #define _TMR2IE 0x02
11929 #define _CCP1IE 0x04
11930 #define _SSPIE 0x08
11931 #define _TXIE 0x10
11932 #define _RCIE 0x20
11933 #define _ADIE 0x40
11935 //==============================================================================
11938 //==============================================================================
11939 // PIR1 Bits
11941 extern __at(0x0F9E) __sfr PIR1;
11943 typedef struct
11945 unsigned TMR1IF : 1;
11946 unsigned TMR2IF : 1;
11947 unsigned CCP1IF : 1;
11948 unsigned SSPIF : 1;
11949 unsigned TXIF : 1;
11950 unsigned RCIF : 1;
11951 unsigned ADIF : 1;
11952 unsigned : 1;
11953 } __PIR1bits_t;
11955 extern __at(0x0F9E) volatile __PIR1bits_t PIR1bits;
11957 #define _TMR1IF 0x01
11958 #define _TMR2IF 0x02
11959 #define _CCP1IF 0x04
11960 #define _SSPIF 0x08
11961 #define _TXIF 0x10
11962 #define _RCIF 0x20
11963 #define _ADIF 0x40
11965 //==============================================================================
11968 //==============================================================================
11969 // IPR1 Bits
11971 extern __at(0x0F9F) __sfr IPR1;
11973 typedef union
11975 struct
11977 unsigned TMR1IP : 1;
11978 unsigned TMR2IP : 1;
11979 unsigned CCP1IP : 1;
11980 unsigned SSPIP : 1;
11981 unsigned TXIP : 1;
11982 unsigned RCIP : 1;
11983 unsigned ADIP : 1;
11984 unsigned : 1;
11987 struct
11989 unsigned : 1;
11990 unsigned : 1;
11991 unsigned : 1;
11992 unsigned : 1;
11993 unsigned TXBIP : 1;
11994 unsigned : 1;
11995 unsigned : 1;
11996 unsigned : 1;
11998 } __IPR1bits_t;
12000 extern __at(0x0F9F) volatile __IPR1bits_t IPR1bits;
12002 #define _TMR1IP 0x01
12003 #define _TMR2IP 0x02
12004 #define _CCP1IP 0x04
12005 #define _SSPIP 0x08
12006 #define _TXIP 0x10
12007 #define _TXBIP 0x10
12008 #define _RCIP 0x20
12009 #define _ADIP 0x40
12011 //==============================================================================
12014 //==============================================================================
12015 // PIE2 Bits
12017 extern __at(0x0FA0) __sfr PIE2;
12019 typedef union
12021 struct
12023 unsigned : 1;
12024 unsigned TMR3IE : 1;
12025 unsigned HLVDIE : 1;
12026 unsigned BCLIE : 1;
12027 unsigned EEIE : 1;
12028 unsigned : 1;
12029 unsigned : 1;
12030 unsigned OSCFIE : 1;
12033 struct
12035 unsigned : 1;
12036 unsigned : 1;
12037 unsigned LVDIE : 1;
12038 unsigned : 1;
12039 unsigned : 1;
12040 unsigned : 1;
12041 unsigned : 1;
12042 unsigned : 1;
12044 } __PIE2bits_t;
12046 extern __at(0x0FA0) volatile __PIE2bits_t PIE2bits;
12048 #define _TMR3IE 0x02
12049 #define _HLVDIE 0x04
12050 #define _LVDIE 0x04
12051 #define _BCLIE 0x08
12052 #define _EEIE 0x10
12053 #define _OSCFIE 0x80
12055 //==============================================================================
12058 //==============================================================================
12059 // PIR2 Bits
12061 extern __at(0x0FA1) __sfr PIR2;
12063 typedef union
12065 struct
12067 unsigned : 1;
12068 unsigned TMR3IF : 1;
12069 unsigned HLVDIF : 1;
12070 unsigned BCLIF : 1;
12071 unsigned EEIF : 1;
12072 unsigned : 1;
12073 unsigned : 1;
12074 unsigned OSCFIF : 1;
12077 struct
12079 unsigned : 1;
12080 unsigned : 1;
12081 unsigned LVDIF : 1;
12082 unsigned : 1;
12083 unsigned : 1;
12084 unsigned : 1;
12085 unsigned : 1;
12086 unsigned : 1;
12088 } __PIR2bits_t;
12090 extern __at(0x0FA1) volatile __PIR2bits_t PIR2bits;
12092 #define _TMR3IF 0x02
12093 #define _HLVDIF 0x04
12094 #define _LVDIF 0x04
12095 #define _BCLIF 0x08
12096 #define _EEIF 0x10
12097 #define _OSCFIF 0x80
12099 //==============================================================================
12102 //==============================================================================
12103 // IPR2 Bits
12105 extern __at(0x0FA2) __sfr IPR2;
12107 typedef union
12109 struct
12111 unsigned : 1;
12112 unsigned TMR3IP : 1;
12113 unsigned HLVDIP : 1;
12114 unsigned BCLIP : 1;
12115 unsigned EEIP : 1;
12116 unsigned : 1;
12117 unsigned : 1;
12118 unsigned OSCFIP : 1;
12121 struct
12123 unsigned : 1;
12124 unsigned : 1;
12125 unsigned LVDIP : 1;
12126 unsigned : 1;
12127 unsigned : 1;
12128 unsigned : 1;
12129 unsigned : 1;
12130 unsigned : 1;
12132 } __IPR2bits_t;
12134 extern __at(0x0FA2) volatile __IPR2bits_t IPR2bits;
12136 #define _TMR3IP 0x02
12137 #define _HLVDIP 0x04
12138 #define _LVDIP 0x04
12139 #define _BCLIP 0x08
12140 #define _EEIP 0x10
12141 #define _OSCFIP 0x80
12143 //==============================================================================
12146 //==============================================================================
12147 // PIE3 Bits
12149 extern __at(0x0FA3) __sfr PIE3;
12151 typedef union
12153 struct
12155 unsigned RXB0IE : 1;
12156 unsigned RXB1IE : 1;
12157 unsigned TXB0IE : 1;
12158 unsigned TXB1IE : 1;
12159 unsigned TXB2IE : 1;
12160 unsigned ERRIE : 1;
12161 unsigned WAKIE : 1;
12162 unsigned IRXIE : 1;
12165 struct
12167 unsigned FIFOWMIE : 1;
12168 unsigned RXBnIE : 1;
12169 unsigned : 1;
12170 unsigned : 1;
12171 unsigned TXBnIE : 1;
12172 unsigned : 1;
12173 unsigned : 1;
12174 unsigned : 1;
12177 struct
12179 unsigned FIFOMWIE : 1;
12180 unsigned : 1;
12181 unsigned : 1;
12182 unsigned : 1;
12183 unsigned : 1;
12184 unsigned : 1;
12185 unsigned : 1;
12186 unsigned : 1;
12188 } __PIE3bits_t;
12190 extern __at(0x0FA3) volatile __PIE3bits_t PIE3bits;
12192 #define _PIE3_RXB0IE 0x01
12193 #define _PIE3_FIFOWMIE 0x01
12194 #define _PIE3_FIFOMWIE 0x01
12195 #define _PIE3_RXB1IE 0x02
12196 #define _PIE3_RXBnIE 0x02
12197 #define _PIE3_TXB0IE 0x04
12198 #define _PIE3_TXB1IE 0x08
12199 #define _PIE3_TXB2IE 0x10
12200 #define _PIE3_TXBnIE 0x10
12201 #define _PIE3_ERRIE 0x20
12202 #define _PIE3_WAKIE 0x40
12203 #define _PIE3_IRXIE 0x80
12205 //==============================================================================
12208 //==============================================================================
12209 // PIR3 Bits
12211 extern __at(0x0FA4) __sfr PIR3;
12213 typedef union
12215 struct
12217 unsigned RXB0IF : 1;
12218 unsigned RXB1IF : 1;
12219 unsigned TXB0IF : 1;
12220 unsigned TXB1IF : 1;
12221 unsigned TXB2IF : 1;
12222 unsigned ERRIF : 1;
12223 unsigned WAKIF : 1;
12224 unsigned IRXIF : 1;
12227 struct
12229 unsigned FIFOWMIF : 1;
12230 unsigned RXBnIF : 1;
12231 unsigned : 1;
12232 unsigned : 1;
12233 unsigned TXBnIF : 1;
12234 unsigned : 1;
12235 unsigned : 1;
12236 unsigned : 1;
12238 } __PIR3bits_t;
12240 extern __at(0x0FA4) volatile __PIR3bits_t PIR3bits;
12242 #define _RXB0IF 0x01
12243 #define _FIFOWMIF 0x01
12244 #define _RXB1IF 0x02
12245 #define _RXBnIF 0x02
12246 #define _TXB0IF 0x04
12247 #define _TXB1IF 0x08
12248 #define _TXB2IF 0x10
12249 #define _TXBnIF 0x10
12250 #define _ERRIF 0x20
12251 #define _WAKIF 0x40
12252 #define _IRXIF 0x80
12254 //==============================================================================
12257 //==============================================================================
12258 // IPR3 Bits
12260 extern __at(0x0FA5) __sfr IPR3;
12262 typedef union
12264 struct
12266 unsigned RXB0IP : 1;
12267 unsigned RXB1IP : 1;
12268 unsigned TXB0IP : 1;
12269 unsigned TXB1IP : 1;
12270 unsigned TXB2IP : 1;
12271 unsigned ERRIP : 1;
12272 unsigned WAKIP : 1;
12273 unsigned IRXIP : 1;
12276 struct
12278 unsigned FIFOWMIP : 1;
12279 unsigned RXBnIP : 1;
12280 unsigned : 1;
12281 unsigned : 1;
12282 unsigned TXBnIP : 1;
12283 unsigned : 1;
12284 unsigned : 1;
12285 unsigned : 1;
12287 } __IPR3bits_t;
12289 extern __at(0x0FA5) volatile __IPR3bits_t IPR3bits;
12291 #define _RXB0IP 0x01
12292 #define _FIFOWMIP 0x01
12293 #define _RXB1IP 0x02
12294 #define _RXBnIP 0x02
12295 #define _TXB0IP 0x04
12296 #define _TXB1IP 0x08
12297 #define _TXB2IP 0x10
12298 #define _TXBnIP 0x10
12299 #define _ERRIP 0x20
12300 #define _WAKIP 0x40
12301 #define _IRXIP 0x80
12303 //==============================================================================
12306 //==============================================================================
12307 // EECON1 Bits
12309 extern __at(0x0FA6) __sfr EECON1;
12311 typedef struct
12313 unsigned RD : 1;
12314 unsigned WR : 1;
12315 unsigned WREN : 1;
12316 unsigned WRERR : 1;
12317 unsigned FREE : 1;
12318 unsigned : 1;
12319 unsigned CFGS : 1;
12320 unsigned EEPGD : 1;
12321 } __EECON1bits_t;
12323 extern __at(0x0FA6) volatile __EECON1bits_t EECON1bits;
12325 #define _RD 0x01
12326 #define _WR 0x02
12327 #define _WREN 0x04
12328 #define _WRERR 0x08
12329 #define _FREE 0x10
12330 #define _CFGS 0x40
12331 #define _EEPGD 0x80
12333 //==============================================================================
12335 extern __at(0x0FA7) __sfr EECON2;
12336 extern __at(0x0FA8) __sfr EEDATA;
12337 extern __at(0x0FA9) __sfr EEADR;
12338 extern __at(0x0FAA) __sfr EEADRH;
12340 //==============================================================================
12341 // RCSTA Bits
12343 extern __at(0x0FAB) __sfr RCSTA;
12345 typedef union
12347 struct
12349 unsigned RX9D : 1;
12350 unsigned OERR : 1;
12351 unsigned FERR : 1;
12352 unsigned ADDEN : 1;
12353 unsigned CREN : 1;
12354 unsigned SREN : 1;
12355 unsigned RX9 : 1;
12356 unsigned SPEN : 1;
12359 struct
12361 unsigned : 1;
12362 unsigned : 1;
12363 unsigned : 1;
12364 unsigned ADEN : 1;
12365 unsigned : 1;
12366 unsigned : 1;
12367 unsigned : 1;
12368 unsigned : 1;
12370 } __RCSTAbits_t;
12372 extern __at(0x0FAB) volatile __RCSTAbits_t RCSTAbits;
12374 #define _RX9D 0x01
12375 #define _OERR 0x02
12376 #define _FERR 0x04
12377 #define _ADDEN 0x08
12378 #define _ADEN 0x08
12379 #define _CREN 0x10
12380 #define _SREN 0x20
12381 #define _RX9 0x40
12382 #define _SPEN 0x80
12384 //==============================================================================
12387 //==============================================================================
12388 // TXSTA Bits
12390 extern __at(0x0FAC) __sfr TXSTA;
12392 typedef struct
12394 unsigned TX9D : 1;
12395 unsigned TRMT : 1;
12396 unsigned BRGH : 1;
12397 unsigned SENDB : 1;
12398 unsigned SYNC : 1;
12399 unsigned TXEN : 1;
12400 unsigned TX9 : 1;
12401 unsigned CSRC : 1;
12402 } __TXSTAbits_t;
12404 extern __at(0x0FAC) volatile __TXSTAbits_t TXSTAbits;
12406 #define _TX9D 0x01
12407 #define _TRMT 0x02
12408 #define _BRGH 0x04
12409 #define _SENDB 0x08
12410 #define _SYNC 0x10
12411 #define _TXEN 0x20
12412 #define _TX9 0x40
12413 #define _CSRC 0x80
12415 //==============================================================================
12417 extern __at(0x0FAD) __sfr TXREG;
12418 extern __at(0x0FAE) __sfr RCREG;
12419 extern __at(0x0FAF) __sfr SPBRG;
12420 extern __at(0x0FB0) __sfr SPBRGH;
12422 //==============================================================================
12423 // T3CON Bits
12425 extern __at(0x0FB1) __sfr T3CON;
12427 typedef union
12429 struct
12431 unsigned TMR3ON : 1;
12432 unsigned TMR3CS : 1;
12433 unsigned NOT_T3SYNC : 1;
12434 unsigned T3CCP1 : 1;
12435 unsigned T3CKPS0 : 1;
12436 unsigned T3CKPS1 : 1;
12437 unsigned T3ECCP1 : 1;
12438 unsigned RD16 : 1;
12441 struct
12443 unsigned : 1;
12444 unsigned : 1;
12445 unsigned T3SYNC : 1;
12446 unsigned : 1;
12447 unsigned : 1;
12448 unsigned : 1;
12449 unsigned T3CCP2 : 1;
12450 unsigned : 1;
12453 struct
12455 unsigned : 1;
12456 unsigned : 1;
12457 unsigned T3NSYNC : 1;
12458 unsigned : 1;
12459 unsigned : 1;
12460 unsigned : 1;
12461 unsigned : 1;
12462 unsigned : 1;
12465 struct
12467 unsigned : 4;
12468 unsigned T3CKPS : 2;
12469 unsigned : 2;
12471 } __T3CONbits_t;
12473 extern __at(0x0FB1) volatile __T3CONbits_t T3CONbits;
12475 #define _T3CON_TMR3ON 0x01
12476 #define _T3CON_TMR3CS 0x02
12477 #define _T3CON_NOT_T3SYNC 0x04
12478 #define _T3CON_T3SYNC 0x04
12479 #define _T3CON_T3NSYNC 0x04
12480 #define _T3CON_T3CCP1 0x08
12481 #define _T3CON_T3CKPS0 0x10
12482 #define _T3CON_T3CKPS1 0x20
12483 #define _T3CON_T3ECCP1 0x40
12484 #define _T3CON_T3CCP2 0x40
12485 #define _T3CON_RD16 0x80
12487 //==============================================================================
12489 extern __at(0x0FB2) __sfr TMR3;
12490 extern __at(0x0FB2) __sfr TMR3L;
12491 extern __at(0x0FB3) __sfr TMR3H;
12493 //==============================================================================
12494 // BAUDCON Bits
12496 extern __at(0x0FB8) __sfr BAUDCON;
12498 typedef union
12500 struct
12502 unsigned ABDEN : 1;
12503 unsigned WUE : 1;
12504 unsigned : 1;
12505 unsigned BRG16 : 1;
12506 unsigned TXCKP : 1;
12507 unsigned RXDTP : 1;
12508 unsigned RCIDL : 1;
12509 unsigned ABDOVF : 1;
12512 struct
12514 unsigned : 1;
12515 unsigned : 1;
12516 unsigned : 1;
12517 unsigned : 1;
12518 unsigned SCKP : 1;
12519 unsigned : 1;
12520 unsigned : 1;
12521 unsigned : 1;
12523 } __BAUDCONbits_t;
12525 extern __at(0x0FB8) volatile __BAUDCONbits_t BAUDCONbits;
12527 #define _ABDEN 0x01
12528 #define _WUE 0x02
12529 #define _BRG16 0x08
12530 #define _TXCKP 0x10
12531 #define _SCKP 0x10
12532 #define _RXDTP 0x20
12533 #define _RCIDL 0x40
12534 #define _ABDOVF 0x80
12536 //==============================================================================
12539 //==============================================================================
12540 // BAUDCTL Bits
12542 extern __at(0x0FB8) __sfr BAUDCTL;
12544 typedef union
12546 struct
12548 unsigned ABDEN : 1;
12549 unsigned WUE : 1;
12550 unsigned : 1;
12551 unsigned BRG16 : 1;
12552 unsigned TXCKP : 1;
12553 unsigned RXDTP : 1;
12554 unsigned RCIDL : 1;
12555 unsigned ABDOVF : 1;
12558 struct
12560 unsigned : 1;
12561 unsigned : 1;
12562 unsigned : 1;
12563 unsigned : 1;
12564 unsigned SCKP : 1;
12565 unsigned : 1;
12566 unsigned : 1;
12567 unsigned : 1;
12569 } __BAUDCTLbits_t;
12571 extern __at(0x0FB8) volatile __BAUDCTLbits_t BAUDCTLbits;
12573 #define _BAUDCTL_ABDEN 0x01
12574 #define _BAUDCTL_WUE 0x02
12575 #define _BAUDCTL_BRG16 0x08
12576 #define _BAUDCTL_TXCKP 0x10
12577 #define _BAUDCTL_SCKP 0x10
12578 #define _BAUDCTL_RXDTP 0x20
12579 #define _BAUDCTL_RCIDL 0x40
12580 #define _BAUDCTL_ABDOVF 0x80
12582 //==============================================================================
12585 //==============================================================================
12586 // CCP1CON Bits
12588 extern __at(0x0FBD) __sfr CCP1CON;
12590 typedef union
12592 struct
12594 unsigned CCP1M0 : 1;
12595 unsigned CCP1M1 : 1;
12596 unsigned CCP1M2 : 1;
12597 unsigned CCP1M3 : 1;
12598 unsigned DC1B0 : 1;
12599 unsigned DC1B1 : 1;
12600 unsigned : 1;
12601 unsigned : 1;
12604 struct
12606 unsigned CCP1M : 4;
12607 unsigned : 4;
12610 struct
12612 unsigned : 4;
12613 unsigned DC1B : 2;
12614 unsigned : 2;
12616 } __CCP1CONbits_t;
12618 extern __at(0x0FBD) volatile __CCP1CONbits_t CCP1CONbits;
12620 #define _CCP1M0 0x01
12621 #define _CCP1M1 0x02
12622 #define _CCP1M2 0x04
12623 #define _CCP1M3 0x08
12624 #define _DC1B0 0x10
12625 #define _DC1B1 0x20
12627 //==============================================================================
12629 extern __at(0x0FBE) __sfr CCPR1;
12630 extern __at(0x0FBE) __sfr CCPR1L;
12631 extern __at(0x0FBF) __sfr CCPR1H;
12633 //==============================================================================
12634 // ADCON2 Bits
12636 extern __at(0x0FC0) __sfr ADCON2;
12638 typedef union
12640 struct
12642 unsigned ADCS0 : 1;
12643 unsigned ADCS1 : 1;
12644 unsigned ADCS2 : 1;
12645 unsigned ACQT0 : 1;
12646 unsigned ACQT1 : 1;
12647 unsigned ACQT2 : 1;
12648 unsigned : 1;
12649 unsigned ADFM : 1;
12652 struct
12654 unsigned ADCS : 3;
12655 unsigned : 5;
12658 struct
12660 unsigned : 3;
12661 unsigned ACQT : 3;
12662 unsigned : 2;
12664 } __ADCON2bits_t;
12666 extern __at(0x0FC0) volatile __ADCON2bits_t ADCON2bits;
12668 #define _ADCS0 0x01
12669 #define _ADCS1 0x02
12670 #define _ADCS2 0x04
12671 #define _ACQT0 0x08
12672 #define _ACQT1 0x10
12673 #define _ACQT2 0x20
12674 #define _ADFM 0x80
12676 //==============================================================================
12679 //==============================================================================
12680 // ADCON1 Bits
12682 extern __at(0x0FC1) __sfr ADCON1;
12684 typedef union
12686 struct
12688 unsigned PCFG0 : 1;
12689 unsigned PCFG1 : 1;
12690 unsigned PCFG2 : 1;
12691 unsigned PCFG3 : 1;
12692 unsigned VCFG0 : 1;
12693 unsigned VCFG1 : 1;
12694 unsigned : 1;
12695 unsigned : 1;
12698 struct
12700 unsigned PCFG : 4;
12701 unsigned : 4;
12704 struct
12706 unsigned : 4;
12707 unsigned VCFG : 2;
12708 unsigned : 2;
12710 } __ADCON1bits_t;
12712 extern __at(0x0FC1) volatile __ADCON1bits_t ADCON1bits;
12714 #define _PCFG0 0x01
12715 #define _PCFG1 0x02
12716 #define _PCFG2 0x04
12717 #define _PCFG3 0x08
12718 #define _VCFG0 0x10
12719 #define _VCFG1 0x20
12721 //==============================================================================
12724 //==============================================================================
12725 // ADCON0 Bits
12727 extern __at(0x0FC2) __sfr ADCON0;
12729 typedef union
12731 struct
12733 unsigned ADON : 1;
12734 unsigned GO_NOT_DONE : 1;
12735 unsigned CHS0 : 1;
12736 unsigned CHS1 : 1;
12737 unsigned CHS2 : 1;
12738 unsigned CHS3 : 1;
12739 unsigned : 1;
12740 unsigned : 1;
12743 struct
12745 unsigned : 1;
12746 unsigned GO_DONE : 1;
12747 unsigned : 1;
12748 unsigned : 1;
12749 unsigned : 1;
12750 unsigned : 1;
12751 unsigned : 1;
12752 unsigned : 1;
12755 struct
12757 unsigned : 1;
12758 unsigned DONE : 1;
12759 unsigned : 1;
12760 unsigned : 1;
12761 unsigned : 1;
12762 unsigned : 1;
12763 unsigned : 1;
12764 unsigned : 1;
12767 struct
12769 unsigned : 1;
12770 unsigned GO : 1;
12771 unsigned : 1;
12772 unsigned : 1;
12773 unsigned : 1;
12774 unsigned : 1;
12775 unsigned : 1;
12776 unsigned : 1;
12779 struct
12781 unsigned : 1;
12782 unsigned NOT_DONE : 1;
12783 unsigned : 1;
12784 unsigned : 1;
12785 unsigned : 1;
12786 unsigned : 1;
12787 unsigned : 1;
12788 unsigned : 1;
12791 struct
12793 unsigned : 2;
12794 unsigned CHS : 4;
12795 unsigned : 2;
12797 } __ADCON0bits_t;
12799 extern __at(0x0FC2) volatile __ADCON0bits_t ADCON0bits;
12801 #define _ADON 0x01
12802 #define _GO_NOT_DONE 0x02
12803 #define _GO_DONE 0x02
12804 #define _DONE 0x02
12805 #define _GO 0x02
12806 #define _NOT_DONE 0x02
12807 #define _CHS0 0x04
12808 #define _CHS1 0x08
12809 #define _CHS2 0x10
12810 #define _CHS3 0x20
12812 //==============================================================================
12814 extern __at(0x0FC3) __sfr ADRES;
12815 extern __at(0x0FC3) __sfr ADRESL;
12816 extern __at(0x0FC4) __sfr ADRESH;
12818 //==============================================================================
12819 // SSPCON2 Bits
12821 extern __at(0x0FC5) __sfr SSPCON2;
12823 typedef struct
12825 unsigned SEN : 1;
12826 unsigned RSEN : 1;
12827 unsigned PEN : 1;
12828 unsigned RCEN : 1;
12829 unsigned ACKEN : 1;
12830 unsigned ACKDT : 1;
12831 unsigned ACKSTAT : 1;
12832 unsigned GCEN : 1;
12833 } __SSPCON2bits_t;
12835 extern __at(0x0FC5) volatile __SSPCON2bits_t SSPCON2bits;
12837 #define _SEN 0x01
12838 #define _RSEN 0x02
12839 #define _PEN 0x04
12840 #define _RCEN 0x08
12841 #define _ACKEN 0x10
12842 #define _ACKDT 0x20
12843 #define _ACKSTAT 0x40
12844 #define _GCEN 0x80
12846 //==============================================================================
12849 //==============================================================================
12850 // SSPCON1 Bits
12852 extern __at(0x0FC6) __sfr SSPCON1;
12854 typedef union
12856 struct
12858 unsigned SSPM0 : 1;
12859 unsigned SSPM1 : 1;
12860 unsigned SSPM2 : 1;
12861 unsigned SSPM3 : 1;
12862 unsigned CKP : 1;
12863 unsigned SSPEN : 1;
12864 unsigned SSPOV : 1;
12865 unsigned WCOL : 1;
12868 struct
12870 unsigned SSPM : 4;
12871 unsigned : 4;
12873 } __SSPCON1bits_t;
12875 extern __at(0x0FC6) volatile __SSPCON1bits_t SSPCON1bits;
12877 #define _SSPM0 0x01
12878 #define _SSPM1 0x02
12879 #define _SSPM2 0x04
12880 #define _SSPM3 0x08
12881 #define _CKP 0x10
12882 #define _SSPEN 0x20
12883 #define _SSPOV 0x40
12884 #define _WCOL 0x80
12886 //==============================================================================
12889 //==============================================================================
12890 // SSPSTAT Bits
12892 extern __at(0x0FC7) __sfr SSPSTAT;
12894 typedef union
12896 struct
12898 unsigned BF : 1;
12899 unsigned UA : 1;
12900 unsigned R_NOT_W : 1;
12901 unsigned S : 1;
12902 unsigned P : 1;
12903 unsigned D_NOT_A : 1;
12904 unsigned CKE : 1;
12905 unsigned SMP : 1;
12908 struct
12910 unsigned : 1;
12911 unsigned : 1;
12912 unsigned R_W : 1;
12913 unsigned I2C_START : 1;
12914 unsigned I2C_STOP : 1;
12915 unsigned D_A : 1;
12916 unsigned : 1;
12917 unsigned : 1;
12920 struct
12922 unsigned : 1;
12923 unsigned : 1;
12924 unsigned I2C_READ : 1;
12925 unsigned : 1;
12926 unsigned : 1;
12927 unsigned I2C_DAT : 1;
12928 unsigned : 1;
12929 unsigned : 1;
12932 struct
12934 unsigned : 1;
12935 unsigned : 1;
12936 unsigned NOT_W : 1;
12937 unsigned : 1;
12938 unsigned : 1;
12939 unsigned NOT_A : 1;
12940 unsigned : 1;
12941 unsigned : 1;
12944 struct
12946 unsigned : 1;
12947 unsigned : 1;
12948 unsigned NOT_WRITE : 1;
12949 unsigned : 1;
12950 unsigned : 1;
12951 unsigned NOT_ADDRESS : 1;
12952 unsigned : 1;
12953 unsigned : 1;
12956 struct
12958 unsigned : 1;
12959 unsigned : 1;
12960 unsigned READ_WRITE : 1;
12961 unsigned : 1;
12962 unsigned : 1;
12963 unsigned DATA_ADDRESS : 1;
12964 unsigned : 1;
12965 unsigned : 1;
12968 struct
12970 unsigned : 1;
12971 unsigned : 1;
12972 unsigned R : 1;
12973 unsigned : 1;
12974 unsigned : 1;
12975 unsigned D : 1;
12976 unsigned : 1;
12977 unsigned : 1;
12979 } __SSPSTATbits_t;
12981 extern __at(0x0FC7) volatile __SSPSTATbits_t SSPSTATbits;
12983 #define _BF 0x01
12984 #define _UA 0x02
12985 #define _R_NOT_W 0x04
12986 #define _R_W 0x04
12987 #define _I2C_READ 0x04
12988 #define _NOT_W 0x04
12989 #define _NOT_WRITE 0x04
12990 #define _READ_WRITE 0x04
12991 #define _R 0x04
12992 #define _S 0x08
12993 #define _I2C_START 0x08
12994 #define _P 0x10
12995 #define _I2C_STOP 0x10
12996 #define _D_NOT_A 0x20
12997 #define _D_A 0x20
12998 #define _I2C_DAT 0x20
12999 #define _NOT_A 0x20
13000 #define _NOT_ADDRESS 0x20
13001 #define _DATA_ADDRESS 0x20
13002 #define _D 0x20
13003 #define _CKE 0x40
13004 #define _SMP 0x80
13006 //==============================================================================
13008 extern __at(0x0FC8) __sfr SSPADD;
13009 extern __at(0x0FC9) __sfr SSPBUF;
13011 //==============================================================================
13012 // T2CON Bits
13014 extern __at(0x0FCA) __sfr T2CON;
13016 typedef union
13018 struct
13020 unsigned T2CKPS0 : 1;
13021 unsigned T2CKPS1 : 1;
13022 unsigned TMR2ON : 1;
13023 unsigned T2OUTPS0 : 1;
13024 unsigned T2OUTPS1 : 1;
13025 unsigned T2OUTPS2 : 1;
13026 unsigned T2OUTPS3 : 1;
13027 unsigned : 1;
13030 struct
13032 unsigned : 1;
13033 unsigned : 1;
13034 unsigned : 1;
13035 unsigned TOUTPS0 : 1;
13036 unsigned TOUTPS1 : 1;
13037 unsigned TOUTPS2 : 1;
13038 unsigned TOUTPS3 : 1;
13039 unsigned : 1;
13042 struct
13044 unsigned T2CKPS : 2;
13045 unsigned : 6;
13048 struct
13050 unsigned : 3;
13051 unsigned T2OUTPS : 4;
13052 unsigned : 1;
13055 struct
13057 unsigned : 3;
13058 unsigned TOUTPS : 4;
13059 unsigned : 1;
13061 } __T2CONbits_t;
13063 extern __at(0x0FCA) volatile __T2CONbits_t T2CONbits;
13065 #define _T2CKPS0 0x01
13066 #define _T2CKPS1 0x02
13067 #define _TMR2ON 0x04
13068 #define _T2OUTPS0 0x08
13069 #define _TOUTPS0 0x08
13070 #define _T2OUTPS1 0x10
13071 #define _TOUTPS1 0x10
13072 #define _T2OUTPS2 0x20
13073 #define _TOUTPS2 0x20
13074 #define _T2OUTPS3 0x40
13075 #define _TOUTPS3 0x40
13077 //==============================================================================
13079 extern __at(0x0FCB) __sfr PR2;
13080 extern __at(0x0FCC) __sfr TMR2;
13082 //==============================================================================
13083 // T1CON Bits
13085 extern __at(0x0FCD) __sfr T1CON;
13087 typedef union
13089 struct
13091 unsigned TMR1ON : 1;
13092 unsigned TMR1CS : 1;
13093 unsigned NOT_T1SYNC : 1;
13094 unsigned T1OSCEN : 1;
13095 unsigned T1CKPS0 : 1;
13096 unsigned T1CKPS1 : 1;
13097 unsigned T1RUN : 1;
13098 unsigned RD16 : 1;
13101 struct
13103 unsigned : 1;
13104 unsigned : 1;
13105 unsigned T1SYNC : 1;
13106 unsigned : 1;
13107 unsigned : 1;
13108 unsigned : 1;
13109 unsigned : 1;
13110 unsigned : 1;
13113 struct
13115 unsigned : 1;
13116 unsigned : 1;
13117 unsigned T1INSYNC : 1;
13118 unsigned : 1;
13119 unsigned : 1;
13120 unsigned : 1;
13121 unsigned : 1;
13122 unsigned : 1;
13125 struct
13127 unsigned : 4;
13128 unsigned T1CKPS : 2;
13129 unsigned : 2;
13131 } __T1CONbits_t;
13133 extern __at(0x0FCD) volatile __T1CONbits_t T1CONbits;
13135 #define _TMR1ON 0x01
13136 #define _TMR1CS 0x02
13137 #define _NOT_T1SYNC 0x04
13138 #define _T1SYNC 0x04
13139 #define _T1INSYNC 0x04
13140 #define _T1OSCEN 0x08
13141 #define _T1CKPS0 0x10
13142 #define _T1CKPS1 0x20
13143 #define _T1RUN 0x40
13144 #define _RD16 0x80
13146 //==============================================================================
13148 extern __at(0x0FCE) __sfr TMR1;
13149 extern __at(0x0FCE) __sfr TMR1L;
13150 extern __at(0x0FCF) __sfr TMR1H;
13152 //==============================================================================
13153 // RCON Bits
13155 extern __at(0x0FD0) __sfr RCON;
13157 typedef union
13159 struct
13161 unsigned NOT_BOR : 1;
13162 unsigned NOT_POR : 1;
13163 unsigned NOT_PD : 1;
13164 unsigned NOT_TO : 1;
13165 unsigned NOT_RI : 1;
13166 unsigned : 1;
13167 unsigned SBOREN : 1;
13168 unsigned IPEN : 1;
13171 struct
13173 unsigned BOR : 1;
13174 unsigned POR : 1;
13175 unsigned PD : 1;
13176 unsigned TO : 1;
13177 unsigned RI : 1;
13178 unsigned : 1;
13179 unsigned : 1;
13180 unsigned : 1;
13182 } __RCONbits_t;
13184 extern __at(0x0FD0) volatile __RCONbits_t RCONbits;
13186 #define _NOT_BOR 0x01
13187 #define _BOR 0x01
13188 #define _NOT_POR 0x02
13189 #define _POR 0x02
13190 #define _NOT_PD 0x04
13191 #define _PD 0x04
13192 #define _NOT_TO 0x08
13193 #define _TO 0x08
13194 #define _NOT_RI 0x10
13195 #define _RI 0x10
13196 #define _SBOREN 0x40
13197 #define _IPEN 0x80
13199 //==============================================================================
13202 //==============================================================================
13203 // WDTCON Bits
13205 extern __at(0x0FD1) __sfr WDTCON;
13207 typedef union
13209 struct
13211 unsigned SWDTEN : 1;
13212 unsigned : 1;
13213 unsigned : 1;
13214 unsigned : 1;
13215 unsigned : 1;
13216 unsigned : 1;
13217 unsigned : 1;
13218 unsigned : 1;
13221 struct
13223 unsigned SWDTE : 1;
13224 unsigned : 1;
13225 unsigned : 1;
13226 unsigned : 1;
13227 unsigned : 1;
13228 unsigned : 1;
13229 unsigned : 1;
13230 unsigned : 1;
13232 } __WDTCONbits_t;
13234 extern __at(0x0FD1) volatile __WDTCONbits_t WDTCONbits;
13236 #define _SWDTEN 0x01
13237 #define _SWDTE 0x01
13239 //==============================================================================
13242 //==============================================================================
13243 // HLVDCON Bits
13245 extern __at(0x0FD2) __sfr HLVDCON;
13247 typedef union
13249 struct
13251 unsigned HLVDL0 : 1;
13252 unsigned HLVDL1 : 1;
13253 unsigned HLVDL2 : 1;
13254 unsigned HLVDL3 : 1;
13255 unsigned HLVDEN : 1;
13256 unsigned IRVST : 1;
13257 unsigned : 1;
13258 unsigned VDIRMAG : 1;
13261 struct
13263 unsigned LVDL0 : 1;
13264 unsigned LVDL1 : 1;
13265 unsigned LVDL2 : 1;
13266 unsigned LVDL3 : 1;
13267 unsigned LVDEN : 1;
13268 unsigned IVRST : 1;
13269 unsigned : 1;
13270 unsigned : 1;
13273 struct
13275 unsigned LVV0 : 1;
13276 unsigned LVV1 : 1;
13277 unsigned LVV2 : 1;
13278 unsigned LVV3 : 1;
13279 unsigned : 1;
13280 unsigned BGST : 1;
13281 unsigned : 1;
13282 unsigned : 1;
13285 struct
13287 unsigned LVDL : 4;
13288 unsigned : 4;
13291 struct
13293 unsigned LVV : 4;
13294 unsigned : 4;
13297 struct
13299 unsigned HLVDL : 4;
13300 unsigned : 4;
13302 } __HLVDCONbits_t;
13304 extern __at(0x0FD2) volatile __HLVDCONbits_t HLVDCONbits;
13306 #define _HLVDL0 0x01
13307 #define _LVDL0 0x01
13308 #define _LVV0 0x01
13309 #define _HLVDL1 0x02
13310 #define _LVDL1 0x02
13311 #define _LVV1 0x02
13312 #define _HLVDL2 0x04
13313 #define _LVDL2 0x04
13314 #define _LVV2 0x04
13315 #define _HLVDL3 0x08
13316 #define _LVDL3 0x08
13317 #define _LVV3 0x08
13318 #define _HLVDEN 0x10
13319 #define _LVDEN 0x10
13320 #define _IRVST 0x20
13321 #define _IVRST 0x20
13322 #define _BGST 0x20
13323 #define _VDIRMAG 0x80
13325 //==============================================================================
13328 //==============================================================================
13329 // LVDCON Bits
13331 extern __at(0x0FD2) __sfr LVDCON;
13333 typedef union
13335 struct
13337 unsigned HLVDL0 : 1;
13338 unsigned HLVDL1 : 1;
13339 unsigned HLVDL2 : 1;
13340 unsigned HLVDL3 : 1;
13341 unsigned HLVDEN : 1;
13342 unsigned IRVST : 1;
13343 unsigned : 1;
13344 unsigned VDIRMAG : 1;
13347 struct
13349 unsigned LVDL0 : 1;
13350 unsigned LVDL1 : 1;
13351 unsigned LVDL2 : 1;
13352 unsigned LVDL3 : 1;
13353 unsigned LVDEN : 1;
13354 unsigned IVRST : 1;
13355 unsigned : 1;
13356 unsigned : 1;
13359 struct
13361 unsigned LVV0 : 1;
13362 unsigned LVV1 : 1;
13363 unsigned LVV2 : 1;
13364 unsigned LVV3 : 1;
13365 unsigned : 1;
13366 unsigned BGST : 1;
13367 unsigned : 1;
13368 unsigned : 1;
13371 struct
13373 unsigned LVDL : 4;
13374 unsigned : 4;
13377 struct
13379 unsigned HLVDL : 4;
13380 unsigned : 4;
13383 struct
13385 unsigned LVV : 4;
13386 unsigned : 4;
13388 } __LVDCONbits_t;
13390 extern __at(0x0FD2) volatile __LVDCONbits_t LVDCONbits;
13392 #define _LVDCON_HLVDL0 0x01
13393 #define _LVDCON_LVDL0 0x01
13394 #define _LVDCON_LVV0 0x01
13395 #define _LVDCON_HLVDL1 0x02
13396 #define _LVDCON_LVDL1 0x02
13397 #define _LVDCON_LVV1 0x02
13398 #define _LVDCON_HLVDL2 0x04
13399 #define _LVDCON_LVDL2 0x04
13400 #define _LVDCON_LVV2 0x04
13401 #define _LVDCON_HLVDL3 0x08
13402 #define _LVDCON_LVDL3 0x08
13403 #define _LVDCON_LVV3 0x08
13404 #define _LVDCON_HLVDEN 0x10
13405 #define _LVDCON_LVDEN 0x10
13406 #define _LVDCON_IRVST 0x20
13407 #define _LVDCON_IVRST 0x20
13408 #define _LVDCON_BGST 0x20
13409 #define _LVDCON_VDIRMAG 0x80
13411 //==============================================================================
13414 //==============================================================================
13415 // OSCCON Bits
13417 extern __at(0x0FD3) __sfr OSCCON;
13419 typedef union
13421 struct
13423 unsigned SCS0 : 1;
13424 unsigned SCS1 : 1;
13425 unsigned IOFS : 1;
13426 unsigned OSTS : 1;
13427 unsigned IRCF0 : 1;
13428 unsigned IRCF1 : 1;
13429 unsigned IRCF2 : 1;
13430 unsigned IDLEN : 1;
13433 struct
13435 unsigned SCS : 2;
13436 unsigned : 6;
13439 struct
13441 unsigned : 4;
13442 unsigned IRCF : 3;
13443 unsigned : 1;
13445 } __OSCCONbits_t;
13447 extern __at(0x0FD3) volatile __OSCCONbits_t OSCCONbits;
13449 #define _SCS0 0x01
13450 #define _SCS1 0x02
13451 #define _IOFS 0x04
13452 #define _OSTS 0x08
13453 #define _IRCF0 0x10
13454 #define _IRCF1 0x20
13455 #define _IRCF2 0x40
13456 #define _IDLEN 0x80
13458 //==============================================================================
13461 //==============================================================================
13462 // T0CON Bits
13464 extern __at(0x0FD5) __sfr T0CON;
13466 typedef union
13468 struct
13470 unsigned T0PS0 : 1;
13471 unsigned T0PS1 : 1;
13472 unsigned T0PS2 : 1;
13473 unsigned PSA : 1;
13474 unsigned T0SE : 1;
13475 unsigned T0CS : 1;
13476 unsigned T08BIT : 1;
13477 unsigned TMR0ON : 1;
13480 struct
13482 unsigned : 1;
13483 unsigned : 1;
13484 unsigned : 1;
13485 unsigned T0PS3 : 1;
13486 unsigned : 1;
13487 unsigned : 1;
13488 unsigned : 1;
13489 unsigned : 1;
13492 struct
13494 unsigned T0PS : 4;
13495 unsigned : 4;
13497 } __T0CONbits_t;
13499 extern __at(0x0FD5) volatile __T0CONbits_t T0CONbits;
13501 #define _T0PS0 0x01
13502 #define _T0PS1 0x02
13503 #define _T0PS2 0x04
13504 #define _PSA 0x08
13505 #define _T0PS3 0x08
13506 #define _T0SE 0x10
13507 #define _T0CS 0x20
13508 #define _T08BIT 0x40
13509 #define _TMR0ON 0x80
13511 //==============================================================================
13513 extern __at(0x0FD6) __sfr TMR0;
13514 extern __at(0x0FD6) __sfr TMR0L;
13515 extern __at(0x0FD7) __sfr TMR0H;
13517 //==============================================================================
13518 // STATUS Bits
13520 extern __at(0x0FD8) __sfr STATUS;
13522 typedef struct
13524 unsigned C : 1;
13525 unsigned DC : 1;
13526 unsigned Z : 1;
13527 unsigned OV : 1;
13528 unsigned N : 1;
13529 unsigned : 1;
13530 unsigned : 1;
13531 unsigned : 1;
13532 } __STATUSbits_t;
13534 extern __at(0x0FD8) volatile __STATUSbits_t STATUSbits;
13536 #define _C 0x01
13537 #define _DC 0x02
13538 #define _Z 0x04
13539 #define _OV 0x08
13540 #define _N 0x10
13542 //==============================================================================
13544 extern __at(0x0FD9) __sfr FSR2L;
13545 extern __at(0x0FDA) __sfr FSR2H;
13546 extern __at(0x0FDB) __sfr PLUSW2;
13547 extern __at(0x0FDC) __sfr PREINC2;
13548 extern __at(0x0FDD) __sfr POSTDEC2;
13549 extern __at(0x0FDE) __sfr POSTINC2;
13550 extern __at(0x0FDF) __sfr INDF2;
13551 extern __at(0x0FE0) __sfr BSR;
13552 extern __at(0x0FE1) __sfr FSR1L;
13553 extern __at(0x0FE2) __sfr FSR1H;
13554 extern __at(0x0FE3) __sfr PLUSW1;
13555 extern __at(0x0FE4) __sfr PREINC1;
13556 extern __at(0x0FE5) __sfr POSTDEC1;
13557 extern __at(0x0FE6) __sfr POSTINC1;
13558 extern __at(0x0FE7) __sfr INDF1;
13559 extern __at(0x0FE8) __sfr WREG;
13560 extern __at(0x0FE9) __sfr FSR0L;
13561 extern __at(0x0FEA) __sfr FSR0H;
13562 extern __at(0x0FEB) __sfr PLUSW0;
13563 extern __at(0x0FEC) __sfr PREINC0;
13564 extern __at(0x0FED) __sfr POSTDEC0;
13565 extern __at(0x0FEE) __sfr POSTINC0;
13566 extern __at(0x0FEF) __sfr INDF0;
13568 //==============================================================================
13569 // INTCON3 Bits
13571 extern __at(0x0FF0) __sfr INTCON3;
13573 typedef union
13575 struct
13577 unsigned INT1IF : 1;
13578 unsigned INT2IF : 1;
13579 unsigned : 1;
13580 unsigned INT1IE : 1;
13581 unsigned INT2IE : 1;
13582 unsigned : 1;
13583 unsigned INT1IP : 1;
13584 unsigned INT2IP : 1;
13587 struct
13589 unsigned INT1F : 1;
13590 unsigned INT2F : 1;
13591 unsigned : 1;
13592 unsigned INT1E : 1;
13593 unsigned INT2E : 1;
13594 unsigned : 1;
13595 unsigned INT1P : 1;
13596 unsigned INT2P : 1;
13598 } __INTCON3bits_t;
13600 extern __at(0x0FF0) volatile __INTCON3bits_t INTCON3bits;
13602 #define _INT1IF 0x01
13603 #define _INT1F 0x01
13604 #define _INT2IF 0x02
13605 #define _INT2F 0x02
13606 #define _INT1IE 0x08
13607 #define _INT1E 0x08
13608 #define _INT2IE 0x10
13609 #define _INT2E 0x10
13610 #define _INT1IP 0x40
13611 #define _INT1P 0x40
13612 #define _INT2IP 0x80
13613 #define _INT2P 0x80
13615 //==============================================================================
13618 //==============================================================================
13619 // INTCON2 Bits
13621 extern __at(0x0FF1) __sfr INTCON2;
13623 typedef union
13625 struct
13627 unsigned RBIP : 1;
13628 unsigned : 1;
13629 unsigned TMR0IP : 1;
13630 unsigned : 1;
13631 unsigned INTEDG2 : 1;
13632 unsigned INTEDG1 : 1;
13633 unsigned INTEDG0 : 1;
13634 unsigned NOT_RBPU : 1;
13637 struct
13639 unsigned : 1;
13640 unsigned : 1;
13641 unsigned T0IP : 1;
13642 unsigned : 1;
13643 unsigned : 1;
13644 unsigned : 1;
13645 unsigned : 1;
13646 unsigned RBPU : 1;
13648 } __INTCON2bits_t;
13650 extern __at(0x0FF1) volatile __INTCON2bits_t INTCON2bits;
13652 #define _RBIP 0x01
13653 #define _TMR0IP 0x04
13654 #define _T0IP 0x04
13655 #define _INTEDG2 0x10
13656 #define _INTEDG1 0x20
13657 #define _INTEDG0 0x40
13658 #define _NOT_RBPU 0x80
13659 #define _RBPU 0x80
13661 //==============================================================================
13664 //==============================================================================
13665 // INTCON Bits
13667 extern __at(0x0FF2) __sfr INTCON;
13669 typedef union
13671 struct
13673 unsigned RBIF : 1;
13674 unsigned INT0IF : 1;
13675 unsigned TMR0IF : 1;
13676 unsigned RBIE : 1;
13677 unsigned INT0IE : 1;
13678 unsigned TMR0IE : 1;
13679 unsigned PEIE_GIEL : 1;
13680 unsigned GIE_GIEH : 1;
13683 struct
13685 unsigned : 1;
13686 unsigned INT0F : 1;
13687 unsigned T0IF : 1;
13688 unsigned : 1;
13689 unsigned INT0E : 1;
13690 unsigned T0IE : 1;
13691 unsigned PEIE : 1;
13692 unsigned GIE : 1;
13695 struct
13697 unsigned : 1;
13698 unsigned : 1;
13699 unsigned : 1;
13700 unsigned : 1;
13701 unsigned : 1;
13702 unsigned : 1;
13703 unsigned GIEL : 1;
13704 unsigned GIEH : 1;
13706 } __INTCONbits_t;
13708 extern __at(0x0FF2) volatile __INTCONbits_t INTCONbits;
13710 #define _RBIF 0x01
13711 #define _INT0IF 0x02
13712 #define _INT0F 0x02
13713 #define _TMR0IF 0x04
13714 #define _T0IF 0x04
13715 #define _RBIE 0x08
13716 #define _INT0IE 0x10
13717 #define _INT0E 0x10
13718 #define _TMR0IE 0x20
13719 #define _T0IE 0x20
13720 #define _PEIE_GIEL 0x40
13721 #define _PEIE 0x40
13722 #define _GIEL 0x40
13723 #define _GIE_GIEH 0x80
13724 #define _GIE 0x80
13725 #define _GIEH 0x80
13727 //==============================================================================
13729 extern __at(0x0FF3) __sfr PROD;
13730 extern __at(0x0FF3) __sfr PRODL;
13731 extern __at(0x0FF4) __sfr PRODH;
13732 extern __at(0x0FF5) __sfr TABLAT;
13733 extern __at(0x0FF6) __sfr TBLPTR;
13734 extern __at(0x0FF6) __sfr TBLPTRL;
13735 extern __at(0x0FF7) __sfr TBLPTRH;
13736 extern __at(0x0FF8) __sfr TBLPTRU;
13737 extern __at(0x0FF9) __sfr PC;
13738 extern __at(0x0FF9) __sfr PCL;
13739 extern __at(0x0FFA) __sfr PCLATH;
13740 extern __at(0x0FFB) __sfr PCLATU;
13742 //==============================================================================
13743 // STKPTR Bits
13745 extern __at(0x0FFC) __sfr STKPTR;
13747 typedef union
13749 struct
13751 unsigned STKPTR0 : 1;
13752 unsigned STKPTR1 : 1;
13753 unsigned STKPTR2 : 1;
13754 unsigned STKPTR3 : 1;
13755 unsigned STKPTR4 : 1;
13756 unsigned : 1;
13757 unsigned STKUNF : 1;
13758 unsigned STKFUL : 1;
13761 struct
13763 unsigned : 1;
13764 unsigned : 1;
13765 unsigned : 1;
13766 unsigned : 1;
13767 unsigned : 1;
13768 unsigned : 1;
13769 unsigned : 1;
13770 unsigned STKOVF : 1;
13773 struct
13775 unsigned STKPTR : 5;
13776 unsigned : 3;
13778 } __STKPTRbits_t;
13780 extern __at(0x0FFC) volatile __STKPTRbits_t STKPTRbits;
13782 #define _STKPTR0 0x01
13783 #define _STKPTR1 0x02
13784 #define _STKPTR2 0x04
13785 #define _STKPTR3 0x08
13786 #define _STKPTR4 0x10
13787 #define _STKUNF 0x40
13788 #define _STKFUL 0x80
13789 #define _STKOVF 0x80
13791 //==============================================================================
13793 extern __at(0x0FFD) __sfr TOS;
13794 extern __at(0x0FFD) __sfr TOSL;
13795 extern __at(0x0FFE) __sfr TOSH;
13796 extern __at(0x0FFF) __sfr TOSU;
13798 //==============================================================================
13800 // Configuration Bits
13802 //==============================================================================
13804 #define __CONFIG1H 0x300001
13805 #define __CONFIG2L 0x300002
13806 #define __CONFIG2H 0x300003
13807 #define __CONFIG3H 0x300005
13808 #define __CONFIG4L 0x300006
13809 #define __CONFIG5L 0x300008
13810 #define __CONFIG5H 0x300009
13811 #define __CONFIG6L 0x30000A
13812 #define __CONFIG6H 0x30000B
13813 #define __CONFIG7L 0x30000C
13814 #define __CONFIG7H 0x30000D
13816 //----------------------------- CONFIG1H Options -------------------------------
13818 #define _OSC_LP_1H 0xF0 // LP oscillator.
13819 #define _OSC_XT_1H 0xF1 // XT oscillator.
13820 #define _OSC_HS_1H 0xF2 // HS oscillator.
13821 #define _OSC_RC_1H 0xF3 // External RC oscillator, CLKO function on RA6.
13822 #define _OSC_EC_1H 0xF4 // EC oscillator, CLKO function on RA6.
13823 #define _OSC_ECIO_1H 0xF5 // EC oscillator, port function on RA6.
13824 #define _OSC_HSPLL_1H 0xF6 // HS oscillator, PLL enabled (Clock Frequency = 4 x FOSC1).
13825 #define _OSC_RCIO_1H 0xF7 // External RC oscillator, port function on RA6.
13826 #define _OSC_IRCIO67_1H 0xF8 // Internal oscillator block, port function on RA6 and RA7.
13827 #define _OSC_IRCIO7_1H 0xF9 // Internal oscillator block, CLKO function on RA6, port function on RA7.
13828 #define _FCMEN_OFF_1H 0xBF // Fail-Safe Clock Monitor disabled.
13829 #define _FCMEN_ON_1H 0xFF // Fail-Safe Clock Monitor enabled.
13830 #define _IESO_OFF_1H 0x7F // Oscillator Switchover mode disabled.
13831 #define _IESO_ON_1H 0xFF // Oscillator Switchover mode enabled.
13833 //----------------------------- CONFIG2L Options -------------------------------
13835 #define _PWRT_ON_2L 0xFE // PWRT enabled.
13836 #define _PWRT_OFF_2L 0xFF // PWRT disabled.
13837 #define _BOREN_OFF_2L 0xF9 // Brown-out Reset disabled in hardware and software.
13838 #define _BOREN_SBORENCTRL_2L 0xFB // Brown-out Reset enabled and controlled by software (SBOREN is enabled).
13839 #define _BOREN_BOACTIVE_2L 0xFD // Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled).
13840 #define _BOREN_BOHW_2L 0xFF // Brown-out Reset enabled in hardware only (SBOREN is disabled).
13841 #define _BORV_0_2L 0xE7 // VBOR set to 4.6V.
13842 #define _BORV_1_2L 0xEF // VBOR set to 4.3V.
13843 #define _BORV_2_2L 0xF7 // VBOR set to 2.8V.
13844 #define _BORV_3_2L 0xFF // VBOR set to 2.1V.
13846 //----------------------------- CONFIG2H Options -------------------------------
13848 #define _WDT_OFF_2H 0xFE // WDT disabled (control is placed on the SWDTEN bit).
13849 #define _WDT_ON_2H 0xFF // WDT enabled.
13850 #define _WDTPS_1_2H 0xE1 // 1:1.
13851 #define _WDTPS_2_2H 0xE3 // 1:2.
13852 #define _WDTPS_4_2H 0xE5 // 1:4.
13853 #define _WDTPS_8_2H 0xE7 // 1:8.
13854 #define _WDTPS_16_2H 0xE9 // 1:16.
13855 #define _WDTPS_32_2H 0xEB // 1:32.
13856 #define _WDTPS_64_2H 0xED // 1:64.
13857 #define _WDTPS_128_2H 0xEF // 1:128.
13858 #define _WDTPS_256_2H 0xF1 // 1:256.
13859 #define _WDTPS_512_2H 0xF3 // 1:512.
13860 #define _WDTPS_1024_2H 0xF5 // 1:1024.
13861 #define _WDTPS_2048_2H 0xF7 // 1:2048.
13862 #define _WDTPS_4096_2H 0xF9 // 1:4096.
13863 #define _WDTPS_8192_2H 0xFB // 1:8192.
13864 #define _WDTPS_16384_2H 0xFD // 1:16384.
13865 #define _WDTPS_32768_2H 0xFF // 1:32768.
13867 //----------------------------- CONFIG3H Options -------------------------------
13869 #define _PBADEN_OFF_3H 0xFD // PORTB<4:0> pins are configured as digital I/O on Reset.
13870 #define _PBADEN_ON_3H 0xFF // PORTB<4:0> pins are configured as analog input channels on Reset.
13871 #define _LPT1OSC_OFF_3H 0xFB // Timer1 configured for higher power operation.
13872 #define _LPT1OSC_ON_3H 0xFF // Timer1 configured for low-power operation.
13873 #define _MCLRE_OFF_3H 0x7F // RE3 input pin enabled; MCLR disabled.
13874 #define _MCLRE_ON_3H 0xFF // MCLR pin enabled; RE3 input pin disabled.
13876 //----------------------------- CONFIG4L Options -------------------------------
13878 #define _STVREN_OFF_4L 0xFE // Stack full/underflow will not cause Reset.
13879 #define _STVREN_ON_4L 0xFF // Stack full/underflow will cause Reset.
13880 #define _LVP_OFF_4L 0xFB // Single-Supply ICSP disabled.
13881 #define _LVP_ON_4L 0xFF // Single-Supply ICSP enabled.
13882 #define _BBSIZ_1024_4L 0xCF // 1K words (2K bytes) Boot Block.
13883 #define _BBSIZ_2048_4L 0xDF // 2K words (4K bytes) Boot Block.
13884 #define _BBSIZ_4096_4L 0xEF // 4K words (8K bytes) Boot Block.
13885 #define _XINST_OFF_4L 0xBF // Instruction set extension and Indexed Addressing mode disabled (Legacy mode).
13886 #define _XINST_ON_4L 0xFF // Instruction set extension and Indexed Addressing mode enabled.
13887 #define _DEBUG_ON_4L 0x7F // Background debugger enabled, RB6 and RB7 are dedicated to In-Circuit Debug.
13888 #define _DEBUG_OFF_4L 0xFF // Background debugger disabled, RB6 and RB7 configured as general purpose I/O pins.
13890 //----------------------------- CONFIG5L Options -------------------------------
13892 #define _CP0_ON_5L 0xFE // Block 0 (000800-003FFFh) code-protected.
13893 #define _CP0_OFF_5L 0xFF // Block 0 (000800-003FFFh) not code-protected.
13894 #define _CP1_ON_5L 0xFD // Block 1 (004000-007FFFh) code-protected.
13895 #define _CP1_OFF_5L 0xFF // Block 1 (004000-007FFFh) not code-protected.
13896 #define _CP2_ON_5L 0xFB // Block 2 (008000-00BFFFh) code-protected.
13897 #define _CP2_OFF_5L 0xFF // Block 2 (008000-00BFFFh) not code-protected.
13899 //----------------------------- CONFIG5H Options -------------------------------
13901 #define _CPB_ON_5H 0xBF // Boot block (000000-0007FFh) code-protected.
13902 #define _CPB_OFF_5H 0xFF // Boot block (000000-0007FFh) not code-protected.
13903 #define _CPD_ON_5H 0x7F // Data EEPROM code-protected.
13904 #define _CPD_OFF_5H 0xFF // Data EEPROM not code-protected.
13906 //----------------------------- CONFIG6L Options -------------------------------
13908 #define _WRT0_ON_6L 0xFE // Block 0 (000800-003FFFh) write-protected.
13909 #define _WRT0_OFF_6L 0xFF // Block 0 (000800-003FFFh) not write-protected.
13910 #define _WRT1_ON_6L 0xFD // Block 1 (004000-007FFFh) write-protected.
13911 #define _WRT1_OFF_6L 0xFF // Block 1 (004000-007FFFh) not write-protected.
13912 #define _WRT2_ON_6L 0xFB // Block 2 (008000-00BFFFh) write-protected.
13913 #define _WRT2_OFF_6L 0xFF // Block 2 (008000-00BFFFh) not write-protected.
13915 //----------------------------- CONFIG6H Options -------------------------------
13917 #define _WRTC_ON_6H 0xDF // Configuration registers (300000-3000FFh) write-protected.
13918 #define _WRTC_OFF_6H 0xFF // Configuration registers (300000-3000FFh) not write-protected.
13919 #define _WRTB_ON_6H 0xBF // Boot block (000000-0007FFh) write-protected.
13920 #define _WRTB_OFF_6H 0xFF // Boot block (000000-0007FFh) not write-protected.
13921 #define _WRTD_ON_6H 0x7F // Data EEPROM write-protected.
13922 #define _WRTD_OFF_6H 0xFF // Data EEPROM not write-protected.
13924 //----------------------------- CONFIG7L Options -------------------------------
13926 #define _EBTR0_ON_7L 0xFE // Block 0 (000800-003FFFh) protected from table reads executed in other blocks.
13927 #define _EBTR0_OFF_7L 0xFF // Block 0 (000800-003FFFh) not protected from table reads executed in other blocks.
13928 #define _EBTR1_ON_7L 0xFD // Block 1 (004000-007FFFh) protected from table reads executed in other blocks.
13929 #define _EBTR1_OFF_7L 0xFF // Block 1 (004000-007FFFh) not protected from table reads executed in other blocks.
13930 #define _EBTR2_ON_7L 0xFB // Block 2 (008000-00BFFFh) protected from table reads executed in other blocks.
13931 #define _EBTR2_OFF_7L 0xFF // Block 2 (008000-00BFFFh) not protected from table reads executed in other blocks.
13933 //----------------------------- CONFIG7H Options -------------------------------
13935 #define _EBTRB_ON_7H 0xBF // Boot block (000000-0007FFh) protected from table reads executed in other blocks.
13936 #define _EBTRB_OFF_7H 0xFF // Boot block (000000-0007FFh) not protected from table reads executed in other blocks.
13938 //==============================================================================
13940 #define __DEVID1 0x3FFFFE
13941 #define __DEVID2 0x3FFFFF
13943 #define __IDLOC0 0x200000
13944 #define __IDLOC1 0x200001
13945 #define __IDLOC2 0x200002
13946 #define __IDLOC3 0x200003
13947 #define __IDLOC4 0x200004
13948 #define __IDLOC5 0x200005
13949 #define __IDLOC6 0x200006
13950 #define __IDLOC7 0x200007
13952 #endif // #ifndef __PIC18F2585_H__