Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / device / non-free / include / pic16 / pic18lf45k80.h
blob2d372e9982e2f06ff15eec06108a9ac6879465be
1 /*
2 * This declarations of the PIC18LF45K80 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:57 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 __PIC18LF45K80_H__
26 #define __PIC18LF45K80_H__
28 //==============================================================================
30 //==============================================================================
32 // Register Definitions
34 //==============================================================================
37 //==============================================================================
38 // RXERRCNT Bits
40 extern __at(0x0E41) __sfr RXERRCNT;
42 typedef struct
44 unsigned REC0 : 1;
45 unsigned REC1 : 1;
46 unsigned REC2 : 1;
47 unsigned REC3 : 1;
48 unsigned REC4 : 1;
49 unsigned REC5 : 1;
50 unsigned REC6 : 1;
51 unsigned REC7 : 1;
52 } __RXERRCNTbits_t;
54 extern __at(0x0E41) volatile __RXERRCNTbits_t RXERRCNTbits;
56 #define _REC0 0x01
57 #define _REC1 0x02
58 #define _REC2 0x04
59 #define _REC3 0x08
60 #define _REC4 0x10
61 #define _REC5 0x20
62 #define _REC6 0x40
63 #define _REC7 0x80
65 //==============================================================================
68 //==============================================================================
69 // TXERRCNT Bits
71 extern __at(0x0E42) __sfr TXERRCNT;
73 typedef struct
75 unsigned TEC0 : 1;
76 unsigned TEC1 : 1;
77 unsigned TEC2 : 1;
78 unsigned TEC3 : 1;
79 unsigned TEC4 : 1;
80 unsigned TEC5 : 1;
81 unsigned TEC6 : 1;
82 unsigned TEC7 : 1;
83 } __TXERRCNTbits_t;
85 extern __at(0x0E42) volatile __TXERRCNTbits_t TXERRCNTbits;
87 #define _TEC0 0x01
88 #define _TEC1 0x02
89 #define _TEC2 0x04
90 #define _TEC3 0x08
91 #define _TEC4 0x10
92 #define _TEC5 0x20
93 #define _TEC6 0x40
94 #define _TEC7 0x80
96 //==============================================================================
99 //==============================================================================
100 // BRGCON1 Bits
102 extern __at(0x0E43) __sfr BRGCON1;
104 typedef union
106 struct
108 unsigned BRP0 : 1;
109 unsigned BRP1 : 1;
110 unsigned BRP2 : 1;
111 unsigned BRP3 : 1;
112 unsigned BRP4 : 1;
113 unsigned BRP5 : 1;
114 unsigned SJW0 : 1;
115 unsigned SJW1 : 1;
118 struct
120 unsigned BRP : 6;
121 unsigned : 2;
124 struct
126 unsigned : 6;
127 unsigned SJW : 2;
129 } __BRGCON1bits_t;
131 extern __at(0x0E43) volatile __BRGCON1bits_t BRGCON1bits;
133 #define _BRP0 0x01
134 #define _BRP1 0x02
135 #define _BRP2 0x04
136 #define _BRP3 0x08
137 #define _BRP4 0x10
138 #define _BRP5 0x20
139 #define _SJW0 0x40
140 #define _SJW1 0x80
142 //==============================================================================
145 //==============================================================================
146 // BRGCON2 Bits
148 extern __at(0x0E44) __sfr BRGCON2;
150 typedef union
152 struct
154 unsigned PRSEG0 : 1;
155 unsigned PRSEG1 : 1;
156 unsigned PRSEG2 : 1;
157 unsigned SEG1PH0 : 1;
158 unsigned SEG1PH1 : 1;
159 unsigned SEG1PH2 : 1;
160 unsigned SAM : 1;
161 unsigned SEG2PHTS : 1;
164 struct
166 unsigned PRSEG : 3;
167 unsigned : 5;
170 struct
172 unsigned : 3;
173 unsigned SEG1PH : 3;
174 unsigned : 2;
176 } __BRGCON2bits_t;
178 extern __at(0x0E44) volatile __BRGCON2bits_t BRGCON2bits;
180 #define _PRSEG0 0x01
181 #define _PRSEG1 0x02
182 #define _PRSEG2 0x04
183 #define _SEG1PH0 0x08
184 #define _SEG1PH1 0x10
185 #define _SEG1PH2 0x20
186 #define _SAM 0x40
187 #define _SEG2PHTS 0x80
189 //==============================================================================
192 //==============================================================================
193 // BRGCON3 Bits
195 extern __at(0x0E45) __sfr BRGCON3;
197 typedef union
199 struct
201 unsigned SEG2PH0 : 1;
202 unsigned SEG2PH1 : 1;
203 unsigned SEG2PH2 : 1;
204 unsigned : 1;
205 unsigned : 1;
206 unsigned : 1;
207 unsigned WAKFIL : 1;
208 unsigned WAKDIS : 1;
211 struct
213 unsigned SEG2PH : 3;
214 unsigned : 5;
216 } __BRGCON3bits_t;
218 extern __at(0x0E45) volatile __BRGCON3bits_t BRGCON3bits;
220 #define _SEG2PH0 0x01
221 #define _SEG2PH1 0x02
222 #define _SEG2PH2 0x04
223 #define _WAKFIL 0x40
224 #define _WAKDIS 0x80
226 //==============================================================================
229 //==============================================================================
230 // RXFCON0 Bits
232 extern __at(0x0E46) __sfr RXFCON0;
234 typedef struct
236 unsigned RXF0EN : 1;
237 unsigned RXF1EN : 1;
238 unsigned RXF2EN : 1;
239 unsigned RXF3EN : 1;
240 unsigned RXF4EN : 1;
241 unsigned RXF5EN : 1;
242 unsigned RXF6EN : 1;
243 unsigned RXF7EN : 1;
244 } __RXFCON0bits_t;
246 extern __at(0x0E46) volatile __RXFCON0bits_t RXFCON0bits;
248 #define _RXF0EN 0x01
249 #define _RXF1EN 0x02
250 #define _RXF2EN 0x04
251 #define _RXF3EN 0x08
252 #define _RXF4EN 0x10
253 #define _RXF5EN 0x20
254 #define _RXF6EN 0x40
255 #define _RXF7EN 0x80
257 //==============================================================================
260 //==============================================================================
261 // RXFCON1 Bits
263 extern __at(0x0E47) __sfr RXFCON1;
265 typedef struct
267 unsigned RXF8EN : 1;
268 unsigned RXF9EN : 1;
269 unsigned RXF10EN : 1;
270 unsigned RXF11EN : 1;
271 unsigned RXF12EN : 1;
272 unsigned RXF13EN : 1;
273 unsigned RXF14EN : 1;
274 unsigned RXF15EN : 1;
275 } __RXFCON1bits_t;
277 extern __at(0x0E47) volatile __RXFCON1bits_t RXFCON1bits;
279 #define _RXF8EN 0x01
280 #define _RXF9EN 0x02
281 #define _RXF10EN 0x04
282 #define _RXF11EN 0x08
283 #define _RXF12EN 0x10
284 #define _RXF13EN 0x20
285 #define _RXF14EN 0x40
286 #define _RXF15EN 0x80
288 //==============================================================================
291 //==============================================================================
292 // RXF6SIDH Bits
294 extern __at(0x0E48) __sfr RXF6SIDH;
296 typedef struct
298 unsigned SID3 : 1;
299 unsigned SID4 : 1;
300 unsigned SID5 : 1;
301 unsigned SID6 : 1;
302 unsigned SID7 : 1;
303 unsigned SID8 : 1;
304 unsigned SID9 : 1;
305 unsigned SID10 : 1;
306 } __RXF6SIDHbits_t;
308 extern __at(0x0E48) volatile __RXF6SIDHbits_t RXF6SIDHbits;
310 #define _RXF6SIDH_SID3 0x01
311 #define _RXF6SIDH_SID4 0x02
312 #define _RXF6SIDH_SID5 0x04
313 #define _RXF6SIDH_SID6 0x08
314 #define _RXF6SIDH_SID7 0x10
315 #define _RXF6SIDH_SID8 0x20
316 #define _RXF6SIDH_SID9 0x40
317 #define _RXF6SIDH_SID10 0x80
319 //==============================================================================
322 //==============================================================================
323 // RXF6SIDL Bits
325 extern __at(0x0E49) __sfr RXF6SIDL;
327 typedef union
329 struct
331 unsigned EID16 : 1;
332 unsigned EID17 : 1;
333 unsigned : 1;
334 unsigned EXIDEN : 1;
335 unsigned : 1;
336 unsigned SID0 : 1;
337 unsigned SID1 : 1;
338 unsigned SID2 : 1;
341 struct
343 unsigned : 5;
344 unsigned SID : 3;
346 } __RXF6SIDLbits_t;
348 extern __at(0x0E49) volatile __RXF6SIDLbits_t RXF6SIDLbits;
350 #define _RXF6SIDL_EID16 0x01
351 #define _RXF6SIDL_EID17 0x02
352 #define _RXF6SIDL_EXIDEN 0x08
353 #define _RXF6SIDL_SID0 0x20
354 #define _RXF6SIDL_SID1 0x40
355 #define _RXF6SIDL_SID2 0x80
357 //==============================================================================
360 //==============================================================================
361 // RXF6EIDH Bits
363 extern __at(0x0E4A) __sfr RXF6EIDH;
365 typedef struct
367 unsigned EID8 : 1;
368 unsigned EID9 : 1;
369 unsigned EID10 : 1;
370 unsigned EID11 : 1;
371 unsigned EID12 : 1;
372 unsigned EID13 : 1;
373 unsigned EID14 : 1;
374 unsigned EID15 : 1;
375 } __RXF6EIDHbits_t;
377 extern __at(0x0E4A) volatile __RXF6EIDHbits_t RXF6EIDHbits;
379 #define _RXF6EIDH_EID8 0x01
380 #define _RXF6EIDH_EID9 0x02
381 #define _RXF6EIDH_EID10 0x04
382 #define _RXF6EIDH_EID11 0x08
383 #define _RXF6EIDH_EID12 0x10
384 #define _RXF6EIDH_EID13 0x20
385 #define _RXF6EIDH_EID14 0x40
386 #define _RXF6EIDH_EID15 0x80
388 //==============================================================================
391 //==============================================================================
392 // RXF6EIDL Bits
394 extern __at(0x0E4B) __sfr RXF6EIDL;
396 typedef struct
398 unsigned EID0 : 1;
399 unsigned EID1 : 1;
400 unsigned EID2 : 1;
401 unsigned EID3 : 1;
402 unsigned EID4 : 1;
403 unsigned EID5 : 1;
404 unsigned EID6 : 1;
405 unsigned EID7 : 1;
406 } __RXF6EIDLbits_t;
408 extern __at(0x0E4B) volatile __RXF6EIDLbits_t RXF6EIDLbits;
410 #define _RXF6EIDL_EID0 0x01
411 #define _RXF6EIDL_EID1 0x02
412 #define _RXF6EIDL_EID2 0x04
413 #define _RXF6EIDL_EID3 0x08
414 #define _RXF6EIDL_EID4 0x10
415 #define _RXF6EIDL_EID5 0x20
416 #define _RXF6EIDL_EID6 0x40
417 #define _RXF6EIDL_EID7 0x80
419 //==============================================================================
422 //==============================================================================
423 // RXF7SIDH Bits
425 extern __at(0x0E4C) __sfr RXF7SIDH;
427 typedef struct
429 unsigned SID3 : 1;
430 unsigned SID4 : 1;
431 unsigned SID5 : 1;
432 unsigned SID6 : 1;
433 unsigned SID7 : 1;
434 unsigned SID8 : 1;
435 unsigned SID9 : 1;
436 unsigned SID10 : 1;
437 } __RXF7SIDHbits_t;
439 extern __at(0x0E4C) volatile __RXF7SIDHbits_t RXF7SIDHbits;
441 #define _RXF7SIDH_SID3 0x01
442 #define _RXF7SIDH_SID4 0x02
443 #define _RXF7SIDH_SID5 0x04
444 #define _RXF7SIDH_SID6 0x08
445 #define _RXF7SIDH_SID7 0x10
446 #define _RXF7SIDH_SID8 0x20
447 #define _RXF7SIDH_SID9 0x40
448 #define _RXF7SIDH_SID10 0x80
450 //==============================================================================
453 //==============================================================================
454 // RXF7SIDL Bits
456 extern __at(0x0E4D) __sfr RXF7SIDL;
458 typedef union
460 struct
462 unsigned EID16 : 1;
463 unsigned EID17 : 1;
464 unsigned : 1;
465 unsigned EXIDEN : 1;
466 unsigned : 1;
467 unsigned SID0 : 1;
468 unsigned SID1 : 1;
469 unsigned SID2 : 1;
472 struct
474 unsigned : 5;
475 unsigned SID : 3;
477 } __RXF7SIDLbits_t;
479 extern __at(0x0E4D) volatile __RXF7SIDLbits_t RXF7SIDLbits;
481 #define _RXF7SIDL_EID16 0x01
482 #define _RXF7SIDL_EID17 0x02
483 #define _RXF7SIDL_EXIDEN 0x08
484 #define _RXF7SIDL_SID0 0x20
485 #define _RXF7SIDL_SID1 0x40
486 #define _RXF7SIDL_SID2 0x80
488 //==============================================================================
491 //==============================================================================
492 // RXF7EIDH Bits
494 extern __at(0x0E4E) __sfr RXF7EIDH;
496 typedef struct
498 unsigned EID8 : 1;
499 unsigned EID9 : 1;
500 unsigned EID10 : 1;
501 unsigned EID11 : 1;
502 unsigned EID12 : 1;
503 unsigned EID13 : 1;
504 unsigned EID14 : 1;
505 unsigned EID15 : 1;
506 } __RXF7EIDHbits_t;
508 extern __at(0x0E4E) volatile __RXF7EIDHbits_t RXF7EIDHbits;
510 #define _RXF7EIDH_EID8 0x01
511 #define _RXF7EIDH_EID9 0x02
512 #define _RXF7EIDH_EID10 0x04
513 #define _RXF7EIDH_EID11 0x08
514 #define _RXF7EIDH_EID12 0x10
515 #define _RXF7EIDH_EID13 0x20
516 #define _RXF7EIDH_EID14 0x40
517 #define _RXF7EIDH_EID15 0x80
519 //==============================================================================
522 //==============================================================================
523 // RXF7EIDL Bits
525 extern __at(0x0E4F) __sfr RXF7EIDL;
527 typedef struct
529 unsigned EID0 : 1;
530 unsigned EID1 : 1;
531 unsigned EID2 : 1;
532 unsigned EID3 : 1;
533 unsigned EID4 : 1;
534 unsigned EID5 : 1;
535 unsigned EID6 : 1;
536 unsigned EID7 : 1;
537 } __RXF7EIDLbits_t;
539 extern __at(0x0E4F) volatile __RXF7EIDLbits_t RXF7EIDLbits;
541 #define _RXF7EIDL_EID0 0x01
542 #define _RXF7EIDL_EID1 0x02
543 #define _RXF7EIDL_EID2 0x04
544 #define _RXF7EIDL_EID3 0x08
545 #define _RXF7EIDL_EID4 0x10
546 #define _RXF7EIDL_EID5 0x20
547 #define _RXF7EIDL_EID6 0x40
548 #define _RXF7EIDL_EID7 0x80
550 //==============================================================================
553 //==============================================================================
554 // RXF8SIDH Bits
556 extern __at(0x0E50) __sfr RXF8SIDH;
558 typedef struct
560 unsigned SID3 : 1;
561 unsigned SID4 : 1;
562 unsigned SID5 : 1;
563 unsigned SID6 : 1;
564 unsigned SID7 : 1;
565 unsigned SID8 : 1;
566 unsigned SID9 : 1;
567 unsigned SID10 : 1;
568 } __RXF8SIDHbits_t;
570 extern __at(0x0E50) volatile __RXF8SIDHbits_t RXF8SIDHbits;
572 #define _RXF8SIDH_SID3 0x01
573 #define _RXF8SIDH_SID4 0x02
574 #define _RXF8SIDH_SID5 0x04
575 #define _RXF8SIDH_SID6 0x08
576 #define _RXF8SIDH_SID7 0x10
577 #define _RXF8SIDH_SID8 0x20
578 #define _RXF8SIDH_SID9 0x40
579 #define _RXF8SIDH_SID10 0x80
581 //==============================================================================
584 //==============================================================================
585 // RXF8SIDL Bits
587 extern __at(0x0E51) __sfr RXF8SIDL;
589 typedef union
591 struct
593 unsigned EID16 : 1;
594 unsigned EID17 : 1;
595 unsigned : 1;
596 unsigned EXIDEN : 1;
597 unsigned : 1;
598 unsigned SID0 : 1;
599 unsigned SID1 : 1;
600 unsigned SID2 : 1;
603 struct
605 unsigned : 5;
606 unsigned SID : 3;
608 } __RXF8SIDLbits_t;
610 extern __at(0x0E51) volatile __RXF8SIDLbits_t RXF8SIDLbits;
612 #define _RXF8SIDL_EID16 0x01
613 #define _RXF8SIDL_EID17 0x02
614 #define _RXF8SIDL_EXIDEN 0x08
615 #define _RXF8SIDL_SID0 0x20
616 #define _RXF8SIDL_SID1 0x40
617 #define _RXF8SIDL_SID2 0x80
619 //==============================================================================
622 //==============================================================================
623 // RXF8EIDH Bits
625 extern __at(0x0E52) __sfr RXF8EIDH;
627 typedef struct
629 unsigned EID8 : 1;
630 unsigned EID9 : 1;
631 unsigned EID10 : 1;
632 unsigned EID11 : 1;
633 unsigned EID12 : 1;
634 unsigned EID13 : 1;
635 unsigned EID14 : 1;
636 unsigned EID15 : 1;
637 } __RXF8EIDHbits_t;
639 extern __at(0x0E52) volatile __RXF8EIDHbits_t RXF8EIDHbits;
641 #define _RXF8EIDH_EID8 0x01
642 #define _RXF8EIDH_EID9 0x02
643 #define _RXF8EIDH_EID10 0x04
644 #define _RXF8EIDH_EID11 0x08
645 #define _RXF8EIDH_EID12 0x10
646 #define _RXF8EIDH_EID13 0x20
647 #define _RXF8EIDH_EID14 0x40
648 #define _RXF8EIDH_EID15 0x80
650 //==============================================================================
653 //==============================================================================
654 // RXF8EIDL Bits
656 extern __at(0x0E53) __sfr RXF8EIDL;
658 typedef struct
660 unsigned EID0 : 1;
661 unsigned EID1 : 1;
662 unsigned EID2 : 1;
663 unsigned EID3 : 1;
664 unsigned EID4 : 1;
665 unsigned EID5 : 1;
666 unsigned EID6 : 1;
667 unsigned EID7 : 1;
668 } __RXF8EIDLbits_t;
670 extern __at(0x0E53) volatile __RXF8EIDLbits_t RXF8EIDLbits;
672 #define _RXF8EIDL_EID0 0x01
673 #define _RXF8EIDL_EID1 0x02
674 #define _RXF8EIDL_EID2 0x04
675 #define _RXF8EIDL_EID3 0x08
676 #define _RXF8EIDL_EID4 0x10
677 #define _RXF8EIDL_EID5 0x20
678 #define _RXF8EIDL_EID6 0x40
679 #define _RXF8EIDL_EID7 0x80
681 //==============================================================================
684 //==============================================================================
685 // RXF9SIDH Bits
687 extern __at(0x0E54) __sfr RXF9SIDH;
689 typedef struct
691 unsigned SID3 : 1;
692 unsigned SID4 : 1;
693 unsigned SID5 : 1;
694 unsigned SID6 : 1;
695 unsigned SID7 : 1;
696 unsigned SID8 : 1;
697 unsigned SID9 : 1;
698 unsigned SID10 : 1;
699 } __RXF9SIDHbits_t;
701 extern __at(0x0E54) volatile __RXF9SIDHbits_t RXF9SIDHbits;
703 #define _RXF9SIDH_SID3 0x01
704 #define _RXF9SIDH_SID4 0x02
705 #define _RXF9SIDH_SID5 0x04
706 #define _RXF9SIDH_SID6 0x08
707 #define _RXF9SIDH_SID7 0x10
708 #define _RXF9SIDH_SID8 0x20
709 #define _RXF9SIDH_SID9 0x40
710 #define _RXF9SIDH_SID10 0x80
712 //==============================================================================
715 //==============================================================================
716 // RXF9SIDL Bits
718 extern __at(0x0E55) __sfr RXF9SIDL;
720 typedef union
722 struct
724 unsigned EID16 : 1;
725 unsigned EID17 : 1;
726 unsigned : 1;
727 unsigned EXIDEN : 1;
728 unsigned : 1;
729 unsigned SID0 : 1;
730 unsigned SID1 : 1;
731 unsigned SID2 : 1;
734 struct
736 unsigned : 5;
737 unsigned SID : 3;
739 } __RXF9SIDLbits_t;
741 extern __at(0x0E55) volatile __RXF9SIDLbits_t RXF9SIDLbits;
743 #define _RXF9SIDL_EID16 0x01
744 #define _RXF9SIDL_EID17 0x02
745 #define _RXF9SIDL_EXIDEN 0x08
746 #define _RXF9SIDL_SID0 0x20
747 #define _RXF9SIDL_SID1 0x40
748 #define _RXF9SIDL_SID2 0x80
750 //==============================================================================
753 //==============================================================================
754 // RXF9EIDH Bits
756 extern __at(0x0E56) __sfr RXF9EIDH;
758 typedef struct
760 unsigned EID8 : 1;
761 unsigned EID9 : 1;
762 unsigned EID10 : 1;
763 unsigned EID11 : 1;
764 unsigned EID12 : 1;
765 unsigned EID13 : 1;
766 unsigned EID14 : 1;
767 unsigned EID15 : 1;
768 } __RXF9EIDHbits_t;
770 extern __at(0x0E56) volatile __RXF9EIDHbits_t RXF9EIDHbits;
772 #define _RXF9EIDH_EID8 0x01
773 #define _RXF9EIDH_EID9 0x02
774 #define _RXF9EIDH_EID10 0x04
775 #define _RXF9EIDH_EID11 0x08
776 #define _RXF9EIDH_EID12 0x10
777 #define _RXF9EIDH_EID13 0x20
778 #define _RXF9EIDH_EID14 0x40
779 #define _RXF9EIDH_EID15 0x80
781 //==============================================================================
784 //==============================================================================
785 // RXF9EIDL Bits
787 extern __at(0x0E57) __sfr RXF9EIDL;
789 typedef struct
791 unsigned EID0 : 1;
792 unsigned EID1 : 1;
793 unsigned EID2 : 1;
794 unsigned EID3 : 1;
795 unsigned EID4 : 1;
796 unsigned EID5 : 1;
797 unsigned EID6 : 1;
798 unsigned EID7 : 1;
799 } __RXF9EIDLbits_t;
801 extern __at(0x0E57) volatile __RXF9EIDLbits_t RXF9EIDLbits;
803 #define _RXF9EIDL_EID0 0x01
804 #define _RXF9EIDL_EID1 0x02
805 #define _RXF9EIDL_EID2 0x04
806 #define _RXF9EIDL_EID3 0x08
807 #define _RXF9EIDL_EID4 0x10
808 #define _RXF9EIDL_EID5 0x20
809 #define _RXF9EIDL_EID6 0x40
810 #define _RXF9EIDL_EID7 0x80
812 //==============================================================================
815 //==============================================================================
816 // RXF10SIDH Bits
818 extern __at(0x0E58) __sfr RXF10SIDH;
820 typedef struct
822 unsigned SID3 : 1;
823 unsigned SID4 : 1;
824 unsigned SID5 : 1;
825 unsigned SID6 : 1;
826 unsigned SID7 : 1;
827 unsigned SID8 : 1;
828 unsigned SID9 : 1;
829 unsigned SID10 : 1;
830 } __RXF10SIDHbits_t;
832 extern __at(0x0E58) volatile __RXF10SIDHbits_t RXF10SIDHbits;
834 #define _RXF10SIDH_SID3 0x01
835 #define _RXF10SIDH_SID4 0x02
836 #define _RXF10SIDH_SID5 0x04
837 #define _RXF10SIDH_SID6 0x08
838 #define _RXF10SIDH_SID7 0x10
839 #define _RXF10SIDH_SID8 0x20
840 #define _RXF10SIDH_SID9 0x40
841 #define _RXF10SIDH_SID10 0x80
843 //==============================================================================
846 //==============================================================================
847 // RXF10SIDL Bits
849 extern __at(0x0E59) __sfr RXF10SIDL;
851 typedef union
853 struct
855 unsigned EID16 : 1;
856 unsigned EID17 : 1;
857 unsigned : 1;
858 unsigned EXIDEN : 1;
859 unsigned : 1;
860 unsigned SID0 : 1;
861 unsigned SID1 : 1;
862 unsigned SID2 : 1;
865 struct
867 unsigned : 5;
868 unsigned SID : 3;
870 } __RXF10SIDLbits_t;
872 extern __at(0x0E59) volatile __RXF10SIDLbits_t RXF10SIDLbits;
874 #define _RXF10SIDL_EID16 0x01
875 #define _RXF10SIDL_EID17 0x02
876 #define _RXF10SIDL_EXIDEN 0x08
877 #define _RXF10SIDL_SID0 0x20
878 #define _RXF10SIDL_SID1 0x40
879 #define _RXF10SIDL_SID2 0x80
881 //==============================================================================
884 //==============================================================================
885 // RXF10EIDH Bits
887 extern __at(0x0E5A) __sfr RXF10EIDH;
889 typedef struct
891 unsigned EID8 : 1;
892 unsigned EID9 : 1;
893 unsigned EID10 : 1;
894 unsigned EID11 : 1;
895 unsigned EID12 : 1;
896 unsigned EID13 : 1;
897 unsigned EID14 : 1;
898 unsigned EID15 : 1;
899 } __RXF10EIDHbits_t;
901 extern __at(0x0E5A) volatile __RXF10EIDHbits_t RXF10EIDHbits;
903 #define _RXF10EIDH_EID8 0x01
904 #define _RXF10EIDH_EID9 0x02
905 #define _RXF10EIDH_EID10 0x04
906 #define _RXF10EIDH_EID11 0x08
907 #define _RXF10EIDH_EID12 0x10
908 #define _RXF10EIDH_EID13 0x20
909 #define _RXF10EIDH_EID14 0x40
910 #define _RXF10EIDH_EID15 0x80
912 //==============================================================================
915 //==============================================================================
916 // RXF10EIDL Bits
918 extern __at(0x0E5B) __sfr RXF10EIDL;
920 typedef struct
922 unsigned EID0 : 1;
923 unsigned EID1 : 1;
924 unsigned EID2 : 1;
925 unsigned EID3 : 1;
926 unsigned EID4 : 1;
927 unsigned EID5 : 1;
928 unsigned EID6 : 1;
929 unsigned EID7 : 1;
930 } __RXF10EIDLbits_t;
932 extern __at(0x0E5B) volatile __RXF10EIDLbits_t RXF10EIDLbits;
934 #define _RXF10EIDL_EID0 0x01
935 #define _RXF10EIDL_EID1 0x02
936 #define _RXF10EIDL_EID2 0x04
937 #define _RXF10EIDL_EID3 0x08
938 #define _RXF10EIDL_EID4 0x10
939 #define _RXF10EIDL_EID5 0x20
940 #define _RXF10EIDL_EID6 0x40
941 #define _RXF10EIDL_EID7 0x80
943 //==============================================================================
946 //==============================================================================
947 // RXF11SIDH Bits
949 extern __at(0x0E5C) __sfr RXF11SIDH;
951 typedef struct
953 unsigned SID3 : 1;
954 unsigned SID4 : 1;
955 unsigned SID5 : 1;
956 unsigned SID6 : 1;
957 unsigned SID7 : 1;
958 unsigned SID8 : 1;
959 unsigned SID9 : 1;
960 unsigned SID10 : 1;
961 } __RXF11SIDHbits_t;
963 extern __at(0x0E5C) volatile __RXF11SIDHbits_t RXF11SIDHbits;
965 #define _RXF11SIDH_SID3 0x01
966 #define _RXF11SIDH_SID4 0x02
967 #define _RXF11SIDH_SID5 0x04
968 #define _RXF11SIDH_SID6 0x08
969 #define _RXF11SIDH_SID7 0x10
970 #define _RXF11SIDH_SID8 0x20
971 #define _RXF11SIDH_SID9 0x40
972 #define _RXF11SIDH_SID10 0x80
974 //==============================================================================
977 //==============================================================================
978 // RXF11SIDL Bits
980 extern __at(0x0E5D) __sfr RXF11SIDL;
982 typedef union
984 struct
986 unsigned EID16 : 1;
987 unsigned EID17 : 1;
988 unsigned : 1;
989 unsigned EXIDEN : 1;
990 unsigned : 1;
991 unsigned SID0 : 1;
992 unsigned SID1 : 1;
993 unsigned SID2 : 1;
996 struct
998 unsigned : 5;
999 unsigned SID : 3;
1001 } __RXF11SIDLbits_t;
1003 extern __at(0x0E5D) volatile __RXF11SIDLbits_t RXF11SIDLbits;
1005 #define _RXF11SIDL_EID16 0x01
1006 #define _RXF11SIDL_EID17 0x02
1007 #define _RXF11SIDL_EXIDEN 0x08
1008 #define _RXF11SIDL_SID0 0x20
1009 #define _RXF11SIDL_SID1 0x40
1010 #define _RXF11SIDL_SID2 0x80
1012 //==============================================================================
1015 //==============================================================================
1016 // RXF11EIDH Bits
1018 extern __at(0x0E5E) __sfr RXF11EIDH;
1020 typedef struct
1022 unsigned EID8 : 1;
1023 unsigned EID9 : 1;
1024 unsigned EID10 : 1;
1025 unsigned EID11 : 1;
1026 unsigned EID12 : 1;
1027 unsigned EID13 : 1;
1028 unsigned EID14 : 1;
1029 unsigned EID15 : 1;
1030 } __RXF11EIDHbits_t;
1032 extern __at(0x0E5E) volatile __RXF11EIDHbits_t RXF11EIDHbits;
1034 #define _RXF11EIDH_EID8 0x01
1035 #define _RXF11EIDH_EID9 0x02
1036 #define _RXF11EIDH_EID10 0x04
1037 #define _RXF11EIDH_EID11 0x08
1038 #define _RXF11EIDH_EID12 0x10
1039 #define _RXF11EIDH_EID13 0x20
1040 #define _RXF11EIDH_EID14 0x40
1041 #define _RXF11EIDH_EID15 0x80
1043 //==============================================================================
1046 //==============================================================================
1047 // RXF11EIDL Bits
1049 extern __at(0x0E5F) __sfr RXF11EIDL;
1051 typedef struct
1053 unsigned EID0 : 1;
1054 unsigned EID1 : 1;
1055 unsigned EID2 : 1;
1056 unsigned EID3 : 1;
1057 unsigned EID4 : 1;
1058 unsigned EID5 : 1;
1059 unsigned EID6 : 1;
1060 unsigned EID7 : 1;
1061 } __RXF11EIDLbits_t;
1063 extern __at(0x0E5F) volatile __RXF11EIDLbits_t RXF11EIDLbits;
1065 #define _RXF11EIDL_EID0 0x01
1066 #define _RXF11EIDL_EID1 0x02
1067 #define _RXF11EIDL_EID2 0x04
1068 #define _RXF11EIDL_EID3 0x08
1069 #define _RXF11EIDL_EID4 0x10
1070 #define _RXF11EIDL_EID5 0x20
1071 #define _RXF11EIDL_EID6 0x40
1072 #define _RXF11EIDL_EID7 0x80
1074 //==============================================================================
1077 //==============================================================================
1078 // RXF12SIDH Bits
1080 extern __at(0x0E60) __sfr RXF12SIDH;
1082 typedef struct
1084 unsigned SID3 : 1;
1085 unsigned SID4 : 1;
1086 unsigned SID5 : 1;
1087 unsigned SID6 : 1;
1088 unsigned SID7 : 1;
1089 unsigned SID8 : 1;
1090 unsigned SID9 : 1;
1091 unsigned SID10 : 1;
1092 } __RXF12SIDHbits_t;
1094 extern __at(0x0E60) volatile __RXF12SIDHbits_t RXF12SIDHbits;
1096 #define _RXF12SIDH_SID3 0x01
1097 #define _RXF12SIDH_SID4 0x02
1098 #define _RXF12SIDH_SID5 0x04
1099 #define _RXF12SIDH_SID6 0x08
1100 #define _RXF12SIDH_SID7 0x10
1101 #define _RXF12SIDH_SID8 0x20
1102 #define _RXF12SIDH_SID9 0x40
1103 #define _RXF12SIDH_SID10 0x80
1105 //==============================================================================
1108 //==============================================================================
1109 // RXF12SIDL Bits
1111 extern __at(0x0E61) __sfr RXF12SIDL;
1113 typedef union
1115 struct
1117 unsigned EID16 : 1;
1118 unsigned EID17 : 1;
1119 unsigned : 1;
1120 unsigned EXIDEN : 1;
1121 unsigned : 1;
1122 unsigned SID0 : 1;
1123 unsigned SID1 : 1;
1124 unsigned SID2 : 1;
1127 struct
1129 unsigned : 5;
1130 unsigned SID : 3;
1132 } __RXF12SIDLbits_t;
1134 extern __at(0x0E61) volatile __RXF12SIDLbits_t RXF12SIDLbits;
1136 #define _RXF12SIDL_EID16 0x01
1137 #define _RXF12SIDL_EID17 0x02
1138 #define _RXF12SIDL_EXIDEN 0x08
1139 #define _RXF12SIDL_SID0 0x20
1140 #define _RXF12SIDL_SID1 0x40
1141 #define _RXF12SIDL_SID2 0x80
1143 //==============================================================================
1146 //==============================================================================
1147 // RXF12EIDH Bits
1149 extern __at(0x0E62) __sfr RXF12EIDH;
1151 typedef struct
1153 unsigned EID8 : 1;
1154 unsigned EID9 : 1;
1155 unsigned EID10 : 1;
1156 unsigned EID11 : 1;
1157 unsigned EID12 : 1;
1158 unsigned EID13 : 1;
1159 unsigned EID14 : 1;
1160 unsigned EID15 : 1;
1161 } __RXF12EIDHbits_t;
1163 extern __at(0x0E62) volatile __RXF12EIDHbits_t RXF12EIDHbits;
1165 #define _RXF12EIDH_EID8 0x01
1166 #define _RXF12EIDH_EID9 0x02
1167 #define _RXF12EIDH_EID10 0x04
1168 #define _RXF12EIDH_EID11 0x08
1169 #define _RXF12EIDH_EID12 0x10
1170 #define _RXF12EIDH_EID13 0x20
1171 #define _RXF12EIDH_EID14 0x40
1172 #define _RXF12EIDH_EID15 0x80
1174 //==============================================================================
1177 //==============================================================================
1178 // RXF12EIDL Bits
1180 extern __at(0x0E63) __sfr RXF12EIDL;
1182 typedef struct
1184 unsigned EID0 : 1;
1185 unsigned EID1 : 1;
1186 unsigned EID2 : 1;
1187 unsigned EID3 : 1;
1188 unsigned EID4 : 1;
1189 unsigned EID5 : 1;
1190 unsigned EID6 : 1;
1191 unsigned EID7 : 1;
1192 } __RXF12EIDLbits_t;
1194 extern __at(0x0E63) volatile __RXF12EIDLbits_t RXF12EIDLbits;
1196 #define _RXF12EIDL_EID0 0x01
1197 #define _RXF12EIDL_EID1 0x02
1198 #define _RXF12EIDL_EID2 0x04
1199 #define _RXF12EIDL_EID3 0x08
1200 #define _RXF12EIDL_EID4 0x10
1201 #define _RXF12EIDL_EID5 0x20
1202 #define _RXF12EIDL_EID6 0x40
1203 #define _RXF12EIDL_EID7 0x80
1205 //==============================================================================
1208 //==============================================================================
1209 // RXF13SIDH Bits
1211 extern __at(0x0E64) __sfr RXF13SIDH;
1213 typedef struct
1215 unsigned SID3 : 1;
1216 unsigned SID4 : 1;
1217 unsigned SID5 : 1;
1218 unsigned SID6 : 1;
1219 unsigned SID7 : 1;
1220 unsigned SID8 : 1;
1221 unsigned SID9 : 1;
1222 unsigned SID10 : 1;
1223 } __RXF13SIDHbits_t;
1225 extern __at(0x0E64) volatile __RXF13SIDHbits_t RXF13SIDHbits;
1227 #define _RXF13SIDH_SID3 0x01
1228 #define _RXF13SIDH_SID4 0x02
1229 #define _RXF13SIDH_SID5 0x04
1230 #define _RXF13SIDH_SID6 0x08
1231 #define _RXF13SIDH_SID7 0x10
1232 #define _RXF13SIDH_SID8 0x20
1233 #define _RXF13SIDH_SID9 0x40
1234 #define _RXF13SIDH_SID10 0x80
1236 //==============================================================================
1239 //==============================================================================
1240 // RXF13SIDL Bits
1242 extern __at(0x0E65) __sfr RXF13SIDL;
1244 typedef union
1246 struct
1248 unsigned EID16 : 1;
1249 unsigned EID17 : 1;
1250 unsigned : 1;
1251 unsigned EXIDEN : 1;
1252 unsigned : 1;
1253 unsigned SID0 : 1;
1254 unsigned SID1 : 1;
1255 unsigned SID2 : 1;
1258 struct
1260 unsigned : 5;
1261 unsigned SID : 3;
1263 } __RXF13SIDLbits_t;
1265 extern __at(0x0E65) volatile __RXF13SIDLbits_t RXF13SIDLbits;
1267 #define _RXF13SIDL_EID16 0x01
1268 #define _RXF13SIDL_EID17 0x02
1269 #define _RXF13SIDL_EXIDEN 0x08
1270 #define _RXF13SIDL_SID0 0x20
1271 #define _RXF13SIDL_SID1 0x40
1272 #define _RXF13SIDL_SID2 0x80
1274 //==============================================================================
1277 //==============================================================================
1278 // RXF13EIDH Bits
1280 extern __at(0x0E66) __sfr RXF13EIDH;
1282 typedef struct
1284 unsigned EID8 : 1;
1285 unsigned EID9 : 1;
1286 unsigned EID10 : 1;
1287 unsigned EID11 : 1;
1288 unsigned EID12 : 1;
1289 unsigned EID13 : 1;
1290 unsigned EID14 : 1;
1291 unsigned EID15 : 1;
1292 } __RXF13EIDHbits_t;
1294 extern __at(0x0E66) volatile __RXF13EIDHbits_t RXF13EIDHbits;
1296 #define _RXF13EIDH_EID8 0x01
1297 #define _RXF13EIDH_EID9 0x02
1298 #define _RXF13EIDH_EID10 0x04
1299 #define _RXF13EIDH_EID11 0x08
1300 #define _RXF13EIDH_EID12 0x10
1301 #define _RXF13EIDH_EID13 0x20
1302 #define _RXF13EIDH_EID14 0x40
1303 #define _RXF13EIDH_EID15 0x80
1305 //==============================================================================
1308 //==============================================================================
1309 // RXF13EIDL Bits
1311 extern __at(0x0E67) __sfr RXF13EIDL;
1313 typedef struct
1315 unsigned EID0 : 1;
1316 unsigned EID1 : 1;
1317 unsigned EID2 : 1;
1318 unsigned EID3 : 1;
1319 unsigned EID4 : 1;
1320 unsigned EID5 : 1;
1321 unsigned EID6 : 1;
1322 unsigned EID7 : 1;
1323 } __RXF13EIDLbits_t;
1325 extern __at(0x0E67) volatile __RXF13EIDLbits_t RXF13EIDLbits;
1327 #define _RXF13EIDL_EID0 0x01
1328 #define _RXF13EIDL_EID1 0x02
1329 #define _RXF13EIDL_EID2 0x04
1330 #define _RXF13EIDL_EID3 0x08
1331 #define _RXF13EIDL_EID4 0x10
1332 #define _RXF13EIDL_EID5 0x20
1333 #define _RXF13EIDL_EID6 0x40
1334 #define _RXF13EIDL_EID7 0x80
1336 //==============================================================================
1339 //==============================================================================
1340 // RXF14SIDH Bits
1342 extern __at(0x0E68) __sfr RXF14SIDH;
1344 typedef struct
1346 unsigned SID3 : 1;
1347 unsigned SID4 : 1;
1348 unsigned SID5 : 1;
1349 unsigned SID6 : 1;
1350 unsigned SID7 : 1;
1351 unsigned SID8 : 1;
1352 unsigned SID9 : 1;
1353 unsigned SID10 : 1;
1354 } __RXF14SIDHbits_t;
1356 extern __at(0x0E68) volatile __RXF14SIDHbits_t RXF14SIDHbits;
1358 #define _RXF14SIDH_SID3 0x01
1359 #define _RXF14SIDH_SID4 0x02
1360 #define _RXF14SIDH_SID5 0x04
1361 #define _RXF14SIDH_SID6 0x08
1362 #define _RXF14SIDH_SID7 0x10
1363 #define _RXF14SIDH_SID8 0x20
1364 #define _RXF14SIDH_SID9 0x40
1365 #define _RXF14SIDH_SID10 0x80
1367 //==============================================================================
1370 //==============================================================================
1371 // RXF14SIDL Bits
1373 extern __at(0x0E69) __sfr RXF14SIDL;
1375 typedef union
1377 struct
1379 unsigned EID16 : 1;
1380 unsigned EID17 : 1;
1381 unsigned : 1;
1382 unsigned EXIDEN : 1;
1383 unsigned : 1;
1384 unsigned SID0 : 1;
1385 unsigned SID1 : 1;
1386 unsigned SID2 : 1;
1389 struct
1391 unsigned : 5;
1392 unsigned SID : 3;
1394 } __RXF14SIDLbits_t;
1396 extern __at(0x0E69) volatile __RXF14SIDLbits_t RXF14SIDLbits;
1398 #define _RXF14SIDL_EID16 0x01
1399 #define _RXF14SIDL_EID17 0x02
1400 #define _RXF14SIDL_EXIDEN 0x08
1401 #define _RXF14SIDL_SID0 0x20
1402 #define _RXF14SIDL_SID1 0x40
1403 #define _RXF14SIDL_SID2 0x80
1405 //==============================================================================
1408 //==============================================================================
1409 // RXF14EIDH Bits
1411 extern __at(0x0E6A) __sfr RXF14EIDH;
1413 typedef struct
1415 unsigned EID8 : 1;
1416 unsigned EID9 : 1;
1417 unsigned EID10 : 1;
1418 unsigned EID11 : 1;
1419 unsigned EID12 : 1;
1420 unsigned EID13 : 1;
1421 unsigned EID14 : 1;
1422 unsigned EID15 : 1;
1423 } __RXF14EIDHbits_t;
1425 extern __at(0x0E6A) volatile __RXF14EIDHbits_t RXF14EIDHbits;
1427 #define _RXF14EIDH_EID8 0x01
1428 #define _RXF14EIDH_EID9 0x02
1429 #define _RXF14EIDH_EID10 0x04
1430 #define _RXF14EIDH_EID11 0x08
1431 #define _RXF14EIDH_EID12 0x10
1432 #define _RXF14EIDH_EID13 0x20
1433 #define _RXF14EIDH_EID14 0x40
1434 #define _RXF14EIDH_EID15 0x80
1436 //==============================================================================
1439 //==============================================================================
1440 // RXF14EIDL Bits
1442 extern __at(0x0E6B) __sfr RXF14EIDL;
1444 typedef struct
1446 unsigned EID0 : 1;
1447 unsigned EID1 : 1;
1448 unsigned EID2 : 1;
1449 unsigned EID3 : 1;
1450 unsigned EID4 : 1;
1451 unsigned EID5 : 1;
1452 unsigned EID6 : 1;
1453 unsigned EID7 : 1;
1454 } __RXF14EIDLbits_t;
1456 extern __at(0x0E6B) volatile __RXF14EIDLbits_t RXF14EIDLbits;
1458 #define _RXF14EIDL_EID0 0x01
1459 #define _RXF14EIDL_EID1 0x02
1460 #define _RXF14EIDL_EID2 0x04
1461 #define _RXF14EIDL_EID3 0x08
1462 #define _RXF14EIDL_EID4 0x10
1463 #define _RXF14EIDL_EID5 0x20
1464 #define _RXF14EIDL_EID6 0x40
1465 #define _RXF14EIDL_EID7 0x80
1467 //==============================================================================
1470 //==============================================================================
1471 // RXF15SIDH Bits
1473 extern __at(0x0E6C) __sfr RXF15SIDH;
1475 typedef struct
1477 unsigned SID3 : 1;
1478 unsigned SID4 : 1;
1479 unsigned SID5 : 1;
1480 unsigned SID6 : 1;
1481 unsigned SID7 : 1;
1482 unsigned SID8 : 1;
1483 unsigned SID9 : 1;
1484 unsigned SID10 : 1;
1485 } __RXF15SIDHbits_t;
1487 extern __at(0x0E6C) volatile __RXF15SIDHbits_t RXF15SIDHbits;
1489 #define _RXF15SIDH_SID3 0x01
1490 #define _RXF15SIDH_SID4 0x02
1491 #define _RXF15SIDH_SID5 0x04
1492 #define _RXF15SIDH_SID6 0x08
1493 #define _RXF15SIDH_SID7 0x10
1494 #define _RXF15SIDH_SID8 0x20
1495 #define _RXF15SIDH_SID9 0x40
1496 #define _RXF15SIDH_SID10 0x80
1498 //==============================================================================
1501 //==============================================================================
1502 // RXF15SIDL Bits
1504 extern __at(0x0E6D) __sfr RXF15SIDL;
1506 typedef union
1508 struct
1510 unsigned EID16 : 1;
1511 unsigned EID17 : 1;
1512 unsigned : 1;
1513 unsigned EXIDEN : 1;
1514 unsigned : 1;
1515 unsigned SID0 : 1;
1516 unsigned SID1 : 1;
1517 unsigned SID2 : 1;
1520 struct
1522 unsigned : 5;
1523 unsigned SID : 3;
1525 } __RXF15SIDLbits_t;
1527 extern __at(0x0E6D) volatile __RXF15SIDLbits_t RXF15SIDLbits;
1529 #define _RXF15SIDL_EID16 0x01
1530 #define _RXF15SIDL_EID17 0x02
1531 #define _RXF15SIDL_EXIDEN 0x08
1532 #define _RXF15SIDL_SID0 0x20
1533 #define _RXF15SIDL_SID1 0x40
1534 #define _RXF15SIDL_SID2 0x80
1536 //==============================================================================
1539 //==============================================================================
1540 // RXF15EIDH Bits
1542 extern __at(0x0E6E) __sfr RXF15EIDH;
1544 typedef struct
1546 unsigned EID8 : 1;
1547 unsigned EID9 : 1;
1548 unsigned EID10 : 1;
1549 unsigned EID11 : 1;
1550 unsigned EID12 : 1;
1551 unsigned EID13 : 1;
1552 unsigned EID14 : 1;
1553 unsigned EID15 : 1;
1554 } __RXF15EIDHbits_t;
1556 extern __at(0x0E6E) volatile __RXF15EIDHbits_t RXF15EIDHbits;
1558 #define _RXF15EIDH_EID8 0x01
1559 #define _RXF15EIDH_EID9 0x02
1560 #define _RXF15EIDH_EID10 0x04
1561 #define _RXF15EIDH_EID11 0x08
1562 #define _RXF15EIDH_EID12 0x10
1563 #define _RXF15EIDH_EID13 0x20
1564 #define _RXF15EIDH_EID14 0x40
1565 #define _RXF15EIDH_EID15 0x80
1567 //==============================================================================
1570 //==============================================================================
1571 // RXF15EIDL Bits
1573 extern __at(0x0E6F) __sfr RXF15EIDL;
1575 typedef struct
1577 unsigned EID0 : 1;
1578 unsigned EID1 : 1;
1579 unsigned EID2 : 1;
1580 unsigned EID3 : 1;
1581 unsigned EID4 : 1;
1582 unsigned EID5 : 1;
1583 unsigned EID6 : 1;
1584 unsigned EID7 : 1;
1585 } __RXF15EIDLbits_t;
1587 extern __at(0x0E6F) volatile __RXF15EIDLbits_t RXF15EIDLbits;
1589 #define _RXF15EIDL_EID0 0x01
1590 #define _RXF15EIDL_EID1 0x02
1591 #define _RXF15EIDL_EID2 0x04
1592 #define _RXF15EIDL_EID3 0x08
1593 #define _RXF15EIDL_EID4 0x10
1594 #define _RXF15EIDL_EID5 0x20
1595 #define _RXF15EIDL_EID6 0x40
1596 #define _RXF15EIDL_EID7 0x80
1598 //==============================================================================
1601 //==============================================================================
1602 // SDFLC Bits
1604 extern __at(0x0E70) __sfr SDFLC;
1606 typedef union
1608 struct
1610 unsigned FLC0 : 1;
1611 unsigned FLC1 : 1;
1612 unsigned FLC2 : 1;
1613 unsigned FLC3 : 1;
1614 unsigned FLC4 : 1;
1615 unsigned : 1;
1616 unsigned : 1;
1617 unsigned : 1;
1620 struct
1622 unsigned FLC : 5;
1623 unsigned : 3;
1625 } __SDFLCbits_t;
1627 extern __at(0x0E70) volatile __SDFLCbits_t SDFLCbits;
1629 #define _FLC0 0x01
1630 #define _FLC1 0x02
1631 #define _FLC2 0x04
1632 #define _FLC3 0x08
1633 #define _FLC4 0x10
1635 //==============================================================================
1638 //==============================================================================
1639 // RXFBCON0 Bits
1641 extern __at(0x0E71) __sfr RXFBCON0;
1643 typedef union
1645 struct
1647 unsigned F0BP_0 : 1;
1648 unsigned F0BP_1 : 1;
1649 unsigned F0BP_2 : 1;
1650 unsigned F0BP_3 : 1;
1651 unsigned F1BP_0 : 1;
1652 unsigned F1BP_1 : 1;
1653 unsigned F1BP_2 : 1;
1654 unsigned F1BP_3 : 1;
1657 struct
1659 unsigned F0BP_ : 4;
1660 unsigned : 4;
1663 struct
1665 unsigned : 4;
1666 unsigned F1BP_ : 4;
1668 } __RXFBCON0bits_t;
1670 extern __at(0x0E71) volatile __RXFBCON0bits_t RXFBCON0bits;
1672 #define _F0BP_0 0x01
1673 #define _F0BP_1 0x02
1674 #define _F0BP_2 0x04
1675 #define _F0BP_3 0x08
1676 #define _F1BP_0 0x10
1677 #define _F1BP_1 0x20
1678 #define _F1BP_2 0x40
1679 #define _F1BP_3 0x80
1681 //==============================================================================
1684 //==============================================================================
1685 // RXFBCON1 Bits
1687 extern __at(0x0E72) __sfr RXFBCON1;
1689 typedef union
1691 struct
1693 unsigned F2BP_0 : 1;
1694 unsigned F2BP_1 : 1;
1695 unsigned F2BP_2 : 1;
1696 unsigned F2BP_3 : 1;
1697 unsigned F3BP_0 : 1;
1698 unsigned F3BP_1 : 1;
1699 unsigned F3BP_2 : 1;
1700 unsigned F3BP_3 : 1;
1703 struct
1705 unsigned F2BP_ : 4;
1706 unsigned : 4;
1709 struct
1711 unsigned : 4;
1712 unsigned F3BP_ : 4;
1714 } __RXFBCON1bits_t;
1716 extern __at(0x0E72) volatile __RXFBCON1bits_t RXFBCON1bits;
1718 #define _F2BP_0 0x01
1719 #define _F2BP_1 0x02
1720 #define _F2BP_2 0x04
1721 #define _F2BP_3 0x08
1722 #define _F3BP_0 0x10
1723 #define _F3BP_1 0x20
1724 #define _F3BP_2 0x40
1725 #define _F3BP_3 0x80
1727 //==============================================================================
1730 //==============================================================================
1731 // RXFBCON2 Bits
1733 extern __at(0x0E73) __sfr RXFBCON2;
1735 typedef union
1737 struct
1739 unsigned F4BP_0 : 1;
1740 unsigned F4BP_1 : 1;
1741 unsigned F4BP_2 : 1;
1742 unsigned F4BP_3 : 1;
1743 unsigned F5BP_0 : 1;
1744 unsigned F5BP_1 : 1;
1745 unsigned F5BP_2 : 1;
1746 unsigned F5BP_3 : 1;
1749 struct
1751 unsigned F4BP_ : 4;
1752 unsigned : 4;
1755 struct
1757 unsigned : 4;
1758 unsigned F5BP_ : 4;
1760 } __RXFBCON2bits_t;
1762 extern __at(0x0E73) volatile __RXFBCON2bits_t RXFBCON2bits;
1764 #define _F4BP_0 0x01
1765 #define _F4BP_1 0x02
1766 #define _F4BP_2 0x04
1767 #define _F4BP_3 0x08
1768 #define _F5BP_0 0x10
1769 #define _F5BP_1 0x20
1770 #define _F5BP_2 0x40
1771 #define _F5BP_3 0x80
1773 //==============================================================================
1776 //==============================================================================
1777 // RXFBCON3 Bits
1779 extern __at(0x0E74) __sfr RXFBCON3;
1781 typedef union
1783 struct
1785 unsigned F6BP_0 : 1;
1786 unsigned F6BP_1 : 1;
1787 unsigned F6BP_2 : 1;
1788 unsigned F6BP_3 : 1;
1789 unsigned F7BP_0 : 1;
1790 unsigned F7BP_1 : 1;
1791 unsigned F7BP_2 : 1;
1792 unsigned F7BP_3 : 1;
1795 struct
1797 unsigned F6BP_ : 4;
1798 unsigned : 4;
1801 struct
1803 unsigned : 4;
1804 unsigned F7BP_ : 4;
1806 } __RXFBCON3bits_t;
1808 extern __at(0x0E74) volatile __RXFBCON3bits_t RXFBCON3bits;
1810 #define _F6BP_0 0x01
1811 #define _F6BP_1 0x02
1812 #define _F6BP_2 0x04
1813 #define _F6BP_3 0x08
1814 #define _F7BP_0 0x10
1815 #define _F7BP_1 0x20
1816 #define _F7BP_2 0x40
1817 #define _F7BP_3 0x80
1819 //==============================================================================
1822 //==============================================================================
1823 // RXFBCON4 Bits
1825 extern __at(0x0E75) __sfr RXFBCON4;
1827 typedef union
1829 struct
1831 unsigned F8BP_0 : 1;
1832 unsigned F8BP_1 : 1;
1833 unsigned F8BP_2 : 1;
1834 unsigned F8BP_3 : 1;
1835 unsigned F9BP_0 : 1;
1836 unsigned F9BP_1 : 1;
1837 unsigned F9BP_2 : 1;
1838 unsigned F9BP_3 : 1;
1841 struct
1843 unsigned F8BP_ : 4;
1844 unsigned : 4;
1847 struct
1849 unsigned : 4;
1850 unsigned F9BP_ : 4;
1852 } __RXFBCON4bits_t;
1854 extern __at(0x0E75) volatile __RXFBCON4bits_t RXFBCON4bits;
1856 #define _F8BP_0 0x01
1857 #define _F8BP_1 0x02
1858 #define _F8BP_2 0x04
1859 #define _F8BP_3 0x08
1860 #define _F9BP_0 0x10
1861 #define _F9BP_1 0x20
1862 #define _F9BP_2 0x40
1863 #define _F9BP_3 0x80
1865 //==============================================================================
1868 //==============================================================================
1869 // RXFBCON5 Bits
1871 extern __at(0x0E76) __sfr RXFBCON5;
1873 typedef union
1875 struct
1877 unsigned F10BP_0 : 1;
1878 unsigned F10BP_1 : 1;
1879 unsigned F10BP_2 : 1;
1880 unsigned F10BP_3 : 1;
1881 unsigned F11BP_0 : 1;
1882 unsigned F11BP_1 : 1;
1883 unsigned F11BP_2 : 1;
1884 unsigned F11BP_3 : 1;
1887 struct
1889 unsigned F10BP_ : 4;
1890 unsigned : 4;
1893 struct
1895 unsigned : 4;
1896 unsigned F11BP_ : 4;
1898 } __RXFBCON5bits_t;
1900 extern __at(0x0E76) volatile __RXFBCON5bits_t RXFBCON5bits;
1902 #define _F10BP_0 0x01
1903 #define _F10BP_1 0x02
1904 #define _F10BP_2 0x04
1905 #define _F10BP_3 0x08
1906 #define _F11BP_0 0x10
1907 #define _F11BP_1 0x20
1908 #define _F11BP_2 0x40
1909 #define _F11BP_3 0x80
1911 //==============================================================================
1914 //==============================================================================
1915 // RXFBCON6 Bits
1917 extern __at(0x0E77) __sfr RXFBCON6;
1919 typedef union
1921 struct
1923 unsigned F12BP_0 : 1;
1924 unsigned F12BP_1 : 1;
1925 unsigned F12BP_2 : 1;
1926 unsigned F12BP_3 : 1;
1927 unsigned F13BP_0 : 1;
1928 unsigned F13BP_1 : 1;
1929 unsigned F13BP_2 : 1;
1930 unsigned F13BP_3 : 1;
1933 struct
1935 unsigned F12BP_ : 4;
1936 unsigned : 4;
1939 struct
1941 unsigned : 4;
1942 unsigned F13BP_ : 4;
1944 } __RXFBCON6bits_t;
1946 extern __at(0x0E77) volatile __RXFBCON6bits_t RXFBCON6bits;
1948 #define _F12BP_0 0x01
1949 #define _F12BP_1 0x02
1950 #define _F12BP_2 0x04
1951 #define _F12BP_3 0x08
1952 #define _F13BP_0 0x10
1953 #define _F13BP_1 0x20
1954 #define _F13BP_2 0x40
1955 #define _F13BP_3 0x80
1957 //==============================================================================
1960 //==============================================================================
1961 // RXFBCON7 Bits
1963 extern __at(0x0E78) __sfr RXFBCON7;
1965 typedef union
1967 struct
1969 unsigned F14BP_0 : 1;
1970 unsigned F14BP_1 : 1;
1971 unsigned F14BP_2 : 1;
1972 unsigned F14BP_3 : 1;
1973 unsigned F15BP_0 : 1;
1974 unsigned F15BP_1 : 1;
1975 unsigned F15BP_2 : 1;
1976 unsigned F15BP_3 : 1;
1979 struct
1981 unsigned F14BP_ : 4;
1982 unsigned : 4;
1985 struct
1987 unsigned : 4;
1988 unsigned F15BP_ : 4;
1990 } __RXFBCON7bits_t;
1992 extern __at(0x0E78) volatile __RXFBCON7bits_t RXFBCON7bits;
1994 #define _F14BP_0 0x01
1995 #define _F14BP_1 0x02
1996 #define _F14BP_2 0x04
1997 #define _F14BP_3 0x08
1998 #define _F15BP_0 0x10
1999 #define _F15BP_1 0x20
2000 #define _F15BP_2 0x40
2001 #define _F15BP_3 0x80
2003 //==============================================================================
2006 //==============================================================================
2007 // MSEL0 Bits
2009 extern __at(0x0E79) __sfr MSEL0;
2011 typedef union
2013 struct
2015 unsigned FIL0_0 : 1;
2016 unsigned FIL0_1 : 1;
2017 unsigned FIL1_0 : 1;
2018 unsigned FIL1_1 : 1;
2019 unsigned FIL2_0 : 1;
2020 unsigned FIL2_1 : 1;
2021 unsigned FIL3_0 : 1;
2022 unsigned FIL3_1 : 1;
2025 struct
2027 unsigned FIL0_ : 2;
2028 unsigned : 6;
2031 struct
2033 unsigned : 2;
2034 unsigned FIL1_ : 2;
2035 unsigned : 4;
2038 struct
2040 unsigned : 4;
2041 unsigned FIL2_ : 2;
2042 unsigned : 2;
2045 struct
2047 unsigned : 6;
2048 unsigned FIL3_ : 2;
2050 } __MSEL0bits_t;
2052 extern __at(0x0E79) volatile __MSEL0bits_t MSEL0bits;
2054 #define _FIL0_0 0x01
2055 #define _FIL0_1 0x02
2056 #define _FIL1_0 0x04
2057 #define _FIL1_1 0x08
2058 #define _FIL2_0 0x10
2059 #define _FIL2_1 0x20
2060 #define _FIL3_0 0x40
2061 #define _FIL3_1 0x80
2063 //==============================================================================
2066 //==============================================================================
2067 // MSEL1 Bits
2069 extern __at(0x0E7A) __sfr MSEL1;
2071 typedef union
2073 struct
2075 unsigned FIL4_0 : 1;
2076 unsigned FIL4_1 : 1;
2077 unsigned FIL5_0 : 1;
2078 unsigned FIL5_1 : 1;
2079 unsigned FIL6_0 : 1;
2080 unsigned FIL6_1 : 1;
2081 unsigned FIL7_0 : 1;
2082 unsigned FIL7_1 : 1;
2085 struct
2087 unsigned FIL4_ : 2;
2088 unsigned : 6;
2091 struct
2093 unsigned : 2;
2094 unsigned FIL5_ : 2;
2095 unsigned : 4;
2098 struct
2100 unsigned : 4;
2101 unsigned FIL6_ : 2;
2102 unsigned : 2;
2105 struct
2107 unsigned : 6;
2108 unsigned FIL7_ : 2;
2110 } __MSEL1bits_t;
2112 extern __at(0x0E7A) volatile __MSEL1bits_t MSEL1bits;
2114 #define _FIL4_0 0x01
2115 #define _FIL4_1 0x02
2116 #define _FIL5_0 0x04
2117 #define _FIL5_1 0x08
2118 #define _FIL6_0 0x10
2119 #define _FIL6_1 0x20
2120 #define _FIL7_0 0x40
2121 #define _FIL7_1 0x80
2123 //==============================================================================
2126 //==============================================================================
2127 // MSEL2 Bits
2129 extern __at(0x0E7B) __sfr MSEL2;
2131 typedef union
2133 struct
2135 unsigned FIL8_0 : 1;
2136 unsigned FIL8_1 : 1;
2137 unsigned FIL9_0 : 1;
2138 unsigned FIL9_1 : 1;
2139 unsigned FIL10_0 : 1;
2140 unsigned FIL10_1 : 1;
2141 unsigned FIL11_0 : 1;
2142 unsigned FIL11_1 : 1;
2145 struct
2147 unsigned FIL8_ : 2;
2148 unsigned : 6;
2151 struct
2153 unsigned : 2;
2154 unsigned FIL9_ : 2;
2155 unsigned : 4;
2158 struct
2160 unsigned : 4;
2161 unsigned FIL10_ : 2;
2162 unsigned : 2;
2165 struct
2167 unsigned : 6;
2168 unsigned FIL11_ : 2;
2170 } __MSEL2bits_t;
2172 extern __at(0x0E7B) volatile __MSEL2bits_t MSEL2bits;
2174 #define _FIL8_0 0x01
2175 #define _FIL8_1 0x02
2176 #define _FIL9_0 0x04
2177 #define _FIL9_1 0x08
2178 #define _FIL10_0 0x10
2179 #define _FIL10_1 0x20
2180 #define _FIL11_0 0x40
2181 #define _FIL11_1 0x80
2183 //==============================================================================
2186 //==============================================================================
2187 // MSEL3 Bits
2189 extern __at(0x0E7C) __sfr MSEL3;
2191 typedef union
2193 struct
2195 unsigned FIL12_0 : 1;
2196 unsigned FIL12_1 : 1;
2197 unsigned FIL13_0 : 1;
2198 unsigned FIL13_1 : 1;
2199 unsigned FIL14_0 : 1;
2200 unsigned FIL14_1 : 1;
2201 unsigned FIL15_0 : 1;
2202 unsigned FIL15_1 : 1;
2205 struct
2207 unsigned FIL12_ : 2;
2208 unsigned : 6;
2211 struct
2213 unsigned : 2;
2214 unsigned FIL13_ : 2;
2215 unsigned : 4;
2218 struct
2220 unsigned : 4;
2221 unsigned FIL14_ : 2;
2222 unsigned : 2;
2225 struct
2227 unsigned : 6;
2228 unsigned FIL15_ : 2;
2230 } __MSEL3bits_t;
2232 extern __at(0x0E7C) volatile __MSEL3bits_t MSEL3bits;
2234 #define _FIL12_0 0x01
2235 #define _FIL12_1 0x02
2236 #define _FIL13_0 0x04
2237 #define _FIL13_1 0x08
2238 #define _FIL14_0 0x10
2239 #define _FIL14_1 0x20
2240 #define _FIL15_0 0x40
2241 #define _FIL15_1 0x80
2243 //==============================================================================
2246 //==============================================================================
2247 // BSEL0 Bits
2249 extern __at(0x0E7D) __sfr BSEL0;
2251 typedef struct
2253 unsigned : 1;
2254 unsigned : 1;
2255 unsigned B0TXEN : 1;
2256 unsigned B1TXEN : 1;
2257 unsigned B2TXEN : 1;
2258 unsigned B3TXEN : 1;
2259 unsigned B4TXEN : 1;
2260 unsigned B5TXEN : 1;
2261 } __BSEL0bits_t;
2263 extern __at(0x0E7D) volatile __BSEL0bits_t BSEL0bits;
2265 #define _B0TXEN 0x04
2266 #define _B1TXEN 0x08
2267 #define _B2TXEN 0x10
2268 #define _B3TXEN 0x20
2269 #define _B4TXEN 0x40
2270 #define _B5TXEN 0x80
2272 //==============================================================================
2275 //==============================================================================
2276 // BIE0 Bits
2278 extern __at(0x0E7E) __sfr BIE0;
2280 typedef struct
2282 unsigned RXB0IE : 1;
2283 unsigned RXB1IE : 1;
2284 unsigned B0IE : 1;
2285 unsigned B1IE : 1;
2286 unsigned B2IE : 1;
2287 unsigned B3IE : 1;
2288 unsigned B4IE : 1;
2289 unsigned B5IE : 1;
2290 } __BIE0bits_t;
2292 extern __at(0x0E7E) volatile __BIE0bits_t BIE0bits;
2294 #define _RXB0IE 0x01
2295 #define _RXB1IE 0x02
2296 #define _B0IE 0x04
2297 #define _B1IE 0x08
2298 #define _B2IE 0x10
2299 #define _B3IE 0x20
2300 #define _B4IE 0x40
2301 #define _B5IE 0x80
2303 //==============================================================================
2306 //==============================================================================
2307 // TXBIE Bits
2309 extern __at(0x0E7F) __sfr TXBIE;
2311 typedef struct
2313 unsigned : 1;
2314 unsigned : 1;
2315 unsigned TXB0IE : 1;
2316 unsigned TXB1IE : 1;
2317 unsigned TXB2IE : 1;
2318 unsigned : 1;
2319 unsigned : 1;
2320 unsigned : 1;
2321 } __TXBIEbits_t;
2323 extern __at(0x0E7F) volatile __TXBIEbits_t TXBIEbits;
2325 #define _TXBIE_TXB0IE 0x04
2326 #define _TXBIE_TXB1IE 0x08
2327 #define _TXBIE_TXB2IE 0x10
2329 //==============================================================================
2332 //==============================================================================
2333 // B0CON Bits
2335 extern __at(0x0E80) __sfr B0CON;
2337 typedef union
2339 struct
2341 unsigned FILHIT0_TXPRI0 : 1;
2342 unsigned FILHIT1_TXPRI1 : 1;
2343 unsigned FILHIT2_RTREN : 1;
2344 unsigned FILHIT3_TXREQ : 1;
2345 unsigned FILHIT4_TXERR : 1;
2346 unsigned RXRTRRO_TXLARB : 1;
2347 unsigned RXM1_TXABT : 1;
2348 unsigned RXFUL_TXBIF : 1;
2351 struct
2353 unsigned FILHIT0 : 1;
2354 unsigned FILHIT1 : 1;
2355 unsigned FILHIT2 : 1;
2356 unsigned FILHIT3 : 1;
2357 unsigned FILHIT4 : 1;
2358 unsigned RXRTRRO : 1;
2359 unsigned RXM1 : 1;
2360 unsigned RXFUL : 1;
2363 struct
2365 unsigned TXPRI0 : 1;
2366 unsigned TXPRI1 : 1;
2367 unsigned RTREN : 1;
2368 unsigned TXREQ : 1;
2369 unsigned TXERR : 1;
2370 unsigned TXLARB : 1;
2371 unsigned TXABT : 1;
2372 unsigned TXBIF : 1;
2375 struct
2377 unsigned FILHIT : 5;
2378 unsigned : 3;
2381 struct
2383 unsigned TXPRI : 2;
2384 unsigned : 6;
2386 } __B0CONbits_t;
2388 extern __at(0x0E80) volatile __B0CONbits_t B0CONbits;
2390 #define _FILHIT0_TXPRI0 0x01
2391 #define _FILHIT0 0x01
2392 #define _TXPRI0 0x01
2393 #define _FILHIT1_TXPRI1 0x02
2394 #define _FILHIT1 0x02
2395 #define _TXPRI1 0x02
2396 #define _FILHIT2_RTREN 0x04
2397 #define _FILHIT2 0x04
2398 #define _RTREN 0x04
2399 #define _FILHIT3_TXREQ 0x08
2400 #define _FILHIT3 0x08
2401 #define _TXREQ 0x08
2402 #define _FILHIT4_TXERR 0x10
2403 #define _FILHIT4 0x10
2404 #define _TXERR 0x10
2405 #define _RXRTRRO_TXLARB 0x20
2406 #define _RXRTRRO 0x20
2407 #define _TXLARB 0x20
2408 #define _RXM1_TXABT 0x40
2409 #define _RXM1 0x40
2410 #define _TXABT 0x40
2411 #define _RXFUL_TXBIF 0x80
2412 #define _RXFUL 0x80
2413 #define _TXBIF 0x80
2415 //==============================================================================
2418 //==============================================================================
2419 // B0SIDH Bits
2421 extern __at(0x0E81) __sfr B0SIDH;
2423 typedef struct
2425 unsigned SID3 : 1;
2426 unsigned SID4 : 1;
2427 unsigned SID5 : 1;
2428 unsigned SID6 : 1;
2429 unsigned SID7 : 1;
2430 unsigned SID8 : 1;
2431 unsigned SID9 : 1;
2432 unsigned SID10 : 1;
2433 } __B0SIDHbits_t;
2435 extern __at(0x0E81) volatile __B0SIDHbits_t B0SIDHbits;
2437 #define _SID3 0x01
2438 #define _SID4 0x02
2439 #define _SID5 0x04
2440 #define _SID6 0x08
2441 #define _SID7 0x10
2442 #define _SID8 0x20
2443 #define _SID9 0x40
2444 #define _SID10 0x80
2446 //==============================================================================
2449 //==============================================================================
2450 // B0SIDL Bits
2452 extern __at(0x0E82) __sfr B0SIDL;
2454 typedef union
2456 struct
2458 unsigned EID16 : 1;
2459 unsigned EID17 : 1;
2460 unsigned : 1;
2461 unsigned EXIDE : 1;
2462 unsigned SRR : 1;
2463 unsigned SID0 : 1;
2464 unsigned SID1 : 1;
2465 unsigned SID2 : 1;
2468 struct
2470 unsigned : 5;
2471 unsigned SID : 3;
2473 } __B0SIDLbits_t;
2475 extern __at(0x0E82) volatile __B0SIDLbits_t B0SIDLbits;
2477 #define _EID16 0x01
2478 #define _EID17 0x02
2479 #define _EXIDE 0x08
2480 #define _SRR 0x10
2481 #define _SID0 0x20
2482 #define _SID1 0x40
2483 #define _SID2 0x80
2485 //==============================================================================
2488 //==============================================================================
2489 // B0EIDH Bits
2491 extern __at(0x0E83) __sfr B0EIDH;
2493 typedef struct
2495 unsigned EID8 : 1;
2496 unsigned EID9 : 1;
2497 unsigned EID10 : 1;
2498 unsigned EID11 : 1;
2499 unsigned EID12 : 1;
2500 unsigned EID13 : 1;
2501 unsigned EID14 : 1;
2502 unsigned EID15 : 1;
2503 } __B0EIDHbits_t;
2505 extern __at(0x0E83) volatile __B0EIDHbits_t B0EIDHbits;
2507 #define _EID8 0x01
2508 #define _EID9 0x02
2509 #define _EID10 0x04
2510 #define _EID11 0x08
2511 #define _EID12 0x10
2512 #define _EID13 0x20
2513 #define _EID14 0x40
2514 #define _EID15 0x80
2516 //==============================================================================
2519 //==============================================================================
2520 // B0EIDL Bits
2522 extern __at(0x0E84) __sfr B0EIDL;
2524 typedef struct
2526 unsigned EID0 : 1;
2527 unsigned EID1 : 1;
2528 unsigned EID2 : 1;
2529 unsigned EID3 : 1;
2530 unsigned EID4 : 1;
2531 unsigned EID5 : 1;
2532 unsigned EID6 : 1;
2533 unsigned EID7 : 1;
2534 } __B0EIDLbits_t;
2536 extern __at(0x0E84) volatile __B0EIDLbits_t B0EIDLbits;
2538 #define _EID0 0x01
2539 #define _EID1 0x02
2540 #define _EID2 0x04
2541 #define _EID3 0x08
2542 #define _EID4 0x10
2543 #define _EID5 0x20
2544 #define _EID6 0x40
2545 #define _EID7 0x80
2547 //==============================================================================
2550 //==============================================================================
2551 // B0DLC Bits
2553 extern __at(0x0E85) __sfr B0DLC;
2555 typedef union
2557 struct
2559 unsigned DLC0 : 1;
2560 unsigned DLC1 : 1;
2561 unsigned DLC2 : 1;
2562 unsigned DLC3 : 1;
2563 unsigned RB0 : 1;
2564 unsigned RB1 : 1;
2565 unsigned RXRTR_TXRTR : 1;
2566 unsigned : 1;
2569 struct
2571 unsigned : 1;
2572 unsigned : 1;
2573 unsigned : 1;
2574 unsigned : 1;
2575 unsigned : 1;
2576 unsigned : 1;
2577 unsigned RXRTR : 1;
2578 unsigned : 1;
2581 struct
2583 unsigned : 1;
2584 unsigned : 1;
2585 unsigned : 1;
2586 unsigned : 1;
2587 unsigned : 1;
2588 unsigned : 1;
2589 unsigned TXRTR : 1;
2590 unsigned : 1;
2593 struct
2595 unsigned DLC : 4;
2596 unsigned : 4;
2599 struct
2601 unsigned : 4;
2602 unsigned RB : 2;
2603 unsigned : 2;
2605 } __B0DLCbits_t;
2607 extern __at(0x0E85) volatile __B0DLCbits_t B0DLCbits;
2609 #define _DLC0 0x01
2610 #define _DLC1 0x02
2611 #define _DLC2 0x04
2612 #define _DLC3 0x08
2613 #define _RB0 0x10
2614 #define _RB1 0x20
2615 #define _RXRTR_TXRTR 0x40
2616 #define _RXRTR 0x40
2617 #define _TXRTR 0x40
2619 //==============================================================================
2622 //==============================================================================
2623 // B0D0 Bits
2625 extern __at(0x0E86) __sfr B0D0;
2627 typedef struct
2629 unsigned B0D00 : 1;
2630 unsigned B0D01 : 1;
2631 unsigned B0D02 : 1;
2632 unsigned B0D03 : 1;
2633 unsigned B0D04 : 1;
2634 unsigned B0D05 : 1;
2635 unsigned B0D06 : 1;
2636 unsigned B0D07 : 1;
2637 } __B0D0bits_t;
2639 extern __at(0x0E86) volatile __B0D0bits_t B0D0bits;
2641 #define _B0D00 0x01
2642 #define _B0D01 0x02
2643 #define _B0D02 0x04
2644 #define _B0D03 0x08
2645 #define _B0D04 0x10
2646 #define _B0D05 0x20
2647 #define _B0D06 0x40
2648 #define _B0D07 0x80
2650 //==============================================================================
2653 //==============================================================================
2654 // B0D1 Bits
2656 extern __at(0x0E87) __sfr B0D1;
2658 typedef struct
2660 unsigned B0D10 : 1;
2661 unsigned B0D11 : 1;
2662 unsigned B0D12 : 1;
2663 unsigned B0D13 : 1;
2664 unsigned B0D14 : 1;
2665 unsigned B0D15 : 1;
2666 unsigned B0D16 : 1;
2667 unsigned B0D17 : 1;
2668 } __B0D1bits_t;
2670 extern __at(0x0E87) volatile __B0D1bits_t B0D1bits;
2672 #define _B0D10 0x01
2673 #define _B0D11 0x02
2674 #define _B0D12 0x04
2675 #define _B0D13 0x08
2676 #define _B0D14 0x10
2677 #define _B0D15 0x20
2678 #define _B0D16 0x40
2679 #define _B0D17 0x80
2681 //==============================================================================
2684 //==============================================================================
2685 // B0D2 Bits
2687 extern __at(0x0E88) __sfr B0D2;
2689 typedef struct
2691 unsigned B0D20 : 1;
2692 unsigned B0D21 : 1;
2693 unsigned B0D22 : 1;
2694 unsigned B0D23 : 1;
2695 unsigned B0D24 : 1;
2696 unsigned B0D25 : 1;
2697 unsigned B0D26 : 1;
2698 unsigned B0D27 : 1;
2699 } __B0D2bits_t;
2701 extern __at(0x0E88) volatile __B0D2bits_t B0D2bits;
2703 #define _B0D20 0x01
2704 #define _B0D21 0x02
2705 #define _B0D22 0x04
2706 #define _B0D23 0x08
2707 #define _B0D24 0x10
2708 #define _B0D25 0x20
2709 #define _B0D26 0x40
2710 #define _B0D27 0x80
2712 //==============================================================================
2715 //==============================================================================
2716 // B0D3 Bits
2718 extern __at(0x0E89) __sfr B0D3;
2720 typedef struct
2722 unsigned B0D30 : 1;
2723 unsigned B0D31 : 1;
2724 unsigned B0D32 : 1;
2725 unsigned B0D33 : 1;
2726 unsigned B0D34 : 1;
2727 unsigned B0D35 : 1;
2728 unsigned B0D36 : 1;
2729 unsigned B0D37 : 1;
2730 } __B0D3bits_t;
2732 extern __at(0x0E89) volatile __B0D3bits_t B0D3bits;
2734 #define _B0D30 0x01
2735 #define _B0D31 0x02
2736 #define _B0D32 0x04
2737 #define _B0D33 0x08
2738 #define _B0D34 0x10
2739 #define _B0D35 0x20
2740 #define _B0D36 0x40
2741 #define _B0D37 0x80
2743 //==============================================================================
2746 //==============================================================================
2747 // B0D4 Bits
2749 extern __at(0x0E8A) __sfr B0D4;
2751 typedef struct
2753 unsigned B0D40 : 1;
2754 unsigned B0D41 : 1;
2755 unsigned B0D42 : 1;
2756 unsigned B0D43 : 1;
2757 unsigned B0D44 : 1;
2758 unsigned B0D45 : 1;
2759 unsigned B0D46 : 1;
2760 unsigned B0D47 : 1;
2761 } __B0D4bits_t;
2763 extern __at(0x0E8A) volatile __B0D4bits_t B0D4bits;
2765 #define _B0D40 0x01
2766 #define _B0D41 0x02
2767 #define _B0D42 0x04
2768 #define _B0D43 0x08
2769 #define _B0D44 0x10
2770 #define _B0D45 0x20
2771 #define _B0D46 0x40
2772 #define _B0D47 0x80
2774 //==============================================================================
2777 //==============================================================================
2778 // B0D5 Bits
2780 extern __at(0x0E8B) __sfr B0D5;
2782 typedef struct
2784 unsigned B0D50 : 1;
2785 unsigned B0D51 : 1;
2786 unsigned B0D52 : 1;
2787 unsigned B0D53 : 1;
2788 unsigned B0D54 : 1;
2789 unsigned B0D55 : 1;
2790 unsigned B0D56 : 1;
2791 unsigned B0D57 : 1;
2792 } __B0D5bits_t;
2794 extern __at(0x0E8B) volatile __B0D5bits_t B0D5bits;
2796 #define _B0D50 0x01
2797 #define _B0D51 0x02
2798 #define _B0D52 0x04
2799 #define _B0D53 0x08
2800 #define _B0D54 0x10
2801 #define _B0D55 0x20
2802 #define _B0D56 0x40
2803 #define _B0D57 0x80
2805 //==============================================================================
2808 //==============================================================================
2809 // B0D6 Bits
2811 extern __at(0x0E8C) __sfr B0D6;
2813 typedef struct
2815 unsigned B0D60 : 1;
2816 unsigned B0D61 : 1;
2817 unsigned B0D62 : 1;
2818 unsigned B0D63 : 1;
2819 unsigned B0D64 : 1;
2820 unsigned B0D65 : 1;
2821 unsigned B0D66 : 1;
2822 unsigned B0D67 : 1;
2823 } __B0D6bits_t;
2825 extern __at(0x0E8C) volatile __B0D6bits_t B0D6bits;
2827 #define _B0D60 0x01
2828 #define _B0D61 0x02
2829 #define _B0D62 0x04
2830 #define _B0D63 0x08
2831 #define _B0D64 0x10
2832 #define _B0D65 0x20
2833 #define _B0D66 0x40
2834 #define _B0D67 0x80
2836 //==============================================================================
2839 //==============================================================================
2840 // B0D7 Bits
2842 extern __at(0x0E8D) __sfr B0D7;
2844 typedef struct
2846 unsigned B0D70 : 1;
2847 unsigned B0D71 : 1;
2848 unsigned B0D72 : 1;
2849 unsigned B0D73 : 1;
2850 unsigned B0D74 : 1;
2851 unsigned B0D75 : 1;
2852 unsigned B0D76 : 1;
2853 unsigned B0D77 : 1;
2854 } __B0D7bits_t;
2856 extern __at(0x0E8D) volatile __B0D7bits_t B0D7bits;
2858 #define _B0D70 0x01
2859 #define _B0D71 0x02
2860 #define _B0D72 0x04
2861 #define _B0D73 0x08
2862 #define _B0D74 0x10
2863 #define _B0D75 0x20
2864 #define _B0D76 0x40
2865 #define _B0D77 0x80
2867 //==============================================================================
2870 //==============================================================================
2871 // CANSTAT_RO9 Bits
2873 extern __at(0x0E8E) __sfr CANSTAT_RO9;
2875 typedef union
2877 struct
2879 unsigned EICODE0 : 1;
2880 unsigned EICODE1_ICODE0 : 1;
2881 unsigned EICODE2_ICODE1 : 1;
2882 unsigned EICODE3_ICODE2 : 1;
2883 unsigned EICODE4 : 1;
2884 unsigned OPMODE0 : 1;
2885 unsigned OPMODE1 : 1;
2886 unsigned OPMODE2 : 1;
2889 struct
2891 unsigned : 1;
2892 unsigned EICODE1 : 1;
2893 unsigned EICODE2 : 1;
2894 unsigned EICODE3 : 1;
2895 unsigned : 1;
2896 unsigned : 1;
2897 unsigned : 1;
2898 unsigned : 1;
2901 struct
2903 unsigned : 1;
2904 unsigned ICODE0 : 1;
2905 unsigned ICODE1 : 1;
2906 unsigned ICODE2 : 1;
2907 unsigned : 1;
2908 unsigned : 1;
2909 unsigned : 1;
2910 unsigned : 1;
2913 struct
2915 unsigned EICODE : 5;
2916 unsigned : 3;
2919 struct
2921 unsigned : 1;
2922 unsigned ICODE : 3;
2923 unsigned : 4;
2926 struct
2928 unsigned : 5;
2929 unsigned OPMODE : 3;
2931 } __CANSTAT_RO9bits_t;
2933 extern __at(0x0E8E) volatile __CANSTAT_RO9bits_t CANSTAT_RO9bits;
2935 #define _CANSTAT_RO9_EICODE0 0x01
2936 #define _CANSTAT_RO9_EICODE1_ICODE0 0x02
2937 #define _CANSTAT_RO9_EICODE1 0x02
2938 #define _CANSTAT_RO9_ICODE0 0x02
2939 #define _CANSTAT_RO9_EICODE2_ICODE1 0x04
2940 #define _CANSTAT_RO9_EICODE2 0x04
2941 #define _CANSTAT_RO9_ICODE1 0x04
2942 #define _CANSTAT_RO9_EICODE3_ICODE2 0x08
2943 #define _CANSTAT_RO9_EICODE3 0x08
2944 #define _CANSTAT_RO9_ICODE2 0x08
2945 #define _CANSTAT_RO9_EICODE4 0x10
2946 #define _CANSTAT_RO9_OPMODE0 0x20
2947 #define _CANSTAT_RO9_OPMODE1 0x40
2948 #define _CANSTAT_RO9_OPMODE2 0x80
2950 //==============================================================================
2953 //==============================================================================
2954 // CANCON_RO9 Bits
2956 extern __at(0x0E8F) __sfr CANCON_RO9;
2958 typedef union
2960 struct
2962 unsigned FP0 : 1;
2963 unsigned WIN0_FP1 : 1;
2964 unsigned WIN1_FP2 : 1;
2965 unsigned WIN2_FP3 : 1;
2966 unsigned ABAT : 1;
2967 unsigned : 1;
2968 unsigned : 1;
2969 unsigned : 1;
2972 struct
2974 unsigned : 1;
2975 unsigned WIN0 : 1;
2976 unsigned WIN1 : 1;
2977 unsigned WIN2 : 1;
2978 unsigned : 1;
2979 unsigned : 1;
2980 unsigned : 1;
2981 unsigned : 1;
2984 struct
2986 unsigned : 1;
2987 unsigned FP1 : 1;
2988 unsigned FP2 : 1;
2989 unsigned FP3 : 1;
2990 unsigned : 1;
2991 unsigned : 1;
2992 unsigned : 1;
2993 unsigned : 1;
2996 struct
2998 unsigned FP : 4;
2999 unsigned : 4;
3002 struct
3004 unsigned : 1;
3005 unsigned WIN : 3;
3006 unsigned : 4;
3008 } __CANCON_RO9bits_t;
3010 extern __at(0x0E8F) volatile __CANCON_RO9bits_t CANCON_RO9bits;
3012 #define _CANCON_RO9_FP0 0x01
3013 #define _CANCON_RO9_WIN0_FP1 0x02
3014 #define _CANCON_RO9_WIN0 0x02
3015 #define _CANCON_RO9_FP1 0x02
3016 #define _CANCON_RO9_WIN1_FP2 0x04
3017 #define _CANCON_RO9_WIN1 0x04
3018 #define _CANCON_RO9_FP2 0x04
3019 #define _CANCON_RO9_WIN2_FP3 0x08
3020 #define _CANCON_RO9_WIN2 0x08
3021 #define _CANCON_RO9_FP3 0x08
3022 #define _CANCON_RO9_ABAT 0x10
3024 //==============================================================================
3027 //==============================================================================
3028 // B1CON Bits
3030 extern __at(0x0E90) __sfr B1CON;
3032 typedef union
3034 struct
3036 unsigned FILHIT0_TXPRI0 : 1;
3037 unsigned FILHIT1_TXPRI1 : 1;
3038 unsigned FILHIT2_RTREN : 1;
3039 unsigned FILHIT3_TXREQ : 1;
3040 unsigned FILHIT4_TXERR : 1;
3041 unsigned RXRTRRO_TXLARB : 1;
3042 unsigned RXM1_TXABT : 1;
3043 unsigned RXFUL_TXBIF : 1;
3046 struct
3048 unsigned FILHIT0 : 1;
3049 unsigned FILHIT1 : 1;
3050 unsigned FILHIT2 : 1;
3051 unsigned FILHIT3 : 1;
3052 unsigned FILHIT4 : 1;
3053 unsigned RXRTRRO : 1;
3054 unsigned RXM1 : 1;
3055 unsigned RXFUL : 1;
3058 struct
3060 unsigned TXPRI0 : 1;
3061 unsigned TXPRI1 : 1;
3062 unsigned RTREN : 1;
3063 unsigned TXREQ : 1;
3064 unsigned TXERR : 1;
3065 unsigned TXLARB : 1;
3066 unsigned TXABT : 1;
3067 unsigned TXBIF : 1;
3070 struct
3072 unsigned TXPRI : 2;
3073 unsigned : 6;
3076 struct
3078 unsigned FILHIT : 5;
3079 unsigned : 3;
3081 } __B1CONbits_t;
3083 extern __at(0x0E90) volatile __B1CONbits_t B1CONbits;
3085 #define _B1CON_FILHIT0_TXPRI0 0x01
3086 #define _B1CON_FILHIT0 0x01
3087 #define _B1CON_TXPRI0 0x01
3088 #define _B1CON_FILHIT1_TXPRI1 0x02
3089 #define _B1CON_FILHIT1 0x02
3090 #define _B1CON_TXPRI1 0x02
3091 #define _B1CON_FILHIT2_RTREN 0x04
3092 #define _B1CON_FILHIT2 0x04
3093 #define _B1CON_RTREN 0x04
3094 #define _B1CON_FILHIT3_TXREQ 0x08
3095 #define _B1CON_FILHIT3 0x08
3096 #define _B1CON_TXREQ 0x08
3097 #define _B1CON_FILHIT4_TXERR 0x10
3098 #define _B1CON_FILHIT4 0x10
3099 #define _B1CON_TXERR 0x10
3100 #define _B1CON_RXRTRRO_TXLARB 0x20
3101 #define _B1CON_RXRTRRO 0x20
3102 #define _B1CON_TXLARB 0x20
3103 #define _B1CON_RXM1_TXABT 0x40
3104 #define _B1CON_RXM1 0x40
3105 #define _B1CON_TXABT 0x40
3106 #define _B1CON_RXFUL_TXBIF 0x80
3107 #define _B1CON_RXFUL 0x80
3108 #define _B1CON_TXBIF 0x80
3110 //==============================================================================
3113 //==============================================================================
3114 // B1SIDH Bits
3116 extern __at(0x0E91) __sfr B1SIDH;
3118 typedef struct
3120 unsigned SID3 : 1;
3121 unsigned SID4 : 1;
3122 unsigned SID5 : 1;
3123 unsigned SID6 : 1;
3124 unsigned SID7 : 1;
3125 unsigned SID8 : 1;
3126 unsigned SID9 : 1;
3127 unsigned SID10 : 1;
3128 } __B1SIDHbits_t;
3130 extern __at(0x0E91) volatile __B1SIDHbits_t B1SIDHbits;
3132 #define _B1SIDH_SID3 0x01
3133 #define _B1SIDH_SID4 0x02
3134 #define _B1SIDH_SID5 0x04
3135 #define _B1SIDH_SID6 0x08
3136 #define _B1SIDH_SID7 0x10
3137 #define _B1SIDH_SID8 0x20
3138 #define _B1SIDH_SID9 0x40
3139 #define _B1SIDH_SID10 0x80
3141 //==============================================================================
3144 //==============================================================================
3145 // B1SIDL Bits
3147 extern __at(0x0E92) __sfr B1SIDL;
3149 typedef union
3151 struct
3153 unsigned EID16 : 1;
3154 unsigned EID17 : 1;
3155 unsigned : 1;
3156 unsigned EXIDE : 1;
3157 unsigned SRR : 1;
3158 unsigned SID0 : 1;
3159 unsigned SID1 : 1;
3160 unsigned SID2 : 1;
3163 struct
3165 unsigned : 5;
3166 unsigned SID : 3;
3168 } __B1SIDLbits_t;
3170 extern __at(0x0E92) volatile __B1SIDLbits_t B1SIDLbits;
3172 #define _B1SIDL_EID16 0x01
3173 #define _B1SIDL_EID17 0x02
3174 #define _B1SIDL_EXIDE 0x08
3175 #define _B1SIDL_SRR 0x10
3176 #define _B1SIDL_SID0 0x20
3177 #define _B1SIDL_SID1 0x40
3178 #define _B1SIDL_SID2 0x80
3180 //==============================================================================
3183 //==============================================================================
3184 // B1EIDH Bits
3186 extern __at(0x0E93) __sfr B1EIDH;
3188 typedef struct
3190 unsigned EID8 : 1;
3191 unsigned EID9 : 1;
3192 unsigned EID10 : 1;
3193 unsigned EID11 : 1;
3194 unsigned EID12 : 1;
3195 unsigned EID13 : 1;
3196 unsigned EID14 : 1;
3197 unsigned EID15 : 1;
3198 } __B1EIDHbits_t;
3200 extern __at(0x0E93) volatile __B1EIDHbits_t B1EIDHbits;
3202 #define _B1EIDH_EID8 0x01
3203 #define _B1EIDH_EID9 0x02
3204 #define _B1EIDH_EID10 0x04
3205 #define _B1EIDH_EID11 0x08
3206 #define _B1EIDH_EID12 0x10
3207 #define _B1EIDH_EID13 0x20
3208 #define _B1EIDH_EID14 0x40
3209 #define _B1EIDH_EID15 0x80
3211 //==============================================================================
3214 //==============================================================================
3215 // B1EIDL Bits
3217 extern __at(0x0E94) __sfr B1EIDL;
3219 typedef struct
3221 unsigned EID0 : 1;
3222 unsigned EID1 : 1;
3223 unsigned EID2 : 1;
3224 unsigned EID3 : 1;
3225 unsigned EID4 : 1;
3226 unsigned EID5 : 1;
3227 unsigned EID6 : 1;
3228 unsigned EID7 : 1;
3229 } __B1EIDLbits_t;
3231 extern __at(0x0E94) volatile __B1EIDLbits_t B1EIDLbits;
3233 #define _B1EIDL_EID0 0x01
3234 #define _B1EIDL_EID1 0x02
3235 #define _B1EIDL_EID2 0x04
3236 #define _B1EIDL_EID3 0x08
3237 #define _B1EIDL_EID4 0x10
3238 #define _B1EIDL_EID5 0x20
3239 #define _B1EIDL_EID6 0x40
3240 #define _B1EIDL_EID7 0x80
3242 //==============================================================================
3245 //==============================================================================
3246 // B1DLC Bits
3248 extern __at(0x0E95) __sfr B1DLC;
3250 typedef union
3252 struct
3254 unsigned DLC0 : 1;
3255 unsigned DLC1 : 1;
3256 unsigned DLC2 : 1;
3257 unsigned DLC3 : 1;
3258 unsigned RB0 : 1;
3259 unsigned RB1 : 1;
3260 unsigned RXRTR_TXRTR : 1;
3261 unsigned : 1;
3264 struct
3266 unsigned : 1;
3267 unsigned : 1;
3268 unsigned : 1;
3269 unsigned : 1;
3270 unsigned : 1;
3271 unsigned : 1;
3272 unsigned RXRTR : 1;
3273 unsigned : 1;
3276 struct
3278 unsigned : 1;
3279 unsigned : 1;
3280 unsigned : 1;
3281 unsigned : 1;
3282 unsigned : 1;
3283 unsigned : 1;
3284 unsigned TXRTR : 1;
3285 unsigned : 1;
3288 struct
3290 unsigned DLC : 4;
3291 unsigned : 4;
3294 struct
3296 unsigned : 4;
3297 unsigned RB : 2;
3298 unsigned : 2;
3300 } __B1DLCbits_t;
3302 extern __at(0x0E95) volatile __B1DLCbits_t B1DLCbits;
3304 #define _B1DLC_DLC0 0x01
3305 #define _B1DLC_DLC1 0x02
3306 #define _B1DLC_DLC2 0x04
3307 #define _B1DLC_DLC3 0x08
3308 #define _B1DLC_RB0 0x10
3309 #define _B1DLC_RB1 0x20
3310 #define _B1DLC_RXRTR_TXRTR 0x40
3311 #define _B1DLC_RXRTR 0x40
3312 #define _B1DLC_TXRTR 0x40
3314 //==============================================================================
3317 //==============================================================================
3318 // B1D0 Bits
3320 extern __at(0x0E96) __sfr B1D0;
3322 typedef struct
3324 unsigned B1D00 : 1;
3325 unsigned B1D01 : 1;
3326 unsigned B1D02 : 1;
3327 unsigned B1D03 : 1;
3328 unsigned B1D04 : 1;
3329 unsigned B1D05 : 1;
3330 unsigned B1D06 : 1;
3331 unsigned B1D07 : 1;
3332 } __B1D0bits_t;
3334 extern __at(0x0E96) volatile __B1D0bits_t B1D0bits;
3336 #define _B1D00 0x01
3337 #define _B1D01 0x02
3338 #define _B1D02 0x04
3339 #define _B1D03 0x08
3340 #define _B1D04 0x10
3341 #define _B1D05 0x20
3342 #define _B1D06 0x40
3343 #define _B1D07 0x80
3345 //==============================================================================
3348 //==============================================================================
3349 // B1D1 Bits
3351 extern __at(0x0E97) __sfr B1D1;
3353 typedef struct
3355 unsigned B1D10 : 1;
3356 unsigned B1D11 : 1;
3357 unsigned B1D12 : 1;
3358 unsigned B1D13 : 1;
3359 unsigned B1D14 : 1;
3360 unsigned B1D15 : 1;
3361 unsigned B1D16 : 1;
3362 unsigned B1D17 : 1;
3363 } __B1D1bits_t;
3365 extern __at(0x0E97) volatile __B1D1bits_t B1D1bits;
3367 #define _B1D10 0x01
3368 #define _B1D11 0x02
3369 #define _B1D12 0x04
3370 #define _B1D13 0x08
3371 #define _B1D14 0x10
3372 #define _B1D15 0x20
3373 #define _B1D16 0x40
3374 #define _B1D17 0x80
3376 //==============================================================================
3379 //==============================================================================
3380 // B1D2 Bits
3382 extern __at(0x0E98) __sfr B1D2;
3384 typedef struct
3386 unsigned B1D20 : 1;
3387 unsigned B1D21 : 1;
3388 unsigned B1D22 : 1;
3389 unsigned B1D23 : 1;
3390 unsigned B1D24 : 1;
3391 unsigned B1D25 : 1;
3392 unsigned B1D26 : 1;
3393 unsigned B1D27 : 1;
3394 } __B1D2bits_t;
3396 extern __at(0x0E98) volatile __B1D2bits_t B1D2bits;
3398 #define _B1D20 0x01
3399 #define _B1D21 0x02
3400 #define _B1D22 0x04
3401 #define _B1D23 0x08
3402 #define _B1D24 0x10
3403 #define _B1D25 0x20
3404 #define _B1D26 0x40
3405 #define _B1D27 0x80
3407 //==============================================================================
3410 //==============================================================================
3411 // B1D3 Bits
3413 extern __at(0x0E99) __sfr B1D3;
3415 typedef struct
3417 unsigned B1D30 : 1;
3418 unsigned B1D31 : 1;
3419 unsigned B1D32 : 1;
3420 unsigned B1D33 : 1;
3421 unsigned B1D34 : 1;
3422 unsigned B1D35 : 1;
3423 unsigned B1D36 : 1;
3424 unsigned B1D37 : 1;
3425 } __B1D3bits_t;
3427 extern __at(0x0E99) volatile __B1D3bits_t B1D3bits;
3429 #define _B1D30 0x01
3430 #define _B1D31 0x02
3431 #define _B1D32 0x04
3432 #define _B1D33 0x08
3433 #define _B1D34 0x10
3434 #define _B1D35 0x20
3435 #define _B1D36 0x40
3436 #define _B1D37 0x80
3438 //==============================================================================
3441 //==============================================================================
3442 // B1D4 Bits
3444 extern __at(0x0E9A) __sfr B1D4;
3446 typedef struct
3448 unsigned B1D40 : 1;
3449 unsigned B1D41 : 1;
3450 unsigned B1D42 : 1;
3451 unsigned B1D43 : 1;
3452 unsigned B1D44 : 1;
3453 unsigned B1D45 : 1;
3454 unsigned B1D46 : 1;
3455 unsigned B1D47 : 1;
3456 } __B1D4bits_t;
3458 extern __at(0x0E9A) volatile __B1D4bits_t B1D4bits;
3460 #define _B1D40 0x01
3461 #define _B1D41 0x02
3462 #define _B1D42 0x04
3463 #define _B1D43 0x08
3464 #define _B1D44 0x10
3465 #define _B1D45 0x20
3466 #define _B1D46 0x40
3467 #define _B1D47 0x80
3469 //==============================================================================
3472 //==============================================================================
3473 // B1D5 Bits
3475 extern __at(0x0E9B) __sfr B1D5;
3477 typedef struct
3479 unsigned B1D50 : 1;
3480 unsigned B1D51 : 1;
3481 unsigned B1D52 : 1;
3482 unsigned B1D53 : 1;
3483 unsigned B1D54 : 1;
3484 unsigned B1D55 : 1;
3485 unsigned B1D56 : 1;
3486 unsigned B1D57 : 1;
3487 } __B1D5bits_t;
3489 extern __at(0x0E9B) volatile __B1D5bits_t B1D5bits;
3491 #define _B1D50 0x01
3492 #define _B1D51 0x02
3493 #define _B1D52 0x04
3494 #define _B1D53 0x08
3495 #define _B1D54 0x10
3496 #define _B1D55 0x20
3497 #define _B1D56 0x40
3498 #define _B1D57 0x80
3500 //==============================================================================
3503 //==============================================================================
3504 // B1D6 Bits
3506 extern __at(0x0E9C) __sfr B1D6;
3508 typedef struct
3510 unsigned B1D60 : 1;
3511 unsigned B1D61 : 1;
3512 unsigned B1D62 : 1;
3513 unsigned B1D63 : 1;
3514 unsigned B1D64 : 1;
3515 unsigned B1D65 : 1;
3516 unsigned B1D66 : 1;
3517 unsigned B1D67 : 1;
3518 } __B1D6bits_t;
3520 extern __at(0x0E9C) volatile __B1D6bits_t B1D6bits;
3522 #define _B1D60 0x01
3523 #define _B1D61 0x02
3524 #define _B1D62 0x04
3525 #define _B1D63 0x08
3526 #define _B1D64 0x10
3527 #define _B1D65 0x20
3528 #define _B1D66 0x40
3529 #define _B1D67 0x80
3531 //==============================================================================
3534 //==============================================================================
3535 // B1D7 Bits
3537 extern __at(0x0E9D) __sfr B1D7;
3539 typedef struct
3541 unsigned B1D70 : 1;
3542 unsigned B1D71 : 1;
3543 unsigned B1D72 : 1;
3544 unsigned B1D73 : 1;
3545 unsigned B1D74 : 1;
3546 unsigned B1D75 : 1;
3547 unsigned B1D76 : 1;
3548 unsigned B1D77 : 1;
3549 } __B1D7bits_t;
3551 extern __at(0x0E9D) volatile __B1D7bits_t B1D7bits;
3553 #define _B1D70 0x01
3554 #define _B1D71 0x02
3555 #define _B1D72 0x04
3556 #define _B1D73 0x08
3557 #define _B1D74 0x10
3558 #define _B1D75 0x20
3559 #define _B1D76 0x40
3560 #define _B1D77 0x80
3562 //==============================================================================
3565 //==============================================================================
3566 // CANSTAT_RO8 Bits
3568 extern __at(0x0E9E) __sfr CANSTAT_RO8;
3570 typedef union
3572 struct
3574 unsigned EICODE0 : 1;
3575 unsigned EICODE1_ICODE0 : 1;
3576 unsigned EICODE2_ICODE1 : 1;
3577 unsigned EICODE3_ICODE2 : 1;
3578 unsigned EICODE4 : 1;
3579 unsigned OPMODE0 : 1;
3580 unsigned OPMODE1 : 1;
3581 unsigned OPMODE2 : 1;
3584 struct
3586 unsigned : 1;
3587 unsigned EICODE1 : 1;
3588 unsigned EICODE2 : 1;
3589 unsigned EICODE3 : 1;
3590 unsigned : 1;
3591 unsigned : 1;
3592 unsigned : 1;
3593 unsigned : 1;
3596 struct
3598 unsigned : 1;
3599 unsigned ICODE0 : 1;
3600 unsigned ICODE1 : 1;
3601 unsigned ICODE2 : 1;
3602 unsigned : 1;
3603 unsigned : 1;
3604 unsigned : 1;
3605 unsigned : 1;
3608 struct
3610 unsigned EICODE : 5;
3611 unsigned : 3;
3614 struct
3616 unsigned : 1;
3617 unsigned ICODE : 3;
3618 unsigned : 4;
3621 struct
3623 unsigned : 5;
3624 unsigned OPMODE : 3;
3626 } __CANSTAT_RO8bits_t;
3628 extern __at(0x0E9E) volatile __CANSTAT_RO8bits_t CANSTAT_RO8bits;
3630 #define _CANSTAT_RO8_EICODE0 0x01
3631 #define _CANSTAT_RO8_EICODE1_ICODE0 0x02
3632 #define _CANSTAT_RO8_EICODE1 0x02
3633 #define _CANSTAT_RO8_ICODE0 0x02
3634 #define _CANSTAT_RO8_EICODE2_ICODE1 0x04
3635 #define _CANSTAT_RO8_EICODE2 0x04
3636 #define _CANSTAT_RO8_ICODE1 0x04
3637 #define _CANSTAT_RO8_EICODE3_ICODE2 0x08
3638 #define _CANSTAT_RO8_EICODE3 0x08
3639 #define _CANSTAT_RO8_ICODE2 0x08
3640 #define _CANSTAT_RO8_EICODE4 0x10
3641 #define _CANSTAT_RO8_OPMODE0 0x20
3642 #define _CANSTAT_RO8_OPMODE1 0x40
3643 #define _CANSTAT_RO8_OPMODE2 0x80
3645 //==============================================================================
3648 //==============================================================================
3649 // CANCON_RO8 Bits
3651 extern __at(0x0E9F) __sfr CANCON_RO8;
3653 typedef union
3655 struct
3657 unsigned FP0 : 1;
3658 unsigned WIN0_FP1 : 1;
3659 unsigned WIN1_FP2 : 1;
3660 unsigned WIN2_FP3 : 1;
3661 unsigned ABAT : 1;
3662 unsigned : 1;
3663 unsigned : 1;
3664 unsigned : 1;
3667 struct
3669 unsigned : 1;
3670 unsigned WIN0 : 1;
3671 unsigned WIN1 : 1;
3672 unsigned WIN2 : 1;
3673 unsigned : 1;
3674 unsigned : 1;
3675 unsigned : 1;
3676 unsigned : 1;
3679 struct
3681 unsigned : 1;
3682 unsigned FP1 : 1;
3683 unsigned FP2 : 1;
3684 unsigned FP3 : 1;
3685 unsigned : 1;
3686 unsigned : 1;
3687 unsigned : 1;
3688 unsigned : 1;
3691 struct
3693 unsigned FP : 4;
3694 unsigned : 4;
3697 struct
3699 unsigned : 1;
3700 unsigned WIN : 3;
3701 unsigned : 4;
3703 } __CANCON_RO8bits_t;
3705 extern __at(0x0E9F) volatile __CANCON_RO8bits_t CANCON_RO8bits;
3707 #define _CANCON_RO8_FP0 0x01
3708 #define _CANCON_RO8_WIN0_FP1 0x02
3709 #define _CANCON_RO8_WIN0 0x02
3710 #define _CANCON_RO8_FP1 0x02
3711 #define _CANCON_RO8_WIN1_FP2 0x04
3712 #define _CANCON_RO8_WIN1 0x04
3713 #define _CANCON_RO8_FP2 0x04
3714 #define _CANCON_RO8_WIN2_FP3 0x08
3715 #define _CANCON_RO8_WIN2 0x08
3716 #define _CANCON_RO8_FP3 0x08
3717 #define _CANCON_RO8_ABAT 0x10
3719 //==============================================================================
3722 //==============================================================================
3723 // B2CON Bits
3725 extern __at(0x0EA0) __sfr B2CON;
3727 typedef union
3729 struct
3731 unsigned FILHIT0_TXPRI0 : 1;
3732 unsigned FILHIT1_TXPRI1 : 1;
3733 unsigned FILHIT2_RTREN : 1;
3734 unsigned FILHIT3_TXREQ : 1;
3735 unsigned FILHIT4_TXERR : 1;
3736 unsigned RXRTRRO_TXLARB : 1;
3737 unsigned RXM1_TXABT : 1;
3738 unsigned RXFUL_TXBIF : 1;
3741 struct
3743 unsigned FILHIT0 : 1;
3744 unsigned FILHIT1 : 1;
3745 unsigned FILHIT2 : 1;
3746 unsigned FILHIT3 : 1;
3747 unsigned FILHIT4 : 1;
3748 unsigned RXRTRRO : 1;
3749 unsigned RXM1 : 1;
3750 unsigned RXFUL : 1;
3753 struct
3755 unsigned TXPRI0 : 1;
3756 unsigned TXPRI1 : 1;
3757 unsigned RTREN : 1;
3758 unsigned TXREQ : 1;
3759 unsigned TXERR : 1;
3760 unsigned TXLARB : 1;
3761 unsigned TXABT : 1;
3762 unsigned TXBIF : 1;
3765 struct
3767 unsigned FILHIT : 5;
3768 unsigned : 3;
3771 struct
3773 unsigned TXPRI : 2;
3774 unsigned : 6;
3776 } __B2CONbits_t;
3778 extern __at(0x0EA0) volatile __B2CONbits_t B2CONbits;
3780 #define _B2CON_FILHIT0_TXPRI0 0x01
3781 #define _B2CON_FILHIT0 0x01
3782 #define _B2CON_TXPRI0 0x01
3783 #define _B2CON_FILHIT1_TXPRI1 0x02
3784 #define _B2CON_FILHIT1 0x02
3785 #define _B2CON_TXPRI1 0x02
3786 #define _B2CON_FILHIT2_RTREN 0x04
3787 #define _B2CON_FILHIT2 0x04
3788 #define _B2CON_RTREN 0x04
3789 #define _B2CON_FILHIT3_TXREQ 0x08
3790 #define _B2CON_FILHIT3 0x08
3791 #define _B2CON_TXREQ 0x08
3792 #define _B2CON_FILHIT4_TXERR 0x10
3793 #define _B2CON_FILHIT4 0x10
3794 #define _B2CON_TXERR 0x10
3795 #define _B2CON_RXRTRRO_TXLARB 0x20
3796 #define _B2CON_RXRTRRO 0x20
3797 #define _B2CON_TXLARB 0x20
3798 #define _B2CON_RXM1_TXABT 0x40
3799 #define _B2CON_RXM1 0x40
3800 #define _B2CON_TXABT 0x40
3801 #define _B2CON_RXFUL_TXBIF 0x80
3802 #define _B2CON_RXFUL 0x80
3803 #define _B2CON_TXBIF 0x80
3805 //==============================================================================
3808 //==============================================================================
3809 // B2SIDH Bits
3811 extern __at(0x0EA1) __sfr B2SIDH;
3813 typedef struct
3815 unsigned SID3 : 1;
3816 unsigned SID4 : 1;
3817 unsigned SID5 : 1;
3818 unsigned SID6 : 1;
3819 unsigned SID7 : 1;
3820 unsigned SID8 : 1;
3821 unsigned SID9 : 1;
3822 unsigned SID10 : 1;
3823 } __B2SIDHbits_t;
3825 extern __at(0x0EA1) volatile __B2SIDHbits_t B2SIDHbits;
3827 #define _B2SIDH_SID3 0x01
3828 #define _B2SIDH_SID4 0x02
3829 #define _B2SIDH_SID5 0x04
3830 #define _B2SIDH_SID6 0x08
3831 #define _B2SIDH_SID7 0x10
3832 #define _B2SIDH_SID8 0x20
3833 #define _B2SIDH_SID9 0x40
3834 #define _B2SIDH_SID10 0x80
3836 //==============================================================================
3839 //==============================================================================
3840 // B2SIDL Bits
3842 extern __at(0x0EA2) __sfr B2SIDL;
3844 typedef union
3846 struct
3848 unsigned EID16 : 1;
3849 unsigned EID17 : 1;
3850 unsigned : 1;
3851 unsigned EXIDE : 1;
3852 unsigned SRR : 1;
3853 unsigned SID0 : 1;
3854 unsigned SID1 : 1;
3855 unsigned SID2 : 1;
3858 struct
3860 unsigned : 5;
3861 unsigned SID : 3;
3863 } __B2SIDLbits_t;
3865 extern __at(0x0EA2) volatile __B2SIDLbits_t B2SIDLbits;
3867 #define _B2SIDL_EID16 0x01
3868 #define _B2SIDL_EID17 0x02
3869 #define _B2SIDL_EXIDE 0x08
3870 #define _B2SIDL_SRR 0x10
3871 #define _B2SIDL_SID0 0x20
3872 #define _B2SIDL_SID1 0x40
3873 #define _B2SIDL_SID2 0x80
3875 //==============================================================================
3878 //==============================================================================
3879 // B2EIDH Bits
3881 extern __at(0x0EA3) __sfr B2EIDH;
3883 typedef struct
3885 unsigned EID8 : 1;
3886 unsigned EID9 : 1;
3887 unsigned EID10 : 1;
3888 unsigned EID11 : 1;
3889 unsigned EID12 : 1;
3890 unsigned EID13 : 1;
3891 unsigned EID14 : 1;
3892 unsigned EID15 : 1;
3893 } __B2EIDHbits_t;
3895 extern __at(0x0EA3) volatile __B2EIDHbits_t B2EIDHbits;
3897 #define _B2EIDH_EID8 0x01
3898 #define _B2EIDH_EID9 0x02
3899 #define _B2EIDH_EID10 0x04
3900 #define _B2EIDH_EID11 0x08
3901 #define _B2EIDH_EID12 0x10
3902 #define _B2EIDH_EID13 0x20
3903 #define _B2EIDH_EID14 0x40
3904 #define _B2EIDH_EID15 0x80
3906 //==============================================================================
3909 //==============================================================================
3910 // B2EIDL Bits
3912 extern __at(0x0EA4) __sfr B2EIDL;
3914 typedef struct
3916 unsigned EID0 : 1;
3917 unsigned EID1 : 1;
3918 unsigned EID2 : 1;
3919 unsigned EID3 : 1;
3920 unsigned EID4 : 1;
3921 unsigned EID5 : 1;
3922 unsigned EID6 : 1;
3923 unsigned EID7 : 1;
3924 } __B2EIDLbits_t;
3926 extern __at(0x0EA4) volatile __B2EIDLbits_t B2EIDLbits;
3928 #define _B2EIDL_EID0 0x01
3929 #define _B2EIDL_EID1 0x02
3930 #define _B2EIDL_EID2 0x04
3931 #define _B2EIDL_EID3 0x08
3932 #define _B2EIDL_EID4 0x10
3933 #define _B2EIDL_EID5 0x20
3934 #define _B2EIDL_EID6 0x40
3935 #define _B2EIDL_EID7 0x80
3937 //==============================================================================
3940 //==============================================================================
3941 // B2DLC Bits
3943 extern __at(0x0EA5) __sfr B2DLC;
3945 typedef union
3947 struct
3949 unsigned DLC0 : 1;
3950 unsigned DLC1 : 1;
3951 unsigned DLC2 : 1;
3952 unsigned DLC3 : 1;
3953 unsigned RB0 : 1;
3954 unsigned RB1 : 1;
3955 unsigned RXRTR_TXRTR : 1;
3956 unsigned : 1;
3959 struct
3961 unsigned : 1;
3962 unsigned : 1;
3963 unsigned : 1;
3964 unsigned : 1;
3965 unsigned : 1;
3966 unsigned : 1;
3967 unsigned RXRTR : 1;
3968 unsigned : 1;
3971 struct
3973 unsigned : 1;
3974 unsigned : 1;
3975 unsigned : 1;
3976 unsigned : 1;
3977 unsigned : 1;
3978 unsigned : 1;
3979 unsigned TXRTR : 1;
3980 unsigned : 1;
3983 struct
3985 unsigned DLC : 4;
3986 unsigned : 4;
3989 struct
3991 unsigned : 4;
3992 unsigned RB : 2;
3993 unsigned : 2;
3995 } __B2DLCbits_t;
3997 extern __at(0x0EA5) 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_RB1 0x20
4005 #define _B2DLC_RXRTR_TXRTR 0x40
4006 #define _B2DLC_RXRTR 0x40
4007 #define _B2DLC_TXRTR 0x40
4009 //==============================================================================
4012 //==============================================================================
4013 // B2D0 Bits
4015 extern __at(0x0EA6) __sfr B2D0;
4017 typedef struct
4019 unsigned B2D00 : 1;
4020 unsigned B2D01 : 1;
4021 unsigned B2D02 : 1;
4022 unsigned B2D03 : 1;
4023 unsigned B2D04 : 1;
4024 unsigned B2D05 : 1;
4025 unsigned B2D06 : 1;
4026 unsigned B2D07 : 1;
4027 } __B2D0bits_t;
4029 extern __at(0x0EA6) volatile __B2D0bits_t B2D0bits;
4031 #define _B2D00 0x01
4032 #define _B2D01 0x02
4033 #define _B2D02 0x04
4034 #define _B2D03 0x08
4035 #define _B2D04 0x10
4036 #define _B2D05 0x20
4037 #define _B2D06 0x40
4038 #define _B2D07 0x80
4040 //==============================================================================
4043 //==============================================================================
4044 // B2D1 Bits
4046 extern __at(0x0EA7) __sfr B2D1;
4048 typedef struct
4050 unsigned B2D10 : 1;
4051 unsigned B2D11 : 1;
4052 unsigned B2D12 : 1;
4053 unsigned B2D13 : 1;
4054 unsigned B2D14 : 1;
4055 unsigned B2D15 : 1;
4056 unsigned B2D16 : 1;
4057 unsigned B2D17 : 1;
4058 } __B2D1bits_t;
4060 extern __at(0x0EA7) volatile __B2D1bits_t B2D1bits;
4062 #define _B2D10 0x01
4063 #define _B2D11 0x02
4064 #define _B2D12 0x04
4065 #define _B2D13 0x08
4066 #define _B2D14 0x10
4067 #define _B2D15 0x20
4068 #define _B2D16 0x40
4069 #define _B2D17 0x80
4071 //==============================================================================
4074 //==============================================================================
4075 // B2D2 Bits
4077 extern __at(0x0EA8) __sfr B2D2;
4079 typedef struct
4081 unsigned B2D20 : 1;
4082 unsigned B2D21 : 1;
4083 unsigned B2D22 : 1;
4084 unsigned B2D23 : 1;
4085 unsigned B2D24 : 1;
4086 unsigned B2D25 : 1;
4087 unsigned B2D26 : 1;
4088 unsigned B2D27 : 1;
4089 } __B2D2bits_t;
4091 extern __at(0x0EA8) volatile __B2D2bits_t B2D2bits;
4093 #define _B2D20 0x01
4094 #define _B2D21 0x02
4095 #define _B2D22 0x04
4096 #define _B2D23 0x08
4097 #define _B2D24 0x10
4098 #define _B2D25 0x20
4099 #define _B2D26 0x40
4100 #define _B2D27 0x80
4102 //==============================================================================
4105 //==============================================================================
4106 // B2D3 Bits
4108 extern __at(0x0EA9) __sfr B2D3;
4110 typedef struct
4112 unsigned B2D30 : 1;
4113 unsigned B2D31 : 1;
4114 unsigned B2D32 : 1;
4115 unsigned B2D33 : 1;
4116 unsigned B2D34 : 1;
4117 unsigned B2D35 : 1;
4118 unsigned B2D36 : 1;
4119 unsigned B2D37 : 1;
4120 } __B2D3bits_t;
4122 extern __at(0x0EA9) volatile __B2D3bits_t B2D3bits;
4124 #define _B2D30 0x01
4125 #define _B2D31 0x02
4126 #define _B2D32 0x04
4127 #define _B2D33 0x08
4128 #define _B2D34 0x10
4129 #define _B2D35 0x20
4130 #define _B2D36 0x40
4131 #define _B2D37 0x80
4133 //==============================================================================
4136 //==============================================================================
4137 // B2D4 Bits
4139 extern __at(0x0EAA) __sfr B2D4;
4141 typedef struct
4143 unsigned B2D40 : 1;
4144 unsigned B2D41 : 1;
4145 unsigned B2D42 : 1;
4146 unsigned B2D43 : 1;
4147 unsigned B2D44 : 1;
4148 unsigned B2D45 : 1;
4149 unsigned B2D46 : 1;
4150 unsigned B2D47 : 1;
4151 } __B2D4bits_t;
4153 extern __at(0x0EAA) volatile __B2D4bits_t B2D4bits;
4155 #define _B2D40 0x01
4156 #define _B2D41 0x02
4157 #define _B2D42 0x04
4158 #define _B2D43 0x08
4159 #define _B2D44 0x10
4160 #define _B2D45 0x20
4161 #define _B2D46 0x40
4162 #define _B2D47 0x80
4164 //==============================================================================
4167 //==============================================================================
4168 // B2D5 Bits
4170 extern __at(0x0EAB) __sfr B2D5;
4172 typedef struct
4174 unsigned B2D50 : 1;
4175 unsigned B2D51 : 1;
4176 unsigned B2D52 : 1;
4177 unsigned B2D53 : 1;
4178 unsigned B2D54 : 1;
4179 unsigned B2D55 : 1;
4180 unsigned B2D56 : 1;
4181 unsigned B2D57 : 1;
4182 } __B2D5bits_t;
4184 extern __at(0x0EAB) volatile __B2D5bits_t B2D5bits;
4186 #define _B2D50 0x01
4187 #define _B2D51 0x02
4188 #define _B2D52 0x04
4189 #define _B2D53 0x08
4190 #define _B2D54 0x10
4191 #define _B2D55 0x20
4192 #define _B2D56 0x40
4193 #define _B2D57 0x80
4195 //==============================================================================
4198 //==============================================================================
4199 // B2D6 Bits
4201 extern __at(0x0EAC) __sfr B2D6;
4203 typedef struct
4205 unsigned B2D60 : 1;
4206 unsigned B2D61 : 1;
4207 unsigned B2D62 : 1;
4208 unsigned B2D63 : 1;
4209 unsigned B2D64 : 1;
4210 unsigned B2D65 : 1;
4211 unsigned B2D66 : 1;
4212 unsigned B2D67 : 1;
4213 } __B2D6bits_t;
4215 extern __at(0x0EAC) volatile __B2D6bits_t B2D6bits;
4217 #define _B2D60 0x01
4218 #define _B2D61 0x02
4219 #define _B2D62 0x04
4220 #define _B2D63 0x08
4221 #define _B2D64 0x10
4222 #define _B2D65 0x20
4223 #define _B2D66 0x40
4224 #define _B2D67 0x80
4226 //==============================================================================
4229 //==============================================================================
4230 // B2D7 Bits
4232 extern __at(0x0EAD) __sfr B2D7;
4234 typedef struct
4236 unsigned B2D70 : 1;
4237 unsigned B2D71 : 1;
4238 unsigned B2D72 : 1;
4239 unsigned B2D73 : 1;
4240 unsigned B2D74 : 1;
4241 unsigned B2D75 : 1;
4242 unsigned B2D76 : 1;
4243 unsigned B2D77 : 1;
4244 } __B2D7bits_t;
4246 extern __at(0x0EAD) volatile __B2D7bits_t B2D7bits;
4248 #define _B2D70 0x01
4249 #define _B2D71 0x02
4250 #define _B2D72 0x04
4251 #define _B2D73 0x08
4252 #define _B2D74 0x10
4253 #define _B2D75 0x20
4254 #define _B2D76 0x40
4255 #define _B2D77 0x80
4257 //==============================================================================
4260 //==============================================================================
4261 // CANSTAT_RO7 Bits
4263 extern __at(0x0EAE) __sfr CANSTAT_RO7;
4265 typedef union
4267 struct
4269 unsigned EICODE0 : 1;
4270 unsigned EICODE1_ICODE0 : 1;
4271 unsigned EICODE2_ICODE1 : 1;
4272 unsigned EICODE3_ICODE2 : 1;
4273 unsigned EICODE4 : 1;
4274 unsigned OPMODE0 : 1;
4275 unsigned OPMODE1 : 1;
4276 unsigned OPMODE2 : 1;
4279 struct
4281 unsigned : 1;
4282 unsigned EICODE1 : 1;
4283 unsigned EICODE2 : 1;
4284 unsigned EICODE3 : 1;
4285 unsigned : 1;
4286 unsigned : 1;
4287 unsigned : 1;
4288 unsigned : 1;
4291 struct
4293 unsigned : 1;
4294 unsigned ICODE0 : 1;
4295 unsigned ICODE1 : 1;
4296 unsigned ICODE2 : 1;
4297 unsigned : 1;
4298 unsigned : 1;
4299 unsigned : 1;
4300 unsigned : 1;
4303 struct
4305 unsigned EICODE : 5;
4306 unsigned : 3;
4309 struct
4311 unsigned : 1;
4312 unsigned ICODE : 3;
4313 unsigned : 4;
4316 struct
4318 unsigned : 5;
4319 unsigned OPMODE : 3;
4321 } __CANSTAT_RO7bits_t;
4323 extern __at(0x0EAE) volatile __CANSTAT_RO7bits_t CANSTAT_RO7bits;
4325 #define _CANSTAT_RO7_EICODE0 0x01
4326 #define _CANSTAT_RO7_EICODE1_ICODE0 0x02
4327 #define _CANSTAT_RO7_EICODE1 0x02
4328 #define _CANSTAT_RO7_ICODE0 0x02
4329 #define _CANSTAT_RO7_EICODE2_ICODE1 0x04
4330 #define _CANSTAT_RO7_EICODE2 0x04
4331 #define _CANSTAT_RO7_ICODE1 0x04
4332 #define _CANSTAT_RO7_EICODE3_ICODE2 0x08
4333 #define _CANSTAT_RO7_EICODE3 0x08
4334 #define _CANSTAT_RO7_ICODE2 0x08
4335 #define _CANSTAT_RO7_EICODE4 0x10
4336 #define _CANSTAT_RO7_OPMODE0 0x20
4337 #define _CANSTAT_RO7_OPMODE1 0x40
4338 #define _CANSTAT_RO7_OPMODE2 0x80
4340 //==============================================================================
4343 //==============================================================================
4344 // CANCON_RO7 Bits
4346 extern __at(0x0EAF) __sfr CANCON_RO7;
4348 typedef union
4350 struct
4352 unsigned FP0 : 1;
4353 unsigned WIN0_FP1 : 1;
4354 unsigned WIN1_FP2 : 1;
4355 unsigned WIN2_FP3 : 1;
4356 unsigned ABAT : 1;
4357 unsigned : 1;
4358 unsigned : 1;
4359 unsigned : 1;
4362 struct
4364 unsigned : 1;
4365 unsigned WIN0 : 1;
4366 unsigned WIN1 : 1;
4367 unsigned WIN2 : 1;
4368 unsigned : 1;
4369 unsigned : 1;
4370 unsigned : 1;
4371 unsigned : 1;
4374 struct
4376 unsigned : 1;
4377 unsigned FP1 : 1;
4378 unsigned FP2 : 1;
4379 unsigned FP3 : 1;
4380 unsigned : 1;
4381 unsigned : 1;
4382 unsigned : 1;
4383 unsigned : 1;
4386 struct
4388 unsigned FP : 4;
4389 unsigned : 4;
4392 struct
4394 unsigned : 1;
4395 unsigned WIN : 3;
4396 unsigned : 4;
4398 } __CANCON_RO7bits_t;
4400 extern __at(0x0EAF) volatile __CANCON_RO7bits_t CANCON_RO7bits;
4402 #define _CANCON_RO7_FP0 0x01
4403 #define _CANCON_RO7_WIN0_FP1 0x02
4404 #define _CANCON_RO7_WIN0 0x02
4405 #define _CANCON_RO7_FP1 0x02
4406 #define _CANCON_RO7_WIN1_FP2 0x04
4407 #define _CANCON_RO7_WIN1 0x04
4408 #define _CANCON_RO7_FP2 0x04
4409 #define _CANCON_RO7_WIN2_FP3 0x08
4410 #define _CANCON_RO7_WIN2 0x08
4411 #define _CANCON_RO7_FP3 0x08
4412 #define _CANCON_RO7_ABAT 0x10
4414 //==============================================================================
4417 //==============================================================================
4418 // B3CON Bits
4420 extern __at(0x0EB0) __sfr B3CON;
4422 typedef union
4424 struct
4426 unsigned FILHIT0_TXPRI0 : 1;
4427 unsigned FILHIT1_TXPRI1 : 1;
4428 unsigned FILHIT2_RTREN : 1;
4429 unsigned FILHIT3_TXREQ : 1;
4430 unsigned FILHIT4_TXERR : 1;
4431 unsigned RXRTRRO_TXLARB : 1;
4432 unsigned RXM1_TXABT : 1;
4433 unsigned RXFUL_TXBIF : 1;
4436 struct
4438 unsigned FILHIT0 : 1;
4439 unsigned FILHIT1 : 1;
4440 unsigned FILHIT2 : 1;
4441 unsigned FILHIT3 : 1;
4442 unsigned FILHIT4 : 1;
4443 unsigned RXRTRRO : 1;
4444 unsigned RXM1 : 1;
4445 unsigned RXFUL : 1;
4448 struct
4450 unsigned TXPRI0 : 1;
4451 unsigned TXPRI1 : 1;
4452 unsigned RTREN : 1;
4453 unsigned TXREQ : 1;
4454 unsigned TXERR : 1;
4455 unsigned TXLARB : 1;
4456 unsigned TXABT : 1;
4457 unsigned TXBIF : 1;
4460 struct
4462 unsigned FILHIT : 5;
4463 unsigned : 3;
4466 struct
4468 unsigned TXPRI : 2;
4469 unsigned : 6;
4471 } __B3CONbits_t;
4473 extern __at(0x0EB0) volatile __B3CONbits_t B3CONbits;
4475 #define _B3CON_FILHIT0_TXPRI0 0x01
4476 #define _B3CON_FILHIT0 0x01
4477 #define _B3CON_TXPRI0 0x01
4478 #define _B3CON_FILHIT1_TXPRI1 0x02
4479 #define _B3CON_FILHIT1 0x02
4480 #define _B3CON_TXPRI1 0x02
4481 #define _B3CON_FILHIT2_RTREN 0x04
4482 #define _B3CON_FILHIT2 0x04
4483 #define _B3CON_RTREN 0x04
4484 #define _B3CON_FILHIT3_TXREQ 0x08
4485 #define _B3CON_FILHIT3 0x08
4486 #define _B3CON_TXREQ 0x08
4487 #define _B3CON_FILHIT4_TXERR 0x10
4488 #define _B3CON_FILHIT4 0x10
4489 #define _B3CON_TXERR 0x10
4490 #define _B3CON_RXRTRRO_TXLARB 0x20
4491 #define _B3CON_RXRTRRO 0x20
4492 #define _B3CON_TXLARB 0x20
4493 #define _B3CON_RXM1_TXABT 0x40
4494 #define _B3CON_RXM1 0x40
4495 #define _B3CON_TXABT 0x40
4496 #define _B3CON_RXFUL_TXBIF 0x80
4497 #define _B3CON_RXFUL 0x80
4498 #define _B3CON_TXBIF 0x80
4500 //==============================================================================
4503 //==============================================================================
4504 // B3SIDH Bits
4506 extern __at(0x0EB1) __sfr B3SIDH;
4508 typedef struct
4510 unsigned SID3 : 1;
4511 unsigned SID4 : 1;
4512 unsigned SID5 : 1;
4513 unsigned SID6 : 1;
4514 unsigned SID7 : 1;
4515 unsigned SID8 : 1;
4516 unsigned SID9 : 1;
4517 unsigned SID10 : 1;
4518 } __B3SIDHbits_t;
4520 extern __at(0x0EB1) volatile __B3SIDHbits_t B3SIDHbits;
4522 #define _B3SIDH_SID3 0x01
4523 #define _B3SIDH_SID4 0x02
4524 #define _B3SIDH_SID5 0x04
4525 #define _B3SIDH_SID6 0x08
4526 #define _B3SIDH_SID7 0x10
4527 #define _B3SIDH_SID8 0x20
4528 #define _B3SIDH_SID9 0x40
4529 #define _B3SIDH_SID10 0x80
4531 //==============================================================================
4534 //==============================================================================
4535 // B3SIDL Bits
4537 extern __at(0x0EB2) __sfr B3SIDL;
4539 typedef union
4541 struct
4543 unsigned EID16 : 1;
4544 unsigned EID17 : 1;
4545 unsigned : 1;
4546 unsigned EXIDE : 1;
4547 unsigned SRR : 1;
4548 unsigned SID0 : 1;
4549 unsigned SID1 : 1;
4550 unsigned SID2 : 1;
4553 struct
4555 unsigned : 5;
4556 unsigned SID : 3;
4558 } __B3SIDLbits_t;
4560 extern __at(0x0EB2) volatile __B3SIDLbits_t B3SIDLbits;
4562 #define _B3SIDL_EID16 0x01
4563 #define _B3SIDL_EID17 0x02
4564 #define _B3SIDL_EXIDE 0x08
4565 #define _B3SIDL_SRR 0x10
4566 #define _B3SIDL_SID0 0x20
4567 #define _B3SIDL_SID1 0x40
4568 #define _B3SIDL_SID2 0x80
4570 //==============================================================================
4573 //==============================================================================
4574 // B3EIDH Bits
4576 extern __at(0x0EB3) __sfr B3EIDH;
4578 typedef struct
4580 unsigned EID8 : 1;
4581 unsigned EID9 : 1;
4582 unsigned EID10 : 1;
4583 unsigned EID11 : 1;
4584 unsigned EID12 : 1;
4585 unsigned EID13 : 1;
4586 unsigned EID14 : 1;
4587 unsigned EID15 : 1;
4588 } __B3EIDHbits_t;
4590 extern __at(0x0EB3) volatile __B3EIDHbits_t B3EIDHbits;
4592 #define _B3EIDH_EID8 0x01
4593 #define _B3EIDH_EID9 0x02
4594 #define _B3EIDH_EID10 0x04
4595 #define _B3EIDH_EID11 0x08
4596 #define _B3EIDH_EID12 0x10
4597 #define _B3EIDH_EID13 0x20
4598 #define _B3EIDH_EID14 0x40
4599 #define _B3EIDH_EID15 0x80
4601 //==============================================================================
4604 //==============================================================================
4605 // B3EIDL Bits
4607 extern __at(0x0EB4) __sfr B3EIDL;
4609 typedef struct
4611 unsigned EID0 : 1;
4612 unsigned EID1 : 1;
4613 unsigned EID2 : 1;
4614 unsigned EID3 : 1;
4615 unsigned EID4 : 1;
4616 unsigned EID5 : 1;
4617 unsigned EID6 : 1;
4618 unsigned EID7 : 1;
4619 } __B3EIDLbits_t;
4621 extern __at(0x0EB4) volatile __B3EIDLbits_t B3EIDLbits;
4623 #define _B3EIDL_EID0 0x01
4624 #define _B3EIDL_EID1 0x02
4625 #define _B3EIDL_EID2 0x04
4626 #define _B3EIDL_EID3 0x08
4627 #define _B3EIDL_EID4 0x10
4628 #define _B3EIDL_EID5 0x20
4629 #define _B3EIDL_EID6 0x40
4630 #define _B3EIDL_EID7 0x80
4632 //==============================================================================
4635 //==============================================================================
4636 // B3DLC Bits
4638 extern __at(0x0EB5) __sfr B3DLC;
4640 typedef union
4642 struct
4644 unsigned DLC0 : 1;
4645 unsigned DLC1 : 1;
4646 unsigned DLC2 : 1;
4647 unsigned DLC3 : 1;
4648 unsigned RB0 : 1;
4649 unsigned RB1 : 1;
4650 unsigned RXRTR_TXRTR : 1;
4651 unsigned : 1;
4654 struct
4656 unsigned : 1;
4657 unsigned : 1;
4658 unsigned : 1;
4659 unsigned : 1;
4660 unsigned : 1;
4661 unsigned : 1;
4662 unsigned RXRTR : 1;
4663 unsigned : 1;
4666 struct
4668 unsigned : 1;
4669 unsigned : 1;
4670 unsigned : 1;
4671 unsigned : 1;
4672 unsigned : 1;
4673 unsigned : 1;
4674 unsigned TXRTR : 1;
4675 unsigned : 1;
4678 struct
4680 unsigned DLC : 4;
4681 unsigned : 4;
4684 struct
4686 unsigned : 4;
4687 unsigned RB : 2;
4688 unsigned : 2;
4690 } __B3DLCbits_t;
4692 extern __at(0x0EB5) volatile __B3DLCbits_t B3DLCbits;
4694 #define _B3DLC_DLC0 0x01
4695 #define _B3DLC_DLC1 0x02
4696 #define _B3DLC_DLC2 0x04
4697 #define _B3DLC_DLC3 0x08
4698 #define _B3DLC_RB0 0x10
4699 #define _B3DLC_RB1 0x20
4700 #define _B3DLC_RXRTR_TXRTR 0x40
4701 #define _B3DLC_RXRTR 0x40
4702 #define _B3DLC_TXRTR 0x40
4704 //==============================================================================
4707 //==============================================================================
4708 // B3D0 Bits
4710 extern __at(0x0EB6) __sfr B3D0;
4712 typedef struct
4714 unsigned B3D00 : 1;
4715 unsigned B3D01 : 1;
4716 unsigned B3D02 : 1;
4717 unsigned B3D03 : 1;
4718 unsigned B3D04 : 1;
4719 unsigned B3D05 : 1;
4720 unsigned B3D06 : 1;
4721 unsigned B3D07 : 1;
4722 } __B3D0bits_t;
4724 extern __at(0x0EB6) volatile __B3D0bits_t B3D0bits;
4726 #define _B3D00 0x01
4727 #define _B3D01 0x02
4728 #define _B3D02 0x04
4729 #define _B3D03 0x08
4730 #define _B3D04 0x10
4731 #define _B3D05 0x20
4732 #define _B3D06 0x40
4733 #define _B3D07 0x80
4735 //==============================================================================
4738 //==============================================================================
4739 // B3D1 Bits
4741 extern __at(0x0EB7) __sfr B3D1;
4743 typedef struct
4745 unsigned B3D10 : 1;
4746 unsigned B3D11 : 1;
4747 unsigned B3D12 : 1;
4748 unsigned B3D13 : 1;
4749 unsigned B3D14 : 1;
4750 unsigned B3D15 : 1;
4751 unsigned B3D16 : 1;
4752 unsigned B3D17 : 1;
4753 } __B3D1bits_t;
4755 extern __at(0x0EB7) volatile __B3D1bits_t B3D1bits;
4757 #define _B3D10 0x01
4758 #define _B3D11 0x02
4759 #define _B3D12 0x04
4760 #define _B3D13 0x08
4761 #define _B3D14 0x10
4762 #define _B3D15 0x20
4763 #define _B3D16 0x40
4764 #define _B3D17 0x80
4766 //==============================================================================
4769 //==============================================================================
4770 // B3D2 Bits
4772 extern __at(0x0EB8) __sfr B3D2;
4774 typedef struct
4776 unsigned B3D20 : 1;
4777 unsigned B3D21 : 1;
4778 unsigned B3D22 : 1;
4779 unsigned B3D23 : 1;
4780 unsigned B3D24 : 1;
4781 unsigned B3D25 : 1;
4782 unsigned B3D26 : 1;
4783 unsigned B3D27 : 1;
4784 } __B3D2bits_t;
4786 extern __at(0x0EB8) volatile __B3D2bits_t B3D2bits;
4788 #define _B3D20 0x01
4789 #define _B3D21 0x02
4790 #define _B3D22 0x04
4791 #define _B3D23 0x08
4792 #define _B3D24 0x10
4793 #define _B3D25 0x20
4794 #define _B3D26 0x40
4795 #define _B3D27 0x80
4797 //==============================================================================
4800 //==============================================================================
4801 // B3D3 Bits
4803 extern __at(0x0EB9) __sfr B3D3;
4805 typedef struct
4807 unsigned B3D30 : 1;
4808 unsigned B3D31 : 1;
4809 unsigned B3D32 : 1;
4810 unsigned B3D33 : 1;
4811 unsigned B3D34 : 1;
4812 unsigned B3D35 : 1;
4813 unsigned B3D36 : 1;
4814 unsigned B3D37 : 1;
4815 } __B3D3bits_t;
4817 extern __at(0x0EB9) volatile __B3D3bits_t B3D3bits;
4819 #define _B3D30 0x01
4820 #define _B3D31 0x02
4821 #define _B3D32 0x04
4822 #define _B3D33 0x08
4823 #define _B3D34 0x10
4824 #define _B3D35 0x20
4825 #define _B3D36 0x40
4826 #define _B3D37 0x80
4828 //==============================================================================
4831 //==============================================================================
4832 // B3D4 Bits
4834 extern __at(0x0EBA) __sfr B3D4;
4836 typedef struct
4838 unsigned B3D40 : 1;
4839 unsigned B3D41 : 1;
4840 unsigned B3D42 : 1;
4841 unsigned B3D43 : 1;
4842 unsigned B3D44 : 1;
4843 unsigned B3D45 : 1;
4844 unsigned B3D46 : 1;
4845 unsigned B3D47 : 1;
4846 } __B3D4bits_t;
4848 extern __at(0x0EBA) volatile __B3D4bits_t B3D4bits;
4850 #define _B3D40 0x01
4851 #define _B3D41 0x02
4852 #define _B3D42 0x04
4853 #define _B3D43 0x08
4854 #define _B3D44 0x10
4855 #define _B3D45 0x20
4856 #define _B3D46 0x40
4857 #define _B3D47 0x80
4859 //==============================================================================
4862 //==============================================================================
4863 // B3D5 Bits
4865 extern __at(0x0EBB) __sfr B3D5;
4867 typedef struct
4869 unsigned B3D50 : 1;
4870 unsigned B3D51 : 1;
4871 unsigned B3D52 : 1;
4872 unsigned B3D53 : 1;
4873 unsigned B3D54 : 1;
4874 unsigned B3D55 : 1;
4875 unsigned B3D56 : 1;
4876 unsigned B3D57 : 1;
4877 } __B3D5bits_t;
4879 extern __at(0x0EBB) volatile __B3D5bits_t B3D5bits;
4881 #define _B3D50 0x01
4882 #define _B3D51 0x02
4883 #define _B3D52 0x04
4884 #define _B3D53 0x08
4885 #define _B3D54 0x10
4886 #define _B3D55 0x20
4887 #define _B3D56 0x40
4888 #define _B3D57 0x80
4890 //==============================================================================
4893 //==============================================================================
4894 // B3D6 Bits
4896 extern __at(0x0EBC) __sfr B3D6;
4898 typedef struct
4900 unsigned B3D60 : 1;
4901 unsigned B3D61 : 1;
4902 unsigned B3D62 : 1;
4903 unsigned B3D63 : 1;
4904 unsigned B3D64 : 1;
4905 unsigned B3D65 : 1;
4906 unsigned B3D66 : 1;
4907 unsigned B3D67 : 1;
4908 } __B3D6bits_t;
4910 extern __at(0x0EBC) volatile __B3D6bits_t B3D6bits;
4912 #define _B3D60 0x01
4913 #define _B3D61 0x02
4914 #define _B3D62 0x04
4915 #define _B3D63 0x08
4916 #define _B3D64 0x10
4917 #define _B3D65 0x20
4918 #define _B3D66 0x40
4919 #define _B3D67 0x80
4921 //==============================================================================
4924 //==============================================================================
4925 // B3D7 Bits
4927 extern __at(0x0EBD) __sfr B3D7;
4929 typedef struct
4931 unsigned B3D70 : 1;
4932 unsigned B3D71 : 1;
4933 unsigned B3D72 : 1;
4934 unsigned B3D73 : 1;
4935 unsigned B3D74 : 1;
4936 unsigned B3D75 : 1;
4937 unsigned B3D76 : 1;
4938 unsigned B3D77 : 1;
4939 } __B3D7bits_t;
4941 extern __at(0x0EBD) volatile __B3D7bits_t B3D7bits;
4943 #define _B3D70 0x01
4944 #define _B3D71 0x02
4945 #define _B3D72 0x04
4946 #define _B3D73 0x08
4947 #define _B3D74 0x10
4948 #define _B3D75 0x20
4949 #define _B3D76 0x40
4950 #define _B3D77 0x80
4952 //==============================================================================
4955 //==============================================================================
4956 // CANSTAT_RO6 Bits
4958 extern __at(0x0EBE) __sfr CANSTAT_RO6;
4960 typedef union
4962 struct
4964 unsigned EICODE0 : 1;
4965 unsigned EICODE1_ICODE0 : 1;
4966 unsigned EICODE2_ICODE1 : 1;
4967 unsigned EICODE3_ICODE2 : 1;
4968 unsigned EICODE4 : 1;
4969 unsigned OPMODE0 : 1;
4970 unsigned OPMODE1 : 1;
4971 unsigned OPMODE2 : 1;
4974 struct
4976 unsigned : 1;
4977 unsigned EICODE1 : 1;
4978 unsigned EICODE2 : 1;
4979 unsigned EICODE3 : 1;
4980 unsigned : 1;
4981 unsigned : 1;
4982 unsigned : 1;
4983 unsigned : 1;
4986 struct
4988 unsigned : 1;
4989 unsigned ICODE0 : 1;
4990 unsigned ICODE1 : 1;
4991 unsigned ICODE2 : 1;
4992 unsigned : 1;
4993 unsigned : 1;
4994 unsigned : 1;
4995 unsigned : 1;
4998 struct
5000 unsigned EICODE : 5;
5001 unsigned : 3;
5004 struct
5006 unsigned : 1;
5007 unsigned ICODE : 3;
5008 unsigned : 4;
5011 struct
5013 unsigned : 5;
5014 unsigned OPMODE : 3;
5016 } __CANSTAT_RO6bits_t;
5018 extern __at(0x0EBE) volatile __CANSTAT_RO6bits_t CANSTAT_RO6bits;
5020 #define _CANSTAT_RO6_EICODE0 0x01
5021 #define _CANSTAT_RO6_EICODE1_ICODE0 0x02
5022 #define _CANSTAT_RO6_EICODE1 0x02
5023 #define _CANSTAT_RO6_ICODE0 0x02
5024 #define _CANSTAT_RO6_EICODE2_ICODE1 0x04
5025 #define _CANSTAT_RO6_EICODE2 0x04
5026 #define _CANSTAT_RO6_ICODE1 0x04
5027 #define _CANSTAT_RO6_EICODE3_ICODE2 0x08
5028 #define _CANSTAT_RO6_EICODE3 0x08
5029 #define _CANSTAT_RO6_ICODE2 0x08
5030 #define _CANSTAT_RO6_EICODE4 0x10
5031 #define _CANSTAT_RO6_OPMODE0 0x20
5032 #define _CANSTAT_RO6_OPMODE1 0x40
5033 #define _CANSTAT_RO6_OPMODE2 0x80
5035 //==============================================================================
5038 //==============================================================================
5039 // CANCON_RO6 Bits
5041 extern __at(0x0EBF) __sfr CANCON_RO6;
5043 typedef union
5045 struct
5047 unsigned FP0 : 1;
5048 unsigned WIN0_FP1 : 1;
5049 unsigned WIN1_FP2 : 1;
5050 unsigned WIN2_FP3 : 1;
5051 unsigned ABAT : 1;
5052 unsigned : 1;
5053 unsigned : 1;
5054 unsigned : 1;
5057 struct
5059 unsigned : 1;
5060 unsigned WIN0 : 1;
5061 unsigned WIN1 : 1;
5062 unsigned WIN2 : 1;
5063 unsigned : 1;
5064 unsigned : 1;
5065 unsigned : 1;
5066 unsigned : 1;
5069 struct
5071 unsigned : 1;
5072 unsigned FP1 : 1;
5073 unsigned FP2 : 1;
5074 unsigned FP3 : 1;
5075 unsigned : 1;
5076 unsigned : 1;
5077 unsigned : 1;
5078 unsigned : 1;
5081 struct
5083 unsigned FP : 4;
5084 unsigned : 4;
5087 struct
5089 unsigned : 1;
5090 unsigned WIN : 3;
5091 unsigned : 4;
5093 } __CANCON_RO6bits_t;
5095 extern __at(0x0EBF) volatile __CANCON_RO6bits_t CANCON_RO6bits;
5097 #define _CANCON_RO6_FP0 0x01
5098 #define _CANCON_RO6_WIN0_FP1 0x02
5099 #define _CANCON_RO6_WIN0 0x02
5100 #define _CANCON_RO6_FP1 0x02
5101 #define _CANCON_RO6_WIN1_FP2 0x04
5102 #define _CANCON_RO6_WIN1 0x04
5103 #define _CANCON_RO6_FP2 0x04
5104 #define _CANCON_RO6_WIN2_FP3 0x08
5105 #define _CANCON_RO6_WIN2 0x08
5106 #define _CANCON_RO6_FP3 0x08
5107 #define _CANCON_RO6_ABAT 0x10
5109 //==============================================================================
5112 //==============================================================================
5113 // B4CON Bits
5115 extern __at(0x0EC0) __sfr B4CON;
5117 typedef union
5119 struct
5121 unsigned FILHIT0_TXPRI0 : 1;
5122 unsigned FILHIT1_TXPRI1 : 1;
5123 unsigned FILHIT2_RTREN : 1;
5124 unsigned FILHIT3_TXREQ : 1;
5125 unsigned FILHIT4_TXERR : 1;
5126 unsigned RXRTRRO_TXLARB : 1;
5127 unsigned RXM1_TXABT : 1;
5128 unsigned RXFUL_TXBIF : 1;
5131 struct
5133 unsigned FILHIT0 : 1;
5134 unsigned FILHIT1 : 1;
5135 unsigned FILHIT2 : 1;
5136 unsigned FILHIT3 : 1;
5137 unsigned FILHIT4 : 1;
5138 unsigned RXRTRRO : 1;
5139 unsigned RXM1 : 1;
5140 unsigned RXFUL : 1;
5143 struct
5145 unsigned TXPRI0 : 1;
5146 unsigned TXPRI1 : 1;
5147 unsigned RTREN : 1;
5148 unsigned TXREQ : 1;
5149 unsigned TXERR : 1;
5150 unsigned TXLARB : 1;
5151 unsigned TXABT : 1;
5152 unsigned TXBIF : 1;
5155 struct
5157 unsigned TXPRI : 2;
5158 unsigned : 6;
5161 struct
5163 unsigned FILHIT : 5;
5164 unsigned : 3;
5166 } __B4CONbits_t;
5168 extern __at(0x0EC0) volatile __B4CONbits_t B4CONbits;
5170 #define _B4CON_FILHIT0_TXPRI0 0x01
5171 #define _B4CON_FILHIT0 0x01
5172 #define _B4CON_TXPRI0 0x01
5173 #define _B4CON_FILHIT1_TXPRI1 0x02
5174 #define _B4CON_FILHIT1 0x02
5175 #define _B4CON_TXPRI1 0x02
5176 #define _B4CON_FILHIT2_RTREN 0x04
5177 #define _B4CON_FILHIT2 0x04
5178 #define _B4CON_RTREN 0x04
5179 #define _B4CON_FILHIT3_TXREQ 0x08
5180 #define _B4CON_FILHIT3 0x08
5181 #define _B4CON_TXREQ 0x08
5182 #define _B4CON_FILHIT4_TXERR 0x10
5183 #define _B4CON_FILHIT4 0x10
5184 #define _B4CON_TXERR 0x10
5185 #define _B4CON_RXRTRRO_TXLARB 0x20
5186 #define _B4CON_RXRTRRO 0x20
5187 #define _B4CON_TXLARB 0x20
5188 #define _B4CON_RXM1_TXABT 0x40
5189 #define _B4CON_RXM1 0x40
5190 #define _B4CON_TXABT 0x40
5191 #define _B4CON_RXFUL_TXBIF 0x80
5192 #define _B4CON_RXFUL 0x80
5193 #define _B4CON_TXBIF 0x80
5195 //==============================================================================
5198 //==============================================================================
5199 // B4SIDH Bits
5201 extern __at(0x0EC1) __sfr B4SIDH;
5203 typedef struct
5205 unsigned SID3 : 1;
5206 unsigned SID4 : 1;
5207 unsigned SID5 : 1;
5208 unsigned SID6 : 1;
5209 unsigned SID7 : 1;
5210 unsigned SID8 : 1;
5211 unsigned SID9 : 1;
5212 unsigned SID10 : 1;
5213 } __B4SIDHbits_t;
5215 extern __at(0x0EC1) volatile __B4SIDHbits_t B4SIDHbits;
5217 #define _B4SIDH_SID3 0x01
5218 #define _B4SIDH_SID4 0x02
5219 #define _B4SIDH_SID5 0x04
5220 #define _B4SIDH_SID6 0x08
5221 #define _B4SIDH_SID7 0x10
5222 #define _B4SIDH_SID8 0x20
5223 #define _B4SIDH_SID9 0x40
5224 #define _B4SIDH_SID10 0x80
5226 //==============================================================================
5229 //==============================================================================
5230 // B4SIDL Bits
5232 extern __at(0x0EC2) __sfr B4SIDL;
5234 typedef union
5236 struct
5238 unsigned EID16 : 1;
5239 unsigned EID17 : 1;
5240 unsigned : 1;
5241 unsigned EXIDE : 1;
5242 unsigned SRR : 1;
5243 unsigned SID0 : 1;
5244 unsigned SID1 : 1;
5245 unsigned SID2 : 1;
5248 struct
5250 unsigned : 5;
5251 unsigned SID : 3;
5253 } __B4SIDLbits_t;
5255 extern __at(0x0EC2) volatile __B4SIDLbits_t B4SIDLbits;
5257 #define _B4SIDL_EID16 0x01
5258 #define _B4SIDL_EID17 0x02
5259 #define _B4SIDL_EXIDE 0x08
5260 #define _B4SIDL_SRR 0x10
5261 #define _B4SIDL_SID0 0x20
5262 #define _B4SIDL_SID1 0x40
5263 #define _B4SIDL_SID2 0x80
5265 //==============================================================================
5268 //==============================================================================
5269 // B4EIDH Bits
5271 extern __at(0x0EC3) __sfr B4EIDH;
5273 typedef struct
5275 unsigned EID8 : 1;
5276 unsigned EID9 : 1;
5277 unsigned EID10 : 1;
5278 unsigned EID11 : 1;
5279 unsigned EID12 : 1;
5280 unsigned EID13 : 1;
5281 unsigned EID14 : 1;
5282 unsigned EID15 : 1;
5283 } __B4EIDHbits_t;
5285 extern __at(0x0EC3) volatile __B4EIDHbits_t B4EIDHbits;
5287 #define _B4EIDH_EID8 0x01
5288 #define _B4EIDH_EID9 0x02
5289 #define _B4EIDH_EID10 0x04
5290 #define _B4EIDH_EID11 0x08
5291 #define _B4EIDH_EID12 0x10
5292 #define _B4EIDH_EID13 0x20
5293 #define _B4EIDH_EID14 0x40
5294 #define _B4EIDH_EID15 0x80
5296 //==============================================================================
5299 //==============================================================================
5300 // B4EIDL Bits
5302 extern __at(0x0EC4) __sfr B4EIDL;
5304 typedef struct
5306 unsigned EID0 : 1;
5307 unsigned EID1 : 1;
5308 unsigned EID2 : 1;
5309 unsigned EID3 : 1;
5310 unsigned EID4 : 1;
5311 unsigned EID5 : 1;
5312 unsigned EID6 : 1;
5313 unsigned EID7 : 1;
5314 } __B4EIDLbits_t;
5316 extern __at(0x0EC4) volatile __B4EIDLbits_t B4EIDLbits;
5318 #define _B4EIDL_EID0 0x01
5319 #define _B4EIDL_EID1 0x02
5320 #define _B4EIDL_EID2 0x04
5321 #define _B4EIDL_EID3 0x08
5322 #define _B4EIDL_EID4 0x10
5323 #define _B4EIDL_EID5 0x20
5324 #define _B4EIDL_EID6 0x40
5325 #define _B4EIDL_EID7 0x80
5327 //==============================================================================
5330 //==============================================================================
5331 // B4DLC Bits
5333 extern __at(0x0EC5) __sfr B4DLC;
5335 typedef union
5337 struct
5339 unsigned DLC0 : 1;
5340 unsigned DLC1 : 1;
5341 unsigned DLC2 : 1;
5342 unsigned DLC3 : 1;
5343 unsigned RB0 : 1;
5344 unsigned RB1 : 1;
5345 unsigned RXRTR_TXRTR : 1;
5346 unsigned : 1;
5349 struct
5351 unsigned : 1;
5352 unsigned : 1;
5353 unsigned : 1;
5354 unsigned : 1;
5355 unsigned : 1;
5356 unsigned : 1;
5357 unsigned RXRTR : 1;
5358 unsigned : 1;
5361 struct
5363 unsigned : 1;
5364 unsigned : 1;
5365 unsigned : 1;
5366 unsigned : 1;
5367 unsigned : 1;
5368 unsigned : 1;
5369 unsigned TXRTR : 1;
5370 unsigned : 1;
5373 struct
5375 unsigned DLC : 4;
5376 unsigned : 4;
5379 struct
5381 unsigned : 4;
5382 unsigned RB : 2;
5383 unsigned : 2;
5385 } __B4DLCbits_t;
5387 extern __at(0x0EC5) volatile __B4DLCbits_t B4DLCbits;
5389 #define _B4DLC_DLC0 0x01
5390 #define _B4DLC_DLC1 0x02
5391 #define _B4DLC_DLC2 0x04
5392 #define _B4DLC_DLC3 0x08
5393 #define _B4DLC_RB0 0x10
5394 #define _B4DLC_RB1 0x20
5395 #define _B4DLC_RXRTR_TXRTR 0x40
5396 #define _B4DLC_RXRTR 0x40
5397 #define _B4DLC_TXRTR 0x40
5399 //==============================================================================
5402 //==============================================================================
5403 // B4D0 Bits
5405 extern __at(0x0EC6) __sfr B4D0;
5407 typedef struct
5409 unsigned B4D00 : 1;
5410 unsigned B4D01 : 1;
5411 unsigned B4D02 : 1;
5412 unsigned B4D03 : 1;
5413 unsigned B4D04 : 1;
5414 unsigned B4D05 : 1;
5415 unsigned B4D06 : 1;
5416 unsigned B4D07 : 1;
5417 } __B4D0bits_t;
5419 extern __at(0x0EC6) volatile __B4D0bits_t B4D0bits;
5421 #define _B4D00 0x01
5422 #define _B4D01 0x02
5423 #define _B4D02 0x04
5424 #define _B4D03 0x08
5425 #define _B4D04 0x10
5426 #define _B4D05 0x20
5427 #define _B4D06 0x40
5428 #define _B4D07 0x80
5430 //==============================================================================
5433 //==============================================================================
5434 // B4D1 Bits
5436 extern __at(0x0EC7) __sfr B4D1;
5438 typedef struct
5440 unsigned B4D10 : 1;
5441 unsigned B4D11 : 1;
5442 unsigned B4D12 : 1;
5443 unsigned B4D13 : 1;
5444 unsigned B4D14 : 1;
5445 unsigned B4D15 : 1;
5446 unsigned B4D16 : 1;
5447 unsigned B4D17 : 1;
5448 } __B4D1bits_t;
5450 extern __at(0x0EC7) volatile __B4D1bits_t B4D1bits;
5452 #define _B4D10 0x01
5453 #define _B4D11 0x02
5454 #define _B4D12 0x04
5455 #define _B4D13 0x08
5456 #define _B4D14 0x10
5457 #define _B4D15 0x20
5458 #define _B4D16 0x40
5459 #define _B4D17 0x80
5461 //==============================================================================
5464 //==============================================================================
5465 // B4D2 Bits
5467 extern __at(0x0EC8) __sfr B4D2;
5469 typedef struct
5471 unsigned B4D20 : 1;
5472 unsigned B4D21 : 1;
5473 unsigned B4D22 : 1;
5474 unsigned B4D23 : 1;
5475 unsigned B4D24 : 1;
5476 unsigned B4D25 : 1;
5477 unsigned B4D26 : 1;
5478 unsigned B4D27 : 1;
5479 } __B4D2bits_t;
5481 extern __at(0x0EC8) volatile __B4D2bits_t B4D2bits;
5483 #define _B4D20 0x01
5484 #define _B4D21 0x02
5485 #define _B4D22 0x04
5486 #define _B4D23 0x08
5487 #define _B4D24 0x10
5488 #define _B4D25 0x20
5489 #define _B4D26 0x40
5490 #define _B4D27 0x80
5492 //==============================================================================
5495 //==============================================================================
5496 // B4D3 Bits
5498 extern __at(0x0EC9) __sfr B4D3;
5500 typedef struct
5502 unsigned B4D30 : 1;
5503 unsigned B4D31 : 1;
5504 unsigned B4D32 : 1;
5505 unsigned B4D33 : 1;
5506 unsigned B4D34 : 1;
5507 unsigned B4D35 : 1;
5508 unsigned B4D36 : 1;
5509 unsigned B4D37 : 1;
5510 } __B4D3bits_t;
5512 extern __at(0x0EC9) volatile __B4D3bits_t B4D3bits;
5514 #define _B4D30 0x01
5515 #define _B4D31 0x02
5516 #define _B4D32 0x04
5517 #define _B4D33 0x08
5518 #define _B4D34 0x10
5519 #define _B4D35 0x20
5520 #define _B4D36 0x40
5521 #define _B4D37 0x80
5523 //==============================================================================
5526 //==============================================================================
5527 // B4D4 Bits
5529 extern __at(0x0ECA) __sfr B4D4;
5531 typedef struct
5533 unsigned B4D40 : 1;
5534 unsigned B4D41 : 1;
5535 unsigned B4D42 : 1;
5536 unsigned B4D43 : 1;
5537 unsigned B4D44 : 1;
5538 unsigned B4D45 : 1;
5539 unsigned B4D46 : 1;
5540 unsigned B4D47 : 1;
5541 } __B4D4bits_t;
5543 extern __at(0x0ECA) volatile __B4D4bits_t B4D4bits;
5545 #define _B4D40 0x01
5546 #define _B4D41 0x02
5547 #define _B4D42 0x04
5548 #define _B4D43 0x08
5549 #define _B4D44 0x10
5550 #define _B4D45 0x20
5551 #define _B4D46 0x40
5552 #define _B4D47 0x80
5554 //==============================================================================
5557 //==============================================================================
5558 // B4D5 Bits
5560 extern __at(0x0ECB) __sfr B4D5;
5562 typedef struct
5564 unsigned B4D50 : 1;
5565 unsigned B4D51 : 1;
5566 unsigned B4D52 : 1;
5567 unsigned B4D53 : 1;
5568 unsigned B4D54 : 1;
5569 unsigned B4D55 : 1;
5570 unsigned B4D56 : 1;
5571 unsigned B4D57 : 1;
5572 } __B4D5bits_t;
5574 extern __at(0x0ECB) volatile __B4D5bits_t B4D5bits;
5576 #define _B4D50 0x01
5577 #define _B4D51 0x02
5578 #define _B4D52 0x04
5579 #define _B4D53 0x08
5580 #define _B4D54 0x10
5581 #define _B4D55 0x20
5582 #define _B4D56 0x40
5583 #define _B4D57 0x80
5585 //==============================================================================
5588 //==============================================================================
5589 // B4D6 Bits
5591 extern __at(0x0ECC) __sfr B4D6;
5593 typedef struct
5595 unsigned B4D60 : 1;
5596 unsigned B4D61 : 1;
5597 unsigned B4D62 : 1;
5598 unsigned B4D63 : 1;
5599 unsigned B4D64 : 1;
5600 unsigned B4D65 : 1;
5601 unsigned B4D66 : 1;
5602 unsigned B4D67 : 1;
5603 } __B4D6bits_t;
5605 extern __at(0x0ECC) volatile __B4D6bits_t B4D6bits;
5607 #define _B4D60 0x01
5608 #define _B4D61 0x02
5609 #define _B4D62 0x04
5610 #define _B4D63 0x08
5611 #define _B4D64 0x10
5612 #define _B4D65 0x20
5613 #define _B4D66 0x40
5614 #define _B4D67 0x80
5616 //==============================================================================
5619 //==============================================================================
5620 // B4D7 Bits
5622 extern __at(0x0ECD) __sfr B4D7;
5624 typedef struct
5626 unsigned B4D70 : 1;
5627 unsigned B4D71 : 1;
5628 unsigned B4D72 : 1;
5629 unsigned B4D73 : 1;
5630 unsigned B4D74 : 1;
5631 unsigned B4D75 : 1;
5632 unsigned B4D76 : 1;
5633 unsigned B4D77 : 1;
5634 } __B4D7bits_t;
5636 extern __at(0x0ECD) volatile __B4D7bits_t B4D7bits;
5638 #define _B4D70 0x01
5639 #define _B4D71 0x02
5640 #define _B4D72 0x04
5641 #define _B4D73 0x08
5642 #define _B4D74 0x10
5643 #define _B4D75 0x20
5644 #define _B4D76 0x40
5645 #define _B4D77 0x80
5647 //==============================================================================
5650 //==============================================================================
5651 // CANSTAT_RO5 Bits
5653 extern __at(0x0ECE) __sfr CANSTAT_RO5;
5655 typedef union
5657 struct
5659 unsigned EICODE0 : 1;
5660 unsigned EICODE1_ICODE0 : 1;
5661 unsigned EICODE2_ICODE1 : 1;
5662 unsigned EICODE3_ICODE2 : 1;
5663 unsigned EICODE4 : 1;
5664 unsigned OPMODE0 : 1;
5665 unsigned OPMODE1 : 1;
5666 unsigned OPMODE2 : 1;
5669 struct
5671 unsigned : 1;
5672 unsigned EICODE1 : 1;
5673 unsigned EICODE2 : 1;
5674 unsigned EICODE3 : 1;
5675 unsigned : 1;
5676 unsigned : 1;
5677 unsigned : 1;
5678 unsigned : 1;
5681 struct
5683 unsigned : 1;
5684 unsigned ICODE0 : 1;
5685 unsigned ICODE1 : 1;
5686 unsigned ICODE2 : 1;
5687 unsigned : 1;
5688 unsigned : 1;
5689 unsigned : 1;
5690 unsigned : 1;
5693 struct
5695 unsigned EICODE : 5;
5696 unsigned : 3;
5699 struct
5701 unsigned : 1;
5702 unsigned ICODE : 3;
5703 unsigned : 4;
5706 struct
5708 unsigned : 5;
5709 unsigned OPMODE : 3;
5711 } __CANSTAT_RO5bits_t;
5713 extern __at(0x0ECE) volatile __CANSTAT_RO5bits_t CANSTAT_RO5bits;
5715 #define _CANSTAT_RO5_EICODE0 0x01
5716 #define _CANSTAT_RO5_EICODE1_ICODE0 0x02
5717 #define _CANSTAT_RO5_EICODE1 0x02
5718 #define _CANSTAT_RO5_ICODE0 0x02
5719 #define _CANSTAT_RO5_EICODE2_ICODE1 0x04
5720 #define _CANSTAT_RO5_EICODE2 0x04
5721 #define _CANSTAT_RO5_ICODE1 0x04
5722 #define _CANSTAT_RO5_EICODE3_ICODE2 0x08
5723 #define _CANSTAT_RO5_EICODE3 0x08
5724 #define _CANSTAT_RO5_ICODE2 0x08
5725 #define _CANSTAT_RO5_EICODE4 0x10
5726 #define _CANSTAT_RO5_OPMODE0 0x20
5727 #define _CANSTAT_RO5_OPMODE1 0x40
5728 #define _CANSTAT_RO5_OPMODE2 0x80
5730 //==============================================================================
5733 //==============================================================================
5734 // CANCON_RO5 Bits
5736 extern __at(0x0ECF) __sfr CANCON_RO5;
5738 typedef union
5740 struct
5742 unsigned FP0 : 1;
5743 unsigned WIN0_FP1 : 1;
5744 unsigned WIN1_FP2 : 1;
5745 unsigned WIN2_FP3 : 1;
5746 unsigned ABAT : 1;
5747 unsigned : 1;
5748 unsigned : 1;
5749 unsigned : 1;
5752 struct
5754 unsigned : 1;
5755 unsigned WIN0 : 1;
5756 unsigned WIN1 : 1;
5757 unsigned WIN2 : 1;
5758 unsigned : 1;
5759 unsigned : 1;
5760 unsigned : 1;
5761 unsigned : 1;
5764 struct
5766 unsigned : 1;
5767 unsigned FP1 : 1;
5768 unsigned FP2 : 1;
5769 unsigned FP3 : 1;
5770 unsigned : 1;
5771 unsigned : 1;
5772 unsigned : 1;
5773 unsigned : 1;
5776 struct
5778 unsigned FP : 4;
5779 unsigned : 4;
5782 struct
5784 unsigned : 1;
5785 unsigned WIN : 3;
5786 unsigned : 4;
5788 } __CANCON_RO5bits_t;
5790 extern __at(0x0ECF) volatile __CANCON_RO5bits_t CANCON_RO5bits;
5792 #define _CANCON_RO5_FP0 0x01
5793 #define _CANCON_RO5_WIN0_FP1 0x02
5794 #define _CANCON_RO5_WIN0 0x02
5795 #define _CANCON_RO5_FP1 0x02
5796 #define _CANCON_RO5_WIN1_FP2 0x04
5797 #define _CANCON_RO5_WIN1 0x04
5798 #define _CANCON_RO5_FP2 0x04
5799 #define _CANCON_RO5_WIN2_FP3 0x08
5800 #define _CANCON_RO5_WIN2 0x08
5801 #define _CANCON_RO5_FP3 0x08
5802 #define _CANCON_RO5_ABAT 0x10
5804 //==============================================================================
5807 //==============================================================================
5808 // B5CON Bits
5810 extern __at(0x0ED0) __sfr B5CON;
5812 typedef union
5814 struct
5816 unsigned FILHIT0_TXPRI0 : 1;
5817 unsigned FILHIT1_TXPRI1 : 1;
5818 unsigned FILHIT2_RTREN : 1;
5819 unsigned FILHIT3_TXREQ : 1;
5820 unsigned FILHIT4_TXERR : 1;
5821 unsigned RXRTRRO_TXLARB : 1;
5822 unsigned RXM1_TXABT : 1;
5823 unsigned RXFUL_TXBIF : 1;
5826 struct
5828 unsigned FILHIT0 : 1;
5829 unsigned FILHIT1 : 1;
5830 unsigned FILHIT2 : 1;
5831 unsigned FILHIT3 : 1;
5832 unsigned FILHIT4 : 1;
5833 unsigned RXRTRRO : 1;
5834 unsigned RXM1 : 1;
5835 unsigned RXFUL : 1;
5838 struct
5840 unsigned TXPRI0 : 1;
5841 unsigned TXPRI1 : 1;
5842 unsigned RTREN : 1;
5843 unsigned TXREQ : 1;
5844 unsigned TXERR : 1;
5845 unsigned TXLARB : 1;
5846 unsigned TXABT : 1;
5847 unsigned TXBIF : 1;
5850 struct
5852 unsigned FILHIT : 5;
5853 unsigned : 3;
5856 struct
5858 unsigned TXPRI : 2;
5859 unsigned : 6;
5861 } __B5CONbits_t;
5863 extern __at(0x0ED0) volatile __B5CONbits_t B5CONbits;
5865 #define _B5CON_FILHIT0_TXPRI0 0x01
5866 #define _B5CON_FILHIT0 0x01
5867 #define _B5CON_TXPRI0 0x01
5868 #define _B5CON_FILHIT1_TXPRI1 0x02
5869 #define _B5CON_FILHIT1 0x02
5870 #define _B5CON_TXPRI1 0x02
5871 #define _B5CON_FILHIT2_RTREN 0x04
5872 #define _B5CON_FILHIT2 0x04
5873 #define _B5CON_RTREN 0x04
5874 #define _B5CON_FILHIT3_TXREQ 0x08
5875 #define _B5CON_FILHIT3 0x08
5876 #define _B5CON_TXREQ 0x08
5877 #define _B5CON_FILHIT4_TXERR 0x10
5878 #define _B5CON_FILHIT4 0x10
5879 #define _B5CON_TXERR 0x10
5880 #define _B5CON_RXRTRRO_TXLARB 0x20
5881 #define _B5CON_RXRTRRO 0x20
5882 #define _B5CON_TXLARB 0x20
5883 #define _B5CON_RXM1_TXABT 0x40
5884 #define _B5CON_RXM1 0x40
5885 #define _B5CON_TXABT 0x40
5886 #define _B5CON_RXFUL_TXBIF 0x80
5887 #define _B5CON_RXFUL 0x80
5888 #define _B5CON_TXBIF 0x80
5890 //==============================================================================
5893 //==============================================================================
5894 // B5SIDH Bits
5896 extern __at(0x0ED1) __sfr B5SIDH;
5898 typedef struct
5900 unsigned SID3 : 1;
5901 unsigned SID4 : 1;
5902 unsigned SID5 : 1;
5903 unsigned SID6 : 1;
5904 unsigned SID7 : 1;
5905 unsigned SID8 : 1;
5906 unsigned SID9 : 1;
5907 unsigned SID10 : 1;
5908 } __B5SIDHbits_t;
5910 extern __at(0x0ED1) volatile __B5SIDHbits_t B5SIDHbits;
5912 #define _B5SIDH_SID3 0x01
5913 #define _B5SIDH_SID4 0x02
5914 #define _B5SIDH_SID5 0x04
5915 #define _B5SIDH_SID6 0x08
5916 #define _B5SIDH_SID7 0x10
5917 #define _B5SIDH_SID8 0x20
5918 #define _B5SIDH_SID9 0x40
5919 #define _B5SIDH_SID10 0x80
5921 //==============================================================================
5924 //==============================================================================
5925 // B5SIDL Bits
5927 extern __at(0x0ED2) __sfr B5SIDL;
5929 typedef union
5931 struct
5933 unsigned EID16 : 1;
5934 unsigned EID17 : 1;
5935 unsigned : 1;
5936 unsigned EXIDE : 1;
5937 unsigned SRR : 1;
5938 unsigned SID0 : 1;
5939 unsigned SID1 : 1;
5940 unsigned SID2 : 1;
5943 struct
5945 unsigned : 5;
5946 unsigned SID : 3;
5948 } __B5SIDLbits_t;
5950 extern __at(0x0ED2) volatile __B5SIDLbits_t B5SIDLbits;
5952 #define _B5SIDL_EID16 0x01
5953 #define _B5SIDL_EID17 0x02
5954 #define _B5SIDL_EXIDE 0x08
5955 #define _B5SIDL_SRR 0x10
5956 #define _B5SIDL_SID0 0x20
5957 #define _B5SIDL_SID1 0x40
5958 #define _B5SIDL_SID2 0x80
5960 //==============================================================================
5963 //==============================================================================
5964 // B5EIDH Bits
5966 extern __at(0x0ED3) __sfr B5EIDH;
5968 typedef struct
5970 unsigned EID8 : 1;
5971 unsigned EID9 : 1;
5972 unsigned EID10 : 1;
5973 unsigned EID11 : 1;
5974 unsigned EID12 : 1;
5975 unsigned EID13 : 1;
5976 unsigned EID14 : 1;
5977 unsigned EID15 : 1;
5978 } __B5EIDHbits_t;
5980 extern __at(0x0ED3) volatile __B5EIDHbits_t B5EIDHbits;
5982 #define _B5EIDH_EID8 0x01
5983 #define _B5EIDH_EID9 0x02
5984 #define _B5EIDH_EID10 0x04
5985 #define _B5EIDH_EID11 0x08
5986 #define _B5EIDH_EID12 0x10
5987 #define _B5EIDH_EID13 0x20
5988 #define _B5EIDH_EID14 0x40
5989 #define _B5EIDH_EID15 0x80
5991 //==============================================================================
5994 //==============================================================================
5995 // B5EIDL Bits
5997 extern __at(0x0ED4) __sfr B5EIDL;
5999 typedef struct
6001 unsigned EID0 : 1;
6002 unsigned EID1 : 1;
6003 unsigned EID2 : 1;
6004 unsigned EID3 : 1;
6005 unsigned EID4 : 1;
6006 unsigned EID5 : 1;
6007 unsigned EID6 : 1;
6008 unsigned EID7 : 1;
6009 } __B5EIDLbits_t;
6011 extern __at(0x0ED4) volatile __B5EIDLbits_t B5EIDLbits;
6013 #define _B5EIDL_EID0 0x01
6014 #define _B5EIDL_EID1 0x02
6015 #define _B5EIDL_EID2 0x04
6016 #define _B5EIDL_EID3 0x08
6017 #define _B5EIDL_EID4 0x10
6018 #define _B5EIDL_EID5 0x20
6019 #define _B5EIDL_EID6 0x40
6020 #define _B5EIDL_EID7 0x80
6022 //==============================================================================
6025 //==============================================================================
6026 // B5DLC Bits
6028 extern __at(0x0ED5) __sfr B5DLC;
6030 typedef union
6032 struct
6034 unsigned DLC0 : 1;
6035 unsigned DLC1 : 1;
6036 unsigned DLC2 : 1;
6037 unsigned DLC3 : 1;
6038 unsigned RB0 : 1;
6039 unsigned RB1 : 1;
6040 unsigned RXRTR_TXRTR : 1;
6041 unsigned : 1;
6044 struct
6046 unsigned : 1;
6047 unsigned : 1;
6048 unsigned : 1;
6049 unsigned : 1;
6050 unsigned : 1;
6051 unsigned : 1;
6052 unsigned RXRTR : 1;
6053 unsigned : 1;
6056 struct
6058 unsigned : 1;
6059 unsigned : 1;
6060 unsigned : 1;
6061 unsigned : 1;
6062 unsigned : 1;
6063 unsigned : 1;
6064 unsigned TXRTR : 1;
6065 unsigned : 1;
6068 struct
6070 unsigned DLC : 4;
6071 unsigned : 4;
6074 struct
6076 unsigned : 4;
6077 unsigned RB : 2;
6078 unsigned : 2;
6080 } __B5DLCbits_t;
6082 extern __at(0x0ED5) volatile __B5DLCbits_t B5DLCbits;
6084 #define _B5DLC_DLC0 0x01
6085 #define _B5DLC_DLC1 0x02
6086 #define _B5DLC_DLC2 0x04
6087 #define _B5DLC_DLC3 0x08
6088 #define _B5DLC_RB0 0x10
6089 #define _B5DLC_RB1 0x20
6090 #define _B5DLC_RXRTR_TXRTR 0x40
6091 #define _B5DLC_RXRTR 0x40
6092 #define _B5DLC_TXRTR 0x40
6094 //==============================================================================
6097 //==============================================================================
6098 // B5D0 Bits
6100 extern __at(0x0ED6) __sfr B5D0;
6102 typedef struct
6104 unsigned B5D00 : 1;
6105 unsigned B5D01 : 1;
6106 unsigned B5D02 : 1;
6107 unsigned B5D03 : 1;
6108 unsigned B5D04 : 1;
6109 unsigned B5D05 : 1;
6110 unsigned B5D06 : 1;
6111 unsigned B5D07 : 1;
6112 } __B5D0bits_t;
6114 extern __at(0x0ED6) volatile __B5D0bits_t B5D0bits;
6116 #define _B5D00 0x01
6117 #define _B5D01 0x02
6118 #define _B5D02 0x04
6119 #define _B5D03 0x08
6120 #define _B5D04 0x10
6121 #define _B5D05 0x20
6122 #define _B5D06 0x40
6123 #define _B5D07 0x80
6125 //==============================================================================
6128 //==============================================================================
6129 // B5D1 Bits
6131 extern __at(0x0ED7) __sfr B5D1;
6133 typedef struct
6135 unsigned B5D10 : 1;
6136 unsigned B5D11 : 1;
6137 unsigned B5D12 : 1;
6138 unsigned B5D13 : 1;
6139 unsigned B5D14 : 1;
6140 unsigned B5D15 : 1;
6141 unsigned B5D16 : 1;
6142 unsigned B5D17 : 1;
6143 } __B5D1bits_t;
6145 extern __at(0x0ED7) volatile __B5D1bits_t B5D1bits;
6147 #define _B5D10 0x01
6148 #define _B5D11 0x02
6149 #define _B5D12 0x04
6150 #define _B5D13 0x08
6151 #define _B5D14 0x10
6152 #define _B5D15 0x20
6153 #define _B5D16 0x40
6154 #define _B5D17 0x80
6156 //==============================================================================
6159 //==============================================================================
6160 // B5D2 Bits
6162 extern __at(0x0ED8) __sfr B5D2;
6164 typedef struct
6166 unsigned B5D20 : 1;
6167 unsigned B5D21 : 1;
6168 unsigned B5D22 : 1;
6169 unsigned B5D23 : 1;
6170 unsigned B5D24 : 1;
6171 unsigned B5D25 : 1;
6172 unsigned B5D26 : 1;
6173 unsigned B5D27 : 1;
6174 } __B5D2bits_t;
6176 extern __at(0x0ED8) volatile __B5D2bits_t B5D2bits;
6178 #define _B5D20 0x01
6179 #define _B5D21 0x02
6180 #define _B5D22 0x04
6181 #define _B5D23 0x08
6182 #define _B5D24 0x10
6183 #define _B5D25 0x20
6184 #define _B5D26 0x40
6185 #define _B5D27 0x80
6187 //==============================================================================
6190 //==============================================================================
6191 // B5D3 Bits
6193 extern __at(0x0ED9) __sfr B5D3;
6195 typedef struct
6197 unsigned B5D30 : 1;
6198 unsigned B5D31 : 1;
6199 unsigned B5D32 : 1;
6200 unsigned B5D33 : 1;
6201 unsigned B5D34 : 1;
6202 unsigned B5D35 : 1;
6203 unsigned B5D36 : 1;
6204 unsigned B5D37 : 1;
6205 } __B5D3bits_t;
6207 extern __at(0x0ED9) volatile __B5D3bits_t B5D3bits;
6209 #define _B5D30 0x01
6210 #define _B5D31 0x02
6211 #define _B5D32 0x04
6212 #define _B5D33 0x08
6213 #define _B5D34 0x10
6214 #define _B5D35 0x20
6215 #define _B5D36 0x40
6216 #define _B5D37 0x80
6218 //==============================================================================
6221 //==============================================================================
6222 // B5D4 Bits
6224 extern __at(0x0EDA) __sfr B5D4;
6226 typedef struct
6228 unsigned B5D40 : 1;
6229 unsigned B5D41 : 1;
6230 unsigned B5D42 : 1;
6231 unsigned B5D43 : 1;
6232 unsigned B5D44 : 1;
6233 unsigned B5D45 : 1;
6234 unsigned B5D46 : 1;
6235 unsigned B5D47 : 1;
6236 } __B5D4bits_t;
6238 extern __at(0x0EDA) volatile __B5D4bits_t B5D4bits;
6240 #define _B5D40 0x01
6241 #define _B5D41 0x02
6242 #define _B5D42 0x04
6243 #define _B5D43 0x08
6244 #define _B5D44 0x10
6245 #define _B5D45 0x20
6246 #define _B5D46 0x40
6247 #define _B5D47 0x80
6249 //==============================================================================
6252 //==============================================================================
6253 // B5D5 Bits
6255 extern __at(0x0EDB) __sfr B5D5;
6257 typedef struct
6259 unsigned B5D50 : 1;
6260 unsigned B5D51 : 1;
6261 unsigned B5D52 : 1;
6262 unsigned B5D53 : 1;
6263 unsigned B5D54 : 1;
6264 unsigned B5D55 : 1;
6265 unsigned B5D56 : 1;
6266 unsigned B5D57 : 1;
6267 } __B5D5bits_t;
6269 extern __at(0x0EDB) volatile __B5D5bits_t B5D5bits;
6271 #define _B5D50 0x01
6272 #define _B5D51 0x02
6273 #define _B5D52 0x04
6274 #define _B5D53 0x08
6275 #define _B5D54 0x10
6276 #define _B5D55 0x20
6277 #define _B5D56 0x40
6278 #define _B5D57 0x80
6280 //==============================================================================
6283 //==============================================================================
6284 // B5D6 Bits
6286 extern __at(0x0EDC) __sfr B5D6;
6288 typedef struct
6290 unsigned B5D60 : 1;
6291 unsigned B5D61 : 1;
6292 unsigned B5D62 : 1;
6293 unsigned B5D63 : 1;
6294 unsigned B5D64 : 1;
6295 unsigned B5D65 : 1;
6296 unsigned B5D66 : 1;
6297 unsigned B5D67 : 1;
6298 } __B5D6bits_t;
6300 extern __at(0x0EDC) volatile __B5D6bits_t B5D6bits;
6302 #define _B5D60 0x01
6303 #define _B5D61 0x02
6304 #define _B5D62 0x04
6305 #define _B5D63 0x08
6306 #define _B5D64 0x10
6307 #define _B5D65 0x20
6308 #define _B5D66 0x40
6309 #define _B5D67 0x80
6311 //==============================================================================
6314 //==============================================================================
6315 // B5D7 Bits
6317 extern __at(0x0EDD) __sfr B5D7;
6319 typedef struct
6321 unsigned B5D70 : 1;
6322 unsigned B5D71 : 1;
6323 unsigned B5D72 : 1;
6324 unsigned B5D73 : 1;
6325 unsigned B5D74 : 1;
6326 unsigned B5D75 : 1;
6327 unsigned B5D76 : 1;
6328 unsigned B5D77 : 1;
6329 } __B5D7bits_t;
6331 extern __at(0x0EDD) volatile __B5D7bits_t B5D7bits;
6333 #define _B5D70 0x01
6334 #define _B5D71 0x02
6335 #define _B5D72 0x04
6336 #define _B5D73 0x08
6337 #define _B5D74 0x10
6338 #define _B5D75 0x20
6339 #define _B5D76 0x40
6340 #define _B5D77 0x80
6342 //==============================================================================
6345 //==============================================================================
6346 // CANSTAT_RO4 Bits
6348 extern __at(0x0EDE) __sfr CANSTAT_RO4;
6350 typedef union
6352 struct
6354 unsigned EICODE0 : 1;
6355 unsigned EICODE1_ICODE0 : 1;
6356 unsigned EICODE2_ICODE1 : 1;
6357 unsigned EICODE3_ICODE2 : 1;
6358 unsigned EICODE4 : 1;
6359 unsigned OPMODE0 : 1;
6360 unsigned OPMODE1 : 1;
6361 unsigned OPMODE2 : 1;
6364 struct
6366 unsigned : 1;
6367 unsigned EICODE1 : 1;
6368 unsigned EICODE2 : 1;
6369 unsigned EICODE3 : 1;
6370 unsigned : 1;
6371 unsigned : 1;
6372 unsigned : 1;
6373 unsigned : 1;
6376 struct
6378 unsigned : 1;
6379 unsigned ICODE0 : 1;
6380 unsigned ICODE1 : 1;
6381 unsigned ICODE2 : 1;
6382 unsigned : 1;
6383 unsigned : 1;
6384 unsigned : 1;
6385 unsigned : 1;
6388 struct
6390 unsigned EICODE : 5;
6391 unsigned : 3;
6394 struct
6396 unsigned : 1;
6397 unsigned ICODE : 3;
6398 unsigned : 4;
6401 struct
6403 unsigned : 5;
6404 unsigned OPMODE : 3;
6406 } __CANSTAT_RO4bits_t;
6408 extern __at(0x0EDE) volatile __CANSTAT_RO4bits_t CANSTAT_RO4bits;
6410 #define _CANSTAT_RO4_EICODE0 0x01
6411 #define _CANSTAT_RO4_EICODE1_ICODE0 0x02
6412 #define _CANSTAT_RO4_EICODE1 0x02
6413 #define _CANSTAT_RO4_ICODE0 0x02
6414 #define _CANSTAT_RO4_EICODE2_ICODE1 0x04
6415 #define _CANSTAT_RO4_EICODE2 0x04
6416 #define _CANSTAT_RO4_ICODE1 0x04
6417 #define _CANSTAT_RO4_EICODE3_ICODE2 0x08
6418 #define _CANSTAT_RO4_EICODE3 0x08
6419 #define _CANSTAT_RO4_ICODE2 0x08
6420 #define _CANSTAT_RO4_EICODE4 0x10
6421 #define _CANSTAT_RO4_OPMODE0 0x20
6422 #define _CANSTAT_RO4_OPMODE1 0x40
6423 #define _CANSTAT_RO4_OPMODE2 0x80
6425 //==============================================================================
6428 //==============================================================================
6429 // CANCON_RO4 Bits
6431 extern __at(0x0EDF) __sfr CANCON_RO4;
6433 typedef union
6435 struct
6437 unsigned FP0 : 1;
6438 unsigned WIN0_FP1 : 1;
6439 unsigned WIN1_FP2 : 1;
6440 unsigned WIN2_FP3 : 1;
6441 unsigned ABAT : 1;
6442 unsigned : 1;
6443 unsigned : 1;
6444 unsigned : 1;
6447 struct
6449 unsigned : 1;
6450 unsigned WIN0 : 1;
6451 unsigned WIN1 : 1;
6452 unsigned WIN2 : 1;
6453 unsigned : 1;
6454 unsigned : 1;
6455 unsigned : 1;
6456 unsigned : 1;
6459 struct
6461 unsigned : 1;
6462 unsigned FP1 : 1;
6463 unsigned FP2 : 1;
6464 unsigned FP3 : 1;
6465 unsigned : 1;
6466 unsigned : 1;
6467 unsigned : 1;
6468 unsigned : 1;
6471 struct
6473 unsigned FP : 4;
6474 unsigned : 4;
6477 struct
6479 unsigned : 1;
6480 unsigned WIN : 3;
6481 unsigned : 4;
6483 } __CANCON_RO4bits_t;
6485 extern __at(0x0EDF) volatile __CANCON_RO4bits_t CANCON_RO4bits;
6487 #define _CANCON_RO4_FP0 0x01
6488 #define _CANCON_RO4_WIN0_FP1 0x02
6489 #define _CANCON_RO4_WIN0 0x02
6490 #define _CANCON_RO4_FP1 0x02
6491 #define _CANCON_RO4_WIN1_FP2 0x04
6492 #define _CANCON_RO4_WIN1 0x04
6493 #define _CANCON_RO4_FP2 0x04
6494 #define _CANCON_RO4_WIN2_FP3 0x08
6495 #define _CANCON_RO4_WIN2 0x08
6496 #define _CANCON_RO4_FP3 0x08
6497 #define _CANCON_RO4_ABAT 0x10
6499 //==============================================================================
6502 //==============================================================================
6503 // RXF0SIDH Bits
6505 extern __at(0x0EE0) __sfr RXF0SIDH;
6507 typedef struct
6509 unsigned SID3 : 1;
6510 unsigned SID4 : 1;
6511 unsigned SID5 : 1;
6512 unsigned SID6 : 1;
6513 unsigned SID7 : 1;
6514 unsigned SID8 : 1;
6515 unsigned SID9 : 1;
6516 unsigned SID10 : 1;
6517 } __RXF0SIDHbits_t;
6519 extern __at(0x0EE0) volatile __RXF0SIDHbits_t RXF0SIDHbits;
6521 #define _RXF0SIDH_SID3 0x01
6522 #define _RXF0SIDH_SID4 0x02
6523 #define _RXF0SIDH_SID5 0x04
6524 #define _RXF0SIDH_SID6 0x08
6525 #define _RXF0SIDH_SID7 0x10
6526 #define _RXF0SIDH_SID8 0x20
6527 #define _RXF0SIDH_SID9 0x40
6528 #define _RXF0SIDH_SID10 0x80
6530 //==============================================================================
6533 //==============================================================================
6534 // RXF0SIDL Bits
6536 extern __at(0x0EE1) __sfr RXF0SIDL;
6538 typedef union
6540 struct
6542 unsigned EID16 : 1;
6543 unsigned EID17 : 1;
6544 unsigned : 1;
6545 unsigned EXIDEN : 1;
6546 unsigned : 1;
6547 unsigned SID0 : 1;
6548 unsigned SID1 : 1;
6549 unsigned SID2 : 1;
6552 struct
6554 unsigned : 5;
6555 unsigned SID : 3;
6557 } __RXF0SIDLbits_t;
6559 extern __at(0x0EE1) volatile __RXF0SIDLbits_t RXF0SIDLbits;
6561 #define _RXF0SIDL_EID16 0x01
6562 #define _RXF0SIDL_EID17 0x02
6563 #define _RXF0SIDL_EXIDEN 0x08
6564 #define _RXF0SIDL_SID0 0x20
6565 #define _RXF0SIDL_SID1 0x40
6566 #define _RXF0SIDL_SID2 0x80
6568 //==============================================================================
6571 //==============================================================================
6572 // RXF0EIDH Bits
6574 extern __at(0x0EE2) __sfr RXF0EIDH;
6576 typedef struct
6578 unsigned EID8 : 1;
6579 unsigned EID9 : 1;
6580 unsigned EID10 : 1;
6581 unsigned EID11 : 1;
6582 unsigned EID12 : 1;
6583 unsigned EID13 : 1;
6584 unsigned EID14 : 1;
6585 unsigned EID15 : 1;
6586 } __RXF0EIDHbits_t;
6588 extern __at(0x0EE2) volatile __RXF0EIDHbits_t RXF0EIDHbits;
6590 #define _RXF0EIDH_EID8 0x01
6591 #define _RXF0EIDH_EID9 0x02
6592 #define _RXF0EIDH_EID10 0x04
6593 #define _RXF0EIDH_EID11 0x08
6594 #define _RXF0EIDH_EID12 0x10
6595 #define _RXF0EIDH_EID13 0x20
6596 #define _RXF0EIDH_EID14 0x40
6597 #define _RXF0EIDH_EID15 0x80
6599 //==============================================================================
6602 //==============================================================================
6603 // RXF0EIDL Bits
6605 extern __at(0x0EE3) __sfr RXF0EIDL;
6607 typedef struct
6609 unsigned EID0 : 1;
6610 unsigned EID1 : 1;
6611 unsigned EID2 : 1;
6612 unsigned EID3 : 1;
6613 unsigned EID4 : 1;
6614 unsigned EID5 : 1;
6615 unsigned EID6 : 1;
6616 unsigned EID7 : 1;
6617 } __RXF0EIDLbits_t;
6619 extern __at(0x0EE3) volatile __RXF0EIDLbits_t RXF0EIDLbits;
6621 #define _RXF0EIDL_EID0 0x01
6622 #define _RXF0EIDL_EID1 0x02
6623 #define _RXF0EIDL_EID2 0x04
6624 #define _RXF0EIDL_EID3 0x08
6625 #define _RXF0EIDL_EID4 0x10
6626 #define _RXF0EIDL_EID5 0x20
6627 #define _RXF0EIDL_EID6 0x40
6628 #define _RXF0EIDL_EID7 0x80
6630 //==============================================================================
6633 //==============================================================================
6634 // RXF1SIDH Bits
6636 extern __at(0x0EE4) __sfr RXF1SIDH;
6638 typedef struct
6640 unsigned SID3 : 1;
6641 unsigned SID4 : 1;
6642 unsigned SID5 : 1;
6643 unsigned SID6 : 1;
6644 unsigned SID7 : 1;
6645 unsigned SID8 : 1;
6646 unsigned SID9 : 1;
6647 unsigned SID10 : 1;
6648 } __RXF1SIDHbits_t;
6650 extern __at(0x0EE4) volatile __RXF1SIDHbits_t RXF1SIDHbits;
6652 #define _RXF1SIDH_SID3 0x01
6653 #define _RXF1SIDH_SID4 0x02
6654 #define _RXF1SIDH_SID5 0x04
6655 #define _RXF1SIDH_SID6 0x08
6656 #define _RXF1SIDH_SID7 0x10
6657 #define _RXF1SIDH_SID8 0x20
6658 #define _RXF1SIDH_SID9 0x40
6659 #define _RXF1SIDH_SID10 0x80
6661 //==============================================================================
6664 //==============================================================================
6665 // RXF1SIDL Bits
6667 extern __at(0x0EE5) __sfr RXF1SIDL;
6669 typedef union
6671 struct
6673 unsigned EID16 : 1;
6674 unsigned EID17 : 1;
6675 unsigned : 1;
6676 unsigned EXIDEN : 1;
6677 unsigned : 1;
6678 unsigned SID0 : 1;
6679 unsigned SID1 : 1;
6680 unsigned SID2 : 1;
6683 struct
6685 unsigned : 5;
6686 unsigned SID : 3;
6688 } __RXF1SIDLbits_t;
6690 extern __at(0x0EE5) volatile __RXF1SIDLbits_t RXF1SIDLbits;
6692 #define _RXF1SIDL_EID16 0x01
6693 #define _RXF1SIDL_EID17 0x02
6694 #define _RXF1SIDL_EXIDEN 0x08
6695 #define _RXF1SIDL_SID0 0x20
6696 #define _RXF1SIDL_SID1 0x40
6697 #define _RXF1SIDL_SID2 0x80
6699 //==============================================================================
6702 //==============================================================================
6703 // RXF1EIDH Bits
6705 extern __at(0x0EE6) __sfr RXF1EIDH;
6707 typedef struct
6709 unsigned EID8 : 1;
6710 unsigned EID9 : 1;
6711 unsigned EID10 : 1;
6712 unsigned EID11 : 1;
6713 unsigned EID12 : 1;
6714 unsigned EID13 : 1;
6715 unsigned EID14 : 1;
6716 unsigned EID15 : 1;
6717 } __RXF1EIDHbits_t;
6719 extern __at(0x0EE6) volatile __RXF1EIDHbits_t RXF1EIDHbits;
6721 #define _RXF1EIDH_EID8 0x01
6722 #define _RXF1EIDH_EID9 0x02
6723 #define _RXF1EIDH_EID10 0x04
6724 #define _RXF1EIDH_EID11 0x08
6725 #define _RXF1EIDH_EID12 0x10
6726 #define _RXF1EIDH_EID13 0x20
6727 #define _RXF1EIDH_EID14 0x40
6728 #define _RXF1EIDH_EID15 0x80
6730 //==============================================================================
6733 //==============================================================================
6734 // RXF1EIDL Bits
6736 extern __at(0x0EE7) __sfr RXF1EIDL;
6738 typedef struct
6740 unsigned EID0 : 1;
6741 unsigned EID1 : 1;
6742 unsigned EID2 : 1;
6743 unsigned EID3 : 1;
6744 unsigned EID4 : 1;
6745 unsigned EID5 : 1;
6746 unsigned EID6 : 1;
6747 unsigned EID7 : 1;
6748 } __RXF1EIDLbits_t;
6750 extern __at(0x0EE7) volatile __RXF1EIDLbits_t RXF1EIDLbits;
6752 #define _RXF1EIDL_EID0 0x01
6753 #define _RXF1EIDL_EID1 0x02
6754 #define _RXF1EIDL_EID2 0x04
6755 #define _RXF1EIDL_EID3 0x08
6756 #define _RXF1EIDL_EID4 0x10
6757 #define _RXF1EIDL_EID5 0x20
6758 #define _RXF1EIDL_EID6 0x40
6759 #define _RXF1EIDL_EID7 0x80
6761 //==============================================================================
6764 //==============================================================================
6765 // RXF2SIDH Bits
6767 extern __at(0x0EE8) __sfr RXF2SIDH;
6769 typedef struct
6771 unsigned SID3 : 1;
6772 unsigned SID4 : 1;
6773 unsigned SID5 : 1;
6774 unsigned SID6 : 1;
6775 unsigned SID7 : 1;
6776 unsigned SID8 : 1;
6777 unsigned SID9 : 1;
6778 unsigned SID10 : 1;
6779 } __RXF2SIDHbits_t;
6781 extern __at(0x0EE8) volatile __RXF2SIDHbits_t RXF2SIDHbits;
6783 #define _RXF2SIDH_SID3 0x01
6784 #define _RXF2SIDH_SID4 0x02
6785 #define _RXF2SIDH_SID5 0x04
6786 #define _RXF2SIDH_SID6 0x08
6787 #define _RXF2SIDH_SID7 0x10
6788 #define _RXF2SIDH_SID8 0x20
6789 #define _RXF2SIDH_SID9 0x40
6790 #define _RXF2SIDH_SID10 0x80
6792 //==============================================================================
6795 //==============================================================================
6796 // RXF2SIDL Bits
6798 extern __at(0x0EE9) __sfr RXF2SIDL;
6800 typedef union
6802 struct
6804 unsigned EID16 : 1;
6805 unsigned EID17 : 1;
6806 unsigned : 1;
6807 unsigned EXIDEN : 1;
6808 unsigned : 1;
6809 unsigned SID0 : 1;
6810 unsigned SID1 : 1;
6811 unsigned SID2 : 1;
6814 struct
6816 unsigned : 5;
6817 unsigned SID : 3;
6819 } __RXF2SIDLbits_t;
6821 extern __at(0x0EE9) volatile __RXF2SIDLbits_t RXF2SIDLbits;
6823 #define _RXF2SIDL_EID16 0x01
6824 #define _RXF2SIDL_EID17 0x02
6825 #define _RXF2SIDL_EXIDEN 0x08
6826 #define _RXF2SIDL_SID0 0x20
6827 #define _RXF2SIDL_SID1 0x40
6828 #define _RXF2SIDL_SID2 0x80
6830 //==============================================================================
6833 //==============================================================================
6834 // RXF2EIDH Bits
6836 extern __at(0x0EEA) __sfr RXF2EIDH;
6838 typedef struct
6840 unsigned EID8 : 1;
6841 unsigned EID9 : 1;
6842 unsigned EID10 : 1;
6843 unsigned EID11 : 1;
6844 unsigned EID12 : 1;
6845 unsigned EID13 : 1;
6846 unsigned EID14 : 1;
6847 unsigned EID15 : 1;
6848 } __RXF2EIDHbits_t;
6850 extern __at(0x0EEA) volatile __RXF2EIDHbits_t RXF2EIDHbits;
6852 #define _RXF2EIDH_EID8 0x01
6853 #define _RXF2EIDH_EID9 0x02
6854 #define _RXF2EIDH_EID10 0x04
6855 #define _RXF2EIDH_EID11 0x08
6856 #define _RXF2EIDH_EID12 0x10
6857 #define _RXF2EIDH_EID13 0x20
6858 #define _RXF2EIDH_EID14 0x40
6859 #define _RXF2EIDH_EID15 0x80
6861 //==============================================================================
6864 //==============================================================================
6865 // RXF2EIDL Bits
6867 extern __at(0x0EEB) __sfr RXF2EIDL;
6869 typedef struct
6871 unsigned EID0 : 1;
6872 unsigned EID1 : 1;
6873 unsigned EID2 : 1;
6874 unsigned EID3 : 1;
6875 unsigned EID4 : 1;
6876 unsigned EID5 : 1;
6877 unsigned EID6 : 1;
6878 unsigned EID7 : 1;
6879 } __RXF2EIDLbits_t;
6881 extern __at(0x0EEB) volatile __RXF2EIDLbits_t RXF2EIDLbits;
6883 #define _RXF2EIDL_EID0 0x01
6884 #define _RXF2EIDL_EID1 0x02
6885 #define _RXF2EIDL_EID2 0x04
6886 #define _RXF2EIDL_EID3 0x08
6887 #define _RXF2EIDL_EID4 0x10
6888 #define _RXF2EIDL_EID5 0x20
6889 #define _RXF2EIDL_EID6 0x40
6890 #define _RXF2EIDL_EID7 0x80
6892 //==============================================================================
6895 //==============================================================================
6896 // RXF3SIDH Bits
6898 extern __at(0x0EEC) __sfr RXF3SIDH;
6900 typedef struct
6902 unsigned SID3 : 1;
6903 unsigned SID4 : 1;
6904 unsigned SID5 : 1;
6905 unsigned SID6 : 1;
6906 unsigned SID7 : 1;
6907 unsigned SID8 : 1;
6908 unsigned SID9 : 1;
6909 unsigned SID10 : 1;
6910 } __RXF3SIDHbits_t;
6912 extern __at(0x0EEC) volatile __RXF3SIDHbits_t RXF3SIDHbits;
6914 #define _RXF3SIDH_SID3 0x01
6915 #define _RXF3SIDH_SID4 0x02
6916 #define _RXF3SIDH_SID5 0x04
6917 #define _RXF3SIDH_SID6 0x08
6918 #define _RXF3SIDH_SID7 0x10
6919 #define _RXF3SIDH_SID8 0x20
6920 #define _RXF3SIDH_SID9 0x40
6921 #define _RXF3SIDH_SID10 0x80
6923 //==============================================================================
6926 //==============================================================================
6927 // RXF3SIDL Bits
6929 extern __at(0x0EED) __sfr RXF3SIDL;
6931 typedef union
6933 struct
6935 unsigned EID16 : 1;
6936 unsigned EID17 : 1;
6937 unsigned : 1;
6938 unsigned EXIDEN : 1;
6939 unsigned : 1;
6940 unsigned SID0 : 1;
6941 unsigned SID1 : 1;
6942 unsigned SID2 : 1;
6945 struct
6947 unsigned : 5;
6948 unsigned SID : 3;
6950 } __RXF3SIDLbits_t;
6952 extern __at(0x0EED) volatile __RXF3SIDLbits_t RXF3SIDLbits;
6954 #define _RXF3SIDL_EID16 0x01
6955 #define _RXF3SIDL_EID17 0x02
6956 #define _RXF3SIDL_EXIDEN 0x08
6957 #define _RXF3SIDL_SID0 0x20
6958 #define _RXF3SIDL_SID1 0x40
6959 #define _RXF3SIDL_SID2 0x80
6961 //==============================================================================
6964 //==============================================================================
6965 // RXF3EIDH Bits
6967 extern __at(0x0EEE) __sfr RXF3EIDH;
6969 typedef struct
6971 unsigned EID8 : 1;
6972 unsigned EID9 : 1;
6973 unsigned EID10 : 1;
6974 unsigned EID11 : 1;
6975 unsigned EID12 : 1;
6976 unsigned EID13 : 1;
6977 unsigned EID14 : 1;
6978 unsigned EID15 : 1;
6979 } __RXF3EIDHbits_t;
6981 extern __at(0x0EEE) volatile __RXF3EIDHbits_t RXF3EIDHbits;
6983 #define _RXF3EIDH_EID8 0x01
6984 #define _RXF3EIDH_EID9 0x02
6985 #define _RXF3EIDH_EID10 0x04
6986 #define _RXF3EIDH_EID11 0x08
6987 #define _RXF3EIDH_EID12 0x10
6988 #define _RXF3EIDH_EID13 0x20
6989 #define _RXF3EIDH_EID14 0x40
6990 #define _RXF3EIDH_EID15 0x80
6992 //==============================================================================
6995 //==============================================================================
6996 // RXF3EIDL Bits
6998 extern __at(0x0EEF) __sfr RXF3EIDL;
7000 typedef struct
7002 unsigned EID0 : 1;
7003 unsigned EID1 : 1;
7004 unsigned EID2 : 1;
7005 unsigned EID3 : 1;
7006 unsigned EID4 : 1;
7007 unsigned EID5 : 1;
7008 unsigned EID6 : 1;
7009 unsigned EID7 : 1;
7010 } __RXF3EIDLbits_t;
7012 extern __at(0x0EEF) volatile __RXF3EIDLbits_t RXF3EIDLbits;
7014 #define _RXF3EIDL_EID0 0x01
7015 #define _RXF3EIDL_EID1 0x02
7016 #define _RXF3EIDL_EID2 0x04
7017 #define _RXF3EIDL_EID3 0x08
7018 #define _RXF3EIDL_EID4 0x10
7019 #define _RXF3EIDL_EID5 0x20
7020 #define _RXF3EIDL_EID6 0x40
7021 #define _RXF3EIDL_EID7 0x80
7023 //==============================================================================
7026 //==============================================================================
7027 // RXF4SIDH Bits
7029 extern __at(0x0EF0) __sfr RXF4SIDH;
7031 typedef struct
7033 unsigned SID3 : 1;
7034 unsigned SID4 : 1;
7035 unsigned SID5 : 1;
7036 unsigned SID6 : 1;
7037 unsigned SID7 : 1;
7038 unsigned SID8 : 1;
7039 unsigned SID9 : 1;
7040 unsigned SID10 : 1;
7041 } __RXF4SIDHbits_t;
7043 extern __at(0x0EF0) volatile __RXF4SIDHbits_t RXF4SIDHbits;
7045 #define _RXF4SIDH_SID3 0x01
7046 #define _RXF4SIDH_SID4 0x02
7047 #define _RXF4SIDH_SID5 0x04
7048 #define _RXF4SIDH_SID6 0x08
7049 #define _RXF4SIDH_SID7 0x10
7050 #define _RXF4SIDH_SID8 0x20
7051 #define _RXF4SIDH_SID9 0x40
7052 #define _RXF4SIDH_SID10 0x80
7054 //==============================================================================
7057 //==============================================================================
7058 // RXF4SIDL Bits
7060 extern __at(0x0EF1) __sfr RXF4SIDL;
7062 typedef union
7064 struct
7066 unsigned EID16 : 1;
7067 unsigned EID17 : 1;
7068 unsigned : 1;
7069 unsigned EXIDEN : 1;
7070 unsigned : 1;
7071 unsigned SID0 : 1;
7072 unsigned SID1 : 1;
7073 unsigned SID2 : 1;
7076 struct
7078 unsigned : 5;
7079 unsigned SID : 3;
7081 } __RXF4SIDLbits_t;
7083 extern __at(0x0EF1) volatile __RXF4SIDLbits_t RXF4SIDLbits;
7085 #define _RXF4SIDL_EID16 0x01
7086 #define _RXF4SIDL_EID17 0x02
7087 #define _RXF4SIDL_EXIDEN 0x08
7088 #define _RXF4SIDL_SID0 0x20
7089 #define _RXF4SIDL_SID1 0x40
7090 #define _RXF4SIDL_SID2 0x80
7092 //==============================================================================
7095 //==============================================================================
7096 // RXF4EIDH Bits
7098 extern __at(0x0EF2) __sfr RXF4EIDH;
7100 typedef struct
7102 unsigned EID8 : 1;
7103 unsigned EID9 : 1;
7104 unsigned EID10 : 1;
7105 unsigned EID11 : 1;
7106 unsigned EID12 : 1;
7107 unsigned EID13 : 1;
7108 unsigned EID14 : 1;
7109 unsigned EID15 : 1;
7110 } __RXF4EIDHbits_t;
7112 extern __at(0x0EF2) volatile __RXF4EIDHbits_t RXF4EIDHbits;
7114 #define _RXF4EIDH_EID8 0x01
7115 #define _RXF4EIDH_EID9 0x02
7116 #define _RXF4EIDH_EID10 0x04
7117 #define _RXF4EIDH_EID11 0x08
7118 #define _RXF4EIDH_EID12 0x10
7119 #define _RXF4EIDH_EID13 0x20
7120 #define _RXF4EIDH_EID14 0x40
7121 #define _RXF4EIDH_EID15 0x80
7123 //==============================================================================
7126 //==============================================================================
7127 // RXF4EIDL Bits
7129 extern __at(0x0EF3) __sfr RXF4EIDL;
7131 typedef struct
7133 unsigned EID0 : 1;
7134 unsigned EID1 : 1;
7135 unsigned EID2 : 1;
7136 unsigned EID3 : 1;
7137 unsigned EID4 : 1;
7138 unsigned EID5 : 1;
7139 unsigned EID6 : 1;
7140 unsigned EID7 : 1;
7141 } __RXF4EIDLbits_t;
7143 extern __at(0x0EF3) volatile __RXF4EIDLbits_t RXF4EIDLbits;
7145 #define _RXF4EIDL_EID0 0x01
7146 #define _RXF4EIDL_EID1 0x02
7147 #define _RXF4EIDL_EID2 0x04
7148 #define _RXF4EIDL_EID3 0x08
7149 #define _RXF4EIDL_EID4 0x10
7150 #define _RXF4EIDL_EID5 0x20
7151 #define _RXF4EIDL_EID6 0x40
7152 #define _RXF4EIDL_EID7 0x80
7154 //==============================================================================
7157 //==============================================================================
7158 // RXF5SIDH Bits
7160 extern __at(0x0EF4) __sfr RXF5SIDH;
7162 typedef struct
7164 unsigned SID3 : 1;
7165 unsigned SID4 : 1;
7166 unsigned SID5 : 1;
7167 unsigned SID6 : 1;
7168 unsigned SID7 : 1;
7169 unsigned SID8 : 1;
7170 unsigned SID9 : 1;
7171 unsigned SID10 : 1;
7172 } __RXF5SIDHbits_t;
7174 extern __at(0x0EF4) volatile __RXF5SIDHbits_t RXF5SIDHbits;
7176 #define _RXF5SIDH_SID3 0x01
7177 #define _RXF5SIDH_SID4 0x02
7178 #define _RXF5SIDH_SID5 0x04
7179 #define _RXF5SIDH_SID6 0x08
7180 #define _RXF5SIDH_SID7 0x10
7181 #define _RXF5SIDH_SID8 0x20
7182 #define _RXF5SIDH_SID9 0x40
7183 #define _RXF5SIDH_SID10 0x80
7185 //==============================================================================
7188 //==============================================================================
7189 // RXF5SIDL Bits
7191 extern __at(0x0EF5) __sfr RXF5SIDL;
7193 typedef union
7195 struct
7197 unsigned EID16 : 1;
7198 unsigned EID17 : 1;
7199 unsigned : 1;
7200 unsigned EXIDEN : 1;
7201 unsigned : 1;
7202 unsigned SID0 : 1;
7203 unsigned SID1 : 1;
7204 unsigned SID2 : 1;
7207 struct
7209 unsigned : 5;
7210 unsigned SID : 3;
7212 } __RXF5SIDLbits_t;
7214 extern __at(0x0EF5) volatile __RXF5SIDLbits_t RXF5SIDLbits;
7216 #define _RXF5SIDL_EID16 0x01
7217 #define _RXF5SIDL_EID17 0x02
7218 #define _RXF5SIDL_EXIDEN 0x08
7219 #define _RXF5SIDL_SID0 0x20
7220 #define _RXF5SIDL_SID1 0x40
7221 #define _RXF5SIDL_SID2 0x80
7223 //==============================================================================
7226 //==============================================================================
7227 // RXF5EIDH Bits
7229 extern __at(0x0EF6) __sfr RXF5EIDH;
7231 typedef struct
7233 unsigned EID8 : 1;
7234 unsigned EID9 : 1;
7235 unsigned EID10 : 1;
7236 unsigned EID11 : 1;
7237 unsigned EID12 : 1;
7238 unsigned EID13 : 1;
7239 unsigned EID14 : 1;
7240 unsigned EID15 : 1;
7241 } __RXF5EIDHbits_t;
7243 extern __at(0x0EF6) volatile __RXF5EIDHbits_t RXF5EIDHbits;
7245 #define _RXF5EIDH_EID8 0x01
7246 #define _RXF5EIDH_EID9 0x02
7247 #define _RXF5EIDH_EID10 0x04
7248 #define _RXF5EIDH_EID11 0x08
7249 #define _RXF5EIDH_EID12 0x10
7250 #define _RXF5EIDH_EID13 0x20
7251 #define _RXF5EIDH_EID14 0x40
7252 #define _RXF5EIDH_EID15 0x80
7254 //==============================================================================
7257 //==============================================================================
7258 // RXF5EIDL Bits
7260 extern __at(0x0EF7) __sfr RXF5EIDL;
7262 typedef struct
7264 unsigned EID0 : 1;
7265 unsigned EID1 : 1;
7266 unsigned EID2 : 1;
7267 unsigned EID3 : 1;
7268 unsigned EID4 : 1;
7269 unsigned EID5 : 1;
7270 unsigned EID6 : 1;
7271 unsigned EID7 : 1;
7272 } __RXF5EIDLbits_t;
7274 extern __at(0x0EF7) volatile __RXF5EIDLbits_t RXF5EIDLbits;
7276 #define _RXF5EIDL_EID0 0x01
7277 #define _RXF5EIDL_EID1 0x02
7278 #define _RXF5EIDL_EID2 0x04
7279 #define _RXF5EIDL_EID3 0x08
7280 #define _RXF5EIDL_EID4 0x10
7281 #define _RXF5EIDL_EID5 0x20
7282 #define _RXF5EIDL_EID6 0x40
7283 #define _RXF5EIDL_EID7 0x80
7285 //==============================================================================
7288 //==============================================================================
7289 // RXM0SIDH Bits
7291 extern __at(0x0EF8) __sfr RXM0SIDH;
7293 typedef struct
7295 unsigned SID3 : 1;
7296 unsigned SID4 : 1;
7297 unsigned SID5 : 1;
7298 unsigned SID6 : 1;
7299 unsigned SID7 : 1;
7300 unsigned SID8 : 1;
7301 unsigned SID9 : 1;
7302 unsigned SID10 : 1;
7303 } __RXM0SIDHbits_t;
7305 extern __at(0x0EF8) volatile __RXM0SIDHbits_t RXM0SIDHbits;
7307 #define _RXM0SIDH_SID3 0x01
7308 #define _RXM0SIDH_SID4 0x02
7309 #define _RXM0SIDH_SID5 0x04
7310 #define _RXM0SIDH_SID6 0x08
7311 #define _RXM0SIDH_SID7 0x10
7312 #define _RXM0SIDH_SID8 0x20
7313 #define _RXM0SIDH_SID9 0x40
7314 #define _RXM0SIDH_SID10 0x80
7316 //==============================================================================
7319 //==============================================================================
7320 // RXM0SIDL Bits
7322 extern __at(0x0EF9) __sfr RXM0SIDL;
7324 typedef union
7326 struct
7328 unsigned EID16 : 1;
7329 unsigned EID17 : 1;
7330 unsigned : 1;
7331 unsigned EXIDEN : 1;
7332 unsigned : 1;
7333 unsigned SID0 : 1;
7334 unsigned SID1 : 1;
7335 unsigned SID2 : 1;
7338 struct
7340 unsigned : 5;
7341 unsigned SID : 3;
7343 } __RXM0SIDLbits_t;
7345 extern __at(0x0EF9) volatile __RXM0SIDLbits_t RXM0SIDLbits;
7347 #define _RXM0SIDL_EID16 0x01
7348 #define _RXM0SIDL_EID17 0x02
7349 #define _RXM0SIDL_EXIDEN 0x08
7350 #define _RXM0SIDL_SID0 0x20
7351 #define _RXM0SIDL_SID1 0x40
7352 #define _RXM0SIDL_SID2 0x80
7354 //==============================================================================
7357 //==============================================================================
7358 // RXM0EIDH Bits
7360 extern __at(0x0EFA) __sfr RXM0EIDH;
7362 typedef struct
7364 unsigned EID8 : 1;
7365 unsigned EID9 : 1;
7366 unsigned EID10 : 1;
7367 unsigned EID11 : 1;
7368 unsigned EID12 : 1;
7369 unsigned EID13 : 1;
7370 unsigned EID14 : 1;
7371 unsigned EID15 : 1;
7372 } __RXM0EIDHbits_t;
7374 extern __at(0x0EFA) volatile __RXM0EIDHbits_t RXM0EIDHbits;
7376 #define _RXM0EIDH_EID8 0x01
7377 #define _RXM0EIDH_EID9 0x02
7378 #define _RXM0EIDH_EID10 0x04
7379 #define _RXM0EIDH_EID11 0x08
7380 #define _RXM0EIDH_EID12 0x10
7381 #define _RXM0EIDH_EID13 0x20
7382 #define _RXM0EIDH_EID14 0x40
7383 #define _RXM0EIDH_EID15 0x80
7385 //==============================================================================
7388 //==============================================================================
7389 // RXM0EIDL Bits
7391 extern __at(0x0EFB) __sfr RXM0EIDL;
7393 typedef struct
7395 unsigned EID0 : 1;
7396 unsigned EID1 : 1;
7397 unsigned EID2 : 1;
7398 unsigned EID3 : 1;
7399 unsigned EID4 : 1;
7400 unsigned EID5 : 1;
7401 unsigned EID6 : 1;
7402 unsigned EID7 : 1;
7403 } __RXM0EIDLbits_t;
7405 extern __at(0x0EFB) volatile __RXM0EIDLbits_t RXM0EIDLbits;
7407 #define _RXM0EIDL_EID0 0x01
7408 #define _RXM0EIDL_EID1 0x02
7409 #define _RXM0EIDL_EID2 0x04
7410 #define _RXM0EIDL_EID3 0x08
7411 #define _RXM0EIDL_EID4 0x10
7412 #define _RXM0EIDL_EID5 0x20
7413 #define _RXM0EIDL_EID6 0x40
7414 #define _RXM0EIDL_EID7 0x80
7416 //==============================================================================
7419 //==============================================================================
7420 // RXM1SIDH Bits
7422 extern __at(0x0EFC) __sfr RXM1SIDH;
7424 typedef struct
7426 unsigned SID3 : 1;
7427 unsigned SID4 : 1;
7428 unsigned SID5 : 1;
7429 unsigned SID6 : 1;
7430 unsigned SID7 : 1;
7431 unsigned SID8 : 1;
7432 unsigned SID9 : 1;
7433 unsigned SID10 : 1;
7434 } __RXM1SIDHbits_t;
7436 extern __at(0x0EFC) volatile __RXM1SIDHbits_t RXM1SIDHbits;
7438 #define _RXM1SIDH_SID3 0x01
7439 #define _RXM1SIDH_SID4 0x02
7440 #define _RXM1SIDH_SID5 0x04
7441 #define _RXM1SIDH_SID6 0x08
7442 #define _RXM1SIDH_SID7 0x10
7443 #define _RXM1SIDH_SID8 0x20
7444 #define _RXM1SIDH_SID9 0x40
7445 #define _RXM1SIDH_SID10 0x80
7447 //==============================================================================
7450 //==============================================================================
7451 // RXM1SIDL Bits
7453 extern __at(0x0EFD) __sfr RXM1SIDL;
7455 typedef union
7457 struct
7459 unsigned EID16 : 1;
7460 unsigned EID17 : 1;
7461 unsigned : 1;
7462 unsigned EXIDEN : 1;
7463 unsigned : 1;
7464 unsigned SID0 : 1;
7465 unsigned SID1 : 1;
7466 unsigned SID2 : 1;
7469 struct
7471 unsigned : 5;
7472 unsigned SID : 3;
7474 } __RXM1SIDLbits_t;
7476 extern __at(0x0EFD) volatile __RXM1SIDLbits_t RXM1SIDLbits;
7478 #define _RXM1SIDL_EID16 0x01
7479 #define _RXM1SIDL_EID17 0x02
7480 #define _RXM1SIDL_EXIDEN 0x08
7481 #define _RXM1SIDL_SID0 0x20
7482 #define _RXM1SIDL_SID1 0x40
7483 #define _RXM1SIDL_SID2 0x80
7485 //==============================================================================
7488 //==============================================================================
7489 // RXM1EIDH Bits
7491 extern __at(0x0EFE) __sfr RXM1EIDH;
7493 typedef struct
7495 unsigned EID8 : 1;
7496 unsigned EID9 : 1;
7497 unsigned EID10 : 1;
7498 unsigned EID11 : 1;
7499 unsigned EID12 : 1;
7500 unsigned EID13 : 1;
7501 unsigned EID14 : 1;
7502 unsigned EID15 : 1;
7503 } __RXM1EIDHbits_t;
7505 extern __at(0x0EFE) volatile __RXM1EIDHbits_t RXM1EIDHbits;
7507 #define _RXM1EIDH_EID8 0x01
7508 #define _RXM1EIDH_EID9 0x02
7509 #define _RXM1EIDH_EID10 0x04
7510 #define _RXM1EIDH_EID11 0x08
7511 #define _RXM1EIDH_EID12 0x10
7512 #define _RXM1EIDH_EID13 0x20
7513 #define _RXM1EIDH_EID14 0x40
7514 #define _RXM1EIDH_EID15 0x80
7516 //==============================================================================
7519 //==============================================================================
7520 // RXM1EIDL Bits
7522 extern __at(0x0EFF) __sfr RXM1EIDL;
7524 typedef struct
7526 unsigned EID0 : 1;
7527 unsigned EID1 : 1;
7528 unsigned EID2 : 1;
7529 unsigned EID3 : 1;
7530 unsigned EID4 : 1;
7531 unsigned EID5 : 1;
7532 unsigned EID6 : 1;
7533 unsigned EID7 : 1;
7534 } __RXM1EIDLbits_t;
7536 extern __at(0x0EFF) volatile __RXM1EIDLbits_t RXM1EIDLbits;
7538 #define _RXM1EIDL_EID0 0x01
7539 #define _RXM1EIDL_EID1 0x02
7540 #define _RXM1EIDL_EID2 0x04
7541 #define _RXM1EIDL_EID3 0x08
7542 #define _RXM1EIDL_EID4 0x10
7543 #define _RXM1EIDL_EID5 0x20
7544 #define _RXM1EIDL_EID6 0x40
7545 #define _RXM1EIDL_EID7 0x80
7547 //==============================================================================
7550 //==============================================================================
7551 // TXB2CON Bits
7553 extern __at(0x0F00) __sfr TXB2CON;
7555 typedef union
7557 struct
7559 unsigned TXPRI0 : 1;
7560 unsigned TXPRI1 : 1;
7561 unsigned : 1;
7562 unsigned TXREQ : 1;
7563 unsigned TXERR : 1;
7564 unsigned TXLARB : 1;
7565 unsigned TXABT : 1;
7566 unsigned TXBIF : 1;
7569 struct
7571 unsigned TXPRI : 2;
7572 unsigned : 6;
7574 } __TXB2CONbits_t;
7576 extern __at(0x0F00) volatile __TXB2CONbits_t TXB2CONbits;
7578 #define _TXB2CON_TXPRI0 0x01
7579 #define _TXB2CON_TXPRI1 0x02
7580 #define _TXB2CON_TXREQ 0x08
7581 #define _TXB2CON_TXERR 0x10
7582 #define _TXB2CON_TXLARB 0x20
7583 #define _TXB2CON_TXABT 0x40
7584 #define _TXB2CON_TXBIF 0x80
7586 //==============================================================================
7589 //==============================================================================
7590 // TXB2SIDH Bits
7592 extern __at(0x0F01) __sfr TXB2SIDH;
7594 typedef struct
7596 unsigned SID3 : 1;
7597 unsigned SID4 : 1;
7598 unsigned SID5 : 1;
7599 unsigned SID6 : 1;
7600 unsigned SID7 : 1;
7601 unsigned SID8 : 1;
7602 unsigned SID9 : 1;
7603 unsigned SID10 : 1;
7604 } __TXB2SIDHbits_t;
7606 extern __at(0x0F01) volatile __TXB2SIDHbits_t TXB2SIDHbits;
7608 #define _TXB2SIDH_SID3 0x01
7609 #define _TXB2SIDH_SID4 0x02
7610 #define _TXB2SIDH_SID5 0x04
7611 #define _TXB2SIDH_SID6 0x08
7612 #define _TXB2SIDH_SID7 0x10
7613 #define _TXB2SIDH_SID8 0x20
7614 #define _TXB2SIDH_SID9 0x40
7615 #define _TXB2SIDH_SID10 0x80
7617 //==============================================================================
7620 //==============================================================================
7621 // TXB2SIDL Bits
7623 extern __at(0x0F02) __sfr TXB2SIDL;
7625 typedef union
7627 struct
7629 unsigned EID16 : 1;
7630 unsigned EID17 : 1;
7631 unsigned : 1;
7632 unsigned EXIDE : 1;
7633 unsigned SRR : 1;
7634 unsigned SID0 : 1;
7635 unsigned SID1 : 1;
7636 unsigned SID2 : 1;
7639 struct
7641 unsigned : 5;
7642 unsigned SID : 3;
7644 } __TXB2SIDLbits_t;
7646 extern __at(0x0F02) volatile __TXB2SIDLbits_t TXB2SIDLbits;
7648 #define _TXB2SIDL_EID16 0x01
7649 #define _TXB2SIDL_EID17 0x02
7650 #define _TXB2SIDL_EXIDE 0x08
7651 #define _TXB2SIDL_SRR 0x10
7652 #define _TXB2SIDL_SID0 0x20
7653 #define _TXB2SIDL_SID1 0x40
7654 #define _TXB2SIDL_SID2 0x80
7656 //==============================================================================
7659 //==============================================================================
7660 // TXB2EIDH Bits
7662 extern __at(0x0F03) __sfr TXB2EIDH;
7664 typedef struct
7666 unsigned EID8 : 1;
7667 unsigned EID9 : 1;
7668 unsigned EID10 : 1;
7669 unsigned EID11 : 1;
7670 unsigned EID12 : 1;
7671 unsigned EID13 : 1;
7672 unsigned EID14 : 1;
7673 unsigned EID15 : 1;
7674 } __TXB2EIDHbits_t;
7676 extern __at(0x0F03) volatile __TXB2EIDHbits_t TXB2EIDHbits;
7678 #define _TXB2EIDH_EID8 0x01
7679 #define _TXB2EIDH_EID9 0x02
7680 #define _TXB2EIDH_EID10 0x04
7681 #define _TXB2EIDH_EID11 0x08
7682 #define _TXB2EIDH_EID12 0x10
7683 #define _TXB2EIDH_EID13 0x20
7684 #define _TXB2EIDH_EID14 0x40
7685 #define _TXB2EIDH_EID15 0x80
7687 //==============================================================================
7690 //==============================================================================
7691 // TXB2EIDL Bits
7693 extern __at(0x0F04) __sfr TXB2EIDL;
7695 typedef struct
7697 unsigned EID0 : 1;
7698 unsigned EID1 : 1;
7699 unsigned EID2 : 1;
7700 unsigned EID3 : 1;
7701 unsigned EID4 : 1;
7702 unsigned EID5 : 1;
7703 unsigned EID6 : 1;
7704 unsigned EID7 : 1;
7705 } __TXB2EIDLbits_t;
7707 extern __at(0x0F04) volatile __TXB2EIDLbits_t TXB2EIDLbits;
7709 #define _TXB2EIDL_EID0 0x01
7710 #define _TXB2EIDL_EID1 0x02
7711 #define _TXB2EIDL_EID2 0x04
7712 #define _TXB2EIDL_EID3 0x08
7713 #define _TXB2EIDL_EID4 0x10
7714 #define _TXB2EIDL_EID5 0x20
7715 #define _TXB2EIDL_EID6 0x40
7716 #define _TXB2EIDL_EID7 0x80
7718 //==============================================================================
7721 //==============================================================================
7722 // TXB2DLC Bits
7724 extern __at(0x0F05) __sfr TXB2DLC;
7726 typedef union
7728 struct
7730 unsigned DLC0 : 1;
7731 unsigned DLC1 : 1;
7732 unsigned DLC2 : 1;
7733 unsigned DLC3 : 1;
7734 unsigned : 1;
7735 unsigned : 1;
7736 unsigned TXRTR : 1;
7737 unsigned : 1;
7740 struct
7742 unsigned DLC : 4;
7743 unsigned : 4;
7745 } __TXB2DLCbits_t;
7747 extern __at(0x0F05) volatile __TXB2DLCbits_t TXB2DLCbits;
7749 #define _TXB2DLC_DLC0 0x01
7750 #define _TXB2DLC_DLC1 0x02
7751 #define _TXB2DLC_DLC2 0x04
7752 #define _TXB2DLC_DLC3 0x08
7753 #define _TXB2DLC_TXRTR 0x40
7755 //==============================================================================
7758 //==============================================================================
7759 // TXB2D0 Bits
7761 extern __at(0x0F06) __sfr TXB2D0;
7763 typedef struct
7765 unsigned TXB2D00 : 1;
7766 unsigned TXB2D01 : 1;
7767 unsigned TXB2D02 : 1;
7768 unsigned TXB2D03 : 1;
7769 unsigned TXB2D04 : 1;
7770 unsigned TXB2D05 : 1;
7771 unsigned TXB2D06 : 1;
7772 unsigned TXB2D07 : 1;
7773 } __TXB2D0bits_t;
7775 extern __at(0x0F06) volatile __TXB2D0bits_t TXB2D0bits;
7777 #define _TXB2D00 0x01
7778 #define _TXB2D01 0x02
7779 #define _TXB2D02 0x04
7780 #define _TXB2D03 0x08
7781 #define _TXB2D04 0x10
7782 #define _TXB2D05 0x20
7783 #define _TXB2D06 0x40
7784 #define _TXB2D07 0x80
7786 //==============================================================================
7789 //==============================================================================
7790 // TXB2D1 Bits
7792 extern __at(0x0F07) __sfr TXB2D1;
7794 typedef struct
7796 unsigned TXB2D10 : 1;
7797 unsigned TXB2D11 : 1;
7798 unsigned TXB2D12 : 1;
7799 unsigned TXB2D13 : 1;
7800 unsigned TXB2D14 : 1;
7801 unsigned TXB2D15 : 1;
7802 unsigned TXB2D16 : 1;
7803 unsigned TXB2D17 : 1;
7804 } __TXB2D1bits_t;
7806 extern __at(0x0F07) volatile __TXB2D1bits_t TXB2D1bits;
7808 #define _TXB2D10 0x01
7809 #define _TXB2D11 0x02
7810 #define _TXB2D12 0x04
7811 #define _TXB2D13 0x08
7812 #define _TXB2D14 0x10
7813 #define _TXB2D15 0x20
7814 #define _TXB2D16 0x40
7815 #define _TXB2D17 0x80
7817 //==============================================================================
7820 //==============================================================================
7821 // TXB2D2 Bits
7823 extern __at(0x0F08) __sfr TXB2D2;
7825 typedef struct
7827 unsigned TXB2D20 : 1;
7828 unsigned TXB2D21 : 1;
7829 unsigned TXB2D22 : 1;
7830 unsigned TXB2D23 : 1;
7831 unsigned TXB2D24 : 1;
7832 unsigned TXB2D25 : 1;
7833 unsigned TXB2D26 : 1;
7834 unsigned TXB2D27 : 1;
7835 } __TXB2D2bits_t;
7837 extern __at(0x0F08) volatile __TXB2D2bits_t TXB2D2bits;
7839 #define _TXB2D20 0x01
7840 #define _TXB2D21 0x02
7841 #define _TXB2D22 0x04
7842 #define _TXB2D23 0x08
7843 #define _TXB2D24 0x10
7844 #define _TXB2D25 0x20
7845 #define _TXB2D26 0x40
7846 #define _TXB2D27 0x80
7848 //==============================================================================
7851 //==============================================================================
7852 // TXB2D3 Bits
7854 extern __at(0x0F09) __sfr TXB2D3;
7856 typedef struct
7858 unsigned TXB2D30 : 1;
7859 unsigned TXB2D31 : 1;
7860 unsigned TXB2D32 : 1;
7861 unsigned TXB2D33 : 1;
7862 unsigned TXB2D34 : 1;
7863 unsigned TXB2D35 : 1;
7864 unsigned TXB2D36 : 1;
7865 unsigned TXB2D37 : 1;
7866 } __TXB2D3bits_t;
7868 extern __at(0x0F09) volatile __TXB2D3bits_t TXB2D3bits;
7870 #define _TXB2D30 0x01
7871 #define _TXB2D31 0x02
7872 #define _TXB2D32 0x04
7873 #define _TXB2D33 0x08
7874 #define _TXB2D34 0x10
7875 #define _TXB2D35 0x20
7876 #define _TXB2D36 0x40
7877 #define _TXB2D37 0x80
7879 //==============================================================================
7882 //==============================================================================
7883 // TXB2D4 Bits
7885 extern __at(0x0F0A) __sfr TXB2D4;
7887 typedef struct
7889 unsigned TXB2D40 : 1;
7890 unsigned TXB2D41 : 1;
7891 unsigned TXB2D42 : 1;
7892 unsigned TXB2D43 : 1;
7893 unsigned TXB2D44 : 1;
7894 unsigned TXB2D45 : 1;
7895 unsigned TXB2D46 : 1;
7896 unsigned TXB2D47 : 1;
7897 } __TXB2D4bits_t;
7899 extern __at(0x0F0A) volatile __TXB2D4bits_t TXB2D4bits;
7901 #define _TXB2D40 0x01
7902 #define _TXB2D41 0x02
7903 #define _TXB2D42 0x04
7904 #define _TXB2D43 0x08
7905 #define _TXB2D44 0x10
7906 #define _TXB2D45 0x20
7907 #define _TXB2D46 0x40
7908 #define _TXB2D47 0x80
7910 //==============================================================================
7913 //==============================================================================
7914 // TXB2D5 Bits
7916 extern __at(0x0F0B) __sfr TXB2D5;
7918 typedef struct
7920 unsigned TXB2D50 : 1;
7921 unsigned TXB2D51 : 1;
7922 unsigned TXB2D52 : 1;
7923 unsigned TXB2D53 : 1;
7924 unsigned TXB2D54 : 1;
7925 unsigned TXB2D55 : 1;
7926 unsigned TXB2D56 : 1;
7927 unsigned TXB2D57 : 1;
7928 } __TXB2D5bits_t;
7930 extern __at(0x0F0B) volatile __TXB2D5bits_t TXB2D5bits;
7932 #define _TXB2D50 0x01
7933 #define _TXB2D51 0x02
7934 #define _TXB2D52 0x04
7935 #define _TXB2D53 0x08
7936 #define _TXB2D54 0x10
7937 #define _TXB2D55 0x20
7938 #define _TXB2D56 0x40
7939 #define _TXB2D57 0x80
7941 //==============================================================================
7944 //==============================================================================
7945 // TXB2D6 Bits
7947 extern __at(0x0F0C) __sfr TXB2D6;
7949 typedef struct
7951 unsigned TXB2D60 : 1;
7952 unsigned TXB2D61 : 1;
7953 unsigned TXB2D62 : 1;
7954 unsigned TXB2D63 : 1;
7955 unsigned TXB2D64 : 1;
7956 unsigned TXB2D65 : 1;
7957 unsigned TXB2D66 : 1;
7958 unsigned TXB2D67 : 1;
7959 } __TXB2D6bits_t;
7961 extern __at(0x0F0C) volatile __TXB2D6bits_t TXB2D6bits;
7963 #define _TXB2D60 0x01
7964 #define _TXB2D61 0x02
7965 #define _TXB2D62 0x04
7966 #define _TXB2D63 0x08
7967 #define _TXB2D64 0x10
7968 #define _TXB2D65 0x20
7969 #define _TXB2D66 0x40
7970 #define _TXB2D67 0x80
7972 //==============================================================================
7975 //==============================================================================
7976 // TXB2D7 Bits
7978 extern __at(0x0F0D) __sfr TXB2D7;
7980 typedef struct
7982 unsigned TXB2D70 : 1;
7983 unsigned TXB2D71 : 1;
7984 unsigned TXB2D72 : 1;
7985 unsigned TXB2D73 : 1;
7986 unsigned TXB2D74 : 1;
7987 unsigned TXB2D75 : 1;
7988 unsigned TXB2D76 : 1;
7989 unsigned TXB2D77 : 1;
7990 } __TXB2D7bits_t;
7992 extern __at(0x0F0D) volatile __TXB2D7bits_t TXB2D7bits;
7994 #define _TXB2D70 0x01
7995 #define _TXB2D71 0x02
7996 #define _TXB2D72 0x04
7997 #define _TXB2D73 0x08
7998 #define _TXB2D74 0x10
7999 #define _TXB2D75 0x20
8000 #define _TXB2D76 0x40
8001 #define _TXB2D77 0x80
8003 //==============================================================================
8006 //==============================================================================
8007 // CANSTAT_RO3 Bits
8009 extern __at(0x0F0E) __sfr CANSTAT_RO3;
8011 typedef union
8013 struct
8015 unsigned EICODE0 : 1;
8016 unsigned EICODE1_ICODE0 : 1;
8017 unsigned EICODE2_ICODE1 : 1;
8018 unsigned EICODE3_ICODE2 : 1;
8019 unsigned EICODE4 : 1;
8020 unsigned OPMODE0 : 1;
8021 unsigned OPMODE1 : 1;
8022 unsigned OPMODE2 : 1;
8025 struct
8027 unsigned : 1;
8028 unsigned EICODE1 : 1;
8029 unsigned EICODE2 : 1;
8030 unsigned EICODE3 : 1;
8031 unsigned : 1;
8032 unsigned : 1;
8033 unsigned : 1;
8034 unsigned : 1;
8037 struct
8039 unsigned : 1;
8040 unsigned ICODE0 : 1;
8041 unsigned ICODE1 : 1;
8042 unsigned ICODE2 : 1;
8043 unsigned : 1;
8044 unsigned : 1;
8045 unsigned : 1;
8046 unsigned : 1;
8049 struct
8051 unsigned EICODE : 5;
8052 unsigned : 3;
8055 struct
8057 unsigned : 1;
8058 unsigned ICODE : 3;
8059 unsigned : 4;
8062 struct
8064 unsigned : 5;
8065 unsigned OPMODE : 3;
8067 } __CANSTAT_RO3bits_t;
8069 extern __at(0x0F0E) volatile __CANSTAT_RO3bits_t CANSTAT_RO3bits;
8071 #define _CANSTAT_RO3_EICODE0 0x01
8072 #define _CANSTAT_RO3_EICODE1_ICODE0 0x02
8073 #define _CANSTAT_RO3_EICODE1 0x02
8074 #define _CANSTAT_RO3_ICODE0 0x02
8075 #define _CANSTAT_RO3_EICODE2_ICODE1 0x04
8076 #define _CANSTAT_RO3_EICODE2 0x04
8077 #define _CANSTAT_RO3_ICODE1 0x04
8078 #define _CANSTAT_RO3_EICODE3_ICODE2 0x08
8079 #define _CANSTAT_RO3_EICODE3 0x08
8080 #define _CANSTAT_RO3_ICODE2 0x08
8081 #define _CANSTAT_RO3_EICODE4 0x10
8082 #define _CANSTAT_RO3_OPMODE0 0x20
8083 #define _CANSTAT_RO3_OPMODE1 0x40
8084 #define _CANSTAT_RO3_OPMODE2 0x80
8086 //==============================================================================
8089 //==============================================================================
8090 // CANCON_RO3 Bits
8092 extern __at(0x0F0F) __sfr CANCON_RO3;
8094 typedef union
8096 struct
8098 unsigned FP0 : 1;
8099 unsigned WIN0_FP1 : 1;
8100 unsigned WIN1_FP2 : 1;
8101 unsigned WIN2_FP3 : 1;
8102 unsigned ABAT : 1;
8103 unsigned : 1;
8104 unsigned : 1;
8105 unsigned : 1;
8108 struct
8110 unsigned : 1;
8111 unsigned WIN0 : 1;
8112 unsigned WIN1 : 1;
8113 unsigned WIN2 : 1;
8114 unsigned : 1;
8115 unsigned : 1;
8116 unsigned : 1;
8117 unsigned : 1;
8120 struct
8122 unsigned : 1;
8123 unsigned FP1 : 1;
8124 unsigned FP2 : 1;
8125 unsigned FP3 : 1;
8126 unsigned : 1;
8127 unsigned : 1;
8128 unsigned : 1;
8129 unsigned : 1;
8132 struct
8134 unsigned FP : 4;
8135 unsigned : 4;
8138 struct
8140 unsigned : 1;
8141 unsigned WIN : 3;
8142 unsigned : 4;
8144 } __CANCON_RO3bits_t;
8146 extern __at(0x0F0F) volatile __CANCON_RO3bits_t CANCON_RO3bits;
8148 #define _CANCON_RO3_FP0 0x01
8149 #define _CANCON_RO3_WIN0_FP1 0x02
8150 #define _CANCON_RO3_WIN0 0x02
8151 #define _CANCON_RO3_FP1 0x02
8152 #define _CANCON_RO3_WIN1_FP2 0x04
8153 #define _CANCON_RO3_WIN1 0x04
8154 #define _CANCON_RO3_FP2 0x04
8155 #define _CANCON_RO3_WIN2_FP3 0x08
8156 #define _CANCON_RO3_WIN2 0x08
8157 #define _CANCON_RO3_FP3 0x08
8158 #define _CANCON_RO3_ABAT 0x10
8160 //==============================================================================
8163 //==============================================================================
8164 // TXB1CON Bits
8166 extern __at(0x0F10) __sfr TXB1CON;
8168 typedef union
8170 struct
8172 unsigned TXPRI0 : 1;
8173 unsigned TXPRI1 : 1;
8174 unsigned : 1;
8175 unsigned TXREQ : 1;
8176 unsigned TXERR : 1;
8177 unsigned TXLARB : 1;
8178 unsigned TXABT : 1;
8179 unsigned TXBIF : 1;
8182 struct
8184 unsigned TXPRI : 2;
8185 unsigned : 6;
8187 } __TXB1CONbits_t;
8189 extern __at(0x0F10) volatile __TXB1CONbits_t TXB1CONbits;
8191 #define _TXB1CON_TXPRI0 0x01
8192 #define _TXB1CON_TXPRI1 0x02
8193 #define _TXB1CON_TXREQ 0x08
8194 #define _TXB1CON_TXERR 0x10
8195 #define _TXB1CON_TXLARB 0x20
8196 #define _TXB1CON_TXABT 0x40
8197 #define _TXB1CON_TXBIF 0x80
8199 //==============================================================================
8202 //==============================================================================
8203 // TXB1SIDH Bits
8205 extern __at(0x0F11) __sfr TXB1SIDH;
8207 typedef struct
8209 unsigned SID3 : 1;
8210 unsigned SID4 : 1;
8211 unsigned SID5 : 1;
8212 unsigned SID6 : 1;
8213 unsigned SID7 : 1;
8214 unsigned SID8 : 1;
8215 unsigned SID9 : 1;
8216 unsigned SID10 : 1;
8217 } __TXB1SIDHbits_t;
8219 extern __at(0x0F11) volatile __TXB1SIDHbits_t TXB1SIDHbits;
8221 #define _TXB1SIDH_SID3 0x01
8222 #define _TXB1SIDH_SID4 0x02
8223 #define _TXB1SIDH_SID5 0x04
8224 #define _TXB1SIDH_SID6 0x08
8225 #define _TXB1SIDH_SID7 0x10
8226 #define _TXB1SIDH_SID8 0x20
8227 #define _TXB1SIDH_SID9 0x40
8228 #define _TXB1SIDH_SID10 0x80
8230 //==============================================================================
8233 //==============================================================================
8234 // TXB1SIDL Bits
8236 extern __at(0x0F12) __sfr TXB1SIDL;
8238 typedef union
8240 struct
8242 unsigned EID16 : 1;
8243 unsigned EID17 : 1;
8244 unsigned : 1;
8245 unsigned EXIDE : 1;
8246 unsigned SRR : 1;
8247 unsigned SID0 : 1;
8248 unsigned SID1 : 1;
8249 unsigned SID2 : 1;
8252 struct
8254 unsigned : 5;
8255 unsigned SID : 3;
8257 } __TXB1SIDLbits_t;
8259 extern __at(0x0F12) volatile __TXB1SIDLbits_t TXB1SIDLbits;
8261 #define _TXB1SIDL_EID16 0x01
8262 #define _TXB1SIDL_EID17 0x02
8263 #define _TXB1SIDL_EXIDE 0x08
8264 #define _TXB1SIDL_SRR 0x10
8265 #define _TXB1SIDL_SID0 0x20
8266 #define _TXB1SIDL_SID1 0x40
8267 #define _TXB1SIDL_SID2 0x80
8269 //==============================================================================
8272 //==============================================================================
8273 // TXB1EIDH Bits
8275 extern __at(0x0F13) __sfr TXB1EIDH;
8277 typedef struct
8279 unsigned EID8 : 1;
8280 unsigned EID9 : 1;
8281 unsigned EID10 : 1;
8282 unsigned EID11 : 1;
8283 unsigned EID12 : 1;
8284 unsigned EID13 : 1;
8285 unsigned EID14 : 1;
8286 unsigned EID15 : 1;
8287 } __TXB1EIDHbits_t;
8289 extern __at(0x0F13) volatile __TXB1EIDHbits_t TXB1EIDHbits;
8291 #define _TXB1EIDH_EID8 0x01
8292 #define _TXB1EIDH_EID9 0x02
8293 #define _TXB1EIDH_EID10 0x04
8294 #define _TXB1EIDH_EID11 0x08
8295 #define _TXB1EIDH_EID12 0x10
8296 #define _TXB1EIDH_EID13 0x20
8297 #define _TXB1EIDH_EID14 0x40
8298 #define _TXB1EIDH_EID15 0x80
8300 //==============================================================================
8303 //==============================================================================
8304 // TXB1EIDL Bits
8306 extern __at(0x0F14) __sfr TXB1EIDL;
8308 typedef struct
8310 unsigned EID0 : 1;
8311 unsigned EID1 : 1;
8312 unsigned EID2 : 1;
8313 unsigned EID3 : 1;
8314 unsigned EID4 : 1;
8315 unsigned EID5 : 1;
8316 unsigned EID6 : 1;
8317 unsigned EID7 : 1;
8318 } __TXB1EIDLbits_t;
8320 extern __at(0x0F14) volatile __TXB1EIDLbits_t TXB1EIDLbits;
8322 #define _TXB1EIDL_EID0 0x01
8323 #define _TXB1EIDL_EID1 0x02
8324 #define _TXB1EIDL_EID2 0x04
8325 #define _TXB1EIDL_EID3 0x08
8326 #define _TXB1EIDL_EID4 0x10
8327 #define _TXB1EIDL_EID5 0x20
8328 #define _TXB1EIDL_EID6 0x40
8329 #define _TXB1EIDL_EID7 0x80
8331 //==============================================================================
8334 //==============================================================================
8335 // TXB1DLC Bits
8337 extern __at(0x0F15) __sfr TXB1DLC;
8339 typedef union
8341 struct
8343 unsigned DLC0 : 1;
8344 unsigned DLC1 : 1;
8345 unsigned DLC2 : 1;
8346 unsigned DLC3 : 1;
8347 unsigned : 1;
8348 unsigned : 1;
8349 unsigned TXRTR : 1;
8350 unsigned : 1;
8353 struct
8355 unsigned DLC : 4;
8356 unsigned : 4;
8358 } __TXB1DLCbits_t;
8360 extern __at(0x0F15) volatile __TXB1DLCbits_t TXB1DLCbits;
8362 #define _TXB1DLC_DLC0 0x01
8363 #define _TXB1DLC_DLC1 0x02
8364 #define _TXB1DLC_DLC2 0x04
8365 #define _TXB1DLC_DLC3 0x08
8366 #define _TXB1DLC_TXRTR 0x40
8368 //==============================================================================
8371 //==============================================================================
8372 // TXB1D0 Bits
8374 extern __at(0x0F16) __sfr TXB1D0;
8376 typedef struct
8378 unsigned TXB1D00 : 1;
8379 unsigned TXB1D01 : 1;
8380 unsigned TXB1D02 : 1;
8381 unsigned TXB1D03 : 1;
8382 unsigned TXB1D04 : 1;
8383 unsigned TXB1D05 : 1;
8384 unsigned TXB1D06 : 1;
8385 unsigned TXB1D07 : 1;
8386 } __TXB1D0bits_t;
8388 extern __at(0x0F16) volatile __TXB1D0bits_t TXB1D0bits;
8390 #define _TXB1D00 0x01
8391 #define _TXB1D01 0x02
8392 #define _TXB1D02 0x04
8393 #define _TXB1D03 0x08
8394 #define _TXB1D04 0x10
8395 #define _TXB1D05 0x20
8396 #define _TXB1D06 0x40
8397 #define _TXB1D07 0x80
8399 //==============================================================================
8402 //==============================================================================
8403 // TXB1D1 Bits
8405 extern __at(0x0F17) __sfr TXB1D1;
8407 typedef struct
8409 unsigned TXB1D10 : 1;
8410 unsigned TXB1D11 : 1;
8411 unsigned TXB1D12 : 1;
8412 unsigned TXB1D13 : 1;
8413 unsigned TXB1D14 : 1;
8414 unsigned TXB1D15 : 1;
8415 unsigned TXB1D16 : 1;
8416 unsigned TXB1D17 : 1;
8417 } __TXB1D1bits_t;
8419 extern __at(0x0F17) volatile __TXB1D1bits_t TXB1D1bits;
8421 #define _TXB1D10 0x01
8422 #define _TXB1D11 0x02
8423 #define _TXB1D12 0x04
8424 #define _TXB1D13 0x08
8425 #define _TXB1D14 0x10
8426 #define _TXB1D15 0x20
8427 #define _TXB1D16 0x40
8428 #define _TXB1D17 0x80
8430 //==============================================================================
8433 //==============================================================================
8434 // TXB1D2 Bits
8436 extern __at(0x0F18) __sfr TXB1D2;
8438 typedef struct
8440 unsigned TXB1D20 : 1;
8441 unsigned TXB1D21 : 1;
8442 unsigned TXB1D22 : 1;
8443 unsigned TXB1D23 : 1;
8444 unsigned TXB1D24 : 1;
8445 unsigned TXB1D25 : 1;
8446 unsigned TXB1D26 : 1;
8447 unsigned TXB1D27 : 1;
8448 } __TXB1D2bits_t;
8450 extern __at(0x0F18) volatile __TXB1D2bits_t TXB1D2bits;
8452 #define _TXB1D20 0x01
8453 #define _TXB1D21 0x02
8454 #define _TXB1D22 0x04
8455 #define _TXB1D23 0x08
8456 #define _TXB1D24 0x10
8457 #define _TXB1D25 0x20
8458 #define _TXB1D26 0x40
8459 #define _TXB1D27 0x80
8461 //==============================================================================
8464 //==============================================================================
8465 // TXB1D3 Bits
8467 extern __at(0x0F19) __sfr TXB1D3;
8469 typedef struct
8471 unsigned TXB1D30 : 1;
8472 unsigned TXB1D31 : 1;
8473 unsigned TXB1D32 : 1;
8474 unsigned TXB1D33 : 1;
8475 unsigned TXB1D34 : 1;
8476 unsigned TXB1D35 : 1;
8477 unsigned TXB1D36 : 1;
8478 unsigned TXB1D37 : 1;
8479 } __TXB1D3bits_t;
8481 extern __at(0x0F19) volatile __TXB1D3bits_t TXB1D3bits;
8483 #define _TXB1D30 0x01
8484 #define _TXB1D31 0x02
8485 #define _TXB1D32 0x04
8486 #define _TXB1D33 0x08
8487 #define _TXB1D34 0x10
8488 #define _TXB1D35 0x20
8489 #define _TXB1D36 0x40
8490 #define _TXB1D37 0x80
8492 //==============================================================================
8495 //==============================================================================
8496 // TXB1D4 Bits
8498 extern __at(0x0F1A) __sfr TXB1D4;
8500 typedef struct
8502 unsigned TXB1D40 : 1;
8503 unsigned TXB1D41 : 1;
8504 unsigned TXB1D42 : 1;
8505 unsigned TXB1D43 : 1;
8506 unsigned TXB1D44 : 1;
8507 unsigned TXB1D45 : 1;
8508 unsigned TXB1D46 : 1;
8509 unsigned TXB1D47 : 1;
8510 } __TXB1D4bits_t;
8512 extern __at(0x0F1A) volatile __TXB1D4bits_t TXB1D4bits;
8514 #define _TXB1D40 0x01
8515 #define _TXB1D41 0x02
8516 #define _TXB1D42 0x04
8517 #define _TXB1D43 0x08
8518 #define _TXB1D44 0x10
8519 #define _TXB1D45 0x20
8520 #define _TXB1D46 0x40
8521 #define _TXB1D47 0x80
8523 //==============================================================================
8526 //==============================================================================
8527 // TXB1D5 Bits
8529 extern __at(0x0F1B) __sfr TXB1D5;
8531 typedef struct
8533 unsigned TXB1D50 : 1;
8534 unsigned TXB1D51 : 1;
8535 unsigned TXB1D52 : 1;
8536 unsigned TXB1D53 : 1;
8537 unsigned TXB1D54 : 1;
8538 unsigned TXB1D55 : 1;
8539 unsigned TXB1D56 : 1;
8540 unsigned TXB1D57 : 1;
8541 } __TXB1D5bits_t;
8543 extern __at(0x0F1B) volatile __TXB1D5bits_t TXB1D5bits;
8545 #define _TXB1D50 0x01
8546 #define _TXB1D51 0x02
8547 #define _TXB1D52 0x04
8548 #define _TXB1D53 0x08
8549 #define _TXB1D54 0x10
8550 #define _TXB1D55 0x20
8551 #define _TXB1D56 0x40
8552 #define _TXB1D57 0x80
8554 //==============================================================================
8557 //==============================================================================
8558 // TXB1D6 Bits
8560 extern __at(0x0F1C) __sfr TXB1D6;
8562 typedef struct
8564 unsigned TXB1D60 : 1;
8565 unsigned TXB1D61 : 1;
8566 unsigned TXB1D62 : 1;
8567 unsigned TXB1D63 : 1;
8568 unsigned TXB1D64 : 1;
8569 unsigned TXB1D65 : 1;
8570 unsigned TXB1D66 : 1;
8571 unsigned TXB1D67 : 1;
8572 } __TXB1D6bits_t;
8574 extern __at(0x0F1C) volatile __TXB1D6bits_t TXB1D6bits;
8576 #define _TXB1D60 0x01
8577 #define _TXB1D61 0x02
8578 #define _TXB1D62 0x04
8579 #define _TXB1D63 0x08
8580 #define _TXB1D64 0x10
8581 #define _TXB1D65 0x20
8582 #define _TXB1D66 0x40
8583 #define _TXB1D67 0x80
8585 //==============================================================================
8588 //==============================================================================
8589 // TXB1D7 Bits
8591 extern __at(0x0F1D) __sfr TXB1D7;
8593 typedef struct
8595 unsigned TXB1D70 : 1;
8596 unsigned TXB1D71 : 1;
8597 unsigned TXB1D72 : 1;
8598 unsigned TXB1D73 : 1;
8599 unsigned TXB1D74 : 1;
8600 unsigned TXB1D75 : 1;
8601 unsigned TXB1D76 : 1;
8602 unsigned TXB1D77 : 1;
8603 } __TXB1D7bits_t;
8605 extern __at(0x0F1D) volatile __TXB1D7bits_t TXB1D7bits;
8607 #define _TXB1D70 0x01
8608 #define _TXB1D71 0x02
8609 #define _TXB1D72 0x04
8610 #define _TXB1D73 0x08
8611 #define _TXB1D74 0x10
8612 #define _TXB1D75 0x20
8613 #define _TXB1D76 0x40
8614 #define _TXB1D77 0x80
8616 //==============================================================================
8619 //==============================================================================
8620 // CANSTAT_RO2 Bits
8622 extern __at(0x0F1E) __sfr CANSTAT_RO2;
8624 typedef union
8626 struct
8628 unsigned EICODE0 : 1;
8629 unsigned EICODE1_ICODE0 : 1;
8630 unsigned EICODE2_ICODE1 : 1;
8631 unsigned EICODE3_ICODE2 : 1;
8632 unsigned EICODE4 : 1;
8633 unsigned OPMODE0 : 1;
8634 unsigned OPMODE1 : 1;
8635 unsigned OPMODE2 : 1;
8638 struct
8640 unsigned : 1;
8641 unsigned EICODE1 : 1;
8642 unsigned EICODE2 : 1;
8643 unsigned EICODE3 : 1;
8644 unsigned : 1;
8645 unsigned : 1;
8646 unsigned : 1;
8647 unsigned : 1;
8650 struct
8652 unsigned : 1;
8653 unsigned ICODE20 : 1;
8654 unsigned ICODE21 : 1;
8655 unsigned ICODE2 : 1;
8656 unsigned : 1;
8657 unsigned : 1;
8658 unsigned : 1;
8659 unsigned : 1;
8662 struct
8664 unsigned EICODE : 5;
8665 unsigned : 3;
8668 struct
8670 unsigned : 5;
8671 unsigned OPMODE : 3;
8673 } __CANSTAT_RO2bits_t;
8675 extern __at(0x0F1E) volatile __CANSTAT_RO2bits_t CANSTAT_RO2bits;
8677 #define _CANSTAT_RO2_EICODE0 0x01
8678 #define _CANSTAT_RO2_EICODE1_ICODE0 0x02
8679 #define _CANSTAT_RO2_EICODE1 0x02
8680 #define _CANSTAT_RO2_ICODE20 0x02
8681 #define _CANSTAT_RO2_EICODE2_ICODE1 0x04
8682 #define _CANSTAT_RO2_EICODE2 0x04
8683 #define _CANSTAT_RO2_ICODE21 0x04
8684 #define _CANSTAT_RO2_EICODE3_ICODE2 0x08
8685 #define _CANSTAT_RO2_EICODE3 0x08
8686 #define _CANSTAT_RO2_ICODE2 0x08
8687 #define _CANSTAT_RO2_EICODE4 0x10
8688 #define _CANSTAT_RO2_OPMODE0 0x20
8689 #define _CANSTAT_RO2_OPMODE1 0x40
8690 #define _CANSTAT_RO2_OPMODE2 0x80
8692 //==============================================================================
8695 //==============================================================================
8696 // CANCON_RO2 Bits
8698 extern __at(0x0F1F) __sfr CANCON_RO2;
8700 typedef union
8702 struct
8704 unsigned FP0 : 1;
8705 unsigned WIN0_FP1 : 1;
8706 unsigned WIN1_FP2 : 1;
8707 unsigned WIN2_FP3 : 1;
8708 unsigned ABAT : 1;
8709 unsigned : 1;
8710 unsigned : 1;
8711 unsigned : 1;
8714 struct
8716 unsigned : 1;
8717 unsigned WIN0 : 1;
8718 unsigned WIN1 : 1;
8719 unsigned WIN2 : 1;
8720 unsigned : 1;
8721 unsigned : 1;
8722 unsigned : 1;
8723 unsigned : 1;
8726 struct
8728 unsigned : 1;
8729 unsigned FP1 : 1;
8730 unsigned FP2 : 1;
8731 unsigned FP3 : 1;
8732 unsigned : 1;
8733 unsigned : 1;
8734 unsigned : 1;
8735 unsigned : 1;
8738 struct
8740 unsigned FP : 4;
8741 unsigned : 4;
8744 struct
8746 unsigned : 1;
8747 unsigned WIN : 3;
8748 unsigned : 4;
8750 } __CANCON_RO2bits_t;
8752 extern __at(0x0F1F) volatile __CANCON_RO2bits_t CANCON_RO2bits;
8754 #define _CANCON_RO2_FP0 0x01
8755 #define _CANCON_RO2_WIN0_FP1 0x02
8756 #define _CANCON_RO2_WIN0 0x02
8757 #define _CANCON_RO2_FP1 0x02
8758 #define _CANCON_RO2_WIN1_FP2 0x04
8759 #define _CANCON_RO2_WIN1 0x04
8760 #define _CANCON_RO2_FP2 0x04
8761 #define _CANCON_RO2_WIN2_FP3 0x08
8762 #define _CANCON_RO2_WIN2 0x08
8763 #define _CANCON_RO2_FP3 0x08
8764 #define _CANCON_RO2_ABAT 0x10
8766 //==============================================================================
8769 //==============================================================================
8770 // TXB0CON Bits
8772 extern __at(0x0F20) __sfr TXB0CON;
8774 typedef union
8776 struct
8778 unsigned TXPRI0 : 1;
8779 unsigned TXPRI1 : 1;
8780 unsigned : 1;
8781 unsigned TXREQ : 1;
8782 unsigned TXERR : 1;
8783 unsigned TXLARB : 1;
8784 unsigned TXABT : 1;
8785 unsigned TXBIF : 1;
8788 struct
8790 unsigned TXPRI : 2;
8791 unsigned : 6;
8793 } __TXB0CONbits_t;
8795 extern __at(0x0F20) volatile __TXB0CONbits_t TXB0CONbits;
8797 #define _TXB0CON_TXPRI0 0x01
8798 #define _TXB0CON_TXPRI1 0x02
8799 #define _TXB0CON_TXREQ 0x08
8800 #define _TXB0CON_TXERR 0x10
8801 #define _TXB0CON_TXLARB 0x20
8802 #define _TXB0CON_TXABT 0x40
8803 #define _TXB0CON_TXBIF 0x80
8805 //==============================================================================
8808 //==============================================================================
8809 // TXB0SIDH Bits
8811 extern __at(0x0F21) __sfr TXB0SIDH;
8813 typedef struct
8815 unsigned SID3 : 1;
8816 unsigned SID4 : 1;
8817 unsigned SID5 : 1;
8818 unsigned SID6 : 1;
8819 unsigned SID7 : 1;
8820 unsigned SID8 : 1;
8821 unsigned SID9 : 1;
8822 unsigned SID10 : 1;
8823 } __TXB0SIDHbits_t;
8825 extern __at(0x0F21) volatile __TXB0SIDHbits_t TXB0SIDHbits;
8827 #define _TXB0SIDH_SID3 0x01
8828 #define _TXB0SIDH_SID4 0x02
8829 #define _TXB0SIDH_SID5 0x04
8830 #define _TXB0SIDH_SID6 0x08
8831 #define _TXB0SIDH_SID7 0x10
8832 #define _TXB0SIDH_SID8 0x20
8833 #define _TXB0SIDH_SID9 0x40
8834 #define _TXB0SIDH_SID10 0x80
8836 //==============================================================================
8839 //==============================================================================
8840 // TXB0SIDL Bits
8842 extern __at(0x0F22) __sfr TXB0SIDL;
8844 typedef union
8846 struct
8848 unsigned EID16 : 1;
8849 unsigned EID17 : 1;
8850 unsigned : 1;
8851 unsigned EXIDE : 1;
8852 unsigned SRR : 1;
8853 unsigned SID0 : 1;
8854 unsigned SID1 : 1;
8855 unsigned SID2 : 1;
8858 struct
8860 unsigned : 5;
8861 unsigned SID : 3;
8863 } __TXB0SIDLbits_t;
8865 extern __at(0x0F22) volatile __TXB0SIDLbits_t TXB0SIDLbits;
8867 #define _TXB0SIDL_EID16 0x01
8868 #define _TXB0SIDL_EID17 0x02
8869 #define _TXB0SIDL_EXIDE 0x08
8870 #define _TXB0SIDL_SRR 0x10
8871 #define _TXB0SIDL_SID0 0x20
8872 #define _TXB0SIDL_SID1 0x40
8873 #define _TXB0SIDL_SID2 0x80
8875 //==============================================================================
8878 //==============================================================================
8879 // TXB0EIDH Bits
8881 extern __at(0x0F23) __sfr TXB0EIDH;
8883 typedef struct
8885 unsigned EID8 : 1;
8886 unsigned EID9 : 1;
8887 unsigned EID10 : 1;
8888 unsigned EID11 : 1;
8889 unsigned EID12 : 1;
8890 unsigned EID13 : 1;
8891 unsigned EID14 : 1;
8892 unsigned EID15 : 1;
8893 } __TXB0EIDHbits_t;
8895 extern __at(0x0F23) volatile __TXB0EIDHbits_t TXB0EIDHbits;
8897 #define _TXB0EIDH_EID8 0x01
8898 #define _TXB0EIDH_EID9 0x02
8899 #define _TXB0EIDH_EID10 0x04
8900 #define _TXB0EIDH_EID11 0x08
8901 #define _TXB0EIDH_EID12 0x10
8902 #define _TXB0EIDH_EID13 0x20
8903 #define _TXB0EIDH_EID14 0x40
8904 #define _TXB0EIDH_EID15 0x80
8906 //==============================================================================
8909 //==============================================================================
8910 // TXB0EIDL Bits
8912 extern __at(0x0F24) __sfr TXB0EIDL;
8914 typedef struct
8916 unsigned EID0 : 1;
8917 unsigned EID1 : 1;
8918 unsigned EID2 : 1;
8919 unsigned EID3 : 1;
8920 unsigned EID4 : 1;
8921 unsigned EID5 : 1;
8922 unsigned EID6 : 1;
8923 unsigned EID7 : 1;
8924 } __TXB0EIDLbits_t;
8926 extern __at(0x0F24) volatile __TXB0EIDLbits_t TXB0EIDLbits;
8928 #define _TXB0EIDL_EID0 0x01
8929 #define _TXB0EIDL_EID1 0x02
8930 #define _TXB0EIDL_EID2 0x04
8931 #define _TXB0EIDL_EID3 0x08
8932 #define _TXB0EIDL_EID4 0x10
8933 #define _TXB0EIDL_EID5 0x20
8934 #define _TXB0EIDL_EID6 0x40
8935 #define _TXB0EIDL_EID7 0x80
8937 //==============================================================================
8940 //==============================================================================
8941 // TXB0DLC Bits
8943 extern __at(0x0F25) __sfr TXB0DLC;
8945 typedef union
8947 struct
8949 unsigned DLC0 : 1;
8950 unsigned DLC1 : 1;
8951 unsigned DLC2 : 1;
8952 unsigned DLC3 : 1;
8953 unsigned : 1;
8954 unsigned : 1;
8955 unsigned TXRTR : 1;
8956 unsigned : 1;
8959 struct
8961 unsigned DLC : 4;
8962 unsigned : 4;
8964 } __TXB0DLCbits_t;
8966 extern __at(0x0F25) volatile __TXB0DLCbits_t TXB0DLCbits;
8968 #define _TXB0DLC_DLC0 0x01
8969 #define _TXB0DLC_DLC1 0x02
8970 #define _TXB0DLC_DLC2 0x04
8971 #define _TXB0DLC_DLC3 0x08
8972 #define _TXB0DLC_TXRTR 0x40
8974 //==============================================================================
8977 //==============================================================================
8978 // TXB0D0 Bits
8980 extern __at(0x0F26) __sfr TXB0D0;
8982 typedef struct
8984 unsigned TXB0D00 : 1;
8985 unsigned TXB0D01 : 1;
8986 unsigned TXB0D02 : 1;
8987 unsigned TXB0D03 : 1;
8988 unsigned TXB0D04 : 1;
8989 unsigned TXB0D05 : 1;
8990 unsigned TXB0D06 : 1;
8991 unsigned TXB0D07 : 1;
8992 } __TXB0D0bits_t;
8994 extern __at(0x0F26) volatile __TXB0D0bits_t TXB0D0bits;
8996 #define _TXB0D00 0x01
8997 #define _TXB0D01 0x02
8998 #define _TXB0D02 0x04
8999 #define _TXB0D03 0x08
9000 #define _TXB0D04 0x10
9001 #define _TXB0D05 0x20
9002 #define _TXB0D06 0x40
9003 #define _TXB0D07 0x80
9005 //==============================================================================
9008 //==============================================================================
9009 // TXB0D1 Bits
9011 extern __at(0x0F27) __sfr TXB0D1;
9013 typedef struct
9015 unsigned TXB0D10 : 1;
9016 unsigned TXB0D11 : 1;
9017 unsigned TXB0D12 : 1;
9018 unsigned TXB0D13 : 1;
9019 unsigned TXB0D14 : 1;
9020 unsigned TXB0D15 : 1;
9021 unsigned TXB0D16 : 1;
9022 unsigned TXB0D17 : 1;
9023 } __TXB0D1bits_t;
9025 extern __at(0x0F27) volatile __TXB0D1bits_t TXB0D1bits;
9027 #define _TXB0D10 0x01
9028 #define _TXB0D11 0x02
9029 #define _TXB0D12 0x04
9030 #define _TXB0D13 0x08
9031 #define _TXB0D14 0x10
9032 #define _TXB0D15 0x20
9033 #define _TXB0D16 0x40
9034 #define _TXB0D17 0x80
9036 //==============================================================================
9039 //==============================================================================
9040 // TXB0D2 Bits
9042 extern __at(0x0F28) __sfr TXB0D2;
9044 typedef struct
9046 unsigned TXB0D20 : 1;
9047 unsigned TXB0D21 : 1;
9048 unsigned TXB0D22 : 1;
9049 unsigned TXB0D23 : 1;
9050 unsigned TXB0D24 : 1;
9051 unsigned TXB0D25 : 1;
9052 unsigned TXB0D26 : 1;
9053 unsigned TXB0D27 : 1;
9054 } __TXB0D2bits_t;
9056 extern __at(0x0F28) volatile __TXB0D2bits_t TXB0D2bits;
9058 #define _TXB0D20 0x01
9059 #define _TXB0D21 0x02
9060 #define _TXB0D22 0x04
9061 #define _TXB0D23 0x08
9062 #define _TXB0D24 0x10
9063 #define _TXB0D25 0x20
9064 #define _TXB0D26 0x40
9065 #define _TXB0D27 0x80
9067 //==============================================================================
9070 //==============================================================================
9071 // TXB0D3 Bits
9073 extern __at(0x0F29) __sfr TXB0D3;
9075 typedef struct
9077 unsigned TXB0D30 : 1;
9078 unsigned TXB0D31 : 1;
9079 unsigned TXB0D32 : 1;
9080 unsigned TXB0D33 : 1;
9081 unsigned TXB0D34 : 1;
9082 unsigned TXB0D35 : 1;
9083 unsigned TXB0D36 : 1;
9084 unsigned TXB0D37 : 1;
9085 } __TXB0D3bits_t;
9087 extern __at(0x0F29) volatile __TXB0D3bits_t TXB0D3bits;
9089 #define _TXB0D30 0x01
9090 #define _TXB0D31 0x02
9091 #define _TXB0D32 0x04
9092 #define _TXB0D33 0x08
9093 #define _TXB0D34 0x10
9094 #define _TXB0D35 0x20
9095 #define _TXB0D36 0x40
9096 #define _TXB0D37 0x80
9098 //==============================================================================
9101 //==============================================================================
9102 // TXB0D4 Bits
9104 extern __at(0x0F2A) __sfr TXB0D4;
9106 typedef struct
9108 unsigned TXB0D40 : 1;
9109 unsigned TXB0D41 : 1;
9110 unsigned TXB0D42 : 1;
9111 unsigned TXB0D43 : 1;
9112 unsigned TXB0D44 : 1;
9113 unsigned TXB0D45 : 1;
9114 unsigned TXB0D46 : 1;
9115 unsigned TXB0D47 : 1;
9116 } __TXB0D4bits_t;
9118 extern __at(0x0F2A) volatile __TXB0D4bits_t TXB0D4bits;
9120 #define _TXB0D40 0x01
9121 #define _TXB0D41 0x02
9122 #define _TXB0D42 0x04
9123 #define _TXB0D43 0x08
9124 #define _TXB0D44 0x10
9125 #define _TXB0D45 0x20
9126 #define _TXB0D46 0x40
9127 #define _TXB0D47 0x80
9129 //==============================================================================
9132 //==============================================================================
9133 // TXB0D5 Bits
9135 extern __at(0x0F2B) __sfr TXB0D5;
9137 typedef struct
9139 unsigned TXB0D50 : 1;
9140 unsigned TXB0D51 : 1;
9141 unsigned TXB0D52 : 1;
9142 unsigned TXB0D53 : 1;
9143 unsigned TXB0D54 : 1;
9144 unsigned TXB0D55 : 1;
9145 unsigned TXB0D56 : 1;
9146 unsigned TXB0D57 : 1;
9147 } __TXB0D5bits_t;
9149 extern __at(0x0F2B) volatile __TXB0D5bits_t TXB0D5bits;
9151 #define _TXB0D50 0x01
9152 #define _TXB0D51 0x02
9153 #define _TXB0D52 0x04
9154 #define _TXB0D53 0x08
9155 #define _TXB0D54 0x10
9156 #define _TXB0D55 0x20
9157 #define _TXB0D56 0x40
9158 #define _TXB0D57 0x80
9160 //==============================================================================
9163 //==============================================================================
9164 // TXB0D6 Bits
9166 extern __at(0x0F2C) __sfr TXB0D6;
9168 typedef struct
9170 unsigned TXB0D60 : 1;
9171 unsigned TXB0D61 : 1;
9172 unsigned TXB0D62 : 1;
9173 unsigned TXB0D63 : 1;
9174 unsigned TXB0D64 : 1;
9175 unsigned TXB0D65 : 1;
9176 unsigned TXB0D66 : 1;
9177 unsigned TXB0D67 : 1;
9178 } __TXB0D6bits_t;
9180 extern __at(0x0F2C) volatile __TXB0D6bits_t TXB0D6bits;
9182 #define _TXB0D60 0x01
9183 #define _TXB0D61 0x02
9184 #define _TXB0D62 0x04
9185 #define _TXB0D63 0x08
9186 #define _TXB0D64 0x10
9187 #define _TXB0D65 0x20
9188 #define _TXB0D66 0x40
9189 #define _TXB0D67 0x80
9191 //==============================================================================
9194 //==============================================================================
9195 // TXB0D7 Bits
9197 extern __at(0x0F2D) __sfr TXB0D7;
9199 typedef struct
9201 unsigned TXB0D70 : 1;
9202 unsigned TXB0D71 : 1;
9203 unsigned TXB0D72 : 1;
9204 unsigned TXB0D73 : 1;
9205 unsigned TXB0D74 : 1;
9206 unsigned TXB0D75 : 1;
9207 unsigned TXB0D76 : 1;
9208 unsigned TXB0D77 : 1;
9209 } __TXB0D7bits_t;
9211 extern __at(0x0F2D) volatile __TXB0D7bits_t TXB0D7bits;
9213 #define _TXB0D70 0x01
9214 #define _TXB0D71 0x02
9215 #define _TXB0D72 0x04
9216 #define _TXB0D73 0x08
9217 #define _TXB0D74 0x10
9218 #define _TXB0D75 0x20
9219 #define _TXB0D76 0x40
9220 #define _TXB0D77 0x80
9222 //==============================================================================
9225 //==============================================================================
9226 // CANSTAT_RO1 Bits
9228 extern __at(0x0F2E) __sfr CANSTAT_RO1;
9230 typedef union
9232 struct
9234 unsigned EICODE0 : 1;
9235 unsigned EICODE1_ICODE0 : 1;
9236 unsigned EICODE2_ICODE1 : 1;
9237 unsigned EICODE3_ICODE2 : 1;
9238 unsigned EICODE4 : 1;
9239 unsigned OPMODE0 : 1;
9240 unsigned OPMODE1 : 1;
9241 unsigned OPMODE2 : 1;
9244 struct
9246 unsigned : 1;
9247 unsigned EICODE1 : 1;
9248 unsigned EICODE2 : 1;
9249 unsigned EICODE3 : 1;
9250 unsigned : 1;
9251 unsigned : 1;
9252 unsigned : 1;
9253 unsigned : 1;
9256 struct
9258 unsigned : 1;
9259 unsigned ICODE0 : 1;
9260 unsigned ICODE1 : 1;
9261 unsigned ICODE2 : 1;
9262 unsigned : 1;
9263 unsigned : 1;
9264 unsigned : 1;
9265 unsigned : 1;
9268 struct
9270 unsigned EICODE : 5;
9271 unsigned : 3;
9274 struct
9276 unsigned : 1;
9277 unsigned ICODE : 3;
9278 unsigned : 4;
9281 struct
9283 unsigned : 5;
9284 unsigned OPMODE : 3;
9286 } __CANSTAT_RO1bits_t;
9288 extern __at(0x0F2E) volatile __CANSTAT_RO1bits_t CANSTAT_RO1bits;
9290 #define _CANSTAT_RO1_EICODE0 0x01
9291 #define _CANSTAT_RO1_EICODE1_ICODE0 0x02
9292 #define _CANSTAT_RO1_EICODE1 0x02
9293 #define _CANSTAT_RO1_ICODE0 0x02
9294 #define _CANSTAT_RO1_EICODE2_ICODE1 0x04
9295 #define _CANSTAT_RO1_EICODE2 0x04
9296 #define _CANSTAT_RO1_ICODE1 0x04
9297 #define _CANSTAT_RO1_EICODE3_ICODE2 0x08
9298 #define _CANSTAT_RO1_EICODE3 0x08
9299 #define _CANSTAT_RO1_ICODE2 0x08
9300 #define _CANSTAT_RO1_EICODE4 0x10
9301 #define _CANSTAT_RO1_OPMODE0 0x20
9302 #define _CANSTAT_RO1_OPMODE1 0x40
9303 #define _CANSTAT_RO1_OPMODE2 0x80
9305 //==============================================================================
9308 //==============================================================================
9309 // CANCON_RO1 Bits
9311 extern __at(0x0F2F) __sfr CANCON_RO1;
9313 typedef union
9315 struct
9317 unsigned FP0 : 1;
9318 unsigned WIN0_FP1 : 1;
9319 unsigned WIN1_FP2 : 1;
9320 unsigned WIN2_FP3 : 1;
9321 unsigned ABAT : 1;
9322 unsigned : 1;
9323 unsigned : 1;
9324 unsigned : 1;
9327 struct
9329 unsigned : 1;
9330 unsigned WIN0 : 1;
9331 unsigned WIN1 : 1;
9332 unsigned WIN2 : 1;
9333 unsigned : 1;
9334 unsigned : 1;
9335 unsigned : 1;
9336 unsigned : 1;
9339 struct
9341 unsigned : 1;
9342 unsigned FP1 : 1;
9343 unsigned FP2 : 1;
9344 unsigned FP3 : 1;
9345 unsigned : 1;
9346 unsigned : 1;
9347 unsigned : 1;
9348 unsigned : 1;
9351 struct
9353 unsigned FP : 4;
9354 unsigned : 4;
9357 struct
9359 unsigned : 1;
9360 unsigned WIN : 3;
9361 unsigned : 4;
9363 } __CANCON_RO1bits_t;
9365 extern __at(0x0F2F) volatile __CANCON_RO1bits_t CANCON_RO1bits;
9367 #define _CANCON_RO1_FP0 0x01
9368 #define _CANCON_RO1_WIN0_FP1 0x02
9369 #define _CANCON_RO1_WIN0 0x02
9370 #define _CANCON_RO1_FP1 0x02
9371 #define _CANCON_RO1_WIN1_FP2 0x04
9372 #define _CANCON_RO1_WIN1 0x04
9373 #define _CANCON_RO1_FP2 0x04
9374 #define _CANCON_RO1_WIN2_FP3 0x08
9375 #define _CANCON_RO1_WIN2 0x08
9376 #define _CANCON_RO1_FP3 0x08
9377 #define _CANCON_RO1_ABAT 0x10
9379 //==============================================================================
9382 //==============================================================================
9383 // RXB1CON Bits
9385 extern __at(0x0F30) __sfr RXB1CON;
9387 typedef union
9389 struct
9391 unsigned FILHIT0 : 1;
9392 unsigned FILHIT1 : 1;
9393 unsigned FILHIT2 : 1;
9394 unsigned RXRTRRO_FILHIT3 : 1;
9395 unsigned FILHIT4 : 1;
9396 unsigned RXM0_RTRRO : 1;
9397 unsigned RXM1 : 1;
9398 unsigned RXFUL : 1;
9401 struct
9403 unsigned : 1;
9404 unsigned : 1;
9405 unsigned : 1;
9406 unsigned RXRTRRO : 1;
9407 unsigned : 1;
9408 unsigned RXM0 : 1;
9409 unsigned : 1;
9410 unsigned : 1;
9413 struct
9415 unsigned : 1;
9416 unsigned : 1;
9417 unsigned : 1;
9418 unsigned FILHIT3 : 1;
9419 unsigned : 1;
9420 unsigned RTRRO : 1;
9421 unsigned : 1;
9422 unsigned : 1;
9425 struct
9427 unsigned FILHIT : 5;
9428 unsigned : 3;
9431 struct
9433 unsigned : 5;
9434 unsigned RXM : 2;
9435 unsigned : 1;
9437 } __RXB1CONbits_t;
9439 extern __at(0x0F30) volatile __RXB1CONbits_t RXB1CONbits;
9441 #define _RXB1CON_FILHIT0 0x01
9442 #define _RXB1CON_FILHIT1 0x02
9443 #define _RXB1CON_FILHIT2 0x04
9444 #define _RXB1CON_RXRTRRO_FILHIT3 0x08
9445 #define _RXB1CON_RXRTRRO 0x08
9446 #define _RXB1CON_FILHIT3 0x08
9447 #define _RXB1CON_FILHIT4 0x10
9448 #define _RXB1CON_RXM0_RTRRO 0x20
9449 #define _RXB1CON_RXM0 0x20
9450 #define _RXB1CON_RTRRO 0x20
9451 #define _RXB1CON_RXM1 0x40
9452 #define _RXB1CON_RXFUL 0x80
9454 //==============================================================================
9457 //==============================================================================
9458 // RXB1SIDH Bits
9460 extern __at(0x0F31) __sfr RXB1SIDH;
9462 typedef struct
9464 unsigned SID3 : 1;
9465 unsigned SID4 : 1;
9466 unsigned SID5 : 1;
9467 unsigned SID6 : 1;
9468 unsigned SID7 : 1;
9469 unsigned SID8 : 1;
9470 unsigned SID9 : 1;
9471 unsigned SID10 : 1;
9472 } __RXB1SIDHbits_t;
9474 extern __at(0x0F31) volatile __RXB1SIDHbits_t RXB1SIDHbits;
9476 #define _RXB1SIDH_SID3 0x01
9477 #define _RXB1SIDH_SID4 0x02
9478 #define _RXB1SIDH_SID5 0x04
9479 #define _RXB1SIDH_SID6 0x08
9480 #define _RXB1SIDH_SID7 0x10
9481 #define _RXB1SIDH_SID8 0x20
9482 #define _RXB1SIDH_SID9 0x40
9483 #define _RXB1SIDH_SID10 0x80
9485 //==============================================================================
9488 //==============================================================================
9489 // RXB1SIDL Bits
9491 extern __at(0x0F32) __sfr RXB1SIDL;
9493 typedef union
9495 struct
9497 unsigned EDI16 : 1;
9498 unsigned EDI17 : 1;
9499 unsigned : 1;
9500 unsigned EXID : 1;
9501 unsigned SRR : 1;
9502 unsigned SID0 : 1;
9503 unsigned SID1 : 1;
9504 unsigned SID2 : 1;
9507 struct
9509 unsigned : 5;
9510 unsigned SID : 3;
9512 } __RXB1SIDLbits_t;
9514 extern __at(0x0F32) volatile __RXB1SIDLbits_t RXB1SIDLbits;
9516 #define _RXB1SIDL_EDI16 0x01
9517 #define _RXB1SIDL_EDI17 0x02
9518 #define _RXB1SIDL_EXID 0x08
9519 #define _RXB1SIDL_SRR 0x10
9520 #define _RXB1SIDL_SID0 0x20
9521 #define _RXB1SIDL_SID1 0x40
9522 #define _RXB1SIDL_SID2 0x80
9524 //==============================================================================
9527 //==============================================================================
9528 // RXB1EIDH Bits
9530 extern __at(0x0F33) __sfr RXB1EIDH;
9532 typedef struct
9534 unsigned EID8 : 1;
9535 unsigned EID9 : 1;
9536 unsigned EID10 : 1;
9537 unsigned EID11 : 1;
9538 unsigned EID12 : 1;
9539 unsigned EID13 : 1;
9540 unsigned EID14 : 1;
9541 unsigned EID15 : 1;
9542 } __RXB1EIDHbits_t;
9544 extern __at(0x0F33) volatile __RXB1EIDHbits_t RXB1EIDHbits;
9546 #define _RXB1EIDH_EID8 0x01
9547 #define _RXB1EIDH_EID9 0x02
9548 #define _RXB1EIDH_EID10 0x04
9549 #define _RXB1EIDH_EID11 0x08
9550 #define _RXB1EIDH_EID12 0x10
9551 #define _RXB1EIDH_EID13 0x20
9552 #define _RXB1EIDH_EID14 0x40
9553 #define _RXB1EIDH_EID15 0x80
9555 //==============================================================================
9558 //==============================================================================
9559 // RXB1EIDL Bits
9561 extern __at(0x0F34) __sfr RXB1EIDL;
9563 typedef struct
9565 unsigned EID0 : 1;
9566 unsigned EID1 : 1;
9567 unsigned EID2 : 1;
9568 unsigned EID3 : 1;
9569 unsigned EID4 : 1;
9570 unsigned EID5 : 1;
9571 unsigned EID6 : 1;
9572 unsigned EID7 : 1;
9573 } __RXB1EIDLbits_t;
9575 extern __at(0x0F34) volatile __RXB1EIDLbits_t RXB1EIDLbits;
9577 #define _RXB1EIDL_EID0 0x01
9578 #define _RXB1EIDL_EID1 0x02
9579 #define _RXB1EIDL_EID2 0x04
9580 #define _RXB1EIDL_EID3 0x08
9581 #define _RXB1EIDL_EID4 0x10
9582 #define _RXB1EIDL_EID5 0x20
9583 #define _RXB1EIDL_EID6 0x40
9584 #define _RXB1EIDL_EID7 0x80
9586 //==============================================================================
9589 //==============================================================================
9590 // RXB1DLC Bits
9592 extern __at(0x0F35) __sfr RXB1DLC;
9594 typedef union
9596 struct
9598 unsigned DLC0 : 1;
9599 unsigned DLC1 : 1;
9600 unsigned DLC2 : 1;
9601 unsigned DLC3 : 1;
9602 unsigned RB0 : 1;
9603 unsigned RB1 : 1;
9604 unsigned RXRTR : 1;
9605 unsigned : 1;
9608 struct
9610 unsigned DLC : 4;
9611 unsigned : 4;
9614 struct
9616 unsigned : 4;
9617 unsigned RB : 2;
9618 unsigned : 2;
9620 } __RXB1DLCbits_t;
9622 extern __at(0x0F35) volatile __RXB1DLCbits_t RXB1DLCbits;
9624 #define _RXB1DLC_DLC0 0x01
9625 #define _RXB1DLC_DLC1 0x02
9626 #define _RXB1DLC_DLC2 0x04
9627 #define _RXB1DLC_DLC3 0x08
9628 #define _RXB1DLC_RB0 0x10
9629 #define _RXB1DLC_RB1 0x20
9630 #define _RXB1DLC_RXRTR 0x40
9632 //==============================================================================
9635 //==============================================================================
9636 // RXB1D0 Bits
9638 extern __at(0x0F36) __sfr RXB1D0;
9640 typedef struct
9642 unsigned RXB1D00 : 1;
9643 unsigned RXB1D01 : 1;
9644 unsigned RXB1D02 : 1;
9645 unsigned RXB1D03 : 1;
9646 unsigned RXB1D04 : 1;
9647 unsigned RXB1D05 : 1;
9648 unsigned RXB1D06 : 1;
9649 unsigned RXB1D07 : 1;
9650 } __RXB1D0bits_t;
9652 extern __at(0x0F36) volatile __RXB1D0bits_t RXB1D0bits;
9654 #define _RXB1D00 0x01
9655 #define _RXB1D01 0x02
9656 #define _RXB1D02 0x04
9657 #define _RXB1D03 0x08
9658 #define _RXB1D04 0x10
9659 #define _RXB1D05 0x20
9660 #define _RXB1D06 0x40
9661 #define _RXB1D07 0x80
9663 //==============================================================================
9666 //==============================================================================
9667 // RXB1D1 Bits
9669 extern __at(0x0F37) __sfr RXB1D1;
9671 typedef struct
9673 unsigned RXB1D10 : 1;
9674 unsigned RXB1D11 : 1;
9675 unsigned RXB1D12 : 1;
9676 unsigned RXB1D13 : 1;
9677 unsigned RXB1D14 : 1;
9678 unsigned RXB1D15 : 1;
9679 unsigned RXB1D16 : 1;
9680 unsigned RXB1D17 : 1;
9681 } __RXB1D1bits_t;
9683 extern __at(0x0F37) volatile __RXB1D1bits_t RXB1D1bits;
9685 #define _RXB1D10 0x01
9686 #define _RXB1D11 0x02
9687 #define _RXB1D12 0x04
9688 #define _RXB1D13 0x08
9689 #define _RXB1D14 0x10
9690 #define _RXB1D15 0x20
9691 #define _RXB1D16 0x40
9692 #define _RXB1D17 0x80
9694 //==============================================================================
9697 //==============================================================================
9698 // RXB1D2 Bits
9700 extern __at(0x0F38) __sfr RXB1D2;
9702 typedef struct
9704 unsigned RXB1D20 : 1;
9705 unsigned RXB1D21 : 1;
9706 unsigned RXB1D22 : 1;
9707 unsigned RXB1D23 : 1;
9708 unsigned RXB1D24 : 1;
9709 unsigned RXB1D25 : 1;
9710 unsigned RXB1D26 : 1;
9711 unsigned RXB1D27 : 1;
9712 } __RXB1D2bits_t;
9714 extern __at(0x0F38) volatile __RXB1D2bits_t RXB1D2bits;
9716 #define _RXB1D20 0x01
9717 #define _RXB1D21 0x02
9718 #define _RXB1D22 0x04
9719 #define _RXB1D23 0x08
9720 #define _RXB1D24 0x10
9721 #define _RXB1D25 0x20
9722 #define _RXB1D26 0x40
9723 #define _RXB1D27 0x80
9725 //==============================================================================
9728 //==============================================================================
9729 // RXB1D3 Bits
9731 extern __at(0x0F39) __sfr RXB1D3;
9733 typedef struct
9735 unsigned RXB1D30 : 1;
9736 unsigned RXB1D31 : 1;
9737 unsigned RXB1D32 : 1;
9738 unsigned RXB1D33 : 1;
9739 unsigned RXB1D34 : 1;
9740 unsigned RXB1D35 : 1;
9741 unsigned RXB1D36 : 1;
9742 unsigned RXB1D37 : 1;
9743 } __RXB1D3bits_t;
9745 extern __at(0x0F39) volatile __RXB1D3bits_t RXB1D3bits;
9747 #define _RXB1D30 0x01
9748 #define _RXB1D31 0x02
9749 #define _RXB1D32 0x04
9750 #define _RXB1D33 0x08
9751 #define _RXB1D34 0x10
9752 #define _RXB1D35 0x20
9753 #define _RXB1D36 0x40
9754 #define _RXB1D37 0x80
9756 //==============================================================================
9759 //==============================================================================
9760 // RXB1D4 Bits
9762 extern __at(0x0F3A) __sfr RXB1D4;
9764 typedef struct
9766 unsigned RXB1D40 : 1;
9767 unsigned RXB1D41 : 1;
9768 unsigned RXB1D42 : 1;
9769 unsigned RXB1D43 : 1;
9770 unsigned RXB1D44 : 1;
9771 unsigned RXB1D45 : 1;
9772 unsigned RXB1D46 : 1;
9773 unsigned RXB1D47 : 1;
9774 } __RXB1D4bits_t;
9776 extern __at(0x0F3A) volatile __RXB1D4bits_t RXB1D4bits;
9778 #define _RXB1D40 0x01
9779 #define _RXB1D41 0x02
9780 #define _RXB1D42 0x04
9781 #define _RXB1D43 0x08
9782 #define _RXB1D44 0x10
9783 #define _RXB1D45 0x20
9784 #define _RXB1D46 0x40
9785 #define _RXB1D47 0x80
9787 //==============================================================================
9790 //==============================================================================
9791 // RXB1D5 Bits
9793 extern __at(0x0F3B) __sfr RXB1D5;
9795 typedef struct
9797 unsigned RXB1D50 : 1;
9798 unsigned RXB1D51 : 1;
9799 unsigned RXB1D52 : 1;
9800 unsigned RXB1D53 : 1;
9801 unsigned RXB1D54 : 1;
9802 unsigned RXB1D55 : 1;
9803 unsigned RXB1D56 : 1;
9804 unsigned RXB1D57 : 1;
9805 } __RXB1D5bits_t;
9807 extern __at(0x0F3B) volatile __RXB1D5bits_t RXB1D5bits;
9809 #define _RXB1D50 0x01
9810 #define _RXB1D51 0x02
9811 #define _RXB1D52 0x04
9812 #define _RXB1D53 0x08
9813 #define _RXB1D54 0x10
9814 #define _RXB1D55 0x20
9815 #define _RXB1D56 0x40
9816 #define _RXB1D57 0x80
9818 //==============================================================================
9821 //==============================================================================
9822 // RXB1D6 Bits
9824 extern __at(0x0F3C) __sfr RXB1D6;
9826 typedef struct
9828 unsigned RXB1D60 : 1;
9829 unsigned RXB1D61 : 1;
9830 unsigned RXB1D62 : 1;
9831 unsigned RXB1D63 : 1;
9832 unsigned RXB1D64 : 1;
9833 unsigned RXB1D65 : 1;
9834 unsigned RXB1D66 : 1;
9835 unsigned RXB1D67 : 1;
9836 } __RXB1D6bits_t;
9838 extern __at(0x0F3C) volatile __RXB1D6bits_t RXB1D6bits;
9840 #define _RXB1D60 0x01
9841 #define _RXB1D61 0x02
9842 #define _RXB1D62 0x04
9843 #define _RXB1D63 0x08
9844 #define _RXB1D64 0x10
9845 #define _RXB1D65 0x20
9846 #define _RXB1D66 0x40
9847 #define _RXB1D67 0x80
9849 //==============================================================================
9852 //==============================================================================
9853 // RXB1D7 Bits
9855 extern __at(0x0F3D) __sfr RXB1D7;
9857 typedef struct
9859 unsigned RXB1D70 : 1;
9860 unsigned RXB1D71 : 1;
9861 unsigned RXB1D72 : 1;
9862 unsigned RXB1D73 : 1;
9863 unsigned RXB1D74 : 1;
9864 unsigned RXB1D75 : 1;
9865 unsigned RXB1D76 : 1;
9866 unsigned RXB1D77 : 1;
9867 } __RXB1D7bits_t;
9869 extern __at(0x0F3D) volatile __RXB1D7bits_t RXB1D7bits;
9871 #define _RXB1D70 0x01
9872 #define _RXB1D71 0x02
9873 #define _RXB1D72 0x04
9874 #define _RXB1D73 0x08
9875 #define _RXB1D74 0x10
9876 #define _RXB1D75 0x20
9877 #define _RXB1D76 0x40
9878 #define _RXB1D77 0x80
9880 //==============================================================================
9883 //==============================================================================
9884 // CANSTAT_RO0 Bits
9886 extern __at(0x0F3E) __sfr CANSTAT_RO0;
9888 typedef union
9890 struct
9892 unsigned EICODE0 : 1;
9893 unsigned EICODE1_ICODE0 : 1;
9894 unsigned EICODE2_ICODE1 : 1;
9895 unsigned EICODE3_ICODE2 : 1;
9896 unsigned EICODE4 : 1;
9897 unsigned OPMODE0 : 1;
9898 unsigned OPMODE1 : 1;
9899 unsigned OPMODE2 : 1;
9902 struct
9904 unsigned : 1;
9905 unsigned EICODE1 : 1;
9906 unsigned EICODE2 : 1;
9907 unsigned EICODE3 : 1;
9908 unsigned : 1;
9909 unsigned : 1;
9910 unsigned : 1;
9911 unsigned : 1;
9914 struct
9916 unsigned : 1;
9917 unsigned ICODE0 : 1;
9918 unsigned ICODE1 : 1;
9919 unsigned ICODE2 : 1;
9920 unsigned : 1;
9921 unsigned : 1;
9922 unsigned : 1;
9923 unsigned : 1;
9926 struct
9928 unsigned EICODE : 5;
9929 unsigned : 3;
9932 struct
9934 unsigned : 1;
9935 unsigned ICODE : 3;
9936 unsigned : 4;
9939 struct
9941 unsigned : 5;
9942 unsigned OPMODE : 3;
9944 } __CANSTAT_RO0bits_t;
9946 extern __at(0x0F3E) volatile __CANSTAT_RO0bits_t CANSTAT_RO0bits;
9948 #define _CANSTAT_RO0_EICODE0 0x01
9949 #define _CANSTAT_RO0_EICODE1_ICODE0 0x02
9950 #define _CANSTAT_RO0_EICODE1 0x02
9951 #define _CANSTAT_RO0_ICODE0 0x02
9952 #define _CANSTAT_RO0_EICODE2_ICODE1 0x04
9953 #define _CANSTAT_RO0_EICODE2 0x04
9954 #define _CANSTAT_RO0_ICODE1 0x04
9955 #define _CANSTAT_RO0_EICODE3_ICODE2 0x08
9956 #define _CANSTAT_RO0_EICODE3 0x08
9957 #define _CANSTAT_RO0_ICODE2 0x08
9958 #define _CANSTAT_RO0_EICODE4 0x10
9959 #define _CANSTAT_RO0_OPMODE0 0x20
9960 #define _CANSTAT_RO0_OPMODE1 0x40
9961 #define _CANSTAT_RO0_OPMODE2 0x80
9963 //==============================================================================
9966 //==============================================================================
9967 // CANCON_RO0 Bits
9969 extern __at(0x0F3F) __sfr CANCON_RO0;
9971 typedef union
9973 struct
9975 unsigned FP0 : 1;
9976 unsigned WIN0_FP1 : 1;
9977 unsigned WIN1_FP2 : 1;
9978 unsigned WIN2_FP3 : 1;
9979 unsigned ABAT : 1;
9980 unsigned : 1;
9981 unsigned : 1;
9982 unsigned : 1;
9985 struct
9987 unsigned : 1;
9988 unsigned WIN0 : 1;
9989 unsigned WIN1 : 1;
9990 unsigned WIN2 : 1;
9991 unsigned : 1;
9992 unsigned : 1;
9993 unsigned : 1;
9994 unsigned : 1;
9997 struct
9999 unsigned : 1;
10000 unsigned FP1 : 1;
10001 unsigned FP2 : 1;
10002 unsigned FP3 : 1;
10003 unsigned : 1;
10004 unsigned : 1;
10005 unsigned : 1;
10006 unsigned : 1;
10009 struct
10011 unsigned FP : 4;
10012 unsigned : 4;
10015 struct
10017 unsigned : 1;
10018 unsigned WIN : 3;
10019 unsigned : 4;
10021 } __CANCON_RO0bits_t;
10023 extern __at(0x0F3F) volatile __CANCON_RO0bits_t CANCON_RO0bits;
10025 #define _CANCON_RO0_FP0 0x01
10026 #define _CANCON_RO0_WIN0_FP1 0x02
10027 #define _CANCON_RO0_WIN0 0x02
10028 #define _CANCON_RO0_FP1 0x02
10029 #define _CANCON_RO0_WIN1_FP2 0x04
10030 #define _CANCON_RO0_WIN1 0x04
10031 #define _CANCON_RO0_FP2 0x04
10032 #define _CANCON_RO0_WIN2_FP3 0x08
10033 #define _CANCON_RO0_WIN2 0x08
10034 #define _CANCON_RO0_FP3 0x08
10035 #define _CANCON_RO0_ABAT 0x10
10037 //==============================================================================
10040 //==============================================================================
10041 // PSPCON Bits
10043 extern __at(0x0F46) __sfr PSPCON;
10045 typedef struct
10047 unsigned : 1;
10048 unsigned : 1;
10049 unsigned : 1;
10050 unsigned : 1;
10051 unsigned PSPMODE : 1;
10052 unsigned IBOV : 1;
10053 unsigned OBF : 1;
10054 unsigned IBF : 1;
10055 } __PSPCONbits_t;
10057 extern __at(0x0F46) volatile __PSPCONbits_t PSPCONbits;
10059 #define _PSPMODE 0x10
10060 #define _IBOV 0x20
10061 #define _OBF 0x40
10062 #define _IBF 0x80
10064 //==============================================================================
10067 //==============================================================================
10068 // CCP5CON Bits
10070 extern __at(0x0F47) __sfr CCP5CON;
10072 typedef union
10074 struct
10076 unsigned CCP5M0 : 1;
10077 unsigned CCP5M1 : 1;
10078 unsigned CCP5M2 : 1;
10079 unsigned CCP5M3 : 1;
10080 unsigned DC5B0 : 1;
10081 unsigned DC5B1 : 1;
10082 unsigned : 1;
10083 unsigned : 1;
10086 struct
10088 unsigned : 1;
10089 unsigned : 1;
10090 unsigned : 1;
10091 unsigned : 1;
10092 unsigned CCP5Y : 1;
10093 unsigned CCP5X : 1;
10094 unsigned : 1;
10095 unsigned : 1;
10098 struct
10100 unsigned CCP5M : 4;
10101 unsigned : 4;
10104 struct
10106 unsigned : 4;
10107 unsigned DC5B : 2;
10108 unsigned : 2;
10110 } __CCP5CONbits_t;
10112 extern __at(0x0F47) volatile __CCP5CONbits_t CCP5CONbits;
10114 #define _CCP5M0 0x01
10115 #define _CCP5M1 0x02
10116 #define _CCP5M2 0x04
10117 #define _CCP5M3 0x08
10118 #define _DC5B0 0x10
10119 #define _CCP5Y 0x10
10120 #define _DC5B1 0x20
10121 #define _CCP5X 0x20
10123 //==============================================================================
10125 extern __at(0x0F48) __sfr CCPR5;
10126 extern __at(0x0F48) __sfr CCPR5L;
10127 extern __at(0x0F49) __sfr CCPR5H;
10129 //==============================================================================
10130 // CCP4CON Bits
10132 extern __at(0x0F4A) __sfr CCP4CON;
10134 typedef union
10136 struct
10138 unsigned CCP4M0 : 1;
10139 unsigned CCP4M1 : 1;
10140 unsigned CCP4M2 : 1;
10141 unsigned CCP4M3 : 1;
10142 unsigned DC4B0 : 1;
10143 unsigned DC4B1 : 1;
10144 unsigned : 1;
10145 unsigned : 1;
10148 struct
10150 unsigned : 1;
10151 unsigned : 1;
10152 unsigned : 1;
10153 unsigned : 1;
10154 unsigned CCP4Y : 1;
10155 unsigned CCP4X : 1;
10156 unsigned : 1;
10157 unsigned : 1;
10160 struct
10162 unsigned CCP4M : 4;
10163 unsigned : 4;
10166 struct
10168 unsigned : 4;
10169 unsigned DC4B : 2;
10170 unsigned : 2;
10172 } __CCP4CONbits_t;
10174 extern __at(0x0F4A) volatile __CCP4CONbits_t CCP4CONbits;
10176 #define _CCP4M0 0x01
10177 #define _CCP4M1 0x02
10178 #define _CCP4M2 0x04
10179 #define _CCP4M3 0x08
10180 #define _DC4B0 0x10
10181 #define _CCP4Y 0x10
10182 #define _DC4B1 0x20
10183 #define _CCP4X 0x20
10185 //==============================================================================
10187 extern __at(0x0F4B) __sfr CCPR4;
10188 extern __at(0x0F4B) __sfr CCPR4L;
10189 extern __at(0x0F4C) __sfr CCPR4H;
10191 //==============================================================================
10192 // CCP3CON Bits
10194 extern __at(0x0F4D) __sfr CCP3CON;
10196 typedef union
10198 struct
10200 unsigned CCP3M0 : 1;
10201 unsigned CCP3M1 : 1;
10202 unsigned CCP3M2 : 1;
10203 unsigned CCP3M3 : 1;
10204 unsigned DC3B0 : 1;
10205 unsigned DC3B1 : 1;
10206 unsigned : 1;
10207 unsigned : 1;
10210 struct
10212 unsigned : 1;
10213 unsigned : 1;
10214 unsigned : 1;
10215 unsigned : 1;
10216 unsigned CCP3Y : 1;
10217 unsigned CCP3X : 1;
10218 unsigned : 1;
10219 unsigned : 1;
10222 struct
10224 unsigned CCP3M : 4;
10225 unsigned : 4;
10228 struct
10230 unsigned : 4;
10231 unsigned DC3B : 2;
10232 unsigned : 2;
10234 } __CCP3CONbits_t;
10236 extern __at(0x0F4D) volatile __CCP3CONbits_t CCP3CONbits;
10238 #define _CCP3M0 0x01
10239 #define _CCP3M1 0x02
10240 #define _CCP3M2 0x04
10241 #define _CCP3M3 0x08
10242 #define _DC3B0 0x10
10243 #define _CCP3Y 0x10
10244 #define _DC3B1 0x20
10245 #define _CCP3X 0x20
10247 //==============================================================================
10249 extern __at(0x0F4E) __sfr CCPR3;
10250 extern __at(0x0F4E) __sfr CCPR3L;
10251 extern __at(0x0F4F) __sfr CCPR3H;
10253 //==============================================================================
10254 // CCP2CON Bits
10256 extern __at(0x0F50) __sfr CCP2CON;
10258 typedef union
10260 struct
10262 unsigned CCP2M0 : 1;
10263 unsigned CCP2M1 : 1;
10264 unsigned CCP2M2 : 1;
10265 unsigned CCP2M3 : 1;
10266 unsigned DC2B0 : 1;
10267 unsigned DC2B1 : 1;
10268 unsigned : 1;
10269 unsigned : 1;
10272 struct
10274 unsigned : 1;
10275 unsigned : 1;
10276 unsigned : 1;
10277 unsigned : 1;
10278 unsigned CCP2Y : 1;
10279 unsigned CCP2X : 1;
10280 unsigned : 1;
10281 unsigned : 1;
10284 struct
10286 unsigned CCP2M : 4;
10287 unsigned : 4;
10290 struct
10292 unsigned : 4;
10293 unsigned DC2B : 2;
10294 unsigned : 2;
10296 } __CCP2CONbits_t;
10298 extern __at(0x0F50) volatile __CCP2CONbits_t CCP2CONbits;
10300 #define _CCP2M0 0x01
10301 #define _CCP2M1 0x02
10302 #define _CCP2M2 0x04
10303 #define _CCP2M3 0x08
10304 #define _DC2B0 0x10
10305 #define _CCP2Y 0x10
10306 #define _DC2B1 0x20
10307 #define _CCP2X 0x20
10309 //==============================================================================
10312 //==============================================================================
10313 // ECCP2CON Bits
10315 extern __at(0x0F50) __sfr ECCP2CON;
10317 typedef union
10319 struct
10321 unsigned CCP2M0 : 1;
10322 unsigned CCP2M1 : 1;
10323 unsigned CCP2M2 : 1;
10324 unsigned CCP2M3 : 1;
10325 unsigned DC2B0 : 1;
10326 unsigned DC2B1 : 1;
10327 unsigned : 1;
10328 unsigned : 1;
10331 struct
10333 unsigned : 1;
10334 unsigned : 1;
10335 unsigned : 1;
10336 unsigned : 1;
10337 unsigned CCP2Y : 1;
10338 unsigned CCP2X : 1;
10339 unsigned : 1;
10340 unsigned : 1;
10343 struct
10345 unsigned CCP2M : 4;
10346 unsigned : 4;
10349 struct
10351 unsigned : 4;
10352 unsigned DC2B : 2;
10353 unsigned : 2;
10355 } __ECCP2CONbits_t;
10357 extern __at(0x0F50) volatile __ECCP2CONbits_t ECCP2CONbits;
10359 #define _ECCP2CON_CCP2M0 0x01
10360 #define _ECCP2CON_CCP2M1 0x02
10361 #define _ECCP2CON_CCP2M2 0x04
10362 #define _ECCP2CON_CCP2M3 0x08
10363 #define _ECCP2CON_DC2B0 0x10
10364 #define _ECCP2CON_CCP2Y 0x10
10365 #define _ECCP2CON_DC2B1 0x20
10366 #define _ECCP2CON_CCP2X 0x20
10368 //==============================================================================
10370 extern __at(0x0F51) __sfr CCPR2;
10371 extern __at(0x0F51) __sfr CCPR2L;
10372 extern __at(0x0F52) __sfr CCPR2H;
10374 //==============================================================================
10375 // CTMUICON Bits
10377 extern __at(0x0F53) __sfr CTMUICON;
10379 typedef union
10381 struct
10383 unsigned IRNG0 : 1;
10384 unsigned IRNG1 : 1;
10385 unsigned ITRIM0 : 1;
10386 unsigned ITRIM1 : 1;
10387 unsigned ITRIM2 : 1;
10388 unsigned ITRIM3 : 1;
10389 unsigned ITRIM4 : 1;
10390 unsigned ITRIM5 : 1;
10393 struct
10395 unsigned IRNG : 2;
10396 unsigned : 6;
10399 struct
10401 unsigned : 2;
10402 unsigned ITRIM : 6;
10404 } __CTMUICONbits_t;
10406 extern __at(0x0F53) volatile __CTMUICONbits_t CTMUICONbits;
10408 #define _IRNG0 0x01
10409 #define _IRNG1 0x02
10410 #define _ITRIM0 0x04
10411 #define _ITRIM1 0x08
10412 #define _ITRIM2 0x10
10413 #define _ITRIM3 0x20
10414 #define _ITRIM4 0x40
10415 #define _ITRIM5 0x80
10417 //==============================================================================
10420 //==============================================================================
10421 // CTMUCONL Bits
10423 extern __at(0x0F54) __sfr CTMUCONL;
10425 typedef union
10427 struct
10429 unsigned EDG1STAT : 1;
10430 unsigned EDG2STAT : 1;
10431 unsigned EDG1SEL0 : 1;
10432 unsigned EDG1SEL1 : 1;
10433 unsigned EDG1POL : 1;
10434 unsigned EDG2SEL0 : 1;
10435 unsigned EDG2SEL1 : 1;
10436 unsigned EDG2POL : 1;
10439 struct
10441 unsigned : 2;
10442 unsigned EDG1SEL : 2;
10443 unsigned : 4;
10446 struct
10448 unsigned : 5;
10449 unsigned EDG2SEL : 2;
10450 unsigned : 1;
10452 } __CTMUCONLbits_t;
10454 extern __at(0x0F54) volatile __CTMUCONLbits_t CTMUCONLbits;
10456 #define _EDG1STAT 0x01
10457 #define _EDG2STAT 0x02
10458 #define _EDG1SEL0 0x04
10459 #define _EDG1SEL1 0x08
10460 #define _EDG1POL 0x10
10461 #define _EDG2SEL0 0x20
10462 #define _EDG2SEL1 0x40
10463 #define _EDG2POL 0x80
10465 //==============================================================================
10468 //==============================================================================
10469 // CTMUCONH Bits
10471 extern __at(0x0F55) __sfr CTMUCONH;
10473 typedef struct
10475 unsigned CTTRIG : 1;
10476 unsigned IDISSEN : 1;
10477 unsigned EDGSEQEN : 1;
10478 unsigned EDGEN : 1;
10479 unsigned TGEN : 1;
10480 unsigned CTMUSIDL : 1;
10481 unsigned : 1;
10482 unsigned CTMUEN : 1;
10483 } __CTMUCONHbits_t;
10485 extern __at(0x0F55) volatile __CTMUCONHbits_t CTMUCONHbits;
10487 #define _CTTRIG 0x01
10488 #define _IDISSEN 0x02
10489 #define _EDGSEQEN 0x04
10490 #define _EDGEN 0x08
10491 #define _TGEN 0x10
10492 #define _CTMUSIDL 0x20
10493 #define _CTMUEN 0x80
10495 //==============================================================================
10498 //==============================================================================
10499 // PADCFG1 Bits
10501 extern __at(0x0F56) __sfr PADCFG1;
10503 typedef struct
10505 unsigned CTMUDS : 1;
10506 unsigned : 1;
10507 unsigned : 1;
10508 unsigned : 1;
10509 unsigned : 1;
10510 unsigned : 1;
10511 unsigned REPU : 1;
10512 unsigned RDPU : 1;
10513 } __PADCFG1bits_t;
10515 extern __at(0x0F56) volatile __PADCFG1bits_t PADCFG1bits;
10517 #define _CTMUDS 0x01
10518 #define _REPU 0x40
10519 #define _RDPU 0x80
10521 //==============================================================================
10524 //==============================================================================
10525 // PMD2 Bits
10527 extern __at(0x0F57) __sfr PMD2;
10529 typedef struct
10531 unsigned CMP1MD : 1;
10532 unsigned CMP2MD : 1;
10533 unsigned ECANMD : 1;
10534 unsigned : 1;
10535 unsigned : 1;
10536 unsigned : 1;
10537 unsigned : 1;
10538 unsigned : 1;
10539 } __PMD2bits_t;
10541 extern __at(0x0F57) volatile __PMD2bits_t PMD2bits;
10543 #define _CMP1MD 0x01
10544 #define _CMP2MD 0x02
10545 #define _ECANMD 0x04
10547 //==============================================================================
10550 //==============================================================================
10551 // PMD1 Bits
10553 extern __at(0x0F58) __sfr PMD1;
10555 typedef struct
10557 unsigned TMR0MD : 1;
10558 unsigned TMR1MD : 1;
10559 unsigned TMR2MD : 1;
10560 unsigned TMR3MD : 1;
10561 unsigned TMR4MD : 1;
10562 unsigned ADCMD : 1;
10563 unsigned CTMUMD : 1;
10564 unsigned PSPMD : 1;
10565 } __PMD1bits_t;
10567 extern __at(0x0F58) volatile __PMD1bits_t PMD1bits;
10569 #define _TMR0MD 0x01
10570 #define _TMR1MD 0x02
10571 #define _TMR2MD 0x04
10572 #define _TMR3MD 0x08
10573 #define _TMR4MD 0x10
10574 #define _ADCMD 0x20
10575 #define _CTMUMD 0x40
10576 #define _PSPMD 0x80
10578 //==============================================================================
10581 //==============================================================================
10582 // PMD0 Bits
10584 extern __at(0x0F59) __sfr PMD0;
10586 typedef struct
10588 unsigned SSPMD : 1;
10589 unsigned UART1MD : 1;
10590 unsigned UART2MD : 1;
10591 unsigned CCP1MD : 1;
10592 unsigned CCP2MD : 1;
10593 unsigned CCP3MD : 1;
10594 unsigned CCP4MD : 1;
10595 unsigned CCP5MD : 1;
10596 } __PMD0bits_t;
10598 extern __at(0x0F59) volatile __PMD0bits_t PMD0bits;
10600 #define _SSPMD 0x01
10601 #define _UART1MD 0x02
10602 #define _UART2MD 0x04
10603 #define _CCP1MD 0x08
10604 #define _CCP2MD 0x10
10605 #define _CCP3MD 0x20
10606 #define _CCP4MD 0x40
10607 #define _CCP5MD 0x80
10609 //==============================================================================
10612 //==============================================================================
10613 // IOCB Bits
10615 extern __at(0x0F5A) __sfr IOCB;
10617 typedef struct
10619 unsigned : 1;
10620 unsigned : 1;
10621 unsigned : 1;
10622 unsigned : 1;
10623 unsigned IOCB4 : 1;
10624 unsigned IOCB5 : 1;
10625 unsigned IOCB6 : 1;
10626 unsigned IOCB7 : 1;
10627 } __IOCBbits_t;
10629 extern __at(0x0F5A) volatile __IOCBbits_t IOCBbits;
10631 #define _IOCB4 0x10
10632 #define _IOCB5 0x20
10633 #define _IOCB6 0x40
10634 #define _IOCB7 0x80
10636 //==============================================================================
10639 //==============================================================================
10640 // WPUB Bits
10642 extern __at(0x0F5B) __sfr WPUB;
10644 typedef struct
10646 unsigned WPUB0 : 1;
10647 unsigned WPUB1 : 1;
10648 unsigned WPUB2 : 1;
10649 unsigned WPUB3 : 1;
10650 unsigned WPUB4 : 1;
10651 unsigned WPUB5 : 1;
10652 unsigned WPUB6 : 1;
10653 unsigned WPUB7 : 1;
10654 } __WPUBbits_t;
10656 extern __at(0x0F5B) volatile __WPUBbits_t WPUBbits;
10658 #define _WPUB0 0x01
10659 #define _WPUB1 0x02
10660 #define _WPUB2 0x04
10661 #define _WPUB3 0x08
10662 #define _WPUB4 0x10
10663 #define _WPUB5 0x20
10664 #define _WPUB6 0x40
10665 #define _WPUB7 0x80
10667 //==============================================================================
10670 //==============================================================================
10671 // ANCON1 Bits
10673 extern __at(0x0F5C) __sfr ANCON1;
10675 typedef struct
10677 unsigned ANSEL8 : 1;
10678 unsigned ANSEL9 : 1;
10679 unsigned ANSEL10 : 1;
10680 unsigned ANSEL11 : 1;
10681 unsigned ANSEL12 : 1;
10682 unsigned ANSEL13 : 1;
10683 unsigned ANSEL14 : 1;
10684 unsigned : 1;
10685 } __ANCON1bits_t;
10687 extern __at(0x0F5C) volatile __ANCON1bits_t ANCON1bits;
10689 #define _ANSEL8 0x01
10690 #define _ANSEL9 0x02
10691 #define _ANSEL10 0x04
10692 #define _ANSEL11 0x08
10693 #define _ANSEL12 0x10
10694 #define _ANSEL13 0x20
10695 #define _ANSEL14 0x40
10697 //==============================================================================
10700 //==============================================================================
10701 // ANCON0 Bits
10703 extern __at(0x0F5D) __sfr ANCON0;
10705 typedef struct
10707 unsigned ANSEL0 : 1;
10708 unsigned ANSEL1 : 1;
10709 unsigned ANSEL2 : 1;
10710 unsigned ANSEL3 : 1;
10711 unsigned ANSEL4 : 1;
10712 unsigned ANSEL5 : 1;
10713 unsigned ANSEL6 : 1;
10714 unsigned ANSEL7 : 1;
10715 } __ANCON0bits_t;
10717 extern __at(0x0F5D) volatile __ANCON0bits_t ANCON0bits;
10719 #define _ANSEL0 0x01
10720 #define _ANSEL1 0x02
10721 #define _ANSEL2 0x04
10722 #define _ANSEL3 0x08
10723 #define _ANSEL4 0x10
10724 #define _ANSEL5 0x20
10725 #define _ANSEL6 0x40
10726 #define _ANSEL7 0x80
10728 //==============================================================================
10731 //==============================================================================
10732 // CM2CON Bits
10734 extern __at(0x0F5E) __sfr CM2CON;
10736 typedef union
10738 struct
10740 unsigned CCH0 : 1;
10741 unsigned CCH1 : 1;
10742 unsigned CREF : 1;
10743 unsigned EVPOL0 : 1;
10744 unsigned EVPOL1 : 1;
10745 unsigned CPOL : 1;
10746 unsigned COE : 1;
10747 unsigned CON : 1;
10750 struct
10752 unsigned CCH : 2;
10753 unsigned : 6;
10756 struct
10758 unsigned : 3;
10759 unsigned EVPOL : 2;
10760 unsigned : 3;
10762 } __CM2CONbits_t;
10764 extern __at(0x0F5E) volatile __CM2CONbits_t CM2CONbits;
10766 #define _CM2CON_CCH0 0x01
10767 #define _CM2CON_CCH1 0x02
10768 #define _CM2CON_CREF 0x04
10769 #define _CM2CON_EVPOL0 0x08
10770 #define _CM2CON_EVPOL1 0x10
10771 #define _CM2CON_CPOL 0x20
10772 #define _CM2CON_COE 0x40
10773 #define _CM2CON_CON 0x80
10775 //==============================================================================
10778 //==============================================================================
10779 // CM2CON1 Bits
10781 extern __at(0x0F5E) __sfr CM2CON1;
10783 typedef union
10785 struct
10787 unsigned CCH0 : 1;
10788 unsigned CCH1 : 1;
10789 unsigned CREF : 1;
10790 unsigned EVPOL0 : 1;
10791 unsigned EVPOL1 : 1;
10792 unsigned CPOL : 1;
10793 unsigned COE : 1;
10794 unsigned CON : 1;
10797 struct
10799 unsigned CCH : 2;
10800 unsigned : 6;
10803 struct
10805 unsigned : 3;
10806 unsigned EVPOL : 2;
10807 unsigned : 3;
10809 } __CM2CON1bits_t;
10811 extern __at(0x0F5E) volatile __CM2CON1bits_t CM2CON1bits;
10813 #define _CM2CON1_CCH0 0x01
10814 #define _CM2CON1_CCH1 0x02
10815 #define _CM2CON1_CREF 0x04
10816 #define _CM2CON1_EVPOL0 0x08
10817 #define _CM2CON1_EVPOL1 0x10
10818 #define _CM2CON1_CPOL 0x20
10819 #define _CM2CON1_COE 0x40
10820 #define _CM2CON1_CON 0x80
10822 //==============================================================================
10825 //==============================================================================
10826 // CM1CON Bits
10828 extern __at(0x0F5F) __sfr CM1CON;
10830 typedef union
10832 struct
10834 unsigned CCH0 : 1;
10835 unsigned CCH1 : 1;
10836 unsigned CREF : 1;
10837 unsigned EVPOL0 : 1;
10838 unsigned EVPOL1 : 1;
10839 unsigned CPOL : 1;
10840 unsigned COE : 1;
10841 unsigned CON : 1;
10844 struct
10846 unsigned CCH : 2;
10847 unsigned : 6;
10850 struct
10852 unsigned : 3;
10853 unsigned EVPOL : 2;
10854 unsigned : 3;
10856 } __CM1CONbits_t;
10858 extern __at(0x0F5F) volatile __CM1CONbits_t CM1CONbits;
10860 #define _CCH0 0x01
10861 #define _CCH1 0x02
10862 #define _CREF 0x04
10863 #define _EVPOL0 0x08
10864 #define _EVPOL1 0x10
10865 #define _CPOL 0x20
10866 #define _COE 0x40
10867 #define _CON 0x80
10869 //==============================================================================
10872 //==============================================================================
10873 // CM1CON1 Bits
10875 extern __at(0x0F5F) __sfr CM1CON1;
10877 typedef union
10879 struct
10881 unsigned CCH0 : 1;
10882 unsigned CCH1 : 1;
10883 unsigned CREF : 1;
10884 unsigned EVPOL0 : 1;
10885 unsigned EVPOL1 : 1;
10886 unsigned CPOL : 1;
10887 unsigned COE : 1;
10888 unsigned CON : 1;
10891 struct
10893 unsigned CCH : 2;
10894 unsigned : 6;
10897 struct
10899 unsigned : 3;
10900 unsigned EVPOL : 2;
10901 unsigned : 3;
10903 } __CM1CON1bits_t;
10905 extern __at(0x0F5F) volatile __CM1CON1bits_t CM1CON1bits;
10907 #define _CM1CON1_CCH0 0x01
10908 #define _CM1CON1_CCH1 0x02
10909 #define _CM1CON1_CREF 0x04
10910 #define _CM1CON1_EVPOL0 0x08
10911 #define _CM1CON1_EVPOL1 0x10
10912 #define _CM1CON1_CPOL 0x20
10913 #define _CM1CON1_COE 0x40
10914 #define _CM1CON1_CON 0x80
10916 //==============================================================================
10919 //==============================================================================
10920 // RXB0CON Bits
10922 extern __at(0x0F60) __sfr RXB0CON;
10924 typedef union
10926 struct
10928 unsigned FILHIT0 : 1;
10929 unsigned JTOFF_FILHIT1 : 1;
10930 unsigned RB0DBEN_FILHIT2 : 1;
10931 unsigned RXRTRRO_FILHIT3 : 1;
10932 unsigned FILHIT4 : 1;
10933 unsigned RXM0_RTRRO : 1;
10934 unsigned RXM1 : 1;
10935 unsigned RXFUL : 1;
10938 struct
10940 unsigned : 1;
10941 unsigned JTOFF : 1;
10942 unsigned RB0DBEN : 1;
10943 unsigned RXRTRRO : 1;
10944 unsigned : 1;
10945 unsigned RTRRO : 1;
10946 unsigned : 1;
10947 unsigned : 1;
10950 struct
10952 unsigned : 1;
10953 unsigned FILHIT1 : 1;
10954 unsigned FILHIT2 : 1;
10955 unsigned FILHIT3 : 1;
10956 unsigned : 1;
10957 unsigned RXM0 : 1;
10958 unsigned : 1;
10959 unsigned : 1;
10962 struct
10964 unsigned FILHIT : 5;
10965 unsigned : 3;
10968 struct
10970 unsigned : 5;
10971 unsigned RXM : 2;
10972 unsigned : 1;
10974 } __RXB0CONbits_t;
10976 extern __at(0x0F60) volatile __RXB0CONbits_t RXB0CONbits;
10978 #define _RXB0CON_FILHIT0 0x01
10979 #define _RXB0CON_JTOFF_FILHIT1 0x02
10980 #define _RXB0CON_JTOFF 0x02
10981 #define _RXB0CON_FILHIT1 0x02
10982 #define _RXB0CON_RB0DBEN_FILHIT2 0x04
10983 #define _RXB0CON_RB0DBEN 0x04
10984 #define _RXB0CON_FILHIT2 0x04
10985 #define _RXB0CON_RXRTRRO_FILHIT3 0x08
10986 #define _RXB0CON_RXRTRRO 0x08
10987 #define _RXB0CON_FILHIT3 0x08
10988 #define _RXB0CON_FILHIT4 0x10
10989 #define _RXB0CON_RXM0_RTRRO 0x20
10990 #define _RXB0CON_RTRRO 0x20
10991 #define _RXB0CON_RXM0 0x20
10992 #define _RXB0CON_RXM1 0x40
10993 #define _RXB0CON_RXFUL 0x80
10995 //==============================================================================
10998 //==============================================================================
10999 // RXB0SIDH Bits
11001 extern __at(0x0F61) __sfr RXB0SIDH;
11003 typedef struct
11005 unsigned SID3 : 1;
11006 unsigned SID4 : 1;
11007 unsigned SID5 : 1;
11008 unsigned SID6 : 1;
11009 unsigned SID7 : 1;
11010 unsigned SID8 : 1;
11011 unsigned SID9 : 1;
11012 unsigned SID10 : 1;
11013 } __RXB0SIDHbits_t;
11015 extern __at(0x0F61) volatile __RXB0SIDHbits_t RXB0SIDHbits;
11017 #define _RXB0SIDH_SID3 0x01
11018 #define _RXB0SIDH_SID4 0x02
11019 #define _RXB0SIDH_SID5 0x04
11020 #define _RXB0SIDH_SID6 0x08
11021 #define _RXB0SIDH_SID7 0x10
11022 #define _RXB0SIDH_SID8 0x20
11023 #define _RXB0SIDH_SID9 0x40
11024 #define _RXB0SIDH_SID10 0x80
11026 //==============================================================================
11029 //==============================================================================
11030 // RXB0SIDL Bits
11032 extern __at(0x0F62) __sfr RXB0SIDL;
11034 typedef union
11036 struct
11038 unsigned EID16 : 1;
11039 unsigned EID17 : 1;
11040 unsigned : 1;
11041 unsigned EXID : 1;
11042 unsigned SRR : 1;
11043 unsigned SID0 : 1;
11044 unsigned SID1 : 1;
11045 unsigned SID2 : 1;
11048 struct
11050 unsigned : 5;
11051 unsigned SID : 3;
11053 } __RXB0SIDLbits_t;
11055 extern __at(0x0F62) volatile __RXB0SIDLbits_t RXB0SIDLbits;
11057 #define _RXB0SIDL_EID16 0x01
11058 #define _RXB0SIDL_EID17 0x02
11059 #define _RXB0SIDL_EXID 0x08
11060 #define _RXB0SIDL_SRR 0x10
11061 #define _RXB0SIDL_SID0 0x20
11062 #define _RXB0SIDL_SID1 0x40
11063 #define _RXB0SIDL_SID2 0x80
11065 //==============================================================================
11068 //==============================================================================
11069 // RXB0EIDH Bits
11071 extern __at(0x0F63) __sfr RXB0EIDH;
11073 typedef struct
11075 unsigned EID8 : 1;
11076 unsigned EID9 : 1;
11077 unsigned EID10 : 1;
11078 unsigned EID11 : 1;
11079 unsigned EID12 : 1;
11080 unsigned EID13 : 1;
11081 unsigned EID14 : 1;
11082 unsigned EID15 : 1;
11083 } __RXB0EIDHbits_t;
11085 extern __at(0x0F63) volatile __RXB0EIDHbits_t RXB0EIDHbits;
11087 #define _RXB0EIDH_EID8 0x01
11088 #define _RXB0EIDH_EID9 0x02
11089 #define _RXB0EIDH_EID10 0x04
11090 #define _RXB0EIDH_EID11 0x08
11091 #define _RXB0EIDH_EID12 0x10
11092 #define _RXB0EIDH_EID13 0x20
11093 #define _RXB0EIDH_EID14 0x40
11094 #define _RXB0EIDH_EID15 0x80
11096 //==============================================================================
11099 //==============================================================================
11100 // RXB0EIDL Bits
11102 extern __at(0x0F64) __sfr RXB0EIDL;
11104 typedef struct
11106 unsigned EID0 : 1;
11107 unsigned EID1 : 1;
11108 unsigned EID2 : 1;
11109 unsigned EID3 : 1;
11110 unsigned EID4 : 1;
11111 unsigned EID5 : 1;
11112 unsigned EID6 : 1;
11113 unsigned EID7 : 1;
11114 } __RXB0EIDLbits_t;
11116 extern __at(0x0F64) volatile __RXB0EIDLbits_t RXB0EIDLbits;
11118 #define _RXB0EIDL_EID0 0x01
11119 #define _RXB0EIDL_EID1 0x02
11120 #define _RXB0EIDL_EID2 0x04
11121 #define _RXB0EIDL_EID3 0x08
11122 #define _RXB0EIDL_EID4 0x10
11123 #define _RXB0EIDL_EID5 0x20
11124 #define _RXB0EIDL_EID6 0x40
11125 #define _RXB0EIDL_EID7 0x80
11127 //==============================================================================
11130 //==============================================================================
11131 // RXB0DLC Bits
11133 extern __at(0x0F65) __sfr RXB0DLC;
11135 typedef union
11137 struct
11139 unsigned DLC0 : 1;
11140 unsigned DLC1 : 1;
11141 unsigned DLC2 : 1;
11142 unsigned DLC3 : 1;
11143 unsigned RB0 : 1;
11144 unsigned RB1 : 1;
11145 unsigned RXRTR : 1;
11146 unsigned : 1;
11149 struct
11151 unsigned DLC : 4;
11152 unsigned : 4;
11155 struct
11157 unsigned : 4;
11158 unsigned RB : 2;
11159 unsigned : 2;
11161 } __RXB0DLCbits_t;
11163 extern __at(0x0F65) volatile __RXB0DLCbits_t RXB0DLCbits;
11165 #define _RXB0DLC_DLC0 0x01
11166 #define _RXB0DLC_DLC1 0x02
11167 #define _RXB0DLC_DLC2 0x04
11168 #define _RXB0DLC_DLC3 0x08
11169 #define _RXB0DLC_RB0 0x10
11170 #define _RXB0DLC_RB1 0x20
11171 #define _RXB0DLC_RXRTR 0x40
11173 //==============================================================================
11176 //==============================================================================
11177 // RXB0D0 Bits
11179 extern __at(0x0F66) __sfr RXB0D0;
11181 typedef struct
11183 unsigned RXB0D00 : 1;
11184 unsigned RXB0D01 : 1;
11185 unsigned RXB0D02 : 1;
11186 unsigned RXB0D03 : 1;
11187 unsigned RXB0D04 : 1;
11188 unsigned RXB0D05 : 1;
11189 unsigned RXB0D06 : 1;
11190 unsigned RXB0D07 : 1;
11191 } __RXB0D0bits_t;
11193 extern __at(0x0F66) volatile __RXB0D0bits_t RXB0D0bits;
11195 #define _RXB0D00 0x01
11196 #define _RXB0D01 0x02
11197 #define _RXB0D02 0x04
11198 #define _RXB0D03 0x08
11199 #define _RXB0D04 0x10
11200 #define _RXB0D05 0x20
11201 #define _RXB0D06 0x40
11202 #define _RXB0D07 0x80
11204 //==============================================================================
11207 //==============================================================================
11208 // RXB0D1 Bits
11210 extern __at(0x0F67) __sfr RXB0D1;
11212 typedef struct
11214 unsigned RXB0D10 : 1;
11215 unsigned RXB0D11 : 1;
11216 unsigned RXB0D12 : 1;
11217 unsigned RXB0D13 : 1;
11218 unsigned RXB0D14 : 1;
11219 unsigned RXB0D15 : 1;
11220 unsigned RXB0D16 : 1;
11221 unsigned RXB0D17 : 1;
11222 } __RXB0D1bits_t;
11224 extern __at(0x0F67) volatile __RXB0D1bits_t RXB0D1bits;
11226 #define _RXB0D10 0x01
11227 #define _RXB0D11 0x02
11228 #define _RXB0D12 0x04
11229 #define _RXB0D13 0x08
11230 #define _RXB0D14 0x10
11231 #define _RXB0D15 0x20
11232 #define _RXB0D16 0x40
11233 #define _RXB0D17 0x80
11235 //==============================================================================
11238 //==============================================================================
11239 // RXB0D2 Bits
11241 extern __at(0x0F68) __sfr RXB0D2;
11243 typedef struct
11245 unsigned RXB0D20 : 1;
11246 unsigned RXB0D21 : 1;
11247 unsigned RXB0D22 : 1;
11248 unsigned RXB0D23 : 1;
11249 unsigned RXB0D24 : 1;
11250 unsigned RXB0D25 : 1;
11251 unsigned RXB0D26 : 1;
11252 unsigned RXB0D27 : 1;
11253 } __RXB0D2bits_t;
11255 extern __at(0x0F68) volatile __RXB0D2bits_t RXB0D2bits;
11257 #define _RXB0D20 0x01
11258 #define _RXB0D21 0x02
11259 #define _RXB0D22 0x04
11260 #define _RXB0D23 0x08
11261 #define _RXB0D24 0x10
11262 #define _RXB0D25 0x20
11263 #define _RXB0D26 0x40
11264 #define _RXB0D27 0x80
11266 //==============================================================================
11269 //==============================================================================
11270 // RXB0D3 Bits
11272 extern __at(0x0F69) __sfr RXB0D3;
11274 typedef struct
11276 unsigned RXB0D30 : 1;
11277 unsigned RXB0D31 : 1;
11278 unsigned RXB0D32 : 1;
11279 unsigned RXB0D33 : 1;
11280 unsigned RXB0D34 : 1;
11281 unsigned RXB0D35 : 1;
11282 unsigned RXB0D36 : 1;
11283 unsigned RXB0D37 : 1;
11284 } __RXB0D3bits_t;
11286 extern __at(0x0F69) volatile __RXB0D3bits_t RXB0D3bits;
11288 #define _RXB0D30 0x01
11289 #define _RXB0D31 0x02
11290 #define _RXB0D32 0x04
11291 #define _RXB0D33 0x08
11292 #define _RXB0D34 0x10
11293 #define _RXB0D35 0x20
11294 #define _RXB0D36 0x40
11295 #define _RXB0D37 0x80
11297 //==============================================================================
11300 //==============================================================================
11301 // RXB0D4 Bits
11303 extern __at(0x0F6A) __sfr RXB0D4;
11305 typedef struct
11307 unsigned RXB0D40 : 1;
11308 unsigned RXB0D41 : 1;
11309 unsigned RXB0D42 : 1;
11310 unsigned RXB0D43 : 1;
11311 unsigned RXB0D44 : 1;
11312 unsigned RXB0D45 : 1;
11313 unsigned RXB0D46 : 1;
11314 unsigned RXB0D47 : 1;
11315 } __RXB0D4bits_t;
11317 extern __at(0x0F6A) volatile __RXB0D4bits_t RXB0D4bits;
11319 #define _RXB0D40 0x01
11320 #define _RXB0D41 0x02
11321 #define _RXB0D42 0x04
11322 #define _RXB0D43 0x08
11323 #define _RXB0D44 0x10
11324 #define _RXB0D45 0x20
11325 #define _RXB0D46 0x40
11326 #define _RXB0D47 0x80
11328 //==============================================================================
11331 //==============================================================================
11332 // RXB0D5 Bits
11334 extern __at(0x0F6B) __sfr RXB0D5;
11336 typedef struct
11338 unsigned RXB0D50 : 1;
11339 unsigned RXB0D51 : 1;
11340 unsigned RXB0D52 : 1;
11341 unsigned RXB0D53 : 1;
11342 unsigned RXB0D54 : 1;
11343 unsigned RXB0D55 : 1;
11344 unsigned RXB0D56 : 1;
11345 unsigned RXB0D57 : 1;
11346 } __RXB0D5bits_t;
11348 extern __at(0x0F6B) volatile __RXB0D5bits_t RXB0D5bits;
11350 #define _RXB0D50 0x01
11351 #define _RXB0D51 0x02
11352 #define _RXB0D52 0x04
11353 #define _RXB0D53 0x08
11354 #define _RXB0D54 0x10
11355 #define _RXB0D55 0x20
11356 #define _RXB0D56 0x40
11357 #define _RXB0D57 0x80
11359 //==============================================================================
11362 //==============================================================================
11363 // RXB0D6 Bits
11365 extern __at(0x0F6C) __sfr RXB0D6;
11367 typedef struct
11369 unsigned RXB0D60 : 1;
11370 unsigned RXB0D61 : 1;
11371 unsigned RXB0D62 : 1;
11372 unsigned RXB0D63 : 1;
11373 unsigned RXB0D64 : 1;
11374 unsigned RXB0D65 : 1;
11375 unsigned RXB0D66 : 1;
11376 unsigned RXB0D67 : 1;
11377 } __RXB0D6bits_t;
11379 extern __at(0x0F6C) volatile __RXB0D6bits_t RXB0D6bits;
11381 #define _RXB0D60 0x01
11382 #define _RXB0D61 0x02
11383 #define _RXB0D62 0x04
11384 #define _RXB0D63 0x08
11385 #define _RXB0D64 0x10
11386 #define _RXB0D65 0x20
11387 #define _RXB0D66 0x40
11388 #define _RXB0D67 0x80
11390 //==============================================================================
11393 //==============================================================================
11394 // RXB0D7 Bits
11396 extern __at(0x0F6D) __sfr RXB0D7;
11398 typedef struct
11400 unsigned RXB0D70 : 1;
11401 unsigned RXB0D71 : 1;
11402 unsigned RXB0D72 : 1;
11403 unsigned RXB0D73 : 1;
11404 unsigned RXB0D74 : 1;
11405 unsigned RXB0D75 : 1;
11406 unsigned RXB0D76 : 1;
11407 unsigned RXB0D77 : 1;
11408 } __RXB0D7bits_t;
11410 extern __at(0x0F6D) volatile __RXB0D7bits_t RXB0D7bits;
11412 #define _RXB0D70 0x01
11413 #define _RXB0D71 0x02
11414 #define _RXB0D72 0x04
11415 #define _RXB0D73 0x08
11416 #define _RXB0D74 0x10
11417 #define _RXB0D75 0x20
11418 #define _RXB0D76 0x40
11419 #define _RXB0D77 0x80
11421 //==============================================================================
11424 //==============================================================================
11425 // CANSTAT Bits
11427 extern __at(0x0F6E) __sfr CANSTAT;
11429 typedef union
11431 struct
11433 unsigned EICODE0 : 1;
11434 unsigned EICODE1_ICODE0 : 1;
11435 unsigned EICODE2_ICODE1 : 1;
11436 unsigned EICODE3_ICODE2 : 1;
11437 unsigned EICODE4 : 1;
11438 unsigned OPMODE0 : 1;
11439 unsigned OPMODE1 : 1;
11440 unsigned OPMODE2 : 1;
11443 struct
11445 unsigned : 1;
11446 unsigned EICODE1 : 1;
11447 unsigned EICODE2 : 1;
11448 unsigned EICODE3 : 1;
11449 unsigned : 1;
11450 unsigned : 1;
11451 unsigned : 1;
11452 unsigned : 1;
11455 struct
11457 unsigned : 1;
11458 unsigned ICODE0 : 1;
11459 unsigned ICODE1 : 1;
11460 unsigned ICODE2 : 1;
11461 unsigned : 1;
11462 unsigned : 1;
11463 unsigned : 1;
11464 unsigned : 1;
11467 struct
11469 unsigned EICODE : 5;
11470 unsigned : 3;
11473 struct
11475 unsigned : 1;
11476 unsigned ICODE : 3;
11477 unsigned : 4;
11480 struct
11482 unsigned : 5;
11483 unsigned OPMODE : 3;
11485 } __CANSTATbits_t;
11487 extern __at(0x0F6E) volatile __CANSTATbits_t CANSTATbits;
11489 #define _EICODE0 0x01
11490 #define _EICODE1_ICODE0 0x02
11491 #define _EICODE1 0x02
11492 #define _ICODE0 0x02
11493 #define _EICODE2_ICODE1 0x04
11494 #define _EICODE2 0x04
11495 #define _ICODE1 0x04
11496 #define _EICODE3_ICODE2 0x08
11497 #define _EICODE3 0x08
11498 #define _ICODE2 0x08
11499 #define _EICODE4 0x10
11500 #define _OPMODE0 0x20
11501 #define _OPMODE1 0x40
11502 #define _OPMODE2 0x80
11504 //==============================================================================
11507 //==============================================================================
11508 // CANCON Bits
11510 extern __at(0x0F6F) __sfr CANCON;
11512 typedef union
11514 struct
11516 unsigned FP0 : 1;
11517 unsigned WIN0_FP1 : 1;
11518 unsigned WIN1_FP2 : 1;
11519 unsigned WIN2_FP3 : 1;
11520 unsigned ABAT : 1;
11521 unsigned : 1;
11522 unsigned : 1;
11523 unsigned : 1;
11526 struct
11528 unsigned : 1;
11529 unsigned WIN0 : 1;
11530 unsigned WIN1 : 1;
11531 unsigned WIN2 : 1;
11532 unsigned : 1;
11533 unsigned : 1;
11534 unsigned : 1;
11535 unsigned : 1;
11538 struct
11540 unsigned : 1;
11541 unsigned FP1 : 1;
11542 unsigned FP2 : 1;
11543 unsigned FP3 : 1;
11544 unsigned : 1;
11545 unsigned : 1;
11546 unsigned : 1;
11547 unsigned : 1;
11550 struct
11552 unsigned FP : 4;
11553 unsigned : 4;
11556 struct
11558 unsigned : 1;
11559 unsigned WIN : 3;
11560 unsigned : 4;
11562 } __CANCONbits_t;
11564 extern __at(0x0F6F) volatile __CANCONbits_t CANCONbits;
11566 #define _FP0 0x01
11567 #define _WIN0_FP1 0x02
11568 #define _WIN0 0x02
11569 #define _FP1 0x02
11570 #define _WIN1_FP2 0x04
11571 #define _WIN1 0x04
11572 #define _FP2 0x04
11573 #define _WIN2_FP3 0x08
11574 #define _WIN2 0x08
11575 #define _FP3 0x08
11576 #define _ABAT 0x10
11578 //==============================================================================
11581 //==============================================================================
11582 // CIOCON Bits
11584 extern __at(0x0F70) __sfr CIOCON;
11586 typedef struct
11588 unsigned CLKSEL : 1;
11589 unsigned : 1;
11590 unsigned : 1;
11591 unsigned : 1;
11592 unsigned CANCAP : 1;
11593 unsigned ENDRHI : 1;
11594 unsigned TX2EN : 1;
11595 unsigned TX2SRC : 1;
11596 } __CIOCONbits_t;
11598 extern __at(0x0F70) volatile __CIOCONbits_t CIOCONbits;
11600 #define _CLKSEL 0x01
11601 #define _CANCAP 0x10
11602 #define _ENDRHI 0x20
11603 #define _TX2EN 0x40
11604 #define _TX2SRC 0x80
11606 //==============================================================================
11609 //==============================================================================
11610 // COMSTAT Bits
11612 extern __at(0x0F71) __sfr COMSTAT;
11614 typedef union
11616 struct
11618 unsigned EWARN : 1;
11619 unsigned RXWARN : 1;
11620 unsigned TXWARN : 1;
11621 unsigned RXBP : 1;
11622 unsigned TXBP : 1;
11623 unsigned TXBO : 1;
11624 unsigned RXB1OVFL : 1;
11625 unsigned RXB0OVFL : 1;
11628 struct
11630 unsigned : 1;
11631 unsigned : 1;
11632 unsigned : 1;
11633 unsigned : 1;
11634 unsigned : 1;
11635 unsigned : 1;
11636 unsigned : 1;
11637 unsigned NOT_FIFOEMPTY : 1;
11639 } __COMSTATbits_t;
11641 extern __at(0x0F71) volatile __COMSTATbits_t COMSTATbits;
11643 #define _EWARN 0x01
11644 #define _RXWARN 0x02
11645 #define _TXWARN 0x04
11646 #define _RXBP 0x08
11647 #define _TXBP 0x10
11648 #define _TXBO 0x20
11649 #define _RXB1OVFL 0x40
11650 #define _RXB0OVFL 0x80
11651 #define _NOT_FIFOEMPTY 0x80
11653 //==============================================================================
11656 //==============================================================================
11657 // ECANCON Bits
11659 extern __at(0x0F72) __sfr ECANCON;
11661 typedef union
11663 struct
11665 unsigned EWIN0 : 1;
11666 unsigned EWIN1 : 1;
11667 unsigned EWIN2 : 1;
11668 unsigned EWIN3 : 1;
11669 unsigned EWIN4 : 1;
11670 unsigned FIFOWM : 1;
11671 unsigned MDSEL0 : 1;
11672 unsigned MDSEL1 : 1;
11675 struct
11677 unsigned EWIN : 5;
11678 unsigned : 3;
11681 struct
11683 unsigned : 6;
11684 unsigned MDSEL : 2;
11686 } __ECANCONbits_t;
11688 extern __at(0x0F72) volatile __ECANCONbits_t ECANCONbits;
11690 #define _EWIN0 0x01
11691 #define _EWIN1 0x02
11692 #define _EWIN2 0x04
11693 #define _EWIN3 0x08
11694 #define _EWIN4 0x10
11695 #define _FIFOWM 0x20
11696 #define _MDSEL0 0x40
11697 #define _MDSEL1 0x80
11699 //==============================================================================
11701 extern __at(0x0F73) __sfr EEDATA;
11702 extern __at(0x0F74) __sfr EEADR;
11703 extern __at(0x0F75) __sfr EEADRH;
11705 //==============================================================================
11706 // PIE5 Bits
11708 extern __at(0x0F76) __sfr PIE5;
11710 typedef union
11712 struct
11714 unsigned RXB0IE : 1;
11715 unsigned RXB1IE : 1;
11716 unsigned TXB0IE : 1;
11717 unsigned TXB1IE : 1;
11718 unsigned TXB2IE : 1;
11719 unsigned ERRIE : 1;
11720 unsigned WAKIE : 1;
11721 unsigned IRXIE : 1;
11724 struct
11726 unsigned FIFOWMIE : 1;
11727 unsigned RXBnIE : 1;
11728 unsigned : 1;
11729 unsigned : 1;
11730 unsigned TXBnIE : 1;
11731 unsigned : 1;
11732 unsigned : 1;
11733 unsigned : 1;
11735 } __PIE5bits_t;
11737 extern __at(0x0F76) volatile __PIE5bits_t PIE5bits;
11739 #define _PIE5_RXB0IE 0x01
11740 #define _PIE5_FIFOWMIE 0x01
11741 #define _PIE5_RXB1IE 0x02
11742 #define _PIE5_RXBnIE 0x02
11743 #define _PIE5_TXB0IE 0x04
11744 #define _PIE5_TXB1IE 0x08
11745 #define _PIE5_TXB2IE 0x10
11746 #define _PIE5_TXBnIE 0x10
11747 #define _PIE5_ERRIE 0x20
11748 #define _PIE5_WAKIE 0x40
11749 #define _PIE5_IRXIE 0x80
11751 //==============================================================================
11754 //==============================================================================
11755 // PIR5 Bits
11757 extern __at(0x0F77) __sfr PIR5;
11759 typedef union
11761 struct
11763 unsigned RXB0IF : 1;
11764 unsigned RXB1IF : 1;
11765 unsigned TXB0IF : 1;
11766 unsigned TXB1IF : 1;
11767 unsigned TXB2IF : 1;
11768 unsigned ERRIF : 1;
11769 unsigned WAKIF : 1;
11770 unsigned IRXIF : 1;
11773 struct
11775 unsigned FIFOWMIF : 1;
11776 unsigned RXBnIF : 1;
11777 unsigned : 1;
11778 unsigned : 1;
11779 unsigned TXBnIF : 1;
11780 unsigned : 1;
11781 unsigned : 1;
11782 unsigned : 1;
11784 } __PIR5bits_t;
11786 extern __at(0x0F77) volatile __PIR5bits_t PIR5bits;
11788 #define _RXB0IF 0x01
11789 #define _FIFOWMIF 0x01
11790 #define _RXB1IF 0x02
11791 #define _RXBnIF 0x02
11792 #define _TXB0IF 0x04
11793 #define _TXB1IF 0x08
11794 #define _TXB2IF 0x10
11795 #define _TXBnIF 0x10
11796 #define _ERRIF 0x20
11797 #define _WAKIF 0x40
11798 #define _IRXIF 0x80
11800 //==============================================================================
11803 //==============================================================================
11804 // IPR5 Bits
11806 extern __at(0x0F78) __sfr IPR5;
11808 typedef union
11810 struct
11812 unsigned RXB0IP : 1;
11813 unsigned RXB1IP : 1;
11814 unsigned TXB0IP : 1;
11815 unsigned TXB1IP : 1;
11816 unsigned TXB2IP : 1;
11817 unsigned ERRIP : 1;
11818 unsigned WAKIP : 1;
11819 unsigned IRXIP : 1;
11822 struct
11824 unsigned FIFOWMIP : 1;
11825 unsigned RXBnIP : 1;
11826 unsigned : 1;
11827 unsigned : 1;
11828 unsigned TXBnIP : 1;
11829 unsigned : 1;
11830 unsigned : 1;
11831 unsigned : 1;
11833 } __IPR5bits_t;
11835 extern __at(0x0F78) volatile __IPR5bits_t IPR5bits;
11837 #define _RXB0IP 0x01
11838 #define _FIFOWMIP 0x01
11839 #define _RXB1IP 0x02
11840 #define _RXBnIP 0x02
11841 #define _TXB0IP 0x04
11842 #define _TXB1IP 0x08
11843 #define _TXB2IP 0x10
11844 #define _TXBnIP 0x10
11845 #define _ERRIP 0x20
11846 #define _WAKIP 0x40
11847 #define _IRXIP 0x80
11849 //==============================================================================
11851 extern __at(0x0F79) __sfr TXREG2;
11852 extern __at(0x0F7A) __sfr RCREG2;
11853 extern __at(0x0F7B) __sfr SPBRG2;
11854 extern __at(0x0F7C) __sfr SPBRGH2;
11855 extern __at(0x0F7D) __sfr SPBRGH1;
11856 extern __at(0x0F7E) __sfr EECON2;
11858 //==============================================================================
11859 // EECON1 Bits
11861 extern __at(0x0F7F) __sfr EECON1;
11863 typedef struct
11865 unsigned RD : 1;
11866 unsigned WR : 1;
11867 unsigned WREN : 1;
11868 unsigned WRERR : 1;
11869 unsigned FREE : 1;
11870 unsigned : 1;
11871 unsigned CFGS : 1;
11872 unsigned EEPGD : 1;
11873 } __EECON1bits_t;
11875 extern __at(0x0F7F) volatile __EECON1bits_t EECON1bits;
11877 #define _RD 0x01
11878 #define _WR 0x02
11879 #define _WREN 0x04
11880 #define _WRERR 0x08
11881 #define _FREE 0x10
11882 #define _CFGS 0x40
11883 #define _EEPGD 0x80
11885 //==============================================================================
11888 //==============================================================================
11889 // PORTA Bits
11891 extern __at(0x0F80) __sfr PORTA;
11893 typedef struct
11895 unsigned RA0 : 1;
11896 unsigned RA1 : 1;
11897 unsigned RA2 : 1;
11898 unsigned RA3 : 1;
11899 unsigned : 1;
11900 unsigned RA5 : 1;
11901 unsigned RA6 : 1;
11902 unsigned RA7 : 1;
11903 } __PORTAbits_t;
11905 extern __at(0x0F80) volatile __PORTAbits_t PORTAbits;
11907 #define _RA0 0x01
11908 #define _RA1 0x02
11909 #define _RA2 0x04
11910 #define _RA3 0x08
11911 #define _RA5 0x20
11912 #define _RA6 0x40
11913 #define _RA7 0x80
11915 //==============================================================================
11918 //==============================================================================
11919 // PORTB Bits
11921 extern __at(0x0F81) __sfr PORTB;
11923 typedef struct
11925 unsigned RB0 : 1;
11926 unsigned RB1 : 1;
11927 unsigned RB2 : 1;
11928 unsigned RB3 : 1;
11929 unsigned RB4 : 1;
11930 unsigned RB5 : 1;
11931 unsigned RB6 : 1;
11932 unsigned RB7 : 1;
11933 } __PORTBbits_t;
11935 extern __at(0x0F81) volatile __PORTBbits_t PORTBbits;
11937 #define _PORTB_RB0 0x01
11938 #define _PORTB_RB1 0x02
11939 #define _PORTB_RB2 0x04
11940 #define _PORTB_RB3 0x08
11941 #define _PORTB_RB4 0x10
11942 #define _PORTB_RB5 0x20
11943 #define _PORTB_RB6 0x40
11944 #define _PORTB_RB7 0x80
11946 //==============================================================================
11949 //==============================================================================
11950 // PORTC Bits
11952 extern __at(0x0F82) __sfr PORTC;
11954 typedef struct
11956 unsigned RC0 : 1;
11957 unsigned RC1 : 1;
11958 unsigned RC2 : 1;
11959 unsigned RC3 : 1;
11960 unsigned RC4 : 1;
11961 unsigned RC5 : 1;
11962 unsigned RC6 : 1;
11963 unsigned RC7 : 1;
11964 } __PORTCbits_t;
11966 extern __at(0x0F82) volatile __PORTCbits_t PORTCbits;
11968 #define _RC0 0x01
11969 #define _RC1 0x02
11970 #define _RC2 0x04
11971 #define _RC3 0x08
11972 #define _RC4 0x10
11973 #define _RC5 0x20
11974 #define _RC6 0x40
11975 #define _RC7 0x80
11977 //==============================================================================
11980 //==============================================================================
11981 // PORTD Bits
11983 extern __at(0x0F83) __sfr PORTD;
11985 typedef struct
11987 unsigned RD0 : 1;
11988 unsigned RD1 : 1;
11989 unsigned RD2 : 1;
11990 unsigned RD3 : 1;
11991 unsigned RD4 : 1;
11992 unsigned RD5 : 1;
11993 unsigned RD6 : 1;
11994 unsigned RD7 : 1;
11995 } __PORTDbits_t;
11997 extern __at(0x0F83) volatile __PORTDbits_t PORTDbits;
11999 #define _RD0 0x01
12000 #define _RD1 0x02
12001 #define _RD2 0x04
12002 #define _RD3 0x08
12003 #define _RD4 0x10
12004 #define _RD5 0x20
12005 #define _RD6 0x40
12006 #define _RD7 0x80
12008 //==============================================================================
12011 //==============================================================================
12012 // PORTE Bits
12014 extern __at(0x0F84) __sfr PORTE;
12016 typedef union
12018 struct
12020 unsigned RE0 : 1;
12021 unsigned RE1 : 1;
12022 unsigned RE2 : 1;
12023 unsigned RE3 : 1;
12024 unsigned : 1;
12025 unsigned : 1;
12026 unsigned : 1;
12027 unsigned : 1;
12030 struct
12032 unsigned RE : 4;
12033 unsigned : 4;
12035 } __PORTEbits_t;
12037 extern __at(0x0F84) volatile __PORTEbits_t PORTEbits;
12039 #define _RE0 0x01
12040 #define _RE1 0x02
12041 #define _RE2 0x04
12042 #define _RE3 0x08
12044 //==============================================================================
12046 extern __at(0x0F87) __sfr TMR4;
12048 //==============================================================================
12049 // T4CON Bits
12051 extern __at(0x0F88) __sfr T4CON;
12053 typedef union
12055 struct
12057 unsigned T4CKPS0 : 1;
12058 unsigned T4CKPS1 : 1;
12059 unsigned TMR4ON : 1;
12060 unsigned T4OUTPS0 : 1;
12061 unsigned T4OUTPS1 : 1;
12062 unsigned T4OUTPS2 : 1;
12063 unsigned T4OUTPS3 : 1;
12064 unsigned : 1;
12067 struct
12069 unsigned T4CKPS : 2;
12070 unsigned : 6;
12073 struct
12075 unsigned : 3;
12076 unsigned T4OUTPS : 4;
12077 unsigned : 1;
12079 } __T4CONbits_t;
12081 extern __at(0x0F88) volatile __T4CONbits_t T4CONbits;
12083 #define _T4CKPS0 0x01
12084 #define _T4CKPS1 0x02
12085 #define _TMR4ON 0x04
12086 #define _T4OUTPS0 0x08
12087 #define _T4OUTPS1 0x10
12088 #define _T4OUTPS2 0x20
12089 #define _T4OUTPS3 0x40
12091 //==============================================================================
12094 //==============================================================================
12095 // LATA Bits
12097 extern __at(0x0F89) __sfr LATA;
12099 typedef struct
12101 unsigned LATA0 : 1;
12102 unsigned LATA1 : 1;
12103 unsigned LATA2 : 1;
12104 unsigned LATA3 : 1;
12105 unsigned : 1;
12106 unsigned LATA5 : 1;
12107 unsigned LATA6 : 1;
12108 unsigned LATA7 : 1;
12109 } __LATAbits_t;
12111 extern __at(0x0F89) volatile __LATAbits_t LATAbits;
12113 #define _LATA0 0x01
12114 #define _LATA1 0x02
12115 #define _LATA2 0x04
12116 #define _LATA3 0x08
12117 #define _LATA5 0x20
12118 #define _LATA6 0x40
12119 #define _LATA7 0x80
12121 //==============================================================================
12124 //==============================================================================
12125 // LATB Bits
12127 extern __at(0x0F8A) __sfr LATB;
12129 typedef struct
12131 unsigned LATB0 : 1;
12132 unsigned LATB1 : 1;
12133 unsigned LATB2 : 1;
12134 unsigned LATB3 : 1;
12135 unsigned LATB4 : 1;
12136 unsigned LATB5 : 1;
12137 unsigned LATB6 : 1;
12138 unsigned LATB7 : 1;
12139 } __LATBbits_t;
12141 extern __at(0x0F8A) volatile __LATBbits_t LATBbits;
12143 #define _LATB0 0x01
12144 #define _LATB1 0x02
12145 #define _LATB2 0x04
12146 #define _LATB3 0x08
12147 #define _LATB4 0x10
12148 #define _LATB5 0x20
12149 #define _LATB6 0x40
12150 #define _LATB7 0x80
12152 //==============================================================================
12155 //==============================================================================
12156 // LATC Bits
12158 extern __at(0x0F8B) __sfr LATC;
12160 typedef struct
12162 unsigned LATC0 : 1;
12163 unsigned LATC1 : 1;
12164 unsigned LATC2 : 1;
12165 unsigned LATC3 : 1;
12166 unsigned LATC4 : 1;
12167 unsigned LATC5 : 1;
12168 unsigned LATC6 : 1;
12169 unsigned LATC7 : 1;
12170 } __LATCbits_t;
12172 extern __at(0x0F8B) volatile __LATCbits_t LATCbits;
12174 #define _LATC0 0x01
12175 #define _LATC1 0x02
12176 #define _LATC2 0x04
12177 #define _LATC3 0x08
12178 #define _LATC4 0x10
12179 #define _LATC5 0x20
12180 #define _LATC6 0x40
12181 #define _LATC7 0x80
12183 //==============================================================================
12186 //==============================================================================
12187 // LATD Bits
12189 extern __at(0x0F8C) __sfr LATD;
12191 typedef struct
12193 unsigned LATD0 : 1;
12194 unsigned LATD1 : 1;
12195 unsigned LATD2 : 1;
12196 unsigned LATD3 : 1;
12197 unsigned LATD4 : 1;
12198 unsigned LATD5 : 1;
12199 unsigned LATD6 : 1;
12200 unsigned LATD7 : 1;
12201 } __LATDbits_t;
12203 extern __at(0x0F8C) volatile __LATDbits_t LATDbits;
12205 #define _LATD0 0x01
12206 #define _LATD1 0x02
12207 #define _LATD2 0x04
12208 #define _LATD3 0x08
12209 #define _LATD4 0x10
12210 #define _LATD5 0x20
12211 #define _LATD6 0x40
12212 #define _LATD7 0x80
12214 //==============================================================================
12217 //==============================================================================
12218 // LATE Bits
12220 extern __at(0x0F8D) __sfr LATE;
12222 typedef union
12224 struct
12226 unsigned LATE0 : 1;
12227 unsigned LATE1 : 1;
12228 unsigned LATE2 : 1;
12229 unsigned : 1;
12230 unsigned : 1;
12231 unsigned : 1;
12232 unsigned : 1;
12233 unsigned : 1;
12236 struct
12238 unsigned LATE : 3;
12239 unsigned : 5;
12241 } __LATEbits_t;
12243 extern __at(0x0F8D) volatile __LATEbits_t LATEbits;
12245 #define _LATE0 0x01
12246 #define _LATE1 0x02
12247 #define _LATE2 0x04
12249 //==============================================================================
12252 //==============================================================================
12253 // SLRCON Bits
12255 extern __at(0x0F90) __sfr SLRCON;
12257 typedef struct
12259 unsigned SLRA : 1;
12260 unsigned SLRB : 1;
12261 unsigned SLRC : 1;
12262 unsigned SLRD : 1;
12263 unsigned SLRE : 1;
12264 unsigned : 1;
12265 unsigned : 1;
12266 unsigned : 1;
12267 } __SLRCONbits_t;
12269 extern __at(0x0F90) volatile __SLRCONbits_t SLRCONbits;
12271 #define _SLRA 0x01
12272 #define _SLRB 0x02
12273 #define _SLRC 0x04
12274 #define _SLRD 0x08
12275 #define _SLRE 0x10
12277 //==============================================================================
12280 //==============================================================================
12281 // ODCON Bits
12283 extern __at(0x0F91) __sfr ODCON;
12285 typedef struct
12287 unsigned U1OD : 1;
12288 unsigned U2OD : 1;
12289 unsigned CCP1OD : 1;
12290 unsigned CCP2OD : 1;
12291 unsigned CCP3OD : 1;
12292 unsigned CCP4OD : 1;
12293 unsigned CCP5OD : 1;
12294 unsigned SSPOD : 1;
12295 } __ODCONbits_t;
12297 extern __at(0x0F91) volatile __ODCONbits_t ODCONbits;
12299 #define _U1OD 0x01
12300 #define _U2OD 0x02
12301 #define _CCP1OD 0x04
12302 #define _CCP2OD 0x08
12303 #define _CCP3OD 0x10
12304 #define _CCP4OD 0x20
12305 #define _CCP5OD 0x40
12306 #define _SSPOD 0x80
12308 //==============================================================================
12311 //==============================================================================
12312 // TRISA Bits
12314 extern __at(0x0F92) __sfr TRISA;
12316 typedef struct
12318 unsigned TRISA0 : 1;
12319 unsigned TRISA1 : 1;
12320 unsigned TRISA2 : 1;
12321 unsigned TRISA3 : 1;
12322 unsigned : 1;
12323 unsigned TRISA5 : 1;
12324 unsigned TRISA6 : 1;
12325 unsigned TRISA7 : 1;
12326 } __TRISAbits_t;
12328 extern __at(0x0F92) volatile __TRISAbits_t TRISAbits;
12330 #define _TRISA0 0x01
12331 #define _TRISA1 0x02
12332 #define _TRISA2 0x04
12333 #define _TRISA3 0x08
12334 #define _TRISA5 0x20
12335 #define _TRISA6 0x40
12336 #define _TRISA7 0x80
12338 //==============================================================================
12341 //==============================================================================
12342 // TRISB Bits
12344 extern __at(0x0F93) __sfr TRISB;
12346 typedef struct
12348 unsigned TRISB0 : 1;
12349 unsigned TRISB1 : 1;
12350 unsigned TRISB2 : 1;
12351 unsigned TRISB3 : 1;
12352 unsigned TRISB4 : 1;
12353 unsigned TRISB5 : 1;
12354 unsigned TRISB6 : 1;
12355 unsigned TRISB7 : 1;
12356 } __TRISBbits_t;
12358 extern __at(0x0F93) volatile __TRISBbits_t TRISBbits;
12360 #define _TRISB0 0x01
12361 #define _TRISB1 0x02
12362 #define _TRISB2 0x04
12363 #define _TRISB3 0x08
12364 #define _TRISB4 0x10
12365 #define _TRISB5 0x20
12366 #define _TRISB6 0x40
12367 #define _TRISB7 0x80
12369 //==============================================================================
12372 //==============================================================================
12373 // TRISC Bits
12375 extern __at(0x0F94) __sfr TRISC;
12377 typedef struct
12379 unsigned TRISC0 : 1;
12380 unsigned TRISC1 : 1;
12381 unsigned TRISC2 : 1;
12382 unsigned TRISC3 : 1;
12383 unsigned TRISC4 : 1;
12384 unsigned TRISC5 : 1;
12385 unsigned TRISC6 : 1;
12386 unsigned TRISC7 : 1;
12387 } __TRISCbits_t;
12389 extern __at(0x0F94) volatile __TRISCbits_t TRISCbits;
12391 #define _TRISC0 0x01
12392 #define _TRISC1 0x02
12393 #define _TRISC2 0x04
12394 #define _TRISC3 0x08
12395 #define _TRISC4 0x10
12396 #define _TRISC5 0x20
12397 #define _TRISC6 0x40
12398 #define _TRISC7 0x80
12400 //==============================================================================
12403 //==============================================================================
12404 // TRISD Bits
12406 extern __at(0x0F95) __sfr TRISD;
12408 typedef struct
12410 unsigned TRISD0 : 1;
12411 unsigned TRISD1 : 1;
12412 unsigned TRISD2 : 1;
12413 unsigned TRISD3 : 1;
12414 unsigned TRISD4 : 1;
12415 unsigned TRISD5 : 1;
12416 unsigned TRISD6 : 1;
12417 unsigned TRISD7 : 1;
12418 } __TRISDbits_t;
12420 extern __at(0x0F95) volatile __TRISDbits_t TRISDbits;
12422 #define _TRISD0 0x01
12423 #define _TRISD1 0x02
12424 #define _TRISD2 0x04
12425 #define _TRISD3 0x08
12426 #define _TRISD4 0x10
12427 #define _TRISD5 0x20
12428 #define _TRISD6 0x40
12429 #define _TRISD7 0x80
12431 //==============================================================================
12434 //==============================================================================
12435 // TRISE Bits
12437 extern __at(0x0F96) __sfr TRISE;
12439 typedef union
12441 struct
12443 unsigned TRISE0 : 1;
12444 unsigned TRISE1 : 1;
12445 unsigned TRISE2 : 1;
12446 unsigned : 1;
12447 unsigned : 1;
12448 unsigned : 1;
12449 unsigned : 1;
12450 unsigned : 1;
12453 struct
12455 unsigned TRISE : 3;
12456 unsigned : 5;
12458 } __TRISEbits_t;
12460 extern __at(0x0F96) volatile __TRISEbits_t TRISEbits;
12462 #define _TRISE0 0x01
12463 #define _TRISE1 0x02
12464 #define _TRISE2 0x04
12466 //==============================================================================
12469 //==============================================================================
12470 // CCPTMRS Bits
12472 extern __at(0x0F99) __sfr CCPTMRS;
12474 typedef struct
12476 unsigned C1TSEL : 1;
12477 unsigned C2TSEL : 1;
12478 unsigned C3TSEL : 1;
12479 unsigned C4TSEL : 1;
12480 unsigned C5TSEL : 1;
12481 unsigned : 1;
12482 unsigned : 1;
12483 unsigned : 1;
12484 } __CCPTMRSbits_t;
12486 extern __at(0x0F99) volatile __CCPTMRSbits_t CCPTMRSbits;
12488 #define _C1TSEL 0x01
12489 #define _C2TSEL 0x02
12490 #define _C3TSEL 0x04
12491 #define _C4TSEL 0x08
12492 #define _C5TSEL 0x10
12494 //==============================================================================
12497 //==============================================================================
12498 // REFOCON Bits
12500 extern __at(0x0F9A) __sfr REFOCON;
12502 typedef union
12504 struct
12506 unsigned RODIV0 : 1;
12507 unsigned RODIV1 : 1;
12508 unsigned RODIV2 : 1;
12509 unsigned RODIV3 : 1;
12510 unsigned ROSEL : 1;
12511 unsigned ROSSLP : 1;
12512 unsigned : 1;
12513 unsigned ROON : 1;
12516 struct
12518 unsigned RODIV : 4;
12519 unsigned : 4;
12521 } __REFOCONbits_t;
12523 extern __at(0x0F9A) volatile __REFOCONbits_t REFOCONbits;
12525 #define _RODIV0 0x01
12526 #define _RODIV1 0x02
12527 #define _RODIV2 0x04
12528 #define _RODIV3 0x08
12529 #define _ROSEL 0x10
12530 #define _ROSSLP 0x20
12531 #define _ROON 0x80
12533 //==============================================================================
12536 //==============================================================================
12537 // OSCTUNE Bits
12539 extern __at(0x0F9B) __sfr OSCTUNE;
12541 typedef union
12543 struct
12545 unsigned TUN0 : 1;
12546 unsigned TUN1 : 1;
12547 unsigned TUN2 : 1;
12548 unsigned TUN3 : 1;
12549 unsigned TUN4 : 1;
12550 unsigned TUN5 : 1;
12551 unsigned PLLEN : 1;
12552 unsigned INTSRC : 1;
12555 struct
12557 unsigned TUN : 6;
12558 unsigned : 2;
12560 } __OSCTUNEbits_t;
12562 extern __at(0x0F9B) volatile __OSCTUNEbits_t OSCTUNEbits;
12564 #define _TUN0 0x01
12565 #define _TUN1 0x02
12566 #define _TUN2 0x04
12567 #define _TUN3 0x08
12568 #define _TUN4 0x10
12569 #define _TUN5 0x20
12570 #define _PLLEN 0x40
12571 #define _INTSRC 0x80
12573 //==============================================================================
12576 //==============================================================================
12577 // PSTR1CON Bits
12579 extern __at(0x0F9C) __sfr PSTR1CON;
12581 typedef union
12583 struct
12585 unsigned STRA : 1;
12586 unsigned STRB : 1;
12587 unsigned STRC : 1;
12588 unsigned STRD : 1;
12589 unsigned STRSYNC : 1;
12590 unsigned : 1;
12591 unsigned CMPL0 : 1;
12592 unsigned CMPL1 : 1;
12595 struct
12597 unsigned : 6;
12598 unsigned CMPL : 2;
12600 } __PSTR1CONbits_t;
12602 extern __at(0x0F9C) volatile __PSTR1CONbits_t PSTR1CONbits;
12604 #define _STRA 0x01
12605 #define _STRB 0x02
12606 #define _STRC 0x04
12607 #define _STRD 0x08
12608 #define _STRSYNC 0x10
12609 #define _CMPL0 0x40
12610 #define _CMPL1 0x80
12612 //==============================================================================
12615 //==============================================================================
12616 // PIE1 Bits
12618 extern __at(0x0F9D) __sfr PIE1;
12620 typedef union
12622 struct
12624 unsigned TMR1IE : 1;
12625 unsigned TMR2IE : 1;
12626 unsigned TMR1GIE : 1;
12627 unsigned SSPIE : 1;
12628 unsigned TX1IE : 1;
12629 unsigned RC1IE : 1;
12630 unsigned ADIE : 1;
12631 unsigned PSPIE : 1;
12634 struct
12636 unsigned : 1;
12637 unsigned : 1;
12638 unsigned : 1;
12639 unsigned : 1;
12640 unsigned TXIE : 1;
12641 unsigned RCIE : 1;
12642 unsigned : 1;
12643 unsigned : 1;
12645 } __PIE1bits_t;
12647 extern __at(0x0F9D) volatile __PIE1bits_t PIE1bits;
12649 #define _TMR1IE 0x01
12650 #define _TMR2IE 0x02
12651 #define _TMR1GIE 0x04
12652 #define _SSPIE 0x08
12653 #define _TX1IE 0x10
12654 #define _TXIE 0x10
12655 #define _RC1IE 0x20
12656 #define _RCIE 0x20
12657 #define _ADIE 0x40
12658 #define _PSPIE 0x80
12660 //==============================================================================
12663 //==============================================================================
12664 // PIR1 Bits
12666 extern __at(0x0F9E) __sfr PIR1;
12668 typedef union
12670 struct
12672 unsigned TMR1IF : 1;
12673 unsigned TMR2IF : 1;
12674 unsigned TMR1GIF : 1;
12675 unsigned SSPIF : 1;
12676 unsigned TX1IF : 1;
12677 unsigned RC1IF : 1;
12678 unsigned ADIF : 1;
12679 unsigned PSPIF : 1;
12682 struct
12684 unsigned : 1;
12685 unsigned : 1;
12686 unsigned : 1;
12687 unsigned : 1;
12688 unsigned TXIF : 1;
12689 unsigned RCIF : 1;
12690 unsigned : 1;
12691 unsigned : 1;
12693 } __PIR1bits_t;
12695 extern __at(0x0F9E) volatile __PIR1bits_t PIR1bits;
12697 #define _TMR1IF 0x01
12698 #define _TMR2IF 0x02
12699 #define _TMR1GIF 0x04
12700 #define _SSPIF 0x08
12701 #define _TX1IF 0x10
12702 #define _TXIF 0x10
12703 #define _RC1IF 0x20
12704 #define _RCIF 0x20
12705 #define _ADIF 0x40
12706 #define _PSPIF 0x80
12708 //==============================================================================
12711 //==============================================================================
12712 // IPR1 Bits
12714 extern __at(0x0F9F) __sfr IPR1;
12716 typedef union
12718 struct
12720 unsigned TMR1IP : 1;
12721 unsigned TMR2IP : 1;
12722 unsigned TMR1GIP : 1;
12723 unsigned SSPIP : 1;
12724 unsigned TX1IP : 1;
12725 unsigned RC1IP : 1;
12726 unsigned ADIP : 1;
12727 unsigned PSPIP : 1;
12730 struct
12732 unsigned : 1;
12733 unsigned : 1;
12734 unsigned : 1;
12735 unsigned : 1;
12736 unsigned TXIP : 1;
12737 unsigned RCIP : 1;
12738 unsigned : 1;
12739 unsigned : 1;
12741 } __IPR1bits_t;
12743 extern __at(0x0F9F) volatile __IPR1bits_t IPR1bits;
12745 #define _TMR1IP 0x01
12746 #define _TMR2IP 0x02
12747 #define _TMR1GIP 0x04
12748 #define _SSPIP 0x08
12749 #define _TX1IP 0x10
12750 #define _TXIP 0x10
12751 #define _RC1IP 0x20
12752 #define _RCIP 0x20
12753 #define _ADIP 0x40
12754 #define _PSPIP 0x80
12756 //==============================================================================
12759 //==============================================================================
12760 // PIE2 Bits
12762 extern __at(0x0FA0) __sfr PIE2;
12764 typedef union
12766 struct
12768 unsigned TMR3GIE : 1;
12769 unsigned TMR3IE : 1;
12770 unsigned HLVDIE : 1;
12771 unsigned BCLIE : 1;
12772 unsigned : 1;
12773 unsigned : 1;
12774 unsigned : 1;
12775 unsigned OSCFIE : 1;
12778 struct
12780 unsigned : 1;
12781 unsigned : 1;
12782 unsigned LVDIE : 1;
12783 unsigned : 1;
12784 unsigned : 1;
12785 unsigned : 1;
12786 unsigned : 1;
12787 unsigned : 1;
12789 } __PIE2bits_t;
12791 extern __at(0x0FA0) volatile __PIE2bits_t PIE2bits;
12793 #define _TMR3GIE 0x01
12794 #define _TMR3IE 0x02
12795 #define _HLVDIE 0x04
12796 #define _LVDIE 0x04
12797 #define _BCLIE 0x08
12798 #define _OSCFIE 0x80
12800 //==============================================================================
12803 //==============================================================================
12804 // PIR2 Bits
12806 extern __at(0x0FA1) __sfr PIR2;
12808 typedef union
12810 struct
12812 unsigned TMR3GIF : 1;
12813 unsigned TMR3IF : 1;
12814 unsigned HLVDIF : 1;
12815 unsigned BCLIF : 1;
12816 unsigned : 1;
12817 unsigned : 1;
12818 unsigned : 1;
12819 unsigned OSCFIF : 1;
12822 struct
12824 unsigned : 1;
12825 unsigned : 1;
12826 unsigned LVDIF : 1;
12827 unsigned : 1;
12828 unsigned : 1;
12829 unsigned : 1;
12830 unsigned : 1;
12831 unsigned : 1;
12833 } __PIR2bits_t;
12835 extern __at(0x0FA1) volatile __PIR2bits_t PIR2bits;
12837 #define _TMR3GIF 0x01
12838 #define _TMR3IF 0x02
12839 #define _HLVDIF 0x04
12840 #define _LVDIF 0x04
12841 #define _BCLIF 0x08
12842 #define _OSCFIF 0x80
12844 //==============================================================================
12847 //==============================================================================
12848 // IPR2 Bits
12850 extern __at(0x0FA2) __sfr IPR2;
12852 typedef union
12854 struct
12856 unsigned TMR3GIP : 1;
12857 unsigned TMR3IP : 1;
12858 unsigned HLVDIP : 1;
12859 unsigned BCLIP : 1;
12860 unsigned : 1;
12861 unsigned : 1;
12862 unsigned : 1;
12863 unsigned OSCFIP : 1;
12866 struct
12868 unsigned : 1;
12869 unsigned : 1;
12870 unsigned LVDIP : 1;
12871 unsigned : 1;
12872 unsigned : 1;
12873 unsigned : 1;
12874 unsigned : 1;
12875 unsigned : 1;
12877 } __IPR2bits_t;
12879 extern __at(0x0FA2) volatile __IPR2bits_t IPR2bits;
12881 #define _TMR3GIP 0x01
12882 #define _TMR3IP 0x02
12883 #define _HLVDIP 0x04
12884 #define _LVDIP 0x04
12885 #define _BCLIP 0x08
12886 #define _OSCFIP 0x80
12888 //==============================================================================
12891 //==============================================================================
12892 // PIE3 Bits
12894 extern __at(0x0FA3) __sfr PIE3;
12896 typedef struct
12898 unsigned : 1;
12899 unsigned CCP1IE : 1;
12900 unsigned CCP2IE : 1;
12901 unsigned CTMUIE : 1;
12902 unsigned TX2IE : 1;
12903 unsigned RC2IE : 1;
12904 unsigned : 1;
12905 unsigned : 1;
12906 } __PIE3bits_t;
12908 extern __at(0x0FA3) volatile __PIE3bits_t PIE3bits;
12910 #define _CCP1IE 0x02
12911 #define _CCP2IE 0x04
12912 #define _CTMUIE 0x08
12913 #define _TX2IE 0x10
12914 #define _RC2IE 0x20
12916 //==============================================================================
12919 //==============================================================================
12920 // PIR3 Bits
12922 extern __at(0x0FA4) __sfr PIR3;
12924 typedef struct
12926 unsigned : 1;
12927 unsigned CCP1IF : 1;
12928 unsigned CCP2IF : 1;
12929 unsigned CTMUIF : 1;
12930 unsigned TX2IF : 1;
12931 unsigned RC2IF : 1;
12932 unsigned : 1;
12933 unsigned : 1;
12934 } __PIR3bits_t;
12936 extern __at(0x0FA4) volatile __PIR3bits_t PIR3bits;
12938 #define _CCP1IF 0x02
12939 #define _CCP2IF 0x04
12940 #define _CTMUIF 0x08
12941 #define _TX2IF 0x10
12942 #define _RC2IF 0x20
12944 //==============================================================================
12947 //==============================================================================
12948 // IPR3 Bits
12950 extern __at(0x0FA5) __sfr IPR3;
12952 typedef struct
12954 unsigned : 1;
12955 unsigned CCP1IP : 1;
12956 unsigned CCP2IP : 1;
12957 unsigned CTMUIP : 1;
12958 unsigned TX2IP : 1;
12959 unsigned RC2IP : 1;
12960 unsigned : 1;
12961 unsigned : 1;
12962 } __IPR3bits_t;
12964 extern __at(0x0FA5) volatile __IPR3bits_t IPR3bits;
12966 #define _CCP1IP 0x02
12967 #define _CCP2IP 0x04
12968 #define _CTMUIP 0x08
12969 #define _TX2IP 0x10
12970 #define _RC2IP 0x20
12972 //==============================================================================
12975 //==============================================================================
12976 // RCSTA2 Bits
12978 extern __at(0x0FA6) __sfr RCSTA2;
12980 typedef union
12982 struct
12984 unsigned RX9D : 1;
12985 unsigned OERR : 1;
12986 unsigned FERR : 1;
12987 unsigned ADDEN : 1;
12988 unsigned CREN : 1;
12989 unsigned SREN : 1;
12990 unsigned RX9 : 1;
12991 unsigned SPEN : 1;
12994 struct
12996 unsigned RX9D2 : 1;
12997 unsigned OERR2 : 1;
12998 unsigned FERR2 : 1;
12999 unsigned ADDEN2 : 1;
13000 unsigned CREN2 : 1;
13001 unsigned SREN2 : 1;
13002 unsigned RX92 : 1;
13003 unsigned SPEN2 : 1;
13005 } __RCSTA2bits_t;
13007 extern __at(0x0FA6) volatile __RCSTA2bits_t RCSTA2bits;
13009 #define _RCSTA2_RX9D 0x01
13010 #define _RCSTA2_RX9D2 0x01
13011 #define _RCSTA2_OERR 0x02
13012 #define _RCSTA2_OERR2 0x02
13013 #define _RCSTA2_FERR 0x04
13014 #define _RCSTA2_FERR2 0x04
13015 #define _RCSTA2_ADDEN 0x08
13016 #define _RCSTA2_ADDEN2 0x08
13017 #define _RCSTA2_CREN 0x10
13018 #define _RCSTA2_CREN2 0x10
13019 #define _RCSTA2_SREN 0x20
13020 #define _RCSTA2_SREN2 0x20
13021 #define _RCSTA2_RX9 0x40
13022 #define _RCSTA2_RX92 0x40
13023 #define _RCSTA2_SPEN 0x80
13024 #define _RCSTA2_SPEN2 0x80
13026 //==============================================================================
13029 //==============================================================================
13030 // BAUDCON1 Bits
13032 extern __at(0x0FA7) __sfr BAUDCON1;
13034 typedef union
13036 struct
13038 unsigned ABDEN : 1;
13039 unsigned WUE : 1;
13040 unsigned : 1;
13041 unsigned BRG16 : 1;
13042 unsigned TXCKP : 1;
13043 unsigned RXDTP : 1;
13044 unsigned RCIDL : 1;
13045 unsigned ABDOVF : 1;
13048 struct
13050 unsigned : 1;
13051 unsigned : 1;
13052 unsigned : 1;
13053 unsigned : 1;
13054 unsigned : 1;
13055 unsigned : 1;
13056 unsigned RCMT : 1;
13057 unsigned : 1;
13059 } __BAUDCON1bits_t;
13061 extern __at(0x0FA7) volatile __BAUDCON1bits_t BAUDCON1bits;
13063 #define _ABDEN 0x01
13064 #define _WUE 0x02
13065 #define _BRG16 0x08
13066 #define _TXCKP 0x10
13067 #define _RXDTP 0x20
13068 #define _RCIDL 0x40
13069 #define _RCMT 0x40
13070 #define _ABDOVF 0x80
13072 //==============================================================================
13075 //==============================================================================
13076 // HLVDCON Bits
13078 extern __at(0x0FA8) __sfr HLVDCON;
13080 typedef union
13082 struct
13084 unsigned HLVDL0 : 1;
13085 unsigned HLVDL1 : 1;
13086 unsigned HLVDL2 : 1;
13087 unsigned HLVDL3 : 1;
13088 unsigned HLVDEN : 1;
13089 unsigned IRVST : 1;
13090 unsigned BGVST : 1;
13091 unsigned VDIRMAG : 1;
13094 struct
13096 unsigned HLVDL : 4;
13097 unsigned : 4;
13099 } __HLVDCONbits_t;
13101 extern __at(0x0FA8) volatile __HLVDCONbits_t HLVDCONbits;
13103 #define _HLVDL0 0x01
13104 #define _HLVDL1 0x02
13105 #define _HLVDL2 0x04
13106 #define _HLVDL3 0x08
13107 #define _HLVDEN 0x10
13108 #define _IRVST 0x20
13109 #define _BGVST 0x40
13110 #define _VDIRMAG 0x80
13112 //==============================================================================
13114 extern __at(0x0FA9) __sfr PR4;
13116 //==============================================================================
13117 // T1GCON Bits
13119 extern __at(0x0FAA) __sfr T1GCON;
13121 typedef union
13123 struct
13125 unsigned T1GSS0 : 1;
13126 unsigned T1GSS1 : 1;
13127 unsigned T1GVAL : 1;
13128 unsigned T1GGO_NOT_T1DONE : 1;
13129 unsigned T1GSPM : 1;
13130 unsigned T1GTM : 1;
13131 unsigned T1GPOL : 1;
13132 unsigned TMR1GE : 1;
13135 struct
13137 unsigned : 1;
13138 unsigned : 1;
13139 unsigned : 1;
13140 unsigned T1GGO : 1;
13141 unsigned : 1;
13142 unsigned : 1;
13143 unsigned : 1;
13144 unsigned : 1;
13147 struct
13149 unsigned : 1;
13150 unsigned : 1;
13151 unsigned : 1;
13152 unsigned NOT_T1DONE : 1;
13153 unsigned : 1;
13154 unsigned : 1;
13155 unsigned : 1;
13156 unsigned : 1;
13159 struct
13161 unsigned T1GSS : 2;
13162 unsigned : 6;
13164 } __T1GCONbits_t;
13166 extern __at(0x0FAA) volatile __T1GCONbits_t T1GCONbits;
13168 #define _T1GSS0 0x01
13169 #define _T1GSS1 0x02
13170 #define _T1GVAL 0x04
13171 #define _T1GGO_NOT_T1DONE 0x08
13172 #define _T1GGO 0x08
13173 #define _NOT_T1DONE 0x08
13174 #define _T1GSPM 0x10
13175 #define _T1GTM 0x20
13176 #define _T1GPOL 0x40
13177 #define _TMR1GE 0x80
13179 //==============================================================================
13182 //==============================================================================
13183 // RCSTA Bits
13185 extern __at(0x0FAB) __sfr RCSTA;
13187 typedef union
13189 struct
13191 unsigned RX9D : 1;
13192 unsigned OERR : 1;
13193 unsigned FERR : 1;
13194 unsigned ADDEN : 1;
13195 unsigned CREN : 1;
13196 unsigned SREN : 1;
13197 unsigned RX9 : 1;
13198 unsigned SPEN : 1;
13201 struct
13203 unsigned RCD8 : 1;
13204 unsigned OERR1 : 1;
13205 unsigned FERR1 : 1;
13206 unsigned ADEN : 1;
13207 unsigned CREN1 : 1;
13208 unsigned SREN1 : 1;
13209 unsigned RC9 : 1;
13210 unsigned SPEN1 : 1;
13213 struct
13215 unsigned RX9D1 : 1;
13216 unsigned : 1;
13217 unsigned : 1;
13218 unsigned ADDEN1 : 1;
13219 unsigned : 1;
13220 unsigned : 1;
13221 unsigned NOT_RC8 : 1;
13222 unsigned : 1;
13225 struct
13227 unsigned : 1;
13228 unsigned : 1;
13229 unsigned : 1;
13230 unsigned : 1;
13231 unsigned : 1;
13232 unsigned : 1;
13233 unsigned RC8_9 : 1;
13234 unsigned : 1;
13237 struct
13239 unsigned : 1;
13240 unsigned : 1;
13241 unsigned : 1;
13242 unsigned : 1;
13243 unsigned : 1;
13244 unsigned : 1;
13245 unsigned RX91 : 1;
13246 unsigned : 1;
13248 } __RCSTAbits_t;
13250 extern __at(0x0FAB) volatile __RCSTAbits_t RCSTAbits;
13252 #define _RX9D 0x01
13253 #define _RCD8 0x01
13254 #define _RX9D1 0x01
13255 #define _OERR 0x02
13256 #define _OERR1 0x02
13257 #define _FERR 0x04
13258 #define _FERR1 0x04
13259 #define _ADDEN 0x08
13260 #define _ADEN 0x08
13261 #define _ADDEN1 0x08
13262 #define _CREN 0x10
13263 #define _CREN1 0x10
13264 #define _SREN 0x20
13265 #define _SREN1 0x20
13266 #define _RX9 0x40
13267 #define _RC9 0x40
13268 #define _NOT_RC8 0x40
13269 #define _RC8_9 0x40
13270 #define _RX91 0x40
13271 #define _SPEN 0x80
13272 #define _SPEN1 0x80
13274 //==============================================================================
13277 //==============================================================================
13278 // RCSTA1 Bits
13280 extern __at(0x0FAB) __sfr RCSTA1;
13282 typedef union
13284 struct
13286 unsigned RX9D : 1;
13287 unsigned OERR : 1;
13288 unsigned FERR : 1;
13289 unsigned ADDEN : 1;
13290 unsigned CREN : 1;
13291 unsigned SREN : 1;
13292 unsigned RX9 : 1;
13293 unsigned SPEN : 1;
13296 struct
13298 unsigned RCD8 : 1;
13299 unsigned OERR1 : 1;
13300 unsigned FERR1 : 1;
13301 unsigned ADEN : 1;
13302 unsigned CREN1 : 1;
13303 unsigned SREN1 : 1;
13304 unsigned RC9 : 1;
13305 unsigned SPEN1 : 1;
13308 struct
13310 unsigned RX9D1 : 1;
13311 unsigned : 1;
13312 unsigned : 1;
13313 unsigned ADDEN1 : 1;
13314 unsigned : 1;
13315 unsigned : 1;
13316 unsigned NOT_RC8 : 1;
13317 unsigned : 1;
13320 struct
13322 unsigned : 1;
13323 unsigned : 1;
13324 unsigned : 1;
13325 unsigned : 1;
13326 unsigned : 1;
13327 unsigned : 1;
13328 unsigned RC8_9 : 1;
13329 unsigned : 1;
13332 struct
13334 unsigned : 1;
13335 unsigned : 1;
13336 unsigned : 1;
13337 unsigned : 1;
13338 unsigned : 1;
13339 unsigned : 1;
13340 unsigned RX91 : 1;
13341 unsigned : 1;
13343 } __RCSTA1bits_t;
13345 extern __at(0x0FAB) volatile __RCSTA1bits_t RCSTA1bits;
13347 #define _RCSTA1_RX9D 0x01
13348 #define _RCSTA1_RCD8 0x01
13349 #define _RCSTA1_RX9D1 0x01
13350 #define _RCSTA1_OERR 0x02
13351 #define _RCSTA1_OERR1 0x02
13352 #define _RCSTA1_FERR 0x04
13353 #define _RCSTA1_FERR1 0x04
13354 #define _RCSTA1_ADDEN 0x08
13355 #define _RCSTA1_ADEN 0x08
13356 #define _RCSTA1_ADDEN1 0x08
13357 #define _RCSTA1_CREN 0x10
13358 #define _RCSTA1_CREN1 0x10
13359 #define _RCSTA1_SREN 0x20
13360 #define _RCSTA1_SREN1 0x20
13361 #define _RCSTA1_RX9 0x40
13362 #define _RCSTA1_RC9 0x40
13363 #define _RCSTA1_NOT_RC8 0x40
13364 #define _RCSTA1_RC8_9 0x40
13365 #define _RCSTA1_RX91 0x40
13366 #define _RCSTA1_SPEN 0x80
13367 #define _RCSTA1_SPEN1 0x80
13369 //==============================================================================
13372 //==============================================================================
13373 // TXSTA Bits
13375 extern __at(0x0FAC) __sfr TXSTA;
13377 typedef union
13379 struct
13381 unsigned TX9D : 1;
13382 unsigned TRMT : 1;
13383 unsigned BRGH : 1;
13384 unsigned SENDB : 1;
13385 unsigned SYNC : 1;
13386 unsigned TXEN : 1;
13387 unsigned TX9 : 1;
13388 unsigned CSRC : 1;
13391 struct
13393 unsigned TXD8 : 1;
13394 unsigned TRMT1 : 1;
13395 unsigned BRGH1 : 1;
13396 unsigned SENDB1 : 1;
13397 unsigned SYNC1 : 1;
13398 unsigned TXEN1 : 1;
13399 unsigned TX8_9 : 1;
13400 unsigned CSRC1 : 1;
13403 struct
13405 unsigned TX9D1 : 1;
13406 unsigned : 1;
13407 unsigned : 1;
13408 unsigned : 1;
13409 unsigned : 1;
13410 unsigned : 1;
13411 unsigned NOT_TX8 : 1;
13412 unsigned : 1;
13415 struct
13417 unsigned : 1;
13418 unsigned : 1;
13419 unsigned : 1;
13420 unsigned : 1;
13421 unsigned : 1;
13422 unsigned : 1;
13423 unsigned TX91 : 1;
13424 unsigned : 1;
13426 } __TXSTAbits_t;
13428 extern __at(0x0FAC) volatile __TXSTAbits_t TXSTAbits;
13430 #define _TX9D 0x01
13431 #define _TXD8 0x01
13432 #define _TX9D1 0x01
13433 #define _TRMT 0x02
13434 #define _TRMT1 0x02
13435 #define _BRGH 0x04
13436 #define _BRGH1 0x04
13437 #define _SENDB 0x08
13438 #define _SENDB1 0x08
13439 #define _SYNC 0x10
13440 #define _SYNC1 0x10
13441 #define _TXEN 0x20
13442 #define _TXEN1 0x20
13443 #define _TX9 0x40
13444 #define _TX8_9 0x40
13445 #define _NOT_TX8 0x40
13446 #define _TX91 0x40
13447 #define _CSRC 0x80
13448 #define _CSRC1 0x80
13450 //==============================================================================
13453 //==============================================================================
13454 // TXSTA1 Bits
13456 extern __at(0x0FAC) __sfr TXSTA1;
13458 typedef union
13460 struct
13462 unsigned TX9D : 1;
13463 unsigned TRMT : 1;
13464 unsigned BRGH : 1;
13465 unsigned SENDB : 1;
13466 unsigned SYNC : 1;
13467 unsigned TXEN : 1;
13468 unsigned TX9 : 1;
13469 unsigned CSRC : 1;
13472 struct
13474 unsigned TXD8 : 1;
13475 unsigned TRMT1 : 1;
13476 unsigned BRGH1 : 1;
13477 unsigned SENDB1 : 1;
13478 unsigned SYNC1 : 1;
13479 unsigned TXEN1 : 1;
13480 unsigned TX8_9 : 1;
13481 unsigned CSRC1 : 1;
13484 struct
13486 unsigned TX9D1 : 1;
13487 unsigned : 1;
13488 unsigned : 1;
13489 unsigned : 1;
13490 unsigned : 1;
13491 unsigned : 1;
13492 unsigned NOT_TX8 : 1;
13493 unsigned : 1;
13496 struct
13498 unsigned : 1;
13499 unsigned : 1;
13500 unsigned : 1;
13501 unsigned : 1;
13502 unsigned : 1;
13503 unsigned : 1;
13504 unsigned TX91 : 1;
13505 unsigned : 1;
13507 } __TXSTA1bits_t;
13509 extern __at(0x0FAC) volatile __TXSTA1bits_t TXSTA1bits;
13511 #define _TXSTA1_TX9D 0x01
13512 #define _TXSTA1_TXD8 0x01
13513 #define _TXSTA1_TX9D1 0x01
13514 #define _TXSTA1_TRMT 0x02
13515 #define _TXSTA1_TRMT1 0x02
13516 #define _TXSTA1_BRGH 0x04
13517 #define _TXSTA1_BRGH1 0x04
13518 #define _TXSTA1_SENDB 0x08
13519 #define _TXSTA1_SENDB1 0x08
13520 #define _TXSTA1_SYNC 0x10
13521 #define _TXSTA1_SYNC1 0x10
13522 #define _TXSTA1_TXEN 0x20
13523 #define _TXSTA1_TXEN1 0x20
13524 #define _TXSTA1_TX9 0x40
13525 #define _TXSTA1_TX8_9 0x40
13526 #define _TXSTA1_NOT_TX8 0x40
13527 #define _TXSTA1_TX91 0x40
13528 #define _TXSTA1_CSRC 0x80
13529 #define _TXSTA1_CSRC1 0x80
13531 //==============================================================================
13533 extern __at(0x0FAD) __sfr TXREG;
13534 extern __at(0x0FAD) __sfr TXREG1;
13535 extern __at(0x0FAE) __sfr RCREG;
13536 extern __at(0x0FAE) __sfr RCREG1;
13537 extern __at(0x0FAF) __sfr SPBRG;
13538 extern __at(0x0FAF) __sfr SPBRG1;
13540 //==============================================================================
13541 // T3GCON Bits
13543 extern __at(0x0FB0) __sfr T3GCON;
13545 typedef union
13547 struct
13549 unsigned T3GSS0 : 1;
13550 unsigned T3GSS1 : 1;
13551 unsigned T3GVAL : 1;
13552 unsigned T3GGO_NOT_T3DONE : 1;
13553 unsigned T3GSPM : 1;
13554 unsigned T3GTM : 1;
13555 unsigned T3GPOL : 1;
13556 unsigned TMR3GE : 1;
13559 struct
13561 unsigned : 1;
13562 unsigned : 1;
13563 unsigned : 1;
13564 unsigned T3GGO : 1;
13565 unsigned : 1;
13566 unsigned : 1;
13567 unsigned : 1;
13568 unsigned : 1;
13571 struct
13573 unsigned : 1;
13574 unsigned : 1;
13575 unsigned : 1;
13576 unsigned NOT_T3DONE : 1;
13577 unsigned : 1;
13578 unsigned : 1;
13579 unsigned : 1;
13580 unsigned : 1;
13583 struct
13585 unsigned T3GSS : 2;
13586 unsigned : 6;
13588 } __T3GCONbits_t;
13590 extern __at(0x0FB0) volatile __T3GCONbits_t T3GCONbits;
13592 #define _T3GSS0 0x01
13593 #define _T3GSS1 0x02
13594 #define _T3GVAL 0x04
13595 #define _T3GGO_NOT_T3DONE 0x08
13596 #define _T3GGO 0x08
13597 #define _NOT_T3DONE 0x08
13598 #define _T3GSPM 0x10
13599 #define _T3GTM 0x20
13600 #define _T3GPOL 0x40
13601 #define _TMR3GE 0x80
13603 //==============================================================================
13606 //==============================================================================
13607 // T3CON Bits
13609 extern __at(0x0FB1) __sfr T3CON;
13611 typedef union
13613 struct
13615 unsigned TMR3ON : 1;
13616 unsigned RD16 : 1;
13617 unsigned NOT_T3SYNC : 1;
13618 unsigned SOSCEN : 1;
13619 unsigned T3CKPS0 : 1;
13620 unsigned T3CKPS1 : 1;
13621 unsigned TMR3CS0 : 1;
13622 unsigned TMR3CS1 : 1;
13625 struct
13627 unsigned : 4;
13628 unsigned T3CKPS : 2;
13629 unsigned : 2;
13632 struct
13634 unsigned : 6;
13635 unsigned TMR3CS : 2;
13637 } __T3CONbits_t;
13639 extern __at(0x0FB1) volatile __T3CONbits_t T3CONbits;
13641 #define _T3CON_TMR3ON 0x01
13642 #define _T3CON_RD16 0x02
13643 #define _T3CON_NOT_T3SYNC 0x04
13644 #define _T3CON_SOSCEN 0x08
13645 #define _T3CON_T3CKPS0 0x10
13646 #define _T3CON_T3CKPS1 0x20
13647 #define _T3CON_TMR3CS0 0x40
13648 #define _T3CON_TMR3CS1 0x80
13650 //==============================================================================
13652 extern __at(0x0FB2) __sfr TMR3;
13653 extern __at(0x0FB2) __sfr TMR3L;
13654 extern __at(0x0FB3) __sfr TMR3H;
13656 //==============================================================================
13657 // CMSTAT Bits
13659 extern __at(0x0FB4) __sfr CMSTAT;
13661 typedef struct
13663 unsigned : 1;
13664 unsigned : 1;
13665 unsigned : 1;
13666 unsigned : 1;
13667 unsigned : 1;
13668 unsigned : 1;
13669 unsigned CMP1OUT : 1;
13670 unsigned CMP2OUT : 1;
13671 } __CMSTATbits_t;
13673 extern __at(0x0FB4) volatile __CMSTATbits_t CMSTATbits;
13675 #define _CMP1OUT 0x40
13676 #define _CMP2OUT 0x80
13678 //==============================================================================
13681 //==============================================================================
13682 // CMSTATUS Bits
13684 extern __at(0x0FB4) __sfr CMSTATUS;
13686 typedef struct
13688 unsigned : 1;
13689 unsigned : 1;
13690 unsigned : 1;
13691 unsigned : 1;
13692 unsigned : 1;
13693 unsigned : 1;
13694 unsigned CMP1OUT : 1;
13695 unsigned CMP2OUT : 1;
13696 } __CMSTATUSbits_t;
13698 extern __at(0x0FB4) volatile __CMSTATUSbits_t CMSTATUSbits;
13700 #define _CMSTATUS_CMP1OUT 0x40
13701 #define _CMSTATUS_CMP2OUT 0x80
13703 //==============================================================================
13706 //==============================================================================
13707 // CVRCON Bits
13709 extern __at(0x0FB5) __sfr CVRCON;
13711 typedef union
13713 struct
13715 unsigned CVR0 : 1;
13716 unsigned CVR1 : 1;
13717 unsigned CVR2 : 1;
13718 unsigned CVR3 : 1;
13719 unsigned CVR4 : 1;
13720 unsigned CVRSS : 1;
13721 unsigned CVROE : 1;
13722 unsigned CVREN : 1;
13725 struct
13727 unsigned CVR : 5;
13728 unsigned : 3;
13730 } __CVRCONbits_t;
13732 extern __at(0x0FB5) volatile __CVRCONbits_t CVRCONbits;
13734 #define _CVR0 0x01
13735 #define _CVR1 0x02
13736 #define _CVR2 0x04
13737 #define _CVR3 0x08
13738 #define _CVR4 0x10
13739 #define _CVRSS 0x20
13740 #define _CVROE 0x40
13741 #define _CVREN 0x80
13743 //==============================================================================
13746 //==============================================================================
13747 // PIE4 Bits
13749 extern __at(0x0FB6) __sfr PIE4;
13751 typedef struct
13753 unsigned CCP3IE : 1;
13754 unsigned CCP4IE : 1;
13755 unsigned CCP5IE : 1;
13756 unsigned : 1;
13757 unsigned CMP1IE : 1;
13758 unsigned CMP2IE : 1;
13759 unsigned EEIE : 1;
13760 unsigned TMR4IE : 1;
13761 } __PIE4bits_t;
13763 extern __at(0x0FB6) volatile __PIE4bits_t PIE4bits;
13765 #define _CCP3IE 0x01
13766 #define _CCP4IE 0x02
13767 #define _CCP5IE 0x04
13768 #define _CMP1IE 0x10
13769 #define _CMP2IE 0x20
13770 #define _EEIE 0x40
13771 #define _TMR4IE 0x80
13773 //==============================================================================
13776 //==============================================================================
13777 // PIR4 Bits
13779 extern __at(0x0FB7) __sfr PIR4;
13781 typedef struct
13783 unsigned CCP3IF : 1;
13784 unsigned CCP4IF : 1;
13785 unsigned CCP5IF : 1;
13786 unsigned : 1;
13787 unsigned CMP1IF : 1;
13788 unsigned CMP2IF : 1;
13789 unsigned EEIF : 1;
13790 unsigned TMR4IF : 1;
13791 } __PIR4bits_t;
13793 extern __at(0x0FB7) volatile __PIR4bits_t PIR4bits;
13795 #define _CCP3IF 0x01
13796 #define _CCP4IF 0x02
13797 #define _CCP5IF 0x04
13798 #define _CMP1IF 0x10
13799 #define _CMP2IF 0x20
13800 #define _EEIF 0x40
13801 #define _TMR4IF 0x80
13803 //==============================================================================
13806 //==============================================================================
13807 // IPR4 Bits
13809 extern __at(0x0FB8) __sfr IPR4;
13811 typedef struct
13813 unsigned CCP3IP : 1;
13814 unsigned CCP4IP : 1;
13815 unsigned CCP5IP : 1;
13816 unsigned : 1;
13817 unsigned CMP1IP : 1;
13818 unsigned CMP2IP : 1;
13819 unsigned EEIP : 1;
13820 unsigned TMR4IP : 1;
13821 } __IPR4bits_t;
13823 extern __at(0x0FB8) volatile __IPR4bits_t IPR4bits;
13825 #define _CCP3IP 0x01
13826 #define _CCP4IP 0x02
13827 #define _CCP5IP 0x04
13828 #define _CMP1IP 0x10
13829 #define _CMP2IP 0x20
13830 #define _EEIP 0x40
13831 #define _TMR4IP 0x80
13833 //==============================================================================
13836 //==============================================================================
13837 // BAUDCON2 Bits
13839 extern __at(0x0FB9) __sfr BAUDCON2;
13841 typedef union
13843 struct
13845 unsigned ABDEN : 1;
13846 unsigned WUE : 1;
13847 unsigned : 1;
13848 unsigned BRG16 : 1;
13849 unsigned TXCKP : 1;
13850 unsigned RXDTP : 1;
13851 unsigned RCIDL : 1;
13852 unsigned ABDOVF : 1;
13855 struct
13857 unsigned : 1;
13858 unsigned : 1;
13859 unsigned : 1;
13860 unsigned : 1;
13861 unsigned : 1;
13862 unsigned : 1;
13863 unsigned RCMT : 1;
13864 unsigned : 1;
13866 } __BAUDCON2bits_t;
13868 extern __at(0x0FB9) volatile __BAUDCON2bits_t BAUDCON2bits;
13870 #define _BAUDCON2_ABDEN 0x01
13871 #define _BAUDCON2_WUE 0x02
13872 #define _BAUDCON2_BRG16 0x08
13873 #define _BAUDCON2_TXCKP 0x10
13874 #define _BAUDCON2_RXDTP 0x20
13875 #define _BAUDCON2_RCIDL 0x40
13876 #define _BAUDCON2_RCMT 0x40
13877 #define _BAUDCON2_ABDOVF 0x80
13879 //==============================================================================
13882 //==============================================================================
13883 // TXSTA2 Bits
13885 extern __at(0x0FBA) __sfr TXSTA2;
13887 typedef union
13889 struct
13891 unsigned TX9D : 1;
13892 unsigned TRMT : 1;
13893 unsigned BRGH : 1;
13894 unsigned SENDB : 1;
13895 unsigned SYNC : 1;
13896 unsigned TXEN : 1;
13897 unsigned TX9 : 1;
13898 unsigned CSRC : 1;
13901 struct
13903 unsigned TX9D2 : 1;
13904 unsigned TRMT2 : 1;
13905 unsigned BRGH2 : 1;
13906 unsigned SENDB2 : 1;
13907 unsigned SYNC2 : 1;
13908 unsigned TXEN2 : 1;
13909 unsigned TX92 : 1;
13910 unsigned CSRC2 : 1;
13912 } __TXSTA2bits_t;
13914 extern __at(0x0FBA) volatile __TXSTA2bits_t TXSTA2bits;
13916 #define _TXSTA2_TX9D 0x01
13917 #define _TXSTA2_TX9D2 0x01
13918 #define _TXSTA2_TRMT 0x02
13919 #define _TXSTA2_TRMT2 0x02
13920 #define _TXSTA2_BRGH 0x04
13921 #define _TXSTA2_BRGH2 0x04
13922 #define _TXSTA2_SENDB 0x08
13923 #define _TXSTA2_SENDB2 0x08
13924 #define _TXSTA2_SYNC 0x10
13925 #define _TXSTA2_SYNC2 0x10
13926 #define _TXSTA2_TXEN 0x20
13927 #define _TXSTA2_TXEN2 0x20
13928 #define _TXSTA2_TX9 0x40
13929 #define _TXSTA2_TX92 0x40
13930 #define _TXSTA2_CSRC 0x80
13931 #define _TXSTA2_CSRC2 0x80
13933 //==============================================================================
13936 //==============================================================================
13937 // CCP1CON Bits
13939 extern __at(0x0FBB) __sfr CCP1CON;
13941 typedef union
13943 struct
13945 unsigned CCP1M0 : 1;
13946 unsigned CCP1M1 : 1;
13947 unsigned CCP1M2 : 1;
13948 unsigned CCP1M3 : 1;
13949 unsigned DC1B0 : 1;
13950 unsigned DC1B1 : 1;
13951 unsigned P1M0 : 1;
13952 unsigned P1M1 : 1;
13955 struct
13957 unsigned : 1;
13958 unsigned : 1;
13959 unsigned : 1;
13960 unsigned : 1;
13961 unsigned CCP1Y : 1;
13962 unsigned CCP1X : 1;
13963 unsigned : 1;
13964 unsigned : 1;
13967 struct
13969 unsigned CCP1M : 4;
13970 unsigned : 4;
13973 struct
13975 unsigned : 4;
13976 unsigned DC1B : 2;
13977 unsigned : 2;
13980 struct
13982 unsigned : 6;
13983 unsigned P1M : 2;
13985 } __CCP1CONbits_t;
13987 extern __at(0x0FBB) volatile __CCP1CONbits_t CCP1CONbits;
13989 #define _CCP1M0 0x01
13990 #define _CCP1M1 0x02
13991 #define _CCP1M2 0x04
13992 #define _CCP1M3 0x08
13993 #define _DC1B0 0x10
13994 #define _CCP1Y 0x10
13995 #define _DC1B1 0x20
13996 #define _CCP1X 0x20
13997 #define _P1M0 0x40
13998 #define _P1M1 0x80
14000 //==============================================================================
14003 //==============================================================================
14004 // ECCP1CON Bits
14006 extern __at(0x0FBB) __sfr ECCP1CON;
14008 typedef union
14010 struct
14012 unsigned CCP1M0 : 1;
14013 unsigned CCP1M1 : 1;
14014 unsigned CCP1M2 : 1;
14015 unsigned CCP1M3 : 1;
14016 unsigned DC1B0 : 1;
14017 unsigned DC1B1 : 1;
14018 unsigned P1M0 : 1;
14019 unsigned P1M1 : 1;
14022 struct
14024 unsigned : 1;
14025 unsigned : 1;
14026 unsigned : 1;
14027 unsigned : 1;
14028 unsigned CCP1Y : 1;
14029 unsigned CCP1X : 1;
14030 unsigned : 1;
14031 unsigned : 1;
14034 struct
14036 unsigned CCP1M : 4;
14037 unsigned : 4;
14040 struct
14042 unsigned : 4;
14043 unsigned DC1B : 2;
14044 unsigned : 2;
14047 struct
14049 unsigned : 6;
14050 unsigned P1M : 2;
14052 } __ECCP1CONbits_t;
14054 extern __at(0x0FBB) volatile __ECCP1CONbits_t ECCP1CONbits;
14056 #define _ECCP1CON_CCP1M0 0x01
14057 #define _ECCP1CON_CCP1M1 0x02
14058 #define _ECCP1CON_CCP1M2 0x04
14059 #define _ECCP1CON_CCP1M3 0x08
14060 #define _ECCP1CON_DC1B0 0x10
14061 #define _ECCP1CON_CCP1Y 0x10
14062 #define _ECCP1CON_DC1B1 0x20
14063 #define _ECCP1CON_CCP1X 0x20
14064 #define _ECCP1CON_P1M0 0x40
14065 #define _ECCP1CON_P1M1 0x80
14067 //==============================================================================
14069 extern __at(0x0FBC) __sfr CCPR1;
14070 extern __at(0x0FBC) __sfr CCPR1L;
14071 extern __at(0x0FBD) __sfr CCPR1H;
14073 //==============================================================================
14074 // ECCP1DEL Bits
14076 extern __at(0x0FBE) __sfr ECCP1DEL;
14078 typedef union
14080 struct
14082 unsigned P1DC0 : 1;
14083 unsigned P1DC1 : 1;
14084 unsigned P1DC2 : 1;
14085 unsigned P1DC3 : 1;
14086 unsigned P1DC4 : 1;
14087 unsigned P1DC5 : 1;
14088 unsigned P1DC6 : 1;
14089 unsigned P1RSEN : 1;
14092 struct
14094 unsigned P1DC : 7;
14095 unsigned : 1;
14097 } __ECCP1DELbits_t;
14099 extern __at(0x0FBE) volatile __ECCP1DELbits_t ECCP1DELbits;
14101 #define _P1DC0 0x01
14102 #define _P1DC1 0x02
14103 #define _P1DC2 0x04
14104 #define _P1DC3 0x08
14105 #define _P1DC4 0x10
14106 #define _P1DC5 0x20
14107 #define _P1DC6 0x40
14108 #define _P1RSEN 0x80
14110 //==============================================================================
14113 //==============================================================================
14114 // PWM1CON Bits
14116 extern __at(0x0FBE) __sfr PWM1CON;
14118 typedef union
14120 struct
14122 unsigned P1DC0 : 1;
14123 unsigned P1DC1 : 1;
14124 unsigned P1DC2 : 1;
14125 unsigned P1DC3 : 1;
14126 unsigned P1DC4 : 1;
14127 unsigned P1DC5 : 1;
14128 unsigned P1DC6 : 1;
14129 unsigned P1RSEN : 1;
14132 struct
14134 unsigned P1DC : 7;
14135 unsigned : 1;
14137 } __PWM1CONbits_t;
14139 extern __at(0x0FBE) volatile __PWM1CONbits_t PWM1CONbits;
14141 #define _PWM1CON_P1DC0 0x01
14142 #define _PWM1CON_P1DC1 0x02
14143 #define _PWM1CON_P1DC2 0x04
14144 #define _PWM1CON_P1DC3 0x08
14145 #define _PWM1CON_P1DC4 0x10
14146 #define _PWM1CON_P1DC5 0x20
14147 #define _PWM1CON_P1DC6 0x40
14148 #define _PWM1CON_P1RSEN 0x80
14150 //==============================================================================
14153 //==============================================================================
14154 // ECCP1AS Bits
14156 extern __at(0x0FBF) __sfr ECCP1AS;
14158 typedef union
14160 struct
14162 unsigned PSS1BD0 : 1;
14163 unsigned PSS1BD1 : 1;
14164 unsigned PSS1AC0 : 1;
14165 unsigned PSS1AC1 : 1;
14166 unsigned ECCP1AS0 : 1;
14167 unsigned ECCP1AS1 : 1;
14168 unsigned ECCP1AS2 : 1;
14169 unsigned ECCP1ASE : 1;
14172 struct
14174 unsigned PSS1BD : 2;
14175 unsigned : 6;
14178 struct
14180 unsigned : 2;
14181 unsigned PSS1AC : 2;
14182 unsigned : 4;
14185 struct
14187 unsigned : 4;
14188 unsigned ECCP1AS : 3;
14189 unsigned : 1;
14191 } __ECCP1ASbits_t;
14193 extern __at(0x0FBF) volatile __ECCP1ASbits_t ECCP1ASbits;
14195 #define _PSS1BD0 0x01
14196 #define _PSS1BD1 0x02
14197 #define _PSS1AC0 0x04
14198 #define _PSS1AC1 0x08
14199 #define _ECCP1AS0 0x10
14200 #define _ECCP1AS1 0x20
14201 #define _ECCP1AS2 0x40
14202 #define _ECCP1ASE 0x80
14204 //==============================================================================
14207 //==============================================================================
14208 // ADCON2 Bits
14210 extern __at(0x0FC0) __sfr ADCON2;
14212 typedef union
14214 struct
14216 unsigned ADCS0 : 1;
14217 unsigned ADCS1 : 1;
14218 unsigned ADCS2 : 1;
14219 unsigned ACQT0 : 1;
14220 unsigned ACQT1 : 1;
14221 unsigned ACQT2 : 1;
14222 unsigned : 1;
14223 unsigned ADFM : 1;
14226 struct
14228 unsigned ADCS : 3;
14229 unsigned : 5;
14232 struct
14234 unsigned : 3;
14235 unsigned ACQT : 3;
14236 unsigned : 2;
14238 } __ADCON2bits_t;
14240 extern __at(0x0FC0) volatile __ADCON2bits_t ADCON2bits;
14242 #define _ADCS0 0x01
14243 #define _ADCS1 0x02
14244 #define _ADCS2 0x04
14245 #define _ACQT0 0x08
14246 #define _ACQT1 0x10
14247 #define _ACQT2 0x20
14248 #define _ADFM 0x80
14250 //==============================================================================
14253 //==============================================================================
14254 // ADCON1 Bits
14256 extern __at(0x0FC1) __sfr ADCON1;
14258 typedef union
14260 struct
14262 unsigned CHSN0 : 1;
14263 unsigned CHSN1 : 1;
14264 unsigned CHSN2 : 1;
14265 unsigned VNCFG : 1;
14266 unsigned VCFG0 : 1;
14267 unsigned VCFG1 : 1;
14268 unsigned TRIGSEL0 : 1;
14269 unsigned TRIGSEL1 : 1;
14272 struct
14274 unsigned CHSN : 3;
14275 unsigned : 5;
14278 struct
14280 unsigned : 4;
14281 unsigned VCFG : 2;
14282 unsigned : 2;
14285 struct
14287 unsigned : 6;
14288 unsigned TRIGSEL : 2;
14290 } __ADCON1bits_t;
14292 extern __at(0x0FC1) volatile __ADCON1bits_t ADCON1bits;
14294 #define _CHSN0 0x01
14295 #define _CHSN1 0x02
14296 #define _CHSN2 0x04
14297 #define _VNCFG 0x08
14298 #define _VCFG0 0x10
14299 #define _VCFG1 0x20
14300 #define _TRIGSEL0 0x40
14301 #define _TRIGSEL1 0x80
14303 //==============================================================================
14306 //==============================================================================
14307 // ADCON0 Bits
14309 extern __at(0x0FC2) __sfr ADCON0;
14311 typedef union
14313 struct
14315 unsigned ADON : 1;
14316 unsigned GO_NOT_DONE : 1;
14317 unsigned CHS0 : 1;
14318 unsigned CHS1 : 1;
14319 unsigned CHS2 : 1;
14320 unsigned CHS3 : 1;
14321 unsigned CHS4 : 1;
14322 unsigned : 1;
14325 struct
14327 unsigned : 1;
14328 unsigned DONE : 1;
14329 unsigned : 1;
14330 unsigned : 1;
14331 unsigned : 1;
14332 unsigned : 1;
14333 unsigned : 1;
14334 unsigned : 1;
14337 struct
14339 unsigned : 1;
14340 unsigned GO : 1;
14341 unsigned : 1;
14342 unsigned : 1;
14343 unsigned : 1;
14344 unsigned : 1;
14345 unsigned : 1;
14346 unsigned : 1;
14349 struct
14351 unsigned : 1;
14352 unsigned NOT_DONE : 1;
14353 unsigned : 1;
14354 unsigned : 1;
14355 unsigned : 1;
14356 unsigned : 1;
14357 unsigned : 1;
14358 unsigned : 1;
14361 struct
14363 unsigned : 2;
14364 unsigned CHS : 5;
14365 unsigned : 1;
14367 } __ADCON0bits_t;
14369 extern __at(0x0FC2) volatile __ADCON0bits_t ADCON0bits;
14371 #define _ADON 0x01
14372 #define _GO_NOT_DONE 0x02
14373 #define _DONE 0x02
14374 #define _GO 0x02
14375 #define _NOT_DONE 0x02
14376 #define _CHS0 0x04
14377 #define _CHS1 0x08
14378 #define _CHS2 0x10
14379 #define _CHS3 0x20
14380 #define _CHS4 0x40
14382 //==============================================================================
14384 extern __at(0x0FC3) __sfr ADRES;
14385 extern __at(0x0FC3) __sfr ADRESL;
14386 extern __at(0x0FC4) __sfr ADRESH;
14388 //==============================================================================
14389 // SSPCON2 Bits
14391 extern __at(0x0FC5) __sfr SSPCON2;
14393 typedef union
14395 struct
14397 unsigned SEN : 1;
14398 unsigned RSEN : 1;
14399 unsigned PEN : 1;
14400 unsigned RCEN : 1;
14401 unsigned ACKEN : 1;
14402 unsigned ACKDT : 1;
14403 unsigned ACKSTAT : 1;
14404 unsigned GCEN : 1;
14407 struct
14409 unsigned : 1;
14410 unsigned ADMSK1 : 1;
14411 unsigned ADMSK2 : 1;
14412 unsigned ADMSK3 : 1;
14413 unsigned ADMSK4 : 1;
14414 unsigned ADMSK5 : 1;
14415 unsigned : 1;
14416 unsigned : 1;
14418 } __SSPCON2bits_t;
14420 extern __at(0x0FC5) volatile __SSPCON2bits_t SSPCON2bits;
14422 #define _SEN 0x01
14423 #define _RSEN 0x02
14424 #define _ADMSK1 0x02
14425 #define _PEN 0x04
14426 #define _ADMSK2 0x04
14427 #define _RCEN 0x08
14428 #define _ADMSK3 0x08
14429 #define _ACKEN 0x10
14430 #define _ADMSK4 0x10
14431 #define _ACKDT 0x20
14432 #define _ADMSK5 0x20
14433 #define _ACKSTAT 0x40
14434 #define _GCEN 0x80
14436 //==============================================================================
14439 //==============================================================================
14440 // SSPCON1 Bits
14442 extern __at(0x0FC6) __sfr SSPCON1;
14444 typedef union
14446 struct
14448 unsigned SSPM0 : 1;
14449 unsigned SSPM1 : 1;
14450 unsigned SSPM2 : 1;
14451 unsigned SSPM3 : 1;
14452 unsigned CKP : 1;
14453 unsigned SSPEN : 1;
14454 unsigned SSPOV : 1;
14455 unsigned WCOL : 1;
14458 struct
14460 unsigned SSPM : 4;
14461 unsigned : 4;
14463 } __SSPCON1bits_t;
14465 extern __at(0x0FC6) volatile __SSPCON1bits_t SSPCON1bits;
14467 #define _SSPM0 0x01
14468 #define _SSPM1 0x02
14469 #define _SSPM2 0x04
14470 #define _SSPM3 0x08
14471 #define _CKP 0x10
14472 #define _SSPEN 0x20
14473 #define _SSPOV 0x40
14474 #define _WCOL 0x80
14476 //==============================================================================
14479 //==============================================================================
14480 // SSPSTAT Bits
14482 extern __at(0x0FC7) __sfr SSPSTAT;
14484 typedef union
14486 struct
14488 unsigned BF : 1;
14489 unsigned UA : 1;
14490 unsigned R_NOT_W : 1;
14491 unsigned S : 1;
14492 unsigned P : 1;
14493 unsigned D_NOT_A : 1;
14494 unsigned CKE : 1;
14495 unsigned SMP : 1;
14498 struct
14500 unsigned : 1;
14501 unsigned : 1;
14502 unsigned R_W : 1;
14503 unsigned I2C_START : 1;
14504 unsigned I2C_STOP : 1;
14505 unsigned D_A : 1;
14506 unsigned : 1;
14507 unsigned : 1;
14510 struct
14512 unsigned : 1;
14513 unsigned : 1;
14514 unsigned NOT_W : 1;
14515 unsigned : 1;
14516 unsigned : 1;
14517 unsigned NOT_A : 1;
14518 unsigned : 1;
14519 unsigned : 1;
14522 struct
14524 unsigned : 1;
14525 unsigned : 1;
14526 unsigned NOT_WRITE : 1;
14527 unsigned : 1;
14528 unsigned : 1;
14529 unsigned NOT_ADDRESS : 1;
14530 unsigned : 1;
14531 unsigned : 1;
14534 struct
14536 unsigned : 1;
14537 unsigned : 1;
14538 unsigned READ_WRITE : 1;
14539 unsigned : 1;
14540 unsigned : 1;
14541 unsigned DATA_ADDRESS : 1;
14542 unsigned : 1;
14543 unsigned : 1;
14546 struct
14548 unsigned : 1;
14549 unsigned : 1;
14550 unsigned I2C_READ : 1;
14551 unsigned : 1;
14552 unsigned : 1;
14553 unsigned I2C_DAT : 1;
14554 unsigned : 1;
14555 unsigned : 1;
14557 } __SSPSTATbits_t;
14559 extern __at(0x0FC7) volatile __SSPSTATbits_t SSPSTATbits;
14561 #define _BF 0x01
14562 #define _UA 0x02
14563 #define _R_NOT_W 0x04
14564 #define _R_W 0x04
14565 #define _NOT_W 0x04
14566 #define _NOT_WRITE 0x04
14567 #define _READ_WRITE 0x04
14568 #define _I2C_READ 0x04
14569 #define _S 0x08
14570 #define _I2C_START 0x08
14571 #define _P 0x10
14572 #define _I2C_STOP 0x10
14573 #define _D_NOT_A 0x20
14574 #define _D_A 0x20
14575 #define _NOT_A 0x20
14576 #define _NOT_ADDRESS 0x20
14577 #define _DATA_ADDRESS 0x20
14578 #define _I2C_DAT 0x20
14579 #define _CKE 0x40
14580 #define _SMP 0x80
14582 //==============================================================================
14585 //==============================================================================
14586 // SSPADD Bits
14588 extern __at(0x0FC8) __sfr SSPADD;
14590 typedef struct
14592 unsigned MSK0 : 1;
14593 unsigned MSK1 : 1;
14594 unsigned MSK2 : 1;
14595 unsigned MSK3 : 1;
14596 unsigned MSK4 : 1;
14597 unsigned MSK5 : 1;
14598 unsigned MSK6 : 1;
14599 unsigned MSK7 : 1;
14600 } __SSPADDbits_t;
14602 extern __at(0x0FC8) volatile __SSPADDbits_t SSPADDbits;
14604 #define _MSK0 0x01
14605 #define _MSK1 0x02
14606 #define _MSK2 0x04
14607 #define _MSK3 0x08
14608 #define _MSK4 0x10
14609 #define _MSK5 0x20
14610 #define _MSK6 0x40
14611 #define _MSK7 0x80
14613 //==============================================================================
14615 extern __at(0x0FC9) __sfr SSPBUF;
14617 //==============================================================================
14618 // T2CON Bits
14620 extern __at(0x0FCA) __sfr T2CON;
14622 typedef union
14624 struct
14626 unsigned T2CKPS0 : 1;
14627 unsigned T2CKPS1 : 1;
14628 unsigned TMR2ON : 1;
14629 unsigned T2OUTPS0 : 1;
14630 unsigned T2OUTPS1 : 1;
14631 unsigned T2OUTPS2 : 1;
14632 unsigned T2OUTPS3 : 1;
14633 unsigned : 1;
14636 struct
14638 unsigned T2CKPS : 2;
14639 unsigned : 6;
14642 struct
14644 unsigned : 3;
14645 unsigned T2OUTPS : 4;
14646 unsigned : 1;
14648 } __T2CONbits_t;
14650 extern __at(0x0FCA) volatile __T2CONbits_t T2CONbits;
14652 #define _T2CKPS0 0x01
14653 #define _T2CKPS1 0x02
14654 #define _TMR2ON 0x04
14655 #define _T2OUTPS0 0x08
14656 #define _T2OUTPS1 0x10
14657 #define _T2OUTPS2 0x20
14658 #define _T2OUTPS3 0x40
14660 //==============================================================================
14662 extern __at(0x0FCB) __sfr PR2;
14663 extern __at(0x0FCC) __sfr TMR2;
14665 //==============================================================================
14666 // T1CON Bits
14668 extern __at(0x0FCD) __sfr T1CON;
14670 typedef union
14672 struct
14674 unsigned TMR1ON : 1;
14675 unsigned RD16 : 1;
14676 unsigned NOT_T1SYNC : 1;
14677 unsigned SOSCEN : 1;
14678 unsigned T1CKPS0 : 1;
14679 unsigned T1CKPS1 : 1;
14680 unsigned TMR1CS0 : 1;
14681 unsigned TMR1CS1 : 1;
14684 struct
14686 unsigned : 4;
14687 unsigned T1CKPS : 2;
14688 unsigned : 2;
14691 struct
14693 unsigned : 6;
14694 unsigned TMR1CS : 2;
14696 } __T1CONbits_t;
14698 extern __at(0x0FCD) volatile __T1CONbits_t T1CONbits;
14700 #define _TMR1ON 0x01
14701 #define _RD16 0x02
14702 #define _NOT_T1SYNC 0x04
14703 #define _SOSCEN 0x08
14704 #define _T1CKPS0 0x10
14705 #define _T1CKPS1 0x20
14706 #define _TMR1CS0 0x40
14707 #define _TMR1CS1 0x80
14709 //==============================================================================
14711 extern __at(0x0FCE) __sfr TMR1;
14712 extern __at(0x0FCE) __sfr TMR1L;
14713 extern __at(0x0FCF) __sfr TMR1H;
14715 //==============================================================================
14716 // RCON Bits
14718 extern __at(0x0FD0) __sfr RCON;
14720 typedef union
14722 struct
14724 unsigned NOT_BOR : 1;
14725 unsigned NOT_POR : 1;
14726 unsigned NOT_PD : 1;
14727 unsigned NOT_TO : 1;
14728 unsigned NOT_RI : 1;
14729 unsigned NOT_CM : 1;
14730 unsigned SBOREN : 1;
14731 unsigned IPEN : 1;
14734 struct
14736 unsigned BOR : 1;
14737 unsigned POR : 1;
14738 unsigned PD : 1;
14739 unsigned TO : 1;
14740 unsigned RI : 1;
14741 unsigned CM : 1;
14742 unsigned : 1;
14743 unsigned : 1;
14745 } __RCONbits_t;
14747 extern __at(0x0FD0) volatile __RCONbits_t RCONbits;
14749 #define _NOT_BOR 0x01
14750 #define _BOR 0x01
14751 #define _NOT_POR 0x02
14752 #define _POR 0x02
14753 #define _NOT_PD 0x04
14754 #define _PD 0x04
14755 #define _NOT_TO 0x08
14756 #define _TO 0x08
14757 #define _NOT_RI 0x10
14758 #define _RI 0x10
14759 #define _NOT_CM 0x20
14760 #define _CM 0x20
14761 #define _SBOREN 0x40
14762 #define _IPEN 0x80
14764 //==============================================================================
14767 //==============================================================================
14768 // WDTCON Bits
14770 extern __at(0x0FD1) __sfr WDTCON;
14772 typedef union
14774 struct
14776 unsigned SWDTEN : 1;
14777 unsigned ULPSINK : 1;
14778 unsigned ULPEN : 1;
14779 unsigned : 1;
14780 unsigned SRETEN : 1;
14781 unsigned ULPLVL : 1;
14782 unsigned : 1;
14783 unsigned REGSLP : 1;
14786 struct
14788 unsigned SWDTE : 1;
14789 unsigned : 1;
14790 unsigned : 1;
14791 unsigned : 1;
14792 unsigned : 1;
14793 unsigned : 1;
14794 unsigned : 1;
14795 unsigned : 1;
14797 } __WDTCONbits_t;
14799 extern __at(0x0FD1) volatile __WDTCONbits_t WDTCONbits;
14801 #define _SWDTEN 0x01
14802 #define _SWDTE 0x01
14803 #define _ULPSINK 0x02
14804 #define _ULPEN 0x04
14805 #define _SRETEN 0x10
14806 #define _ULPLVL 0x20
14807 #define _REGSLP 0x80
14809 //==============================================================================
14812 //==============================================================================
14813 // OSCCON2 Bits
14815 extern __at(0x0FD2) __sfr OSCCON2;
14817 typedef union
14819 struct
14821 unsigned MFIOSEL : 1;
14822 unsigned MFIOFS : 1;
14823 unsigned LVDL2 : 1;
14824 unsigned SOSCGO : 1;
14825 unsigned SOSCDRV : 1;
14826 unsigned : 1;
14827 unsigned SOSCRUN : 1;
14828 unsigned : 1;
14831 struct
14833 unsigned LVDL0 : 1;
14834 unsigned LVDL1 : 1;
14835 unsigned : 1;
14836 unsigned LVDL3 : 1;
14837 unsigned : 1;
14838 unsigned : 1;
14839 unsigned : 1;
14840 unsigned : 1;
14843 struct
14845 unsigned LVDL : 4;
14846 unsigned : 4;
14848 } __OSCCON2bits_t;
14850 extern __at(0x0FD2) volatile __OSCCON2bits_t OSCCON2bits;
14852 #define _MFIOSEL 0x01
14853 #define _LVDL0 0x01
14854 #define _MFIOFS 0x02
14855 #define _LVDL1 0x02
14856 #define _LVDL2 0x04
14857 #define _SOSCGO 0x08
14858 #define _LVDL3 0x08
14859 #define _SOSCDRV 0x10
14860 #define _SOSCRUN 0x40
14862 //==============================================================================
14865 //==============================================================================
14866 // OSCCON Bits
14868 extern __at(0x0FD3) __sfr OSCCON;
14870 typedef union
14872 struct
14874 unsigned SCS0 : 1;
14875 unsigned SCS1 : 1;
14876 unsigned HFIOFS : 1;
14877 unsigned OSTS : 1;
14878 unsigned IRCF0 : 1;
14879 unsigned IRCF1 : 1;
14880 unsigned IRCF2 : 1;
14881 unsigned IDLEN : 1;
14884 struct
14886 unsigned SCS : 2;
14887 unsigned : 6;
14890 struct
14892 unsigned : 4;
14893 unsigned IRCF : 3;
14894 unsigned : 1;
14896 } __OSCCONbits_t;
14898 extern __at(0x0FD3) volatile __OSCCONbits_t OSCCONbits;
14900 #define _SCS0 0x01
14901 #define _SCS1 0x02
14902 #define _HFIOFS 0x04
14903 #define _OSTS 0x08
14904 #define _IRCF0 0x10
14905 #define _IRCF1 0x20
14906 #define _IRCF2 0x40
14907 #define _IDLEN 0x80
14909 //==============================================================================
14912 //==============================================================================
14913 // T0CON Bits
14915 extern __at(0x0FD5) __sfr T0CON;
14917 typedef union
14919 struct
14921 unsigned T0PS0 : 1;
14922 unsigned T0PS1 : 1;
14923 unsigned T0PS2 : 1;
14924 unsigned PSA : 1;
14925 unsigned T0SE : 1;
14926 unsigned T0CS : 1;
14927 unsigned T08BIT : 1;
14928 unsigned TMR0ON : 1;
14931 struct
14933 unsigned T0PS : 3;
14934 unsigned : 5;
14936 } __T0CONbits_t;
14938 extern __at(0x0FD5) volatile __T0CONbits_t T0CONbits;
14940 #define _T0PS0 0x01
14941 #define _T0PS1 0x02
14942 #define _T0PS2 0x04
14943 #define _PSA 0x08
14944 #define _T0SE 0x10
14945 #define _T0CS 0x20
14946 #define _T08BIT 0x40
14947 #define _TMR0ON 0x80
14949 //==============================================================================
14951 extern __at(0x0FD6) __sfr TMR0;
14952 extern __at(0x0FD6) __sfr TMR0L;
14953 extern __at(0x0FD7) __sfr TMR0H;
14955 //==============================================================================
14956 // STATUS Bits
14958 extern __at(0x0FD8) __sfr STATUS;
14960 typedef struct
14962 unsigned C : 1;
14963 unsigned DC : 1;
14964 unsigned Z : 1;
14965 unsigned OV : 1;
14966 unsigned N : 1;
14967 unsigned : 1;
14968 unsigned : 1;
14969 unsigned : 1;
14970 } __STATUSbits_t;
14972 extern __at(0x0FD8) volatile __STATUSbits_t STATUSbits;
14974 #define _C 0x01
14975 #define _DC 0x02
14976 #define _Z 0x04
14977 #define _OV 0x08
14978 #define _N 0x10
14980 //==============================================================================
14982 extern __at(0x0FD9) __sfr FSR2L;
14983 extern __at(0x0FDA) __sfr FSR2H;
14984 extern __at(0x0FDB) __sfr PLUSW2;
14985 extern __at(0x0FDC) __sfr PREINC2;
14986 extern __at(0x0FDD) __sfr POSTDEC2;
14987 extern __at(0x0FDE) __sfr POSTINC2;
14988 extern __at(0x0FDF) __sfr INDF2;
14989 extern __at(0x0FE0) __sfr BSR;
14990 extern __at(0x0FE1) __sfr FSR1L;
14991 extern __at(0x0FE2) __sfr FSR1H;
14992 extern __at(0x0FE3) __sfr PLUSW1;
14993 extern __at(0x0FE4) __sfr PREINC1;
14994 extern __at(0x0FE5) __sfr POSTDEC1;
14995 extern __at(0x0FE6) __sfr POSTINC1;
14996 extern __at(0x0FE7) __sfr INDF1;
14997 extern __at(0x0FE8) __sfr WREG;
14998 extern __at(0x0FE9) __sfr FSR0L;
14999 extern __at(0x0FEA) __sfr FSR0H;
15000 extern __at(0x0FEB) __sfr PLUSW0;
15001 extern __at(0x0FEC) __sfr PREINC0;
15002 extern __at(0x0FED) __sfr POSTDEC0;
15003 extern __at(0x0FEE) __sfr POSTINC0;
15004 extern __at(0x0FEF) __sfr INDF0;
15006 //==============================================================================
15007 // INTCON3 Bits
15009 extern __at(0x0FF0) __sfr INTCON3;
15011 typedef union
15013 struct
15015 unsigned INT1IF : 1;
15016 unsigned INT2IF : 1;
15017 unsigned INT3IF : 1;
15018 unsigned INT1IE : 1;
15019 unsigned INT2IE : 1;
15020 unsigned INT3IE : 1;
15021 unsigned INT1IP : 1;
15022 unsigned INT2IP : 1;
15025 struct
15027 unsigned INT1F : 1;
15028 unsigned INT2F : 1;
15029 unsigned INT3F : 1;
15030 unsigned INT1E : 1;
15031 unsigned INT2E : 1;
15032 unsigned INT3E : 1;
15033 unsigned INT1P : 1;
15034 unsigned INT2P : 1;
15036 } __INTCON3bits_t;
15038 extern __at(0x0FF0) volatile __INTCON3bits_t INTCON3bits;
15040 #define _INT1IF 0x01
15041 #define _INT1F 0x01
15042 #define _INT2IF 0x02
15043 #define _INT2F 0x02
15044 #define _INT3IF 0x04
15045 #define _INT3F 0x04
15046 #define _INT1IE 0x08
15047 #define _INT1E 0x08
15048 #define _INT2IE 0x10
15049 #define _INT2E 0x10
15050 #define _INT3IE 0x20
15051 #define _INT3E 0x20
15052 #define _INT1IP 0x40
15053 #define _INT1P 0x40
15054 #define _INT2IP 0x80
15055 #define _INT2P 0x80
15057 //==============================================================================
15060 //==============================================================================
15061 // INTCON2 Bits
15063 extern __at(0x0FF1) __sfr INTCON2;
15065 typedef union
15067 struct
15069 unsigned RBIP : 1;
15070 unsigned INT3IP : 1;
15071 unsigned TMR0IP : 1;
15072 unsigned INTEDG3 : 1;
15073 unsigned INTEDG2 : 1;
15074 unsigned INTEDG1 : 1;
15075 unsigned INTEDG0 : 1;
15076 unsigned NOT_RBPU : 1;
15079 struct
15081 unsigned : 1;
15082 unsigned INT3P : 1;
15083 unsigned T0IP : 1;
15084 unsigned : 1;
15085 unsigned : 1;
15086 unsigned : 1;
15087 unsigned : 1;
15088 unsigned RBPU : 1;
15090 } __INTCON2bits_t;
15092 extern __at(0x0FF1) volatile __INTCON2bits_t INTCON2bits;
15094 #define _RBIP 0x01
15095 #define _INT3IP 0x02
15096 #define _INT3P 0x02
15097 #define _TMR0IP 0x04
15098 #define _T0IP 0x04
15099 #define _INTEDG3 0x08
15100 #define _INTEDG2 0x10
15101 #define _INTEDG1 0x20
15102 #define _INTEDG0 0x40
15103 #define _NOT_RBPU 0x80
15104 #define _RBPU 0x80
15106 //==============================================================================
15109 //==============================================================================
15110 // INTCON Bits
15112 extern __at(0x0FF2) __sfr INTCON;
15114 typedef union
15116 struct
15118 unsigned RBIF : 1;
15119 unsigned INT0IF : 1;
15120 unsigned TMR0IF : 1;
15121 unsigned RBIE : 1;
15122 unsigned INT0IE : 1;
15123 unsigned TMR0IE : 1;
15124 unsigned PEIE_GIEL : 1;
15125 unsigned GIE_GIEH : 1;
15128 struct
15130 unsigned : 1;
15131 unsigned INT0F : 1;
15132 unsigned T0IF : 1;
15133 unsigned : 1;
15134 unsigned INT0E : 1;
15135 unsigned T0IE : 1;
15136 unsigned PEIE : 1;
15137 unsigned GIE : 1;
15140 struct
15142 unsigned : 1;
15143 unsigned : 1;
15144 unsigned : 1;
15145 unsigned : 1;
15146 unsigned : 1;
15147 unsigned : 1;
15148 unsigned GIEL : 1;
15149 unsigned GIEH : 1;
15151 } __INTCONbits_t;
15153 extern __at(0x0FF2) volatile __INTCONbits_t INTCONbits;
15155 #define _RBIF 0x01
15156 #define _INT0IF 0x02
15157 #define _INT0F 0x02
15158 #define _TMR0IF 0x04
15159 #define _T0IF 0x04
15160 #define _RBIE 0x08
15161 #define _INT0IE 0x10
15162 #define _INT0E 0x10
15163 #define _TMR0IE 0x20
15164 #define _T0IE 0x20
15165 #define _PEIE_GIEL 0x40
15166 #define _PEIE 0x40
15167 #define _GIEL 0x40
15168 #define _GIE_GIEH 0x80
15169 #define _GIE 0x80
15170 #define _GIEH 0x80
15172 //==============================================================================
15175 //==============================================================================
15176 // INTCON1 Bits
15178 extern __at(0x0FF2) __sfr INTCON1;
15180 typedef union
15182 struct
15184 unsigned RBIF : 1;
15185 unsigned INT0IF : 1;
15186 unsigned TMR0IF : 1;
15187 unsigned RBIE : 1;
15188 unsigned INT0IE : 1;
15189 unsigned TMR0IE : 1;
15190 unsigned PEIE_GIEL : 1;
15191 unsigned GIE_GIEH : 1;
15194 struct
15196 unsigned : 1;
15197 unsigned INT0F : 1;
15198 unsigned T0IF : 1;
15199 unsigned : 1;
15200 unsigned INT0E : 1;
15201 unsigned T0IE : 1;
15202 unsigned PEIE : 1;
15203 unsigned GIE : 1;
15206 struct
15208 unsigned : 1;
15209 unsigned : 1;
15210 unsigned : 1;
15211 unsigned : 1;
15212 unsigned : 1;
15213 unsigned : 1;
15214 unsigned GIEL : 1;
15215 unsigned GIEH : 1;
15217 } __INTCON1bits_t;
15219 extern __at(0x0FF2) volatile __INTCON1bits_t INTCON1bits;
15221 #define _INTCON1_RBIF 0x01
15222 #define _INTCON1_INT0IF 0x02
15223 #define _INTCON1_INT0F 0x02
15224 #define _INTCON1_TMR0IF 0x04
15225 #define _INTCON1_T0IF 0x04
15226 #define _INTCON1_RBIE 0x08
15227 #define _INTCON1_INT0IE 0x10
15228 #define _INTCON1_INT0E 0x10
15229 #define _INTCON1_TMR0IE 0x20
15230 #define _INTCON1_T0IE 0x20
15231 #define _INTCON1_PEIE_GIEL 0x40
15232 #define _INTCON1_PEIE 0x40
15233 #define _INTCON1_GIEL 0x40
15234 #define _INTCON1_GIE_GIEH 0x80
15235 #define _INTCON1_GIE 0x80
15236 #define _INTCON1_GIEH 0x80
15238 //==============================================================================
15240 extern __at(0x0FF3) __sfr PROD;
15241 extern __at(0x0FF3) __sfr PRODL;
15242 extern __at(0x0FF4) __sfr PRODH;
15243 extern __at(0x0FF5) __sfr TABLAT;
15244 extern __at(0x0FF6) __sfr TBLPTR;
15245 extern __at(0x0FF6) __sfr TBLPTRL;
15246 extern __at(0x0FF7) __sfr TBLPTRH;
15247 extern __at(0x0FF8) __sfr TBLPTRU;
15248 extern __at(0x0FF9) __sfr PC;
15249 extern __at(0x0FF9) __sfr PCL;
15250 extern __at(0x0FFA) __sfr PCLATH;
15251 extern __at(0x0FFB) __sfr PCLATU;
15253 //==============================================================================
15254 // STKPTR Bits
15256 extern __at(0x0FFC) __sfr STKPTR;
15258 typedef union
15260 struct
15262 unsigned SP0 : 1;
15263 unsigned SP1 : 1;
15264 unsigned SP2 : 1;
15265 unsigned SP3 : 1;
15266 unsigned SP4 : 1;
15267 unsigned : 1;
15268 unsigned STKUNF : 1;
15269 unsigned STKFUL : 1;
15272 struct
15274 unsigned : 1;
15275 unsigned : 1;
15276 unsigned : 1;
15277 unsigned : 1;
15278 unsigned : 1;
15279 unsigned : 1;
15280 unsigned : 1;
15281 unsigned STKOVF : 1;
15284 struct
15286 unsigned SP : 5;
15287 unsigned : 3;
15289 } __STKPTRbits_t;
15291 extern __at(0x0FFC) volatile __STKPTRbits_t STKPTRbits;
15293 #define _SP0 0x01
15294 #define _SP1 0x02
15295 #define _SP2 0x04
15296 #define _SP3 0x08
15297 #define _SP4 0x10
15298 #define _STKUNF 0x40
15299 #define _STKFUL 0x80
15300 #define _STKOVF 0x80
15302 //==============================================================================
15304 extern __at(0x0FFD) __sfr TOS;
15305 extern __at(0x0FFD) __sfr TOSL;
15306 extern __at(0x0FFE) __sfr TOSH;
15307 extern __at(0x0FFF) __sfr TOSU;
15309 //==============================================================================
15311 // Configuration Bits
15313 //==============================================================================
15315 #define __CONFIG1L 0x300000
15316 #define __CONFIG1H 0x300001
15317 #define __CONFIG2L 0x300002
15318 #define __CONFIG2H 0x300003
15319 #define __CONFIG3H 0x300005
15320 #define __CONFIG4L 0x300006
15321 #define __CONFIG5L 0x300008
15322 #define __CONFIG5H 0x300009
15323 #define __CONFIG6L 0x30000A
15324 #define __CONFIG6H 0x30000B
15325 #define __CONFIG7L 0x30000C
15326 #define __CONFIG7H 0x30000D
15328 //----------------------------- CONFIG1L Options -------------------------------
15330 #define _RETEN_ON_1L 0xFE // Ultra low-power regulator is Enabled (Controlled by SRETEN bit).
15331 #define _RETEN_OFF_1L 0xFF // Ultra low-power regulator is Disabled (Controlled by REGSLP bit).
15332 #define _INTOSCSEL_LOW_1L 0xFB // LF-INTOSC in Low-power mode during Sleep.
15333 #define _INTOSCSEL_HIGH_1L 0xFF // LF-INTOSC in High-power mode during Sleep.
15334 #define _SOSCSEL_LOW_1L 0xEF // Low Power SOSC circuit selected.
15335 #define _SOSCSEL_DIG_1L 0xF7 // Digital (SCLKI) mode.
15336 #define _SOSCSEL_HIGH_1L 0xFF // High Power SOSC circuit selected.
15337 #define _XINST_OFF_1L 0xBF // Disabled.
15338 #define _XINST_ON_1L 0xFF // Enabled.
15340 //----------------------------- CONFIG1H Options -------------------------------
15342 #define _FOSC_LP_1H 0xF0 // LP oscillator.
15343 #define _FOSC_XT_1H 0xF1 // XT oscillator.
15344 #define _FOSC_HS2_1H 0xF2 // HS oscillator (High power, 16 MHz - 25 MHz).
15345 #define _FOSC_HS1_1H 0xF3 // HS oscillator (Medium power, 4 MHz - 16 MHz).
15346 #define _FOSC_EC3IO_1H 0xF4 // EC oscillator, CLKOUT function on OSC2 (High power, 16 MHz - 64 MHz).
15347 #define _FOSC_EC3_1H 0xF5 // EC oscillator (High power, 16 MHz - 64 MHz).
15348 #define _FOSC_RC_1H 0xF6 // External RC oscillator, CLKOUT function on OSC2.
15349 #define _FOSC_RCIO_1H 0xF7 // External RC oscillator.
15350 #define _FOSC_INTIO2_1H 0xF8 // Internal RC oscillator.
15351 #define _FOSC_INTIO1_1H 0xF9 // Internal RC oscillator, CLKOUT function on OSC2.
15352 #define _FOSC_EC2IO_1H 0xFA // EC oscillator, CLKOUT function on OSC2 (Medium power, 160 kHz - 16 MHz).
15353 #define _FOSC_EC2_1H 0xFB // EC oscillator (Medium power, 160 kHz - 16 MHz).
15354 #define _FOSC_EC1IO_1H 0xFC // EC oscillator, CLKOUT function on OSC2 (Low power, DC - 160 kHz).
15355 #define _FOSC_EC1_1H 0xFD // EC oscillator (Low power, DC - 160 kHz).
15356 #define _PLLCFG_OFF_1H 0xEF // Disabled.
15357 #define _PLLCFG_ON_1H 0xFF // Enabled.
15358 #define _FCMEN_OFF_1H 0xBF // Disabled.
15359 #define _FCMEN_ON_1H 0xFF // Enabled.
15360 #define _IESO_OFF_1H 0x7F // Disabled.
15361 #define _IESO_ON_1H 0xFF // Enabled.
15363 //----------------------------- CONFIG2L Options -------------------------------
15365 #define _PWRTEN_ON_2L 0xFE // Enabled.
15366 #define _PWRTEN_OFF_2L 0xFF // Disabled.
15367 #define _BOREN_OFF_2L 0xF9 // Disabled in hardware, SBOREN disabled.
15368 #define _BOREN_ON_2L 0xFB // Controlled with SBOREN bit.
15369 #define _BOREN_NOSLP_2L 0xFD // Enabled while active, disabled in SLEEP, SBOREN disabled.
15370 #define _BOREN_SBORDIS_2L 0xFF // Enabled in hardware, SBOREN disabled.
15371 #define _BORV_0_2L 0xE7 // 3.0V.
15372 #define _BORV_1_2L 0xEF // 2.7V.
15373 #define _BORV_2_2L 0xF7 // 2.0V.
15374 #define _BORV_3_2L 0xFF // 1.8V.
15375 #define _BORPWR_LOW_2L 0x9F // BORMV set to low power level.
15376 #define _BORPWR_MEDIUM_2L 0xBF // BORMV set to medium power level.
15377 #define _BORPWR_HIGH_2L 0xDF // BORMV set to high power level.
15378 #define _BORPWR_ZPBORMV_2L 0xFF // ZPBORMV instead of BORMV is selected.
15380 //----------------------------- CONFIG2H Options -------------------------------
15382 #define _WDTEN_OFF_2H 0xFC // WDT disabled in hardware; SWDTEN bit disabled.
15383 #define _WDTEN_NOSLP_2H 0xFD // WDT enabled only while device is active and disabled in Sleep mode; SWDTEN bit disabled.
15384 #define _WDTEN_ON_2H 0xFE // WDT controlled by SWDTEN bit setting.
15385 #define _WDTEN_SWDTDIS_2H 0xFF // WDT enabled in hardware; SWDTEN bit disabled.
15386 #define _WDTPS_1_2H 0x83 // 1:1.
15387 #define _WDTPS_2_2H 0x87 // 1:2.
15388 #define _WDTPS_4_2H 0x8B // 1:4.
15389 #define _WDTPS_8_2H 0x8F // 1:8.
15390 #define _WDTPS_16_2H 0x93 // 1:16.
15391 #define _WDTPS_32_2H 0x97 // 1:32.
15392 #define _WDTPS_64_2H 0x9B // 1:64.
15393 #define _WDTPS_128_2H 0x9F // 1:128.
15394 #define _WDTPS_256_2H 0xA3 // 1:256.
15395 #define _WDTPS_512_2H 0xA7 // 1:512.
15396 #define _WDTPS_1024_2H 0xAB // 1:1024.
15397 #define _WDTPS_2048_2H 0xAF // 1:2048.
15398 #define _WDTPS_4096_2H 0xB3 // 1:4096.
15399 #define _WDTPS_8192_2H 0xB7 // 1:8192.
15400 #define _WDTPS_16384_2H 0xBB // 1:16384.
15401 #define _WDTPS_32768_2H 0xBF // 1:32768.
15402 #define _WDTPS_65536_2H 0xC3 // 1:65536.
15403 #define _WDTPS_131072_2H 0xC7 // 1:131072.
15404 #define _WDTPS_262144_2H 0xCB // 1:262144.
15405 #define _WDTPS_524288_2H 0xCF // 1:524288.
15406 #define _WDTPS_1048576_2H 0xFF // 1:1048576.
15408 //----------------------------- CONFIG3H Options -------------------------------
15410 #define _CANMX_PORTC_3H 0xFE // ECAN TX and RX pins are located on RC6 and RC7, respectively.
15411 #define _CANMX_PORTB_3H 0xFF // ECAN TX and RX pins are located on RB2 and RB3, respectively.
15412 #define _MSSPMSK_MSK5_3H 0xF7 // 5 bit address masking mode.
15413 #define _MSSPMSK_MSK7_3H 0xFF // 7 Bit address masking mode.
15414 #define _MCLRE_OFF_3H 0x7F // MCLR Disabled, RG5 Enabled.
15415 #define _MCLRE_ON_3H 0xFF // MCLR Enabled, RE3 Disabled.
15417 //----------------------------- CONFIG4L Options -------------------------------
15419 #define _STVREN_OFF_4L 0xFE // Disabled.
15420 #define _STVREN_ON_4L 0xFF // Enabled.
15421 #define _BBSIZ_BB1K_4L 0xEF // 1K word Boot Block size.
15422 #define _BBSIZ_BB2K_4L 0xFF // 2K word Boot Block size.
15424 //----------------------------- CONFIG5L Options -------------------------------
15426 #define _CP0_ON_5L 0xFE // Enabled.
15427 #define _CP0_OFF_5L 0xFF // Disabled.
15428 #define _CP1_ON_5L 0xFD // Enabled.
15429 #define _CP1_OFF_5L 0xFF // Disabled.
15430 #define _CP2_ON_5L 0xFB // Enabled.
15431 #define _CP2_OFF_5L 0xFF // Disabled.
15432 #define _CP3_ON_5L 0xF7 // Enabled.
15433 #define _CP3_OFF_5L 0xFF // Disabled.
15435 //----------------------------- CONFIG5H Options -------------------------------
15437 #define _CPB_ON_5H 0xBF // Enabled.
15438 #define _CPB_OFF_5H 0xFF // Disabled.
15439 #define _CPD_ON_5H 0x7F // Enabled.
15440 #define _CPD_OFF_5H 0xFF // Disabled.
15442 //----------------------------- CONFIG6L Options -------------------------------
15444 #define _WRT0_ON_6L 0xFE // Enabled.
15445 #define _WRT0_OFF_6L 0xFF // Disabled.
15446 #define _WRT1_ON_6L 0xFD // Enabled.
15447 #define _WRT1_OFF_6L 0xFF // Disabled.
15448 #define _WRT2_ON_6L 0xFB // Enabled.
15449 #define _WRT2_OFF_6L 0xFF // Disabled.
15450 #define _WRT3_ON_6L 0xF7 // Enabled.
15451 #define _WRT3_OFF_6L 0xFF // Disabled.
15453 //----------------------------- CONFIG6H Options -------------------------------
15455 #define _WRTC_ON_6H 0xDF // Enabled.
15456 #define _WRTC_OFF_6H 0xFF // Disabled.
15457 #define _WRTB_ON_6H 0xBF // Enabled.
15458 #define _WRTB_OFF_6H 0xFF // Disabled.
15459 #define _WRTD_ON_6H 0x7F // Enabled.
15460 #define _WRTD_OFF_6H 0xFF // Disabled.
15462 //----------------------------- CONFIG7L Options -------------------------------
15464 #define _EBTR0_ON_7L 0xFE // Enabled.
15465 #define _EBTR0_OFF_7L 0xFF // Disabled.
15466 #define _EBTR1_ON_7L 0xFD // Enabled.
15467 #define _EBTR1_OFF_7L 0xFF // Disabled.
15468 #define _EBTR2_ON_7L 0xFB // Enabled.
15469 #define _EBTR2_OFF_7L 0xFF // Disabled.
15470 #define _EBTR3_ON_7L 0xF7 // Enabled.
15471 #define _EBTR3_OFF_7L 0xFF // Disabled.
15473 //----------------------------- CONFIG7H Options -------------------------------
15475 #define _EBTRB_ON_7H 0xBF // Enabled.
15476 #define _EBTRB_OFF_7H 0xFF // Disabled.
15478 //==============================================================================
15480 #define __DEVID1 0x3FFFFE
15481 #define __DEVID2 0x3FFFFF
15483 #define __IDLOC0 0x200000
15484 #define __IDLOC1 0x200001
15485 #define __IDLOC2 0x200002
15486 #define __IDLOC3 0x200003
15487 #define __IDLOC4 0x200004
15488 #define __IDLOC5 0x200005
15489 #define __IDLOC6 0x200006
15490 #define __IDLOC7 0x200007
15492 #endif // #ifndef __PIC18LF45K80_H__