struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic16 / pic18f25k80.h
blobe1594d3ffcfe5651eb56d0b01dc1138f81147ce6
1 /*
2 * This declarations of the PIC18F25K80 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:27 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 __PIC18F25K80_H__
26 #define __PIC18F25K80_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 FILHIT : 5;
3073 unsigned : 3;
3076 struct
3078 unsigned TXPRI : 2;
3079 unsigned : 6;
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 TXPRI : 2;
3768 unsigned : 6;
3771 struct
3773 unsigned FILHIT : 5;
3774 unsigned : 3;
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 FILHIT : 5;
5158 unsigned : 3;
5161 struct
5163 unsigned TXPRI : 2;
5164 unsigned : 6;
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 // CCP5CON Bits
10043 extern __at(0x0F47) __sfr CCP5CON;
10045 typedef union
10047 struct
10049 unsigned CCP5M0 : 1;
10050 unsigned CCP5M1 : 1;
10051 unsigned CCP5M2 : 1;
10052 unsigned CCP5M3 : 1;
10053 unsigned DC5B0 : 1;
10054 unsigned DC5B1 : 1;
10055 unsigned : 1;
10056 unsigned : 1;
10059 struct
10061 unsigned : 1;
10062 unsigned : 1;
10063 unsigned : 1;
10064 unsigned : 1;
10065 unsigned CCP5Y : 1;
10066 unsigned CCP5X : 1;
10067 unsigned : 1;
10068 unsigned : 1;
10071 struct
10073 unsigned CCP5M : 4;
10074 unsigned : 4;
10077 struct
10079 unsigned : 4;
10080 unsigned DC5B : 2;
10081 unsigned : 2;
10083 } __CCP5CONbits_t;
10085 extern __at(0x0F47) volatile __CCP5CONbits_t CCP5CONbits;
10087 #define _CCP5M0 0x01
10088 #define _CCP5M1 0x02
10089 #define _CCP5M2 0x04
10090 #define _CCP5M3 0x08
10091 #define _DC5B0 0x10
10092 #define _CCP5Y 0x10
10093 #define _DC5B1 0x20
10094 #define _CCP5X 0x20
10096 //==============================================================================
10098 extern __at(0x0F48) __sfr CCPR5;
10099 extern __at(0x0F48) __sfr CCPR5L;
10100 extern __at(0x0F49) __sfr CCPR5H;
10102 //==============================================================================
10103 // CCP4CON Bits
10105 extern __at(0x0F4A) __sfr CCP4CON;
10107 typedef union
10109 struct
10111 unsigned CCP4M0 : 1;
10112 unsigned CCP4M1 : 1;
10113 unsigned CCP4M2 : 1;
10114 unsigned CCP4M3 : 1;
10115 unsigned DC4B0 : 1;
10116 unsigned DC4B1 : 1;
10117 unsigned : 1;
10118 unsigned : 1;
10121 struct
10123 unsigned : 1;
10124 unsigned : 1;
10125 unsigned : 1;
10126 unsigned : 1;
10127 unsigned CCP4Y : 1;
10128 unsigned CCP4X : 1;
10129 unsigned : 1;
10130 unsigned : 1;
10133 struct
10135 unsigned CCP4M : 4;
10136 unsigned : 4;
10139 struct
10141 unsigned : 4;
10142 unsigned DC4B : 2;
10143 unsigned : 2;
10145 } __CCP4CONbits_t;
10147 extern __at(0x0F4A) volatile __CCP4CONbits_t CCP4CONbits;
10149 #define _CCP4M0 0x01
10150 #define _CCP4M1 0x02
10151 #define _CCP4M2 0x04
10152 #define _CCP4M3 0x08
10153 #define _DC4B0 0x10
10154 #define _CCP4Y 0x10
10155 #define _DC4B1 0x20
10156 #define _CCP4X 0x20
10158 //==============================================================================
10160 extern __at(0x0F4B) __sfr CCPR4;
10161 extern __at(0x0F4B) __sfr CCPR4L;
10162 extern __at(0x0F4C) __sfr CCPR4H;
10164 //==============================================================================
10165 // CCP3CON Bits
10167 extern __at(0x0F4D) __sfr CCP3CON;
10169 typedef union
10171 struct
10173 unsigned CCP3M0 : 1;
10174 unsigned CCP3M1 : 1;
10175 unsigned CCP3M2 : 1;
10176 unsigned CCP3M3 : 1;
10177 unsigned DC3B0 : 1;
10178 unsigned DC3B1 : 1;
10179 unsigned : 1;
10180 unsigned : 1;
10183 struct
10185 unsigned : 1;
10186 unsigned : 1;
10187 unsigned : 1;
10188 unsigned : 1;
10189 unsigned CCP3Y : 1;
10190 unsigned CCP3X : 1;
10191 unsigned : 1;
10192 unsigned : 1;
10195 struct
10197 unsigned CCP3M : 4;
10198 unsigned : 4;
10201 struct
10203 unsigned : 4;
10204 unsigned DC3B : 2;
10205 unsigned : 2;
10207 } __CCP3CONbits_t;
10209 extern __at(0x0F4D) volatile __CCP3CONbits_t CCP3CONbits;
10211 #define _CCP3M0 0x01
10212 #define _CCP3M1 0x02
10213 #define _CCP3M2 0x04
10214 #define _CCP3M3 0x08
10215 #define _DC3B0 0x10
10216 #define _CCP3Y 0x10
10217 #define _DC3B1 0x20
10218 #define _CCP3X 0x20
10220 //==============================================================================
10222 extern __at(0x0F4E) __sfr CCPR3;
10223 extern __at(0x0F4E) __sfr CCPR3L;
10224 extern __at(0x0F4F) __sfr CCPR3H;
10226 //==============================================================================
10227 // CCP2CON Bits
10229 extern __at(0x0F50) __sfr CCP2CON;
10231 typedef union
10233 struct
10235 unsigned CCP2M0 : 1;
10236 unsigned CCP2M1 : 1;
10237 unsigned CCP2M2 : 1;
10238 unsigned CCP2M3 : 1;
10239 unsigned DC2B0 : 1;
10240 unsigned DC2B1 : 1;
10241 unsigned : 1;
10242 unsigned : 1;
10245 struct
10247 unsigned : 1;
10248 unsigned : 1;
10249 unsigned : 1;
10250 unsigned : 1;
10251 unsigned CCP2Y : 1;
10252 unsigned CCP2X : 1;
10253 unsigned : 1;
10254 unsigned : 1;
10257 struct
10259 unsigned CCP2M : 4;
10260 unsigned : 4;
10263 struct
10265 unsigned : 4;
10266 unsigned DC2B : 2;
10267 unsigned : 2;
10269 } __CCP2CONbits_t;
10271 extern __at(0x0F50) volatile __CCP2CONbits_t CCP2CONbits;
10273 #define _CCP2M0 0x01
10274 #define _CCP2M1 0x02
10275 #define _CCP2M2 0x04
10276 #define _CCP2M3 0x08
10277 #define _DC2B0 0x10
10278 #define _CCP2Y 0x10
10279 #define _DC2B1 0x20
10280 #define _CCP2X 0x20
10282 //==============================================================================
10285 //==============================================================================
10286 // ECCP2CON Bits
10288 extern __at(0x0F50) __sfr ECCP2CON;
10290 typedef union
10292 struct
10294 unsigned CCP2M0 : 1;
10295 unsigned CCP2M1 : 1;
10296 unsigned CCP2M2 : 1;
10297 unsigned CCP2M3 : 1;
10298 unsigned DC2B0 : 1;
10299 unsigned DC2B1 : 1;
10300 unsigned : 1;
10301 unsigned : 1;
10304 struct
10306 unsigned : 1;
10307 unsigned : 1;
10308 unsigned : 1;
10309 unsigned : 1;
10310 unsigned CCP2Y : 1;
10311 unsigned CCP2X : 1;
10312 unsigned : 1;
10313 unsigned : 1;
10316 struct
10318 unsigned CCP2M : 4;
10319 unsigned : 4;
10322 struct
10324 unsigned : 4;
10325 unsigned DC2B : 2;
10326 unsigned : 2;
10328 } __ECCP2CONbits_t;
10330 extern __at(0x0F50) volatile __ECCP2CONbits_t ECCP2CONbits;
10332 #define _ECCP2CON_CCP2M0 0x01
10333 #define _ECCP2CON_CCP2M1 0x02
10334 #define _ECCP2CON_CCP2M2 0x04
10335 #define _ECCP2CON_CCP2M3 0x08
10336 #define _ECCP2CON_DC2B0 0x10
10337 #define _ECCP2CON_CCP2Y 0x10
10338 #define _ECCP2CON_DC2B1 0x20
10339 #define _ECCP2CON_CCP2X 0x20
10341 //==============================================================================
10343 extern __at(0x0F51) __sfr CCPR2;
10344 extern __at(0x0F51) __sfr CCPR2L;
10345 extern __at(0x0F52) __sfr CCPR2H;
10347 //==============================================================================
10348 // CTMUICON Bits
10350 extern __at(0x0F53) __sfr CTMUICON;
10352 typedef union
10354 struct
10356 unsigned IRNG0 : 1;
10357 unsigned IRNG1 : 1;
10358 unsigned ITRIM0 : 1;
10359 unsigned ITRIM1 : 1;
10360 unsigned ITRIM2 : 1;
10361 unsigned ITRIM3 : 1;
10362 unsigned ITRIM4 : 1;
10363 unsigned ITRIM5 : 1;
10366 struct
10368 unsigned IRNG : 2;
10369 unsigned : 6;
10372 struct
10374 unsigned : 2;
10375 unsigned ITRIM : 6;
10377 } __CTMUICONbits_t;
10379 extern __at(0x0F53) volatile __CTMUICONbits_t CTMUICONbits;
10381 #define _IRNG0 0x01
10382 #define _IRNG1 0x02
10383 #define _ITRIM0 0x04
10384 #define _ITRIM1 0x08
10385 #define _ITRIM2 0x10
10386 #define _ITRIM3 0x20
10387 #define _ITRIM4 0x40
10388 #define _ITRIM5 0x80
10390 //==============================================================================
10393 //==============================================================================
10394 // CTMUCONL Bits
10396 extern __at(0x0F54) __sfr CTMUCONL;
10398 typedef union
10400 struct
10402 unsigned EDG1STAT : 1;
10403 unsigned EDG2STAT : 1;
10404 unsigned EDG1SEL0 : 1;
10405 unsigned EDG1SEL1 : 1;
10406 unsigned EDG1POL : 1;
10407 unsigned EDG2SEL0 : 1;
10408 unsigned EDG2SEL1 : 1;
10409 unsigned EDG2POL : 1;
10412 struct
10414 unsigned : 2;
10415 unsigned EDG1SEL : 2;
10416 unsigned : 4;
10419 struct
10421 unsigned : 5;
10422 unsigned EDG2SEL : 2;
10423 unsigned : 1;
10425 } __CTMUCONLbits_t;
10427 extern __at(0x0F54) volatile __CTMUCONLbits_t CTMUCONLbits;
10429 #define _EDG1STAT 0x01
10430 #define _EDG2STAT 0x02
10431 #define _EDG1SEL0 0x04
10432 #define _EDG1SEL1 0x08
10433 #define _EDG1POL 0x10
10434 #define _EDG2SEL0 0x20
10435 #define _EDG2SEL1 0x40
10436 #define _EDG2POL 0x80
10438 //==============================================================================
10441 //==============================================================================
10442 // CTMUCONH Bits
10444 extern __at(0x0F55) __sfr CTMUCONH;
10446 typedef struct
10448 unsigned CTTRIG : 1;
10449 unsigned IDISSEN : 1;
10450 unsigned EDGSEQEN : 1;
10451 unsigned EDGEN : 1;
10452 unsigned TGEN : 1;
10453 unsigned CTMUSIDL : 1;
10454 unsigned : 1;
10455 unsigned CTMUEN : 1;
10456 } __CTMUCONHbits_t;
10458 extern __at(0x0F55) volatile __CTMUCONHbits_t CTMUCONHbits;
10460 #define _CTTRIG 0x01
10461 #define _IDISSEN 0x02
10462 #define _EDGSEQEN 0x04
10463 #define _EDGEN 0x08
10464 #define _TGEN 0x10
10465 #define _CTMUSIDL 0x20
10466 #define _CTMUEN 0x80
10468 //==============================================================================
10471 //==============================================================================
10472 // PADCFG1 Bits
10474 extern __at(0x0F56) __sfr PADCFG1;
10476 typedef struct
10478 unsigned CTMUDS : 1;
10479 unsigned : 1;
10480 unsigned : 1;
10481 unsigned : 1;
10482 unsigned : 1;
10483 unsigned : 1;
10484 unsigned : 1;
10485 unsigned : 1;
10486 } __PADCFG1bits_t;
10488 extern __at(0x0F56) volatile __PADCFG1bits_t PADCFG1bits;
10490 #define _CTMUDS 0x01
10492 //==============================================================================
10495 //==============================================================================
10496 // PMD2 Bits
10498 extern __at(0x0F57) __sfr PMD2;
10500 typedef struct
10502 unsigned CMP1MD : 1;
10503 unsigned CMP2MD : 1;
10504 unsigned ECANMD : 1;
10505 unsigned : 1;
10506 unsigned : 1;
10507 unsigned : 1;
10508 unsigned : 1;
10509 unsigned : 1;
10510 } __PMD2bits_t;
10512 extern __at(0x0F57) volatile __PMD2bits_t PMD2bits;
10514 #define _CMP1MD 0x01
10515 #define _CMP2MD 0x02
10516 #define _ECANMD 0x04
10518 //==============================================================================
10521 //==============================================================================
10522 // PMD1 Bits
10524 extern __at(0x0F58) __sfr PMD1;
10526 typedef struct
10528 unsigned TMR0MD : 1;
10529 unsigned TMR1MD : 1;
10530 unsigned TMR2MD : 1;
10531 unsigned TMR3MD : 1;
10532 unsigned TMR4MD : 1;
10533 unsigned ADCMD : 1;
10534 unsigned CTMUMD : 1;
10535 unsigned PSPMD : 1;
10536 } __PMD1bits_t;
10538 extern __at(0x0F58) volatile __PMD1bits_t PMD1bits;
10540 #define _TMR0MD 0x01
10541 #define _TMR1MD 0x02
10542 #define _TMR2MD 0x04
10543 #define _TMR3MD 0x08
10544 #define _TMR4MD 0x10
10545 #define _ADCMD 0x20
10546 #define _CTMUMD 0x40
10547 #define _PSPMD 0x80
10549 //==============================================================================
10552 //==============================================================================
10553 // PMD0 Bits
10555 extern __at(0x0F59) __sfr PMD0;
10557 typedef struct
10559 unsigned SSPMD : 1;
10560 unsigned UART1MD : 1;
10561 unsigned UART2MD : 1;
10562 unsigned CCP1MD : 1;
10563 unsigned CCP2MD : 1;
10564 unsigned CCP3MD : 1;
10565 unsigned CCP4MD : 1;
10566 unsigned CCP5MD : 1;
10567 } __PMD0bits_t;
10569 extern __at(0x0F59) volatile __PMD0bits_t PMD0bits;
10571 #define _SSPMD 0x01
10572 #define _UART1MD 0x02
10573 #define _UART2MD 0x04
10574 #define _CCP1MD 0x08
10575 #define _CCP2MD 0x10
10576 #define _CCP3MD 0x20
10577 #define _CCP4MD 0x40
10578 #define _CCP5MD 0x80
10580 //==============================================================================
10583 //==============================================================================
10584 // IOCB Bits
10586 extern __at(0x0F5A) __sfr IOCB;
10588 typedef struct
10590 unsigned : 1;
10591 unsigned : 1;
10592 unsigned : 1;
10593 unsigned : 1;
10594 unsigned IOCB4 : 1;
10595 unsigned IOCB5 : 1;
10596 unsigned IOCB6 : 1;
10597 unsigned IOCB7 : 1;
10598 } __IOCBbits_t;
10600 extern __at(0x0F5A) volatile __IOCBbits_t IOCBbits;
10602 #define _IOCB4 0x10
10603 #define _IOCB5 0x20
10604 #define _IOCB6 0x40
10605 #define _IOCB7 0x80
10607 //==============================================================================
10610 //==============================================================================
10611 // WPUB Bits
10613 extern __at(0x0F5B) __sfr WPUB;
10615 typedef struct
10617 unsigned WPUB0 : 1;
10618 unsigned WPUB1 : 1;
10619 unsigned WPUB2 : 1;
10620 unsigned WPUB3 : 1;
10621 unsigned WPUB4 : 1;
10622 unsigned WPUB5 : 1;
10623 unsigned WPUB6 : 1;
10624 unsigned WPUB7 : 1;
10625 } __WPUBbits_t;
10627 extern __at(0x0F5B) volatile __WPUBbits_t WPUBbits;
10629 #define _WPUB0 0x01
10630 #define _WPUB1 0x02
10631 #define _WPUB2 0x04
10632 #define _WPUB3 0x08
10633 #define _WPUB4 0x10
10634 #define _WPUB5 0x20
10635 #define _WPUB6 0x40
10636 #define _WPUB7 0x80
10638 //==============================================================================
10641 //==============================================================================
10642 // ANCON1 Bits
10644 extern __at(0x0F5C) __sfr ANCON1;
10646 typedef struct
10648 unsigned ANSEL8 : 1;
10649 unsigned ANSEL9 : 1;
10650 unsigned ANSEL10 : 1;
10651 unsigned : 1;
10652 unsigned : 1;
10653 unsigned : 1;
10654 unsigned : 1;
10655 unsigned : 1;
10656 } __ANCON1bits_t;
10658 extern __at(0x0F5C) volatile __ANCON1bits_t ANCON1bits;
10660 #define _ANSEL8 0x01
10661 #define _ANSEL9 0x02
10662 #define _ANSEL10 0x04
10664 //==============================================================================
10667 //==============================================================================
10668 // ANCON0 Bits
10670 extern __at(0x0F5D) __sfr ANCON0;
10672 typedef union
10674 struct
10676 unsigned ANSEL0 : 1;
10677 unsigned ANSEL1 : 1;
10678 unsigned ANSEL2 : 1;
10679 unsigned ANSEL3 : 1;
10680 unsigned ANSEL4 : 1;
10681 unsigned : 1;
10682 unsigned : 1;
10683 unsigned : 1;
10686 struct
10688 unsigned ANSEL : 5;
10689 unsigned : 3;
10691 } __ANCON0bits_t;
10693 extern __at(0x0F5D) volatile __ANCON0bits_t ANCON0bits;
10695 #define _ANSEL0 0x01
10696 #define _ANSEL1 0x02
10697 #define _ANSEL2 0x04
10698 #define _ANSEL3 0x08
10699 #define _ANSEL4 0x10
10701 //==============================================================================
10704 //==============================================================================
10705 // CM2CON Bits
10707 extern __at(0x0F5E) __sfr CM2CON;
10709 typedef union
10711 struct
10713 unsigned CCH0 : 1;
10714 unsigned CCH1 : 1;
10715 unsigned CREF : 1;
10716 unsigned EVPOL0 : 1;
10717 unsigned EVPOL1 : 1;
10718 unsigned CPOL : 1;
10719 unsigned COE : 1;
10720 unsigned CON : 1;
10723 struct
10725 unsigned CCH : 2;
10726 unsigned : 6;
10729 struct
10731 unsigned : 3;
10732 unsigned EVPOL : 2;
10733 unsigned : 3;
10735 } __CM2CONbits_t;
10737 extern __at(0x0F5E) volatile __CM2CONbits_t CM2CONbits;
10739 #define _CM2CON_CCH0 0x01
10740 #define _CM2CON_CCH1 0x02
10741 #define _CM2CON_CREF 0x04
10742 #define _CM2CON_EVPOL0 0x08
10743 #define _CM2CON_EVPOL1 0x10
10744 #define _CM2CON_CPOL 0x20
10745 #define _CM2CON_COE 0x40
10746 #define _CM2CON_CON 0x80
10748 //==============================================================================
10751 //==============================================================================
10752 // CM2CON1 Bits
10754 extern __at(0x0F5E) __sfr CM2CON1;
10756 typedef union
10758 struct
10760 unsigned CCH0 : 1;
10761 unsigned CCH1 : 1;
10762 unsigned CREF : 1;
10763 unsigned EVPOL0 : 1;
10764 unsigned EVPOL1 : 1;
10765 unsigned CPOL : 1;
10766 unsigned COE : 1;
10767 unsigned CON : 1;
10770 struct
10772 unsigned CCH : 2;
10773 unsigned : 6;
10776 struct
10778 unsigned : 3;
10779 unsigned EVPOL : 2;
10780 unsigned : 3;
10782 } __CM2CON1bits_t;
10784 extern __at(0x0F5E) volatile __CM2CON1bits_t CM2CON1bits;
10786 #define _CM2CON1_CCH0 0x01
10787 #define _CM2CON1_CCH1 0x02
10788 #define _CM2CON1_CREF 0x04
10789 #define _CM2CON1_EVPOL0 0x08
10790 #define _CM2CON1_EVPOL1 0x10
10791 #define _CM2CON1_CPOL 0x20
10792 #define _CM2CON1_COE 0x40
10793 #define _CM2CON1_CON 0x80
10795 //==============================================================================
10798 //==============================================================================
10799 // CM1CON Bits
10801 extern __at(0x0F5F) __sfr CM1CON;
10803 typedef union
10805 struct
10807 unsigned CCH0 : 1;
10808 unsigned CCH1 : 1;
10809 unsigned CREF : 1;
10810 unsigned EVPOL0 : 1;
10811 unsigned EVPOL1 : 1;
10812 unsigned CPOL : 1;
10813 unsigned COE : 1;
10814 unsigned CON : 1;
10817 struct
10819 unsigned CCH : 2;
10820 unsigned : 6;
10823 struct
10825 unsigned : 3;
10826 unsigned EVPOL : 2;
10827 unsigned : 3;
10829 } __CM1CONbits_t;
10831 extern __at(0x0F5F) volatile __CM1CONbits_t CM1CONbits;
10833 #define _CCH0 0x01
10834 #define _CCH1 0x02
10835 #define _CREF 0x04
10836 #define _EVPOL0 0x08
10837 #define _EVPOL1 0x10
10838 #define _CPOL 0x20
10839 #define _COE 0x40
10840 #define _CON 0x80
10842 //==============================================================================
10845 //==============================================================================
10846 // CM1CON1 Bits
10848 extern __at(0x0F5F) __sfr CM1CON1;
10850 typedef union
10852 struct
10854 unsigned CCH0 : 1;
10855 unsigned CCH1 : 1;
10856 unsigned CREF : 1;
10857 unsigned EVPOL0 : 1;
10858 unsigned EVPOL1 : 1;
10859 unsigned CPOL : 1;
10860 unsigned COE : 1;
10861 unsigned CON : 1;
10864 struct
10866 unsigned CCH : 2;
10867 unsigned : 6;
10870 struct
10872 unsigned : 3;
10873 unsigned EVPOL : 2;
10874 unsigned : 3;
10876 } __CM1CON1bits_t;
10878 extern __at(0x0F5F) volatile __CM1CON1bits_t CM1CON1bits;
10880 #define _CM1CON1_CCH0 0x01
10881 #define _CM1CON1_CCH1 0x02
10882 #define _CM1CON1_CREF 0x04
10883 #define _CM1CON1_EVPOL0 0x08
10884 #define _CM1CON1_EVPOL1 0x10
10885 #define _CM1CON1_CPOL 0x20
10886 #define _CM1CON1_COE 0x40
10887 #define _CM1CON1_CON 0x80
10889 //==============================================================================
10892 //==============================================================================
10893 // RXB0CON Bits
10895 extern __at(0x0F60) __sfr RXB0CON;
10897 typedef union
10899 struct
10901 unsigned FILHIT0 : 1;
10902 unsigned JTOFF_FILHIT1 : 1;
10903 unsigned RB0DBEN_FILHIT2 : 1;
10904 unsigned RXRTRRO_FILHIT3 : 1;
10905 unsigned FILHIT4 : 1;
10906 unsigned RXM0_RTRRO : 1;
10907 unsigned RXM1 : 1;
10908 unsigned RXFUL : 1;
10911 struct
10913 unsigned : 1;
10914 unsigned JTOFF : 1;
10915 unsigned RB0DBEN : 1;
10916 unsigned RXRTRRO : 1;
10917 unsigned : 1;
10918 unsigned RTRRO : 1;
10919 unsigned : 1;
10920 unsigned : 1;
10923 struct
10925 unsigned : 1;
10926 unsigned FILHIT1 : 1;
10927 unsigned FILHIT2 : 1;
10928 unsigned FILHIT3 : 1;
10929 unsigned : 1;
10930 unsigned RXM0 : 1;
10931 unsigned : 1;
10932 unsigned : 1;
10935 struct
10937 unsigned FILHIT : 5;
10938 unsigned : 3;
10941 struct
10943 unsigned : 5;
10944 unsigned RXM : 2;
10945 unsigned : 1;
10947 } __RXB0CONbits_t;
10949 extern __at(0x0F60) volatile __RXB0CONbits_t RXB0CONbits;
10951 #define _RXB0CON_FILHIT0 0x01
10952 #define _RXB0CON_JTOFF_FILHIT1 0x02
10953 #define _RXB0CON_JTOFF 0x02
10954 #define _RXB0CON_FILHIT1 0x02
10955 #define _RXB0CON_RB0DBEN_FILHIT2 0x04
10956 #define _RXB0CON_RB0DBEN 0x04
10957 #define _RXB0CON_FILHIT2 0x04
10958 #define _RXB0CON_RXRTRRO_FILHIT3 0x08
10959 #define _RXB0CON_RXRTRRO 0x08
10960 #define _RXB0CON_FILHIT3 0x08
10961 #define _RXB0CON_FILHIT4 0x10
10962 #define _RXB0CON_RXM0_RTRRO 0x20
10963 #define _RXB0CON_RTRRO 0x20
10964 #define _RXB0CON_RXM0 0x20
10965 #define _RXB0CON_RXM1 0x40
10966 #define _RXB0CON_RXFUL 0x80
10968 //==============================================================================
10971 //==============================================================================
10972 // RXB0SIDH Bits
10974 extern __at(0x0F61) __sfr RXB0SIDH;
10976 typedef struct
10978 unsigned SID3 : 1;
10979 unsigned SID4 : 1;
10980 unsigned SID5 : 1;
10981 unsigned SID6 : 1;
10982 unsigned SID7 : 1;
10983 unsigned SID8 : 1;
10984 unsigned SID9 : 1;
10985 unsigned SID10 : 1;
10986 } __RXB0SIDHbits_t;
10988 extern __at(0x0F61) volatile __RXB0SIDHbits_t RXB0SIDHbits;
10990 #define _RXB0SIDH_SID3 0x01
10991 #define _RXB0SIDH_SID4 0x02
10992 #define _RXB0SIDH_SID5 0x04
10993 #define _RXB0SIDH_SID6 0x08
10994 #define _RXB0SIDH_SID7 0x10
10995 #define _RXB0SIDH_SID8 0x20
10996 #define _RXB0SIDH_SID9 0x40
10997 #define _RXB0SIDH_SID10 0x80
10999 //==============================================================================
11002 //==============================================================================
11003 // RXB0SIDL Bits
11005 extern __at(0x0F62) __sfr RXB0SIDL;
11007 typedef union
11009 struct
11011 unsigned EID16 : 1;
11012 unsigned EID17 : 1;
11013 unsigned : 1;
11014 unsigned EXID : 1;
11015 unsigned SRR : 1;
11016 unsigned SID0 : 1;
11017 unsigned SID1 : 1;
11018 unsigned SID2 : 1;
11021 struct
11023 unsigned : 5;
11024 unsigned SID : 3;
11026 } __RXB0SIDLbits_t;
11028 extern __at(0x0F62) volatile __RXB0SIDLbits_t RXB0SIDLbits;
11030 #define _RXB0SIDL_EID16 0x01
11031 #define _RXB0SIDL_EID17 0x02
11032 #define _RXB0SIDL_EXID 0x08
11033 #define _RXB0SIDL_SRR 0x10
11034 #define _RXB0SIDL_SID0 0x20
11035 #define _RXB0SIDL_SID1 0x40
11036 #define _RXB0SIDL_SID2 0x80
11038 //==============================================================================
11041 //==============================================================================
11042 // RXB0EIDH Bits
11044 extern __at(0x0F63) __sfr RXB0EIDH;
11046 typedef struct
11048 unsigned EID8 : 1;
11049 unsigned EID9 : 1;
11050 unsigned EID10 : 1;
11051 unsigned EID11 : 1;
11052 unsigned EID12 : 1;
11053 unsigned EID13 : 1;
11054 unsigned EID14 : 1;
11055 unsigned EID15 : 1;
11056 } __RXB0EIDHbits_t;
11058 extern __at(0x0F63) volatile __RXB0EIDHbits_t RXB0EIDHbits;
11060 #define _RXB0EIDH_EID8 0x01
11061 #define _RXB0EIDH_EID9 0x02
11062 #define _RXB0EIDH_EID10 0x04
11063 #define _RXB0EIDH_EID11 0x08
11064 #define _RXB0EIDH_EID12 0x10
11065 #define _RXB0EIDH_EID13 0x20
11066 #define _RXB0EIDH_EID14 0x40
11067 #define _RXB0EIDH_EID15 0x80
11069 //==============================================================================
11072 //==============================================================================
11073 // RXB0EIDL Bits
11075 extern __at(0x0F64) __sfr RXB0EIDL;
11077 typedef struct
11079 unsigned EID0 : 1;
11080 unsigned EID1 : 1;
11081 unsigned EID2 : 1;
11082 unsigned EID3 : 1;
11083 unsigned EID4 : 1;
11084 unsigned EID5 : 1;
11085 unsigned EID6 : 1;
11086 unsigned EID7 : 1;
11087 } __RXB0EIDLbits_t;
11089 extern __at(0x0F64) volatile __RXB0EIDLbits_t RXB0EIDLbits;
11091 #define _RXB0EIDL_EID0 0x01
11092 #define _RXB0EIDL_EID1 0x02
11093 #define _RXB0EIDL_EID2 0x04
11094 #define _RXB0EIDL_EID3 0x08
11095 #define _RXB0EIDL_EID4 0x10
11096 #define _RXB0EIDL_EID5 0x20
11097 #define _RXB0EIDL_EID6 0x40
11098 #define _RXB0EIDL_EID7 0x80
11100 //==============================================================================
11103 //==============================================================================
11104 // RXB0DLC Bits
11106 extern __at(0x0F65) __sfr RXB0DLC;
11108 typedef union
11110 struct
11112 unsigned DLC0 : 1;
11113 unsigned DLC1 : 1;
11114 unsigned DLC2 : 1;
11115 unsigned DLC3 : 1;
11116 unsigned RB0 : 1;
11117 unsigned RB1 : 1;
11118 unsigned RXRTR : 1;
11119 unsigned : 1;
11122 struct
11124 unsigned DLC : 4;
11125 unsigned : 4;
11128 struct
11130 unsigned : 4;
11131 unsigned RB : 2;
11132 unsigned : 2;
11134 } __RXB0DLCbits_t;
11136 extern __at(0x0F65) volatile __RXB0DLCbits_t RXB0DLCbits;
11138 #define _RXB0DLC_DLC0 0x01
11139 #define _RXB0DLC_DLC1 0x02
11140 #define _RXB0DLC_DLC2 0x04
11141 #define _RXB0DLC_DLC3 0x08
11142 #define _RXB0DLC_RB0 0x10
11143 #define _RXB0DLC_RB1 0x20
11144 #define _RXB0DLC_RXRTR 0x40
11146 //==============================================================================
11149 //==============================================================================
11150 // RXB0D0 Bits
11152 extern __at(0x0F66) __sfr RXB0D0;
11154 typedef struct
11156 unsigned RXB0D00 : 1;
11157 unsigned RXB0D01 : 1;
11158 unsigned RXB0D02 : 1;
11159 unsigned RXB0D03 : 1;
11160 unsigned RXB0D04 : 1;
11161 unsigned RXB0D05 : 1;
11162 unsigned RXB0D06 : 1;
11163 unsigned RXB0D07 : 1;
11164 } __RXB0D0bits_t;
11166 extern __at(0x0F66) volatile __RXB0D0bits_t RXB0D0bits;
11168 #define _RXB0D00 0x01
11169 #define _RXB0D01 0x02
11170 #define _RXB0D02 0x04
11171 #define _RXB0D03 0x08
11172 #define _RXB0D04 0x10
11173 #define _RXB0D05 0x20
11174 #define _RXB0D06 0x40
11175 #define _RXB0D07 0x80
11177 //==============================================================================
11180 //==============================================================================
11181 // RXB0D1 Bits
11183 extern __at(0x0F67) __sfr RXB0D1;
11185 typedef struct
11187 unsigned RXB0D10 : 1;
11188 unsigned RXB0D11 : 1;
11189 unsigned RXB0D12 : 1;
11190 unsigned RXB0D13 : 1;
11191 unsigned RXB0D14 : 1;
11192 unsigned RXB0D15 : 1;
11193 unsigned RXB0D16 : 1;
11194 unsigned RXB0D17 : 1;
11195 } __RXB0D1bits_t;
11197 extern __at(0x0F67) volatile __RXB0D1bits_t RXB0D1bits;
11199 #define _RXB0D10 0x01
11200 #define _RXB0D11 0x02
11201 #define _RXB0D12 0x04
11202 #define _RXB0D13 0x08
11203 #define _RXB0D14 0x10
11204 #define _RXB0D15 0x20
11205 #define _RXB0D16 0x40
11206 #define _RXB0D17 0x80
11208 //==============================================================================
11211 //==============================================================================
11212 // RXB0D2 Bits
11214 extern __at(0x0F68) __sfr RXB0D2;
11216 typedef struct
11218 unsigned RXB0D20 : 1;
11219 unsigned RXB0D21 : 1;
11220 unsigned RXB0D22 : 1;
11221 unsigned RXB0D23 : 1;
11222 unsigned RXB0D24 : 1;
11223 unsigned RXB0D25 : 1;
11224 unsigned RXB0D26 : 1;
11225 unsigned RXB0D27 : 1;
11226 } __RXB0D2bits_t;
11228 extern __at(0x0F68) volatile __RXB0D2bits_t RXB0D2bits;
11230 #define _RXB0D20 0x01
11231 #define _RXB0D21 0x02
11232 #define _RXB0D22 0x04
11233 #define _RXB0D23 0x08
11234 #define _RXB0D24 0x10
11235 #define _RXB0D25 0x20
11236 #define _RXB0D26 0x40
11237 #define _RXB0D27 0x80
11239 //==============================================================================
11242 //==============================================================================
11243 // RXB0D3 Bits
11245 extern __at(0x0F69) __sfr RXB0D3;
11247 typedef struct
11249 unsigned RXB0D30 : 1;
11250 unsigned RXB0D31 : 1;
11251 unsigned RXB0D32 : 1;
11252 unsigned RXB0D33 : 1;
11253 unsigned RXB0D34 : 1;
11254 unsigned RXB0D35 : 1;
11255 unsigned RXB0D36 : 1;
11256 unsigned RXB0D37 : 1;
11257 } __RXB0D3bits_t;
11259 extern __at(0x0F69) volatile __RXB0D3bits_t RXB0D3bits;
11261 #define _RXB0D30 0x01
11262 #define _RXB0D31 0x02
11263 #define _RXB0D32 0x04
11264 #define _RXB0D33 0x08
11265 #define _RXB0D34 0x10
11266 #define _RXB0D35 0x20
11267 #define _RXB0D36 0x40
11268 #define _RXB0D37 0x80
11270 //==============================================================================
11273 //==============================================================================
11274 // RXB0D4 Bits
11276 extern __at(0x0F6A) __sfr RXB0D4;
11278 typedef struct
11280 unsigned RXB0D40 : 1;
11281 unsigned RXB0D41 : 1;
11282 unsigned RXB0D42 : 1;
11283 unsigned RXB0D43 : 1;
11284 unsigned RXB0D44 : 1;
11285 unsigned RXB0D45 : 1;
11286 unsigned RXB0D46 : 1;
11287 unsigned RXB0D47 : 1;
11288 } __RXB0D4bits_t;
11290 extern __at(0x0F6A) volatile __RXB0D4bits_t RXB0D4bits;
11292 #define _RXB0D40 0x01
11293 #define _RXB0D41 0x02
11294 #define _RXB0D42 0x04
11295 #define _RXB0D43 0x08
11296 #define _RXB0D44 0x10
11297 #define _RXB0D45 0x20
11298 #define _RXB0D46 0x40
11299 #define _RXB0D47 0x80
11301 //==============================================================================
11304 //==============================================================================
11305 // RXB0D5 Bits
11307 extern __at(0x0F6B) __sfr RXB0D5;
11309 typedef struct
11311 unsigned RXB0D50 : 1;
11312 unsigned RXB0D51 : 1;
11313 unsigned RXB0D52 : 1;
11314 unsigned RXB0D53 : 1;
11315 unsigned RXB0D54 : 1;
11316 unsigned RXB0D55 : 1;
11317 unsigned RXB0D56 : 1;
11318 unsigned RXB0D57 : 1;
11319 } __RXB0D5bits_t;
11321 extern __at(0x0F6B) volatile __RXB0D5bits_t RXB0D5bits;
11323 #define _RXB0D50 0x01
11324 #define _RXB0D51 0x02
11325 #define _RXB0D52 0x04
11326 #define _RXB0D53 0x08
11327 #define _RXB0D54 0x10
11328 #define _RXB0D55 0x20
11329 #define _RXB0D56 0x40
11330 #define _RXB0D57 0x80
11332 //==============================================================================
11335 //==============================================================================
11336 // RXB0D6 Bits
11338 extern __at(0x0F6C) __sfr RXB0D6;
11340 typedef struct
11342 unsigned RXB0D60 : 1;
11343 unsigned RXB0D61 : 1;
11344 unsigned RXB0D62 : 1;
11345 unsigned RXB0D63 : 1;
11346 unsigned RXB0D64 : 1;
11347 unsigned RXB0D65 : 1;
11348 unsigned RXB0D66 : 1;
11349 unsigned RXB0D67 : 1;
11350 } __RXB0D6bits_t;
11352 extern __at(0x0F6C) volatile __RXB0D6bits_t RXB0D6bits;
11354 #define _RXB0D60 0x01
11355 #define _RXB0D61 0x02
11356 #define _RXB0D62 0x04
11357 #define _RXB0D63 0x08
11358 #define _RXB0D64 0x10
11359 #define _RXB0D65 0x20
11360 #define _RXB0D66 0x40
11361 #define _RXB0D67 0x80
11363 //==============================================================================
11366 //==============================================================================
11367 // RXB0D7 Bits
11369 extern __at(0x0F6D) __sfr RXB0D7;
11371 typedef struct
11373 unsigned RXB0D70 : 1;
11374 unsigned RXB0D71 : 1;
11375 unsigned RXB0D72 : 1;
11376 unsigned RXB0D73 : 1;
11377 unsigned RXB0D74 : 1;
11378 unsigned RXB0D75 : 1;
11379 unsigned RXB0D76 : 1;
11380 unsigned RXB0D77 : 1;
11381 } __RXB0D7bits_t;
11383 extern __at(0x0F6D) volatile __RXB0D7bits_t RXB0D7bits;
11385 #define _RXB0D70 0x01
11386 #define _RXB0D71 0x02
11387 #define _RXB0D72 0x04
11388 #define _RXB0D73 0x08
11389 #define _RXB0D74 0x10
11390 #define _RXB0D75 0x20
11391 #define _RXB0D76 0x40
11392 #define _RXB0D77 0x80
11394 //==============================================================================
11397 //==============================================================================
11398 // CANSTAT Bits
11400 extern __at(0x0F6E) __sfr CANSTAT;
11402 typedef union
11404 struct
11406 unsigned EICODE0 : 1;
11407 unsigned EICODE1_ICODE0 : 1;
11408 unsigned EICODE2_ICODE1 : 1;
11409 unsigned EICODE3_ICODE2 : 1;
11410 unsigned EICODE4 : 1;
11411 unsigned OPMODE0 : 1;
11412 unsigned OPMODE1 : 1;
11413 unsigned OPMODE2 : 1;
11416 struct
11418 unsigned : 1;
11419 unsigned EICODE1 : 1;
11420 unsigned EICODE2 : 1;
11421 unsigned EICODE3 : 1;
11422 unsigned : 1;
11423 unsigned : 1;
11424 unsigned : 1;
11425 unsigned : 1;
11428 struct
11430 unsigned : 1;
11431 unsigned ICODE0 : 1;
11432 unsigned ICODE1 : 1;
11433 unsigned ICODE2 : 1;
11434 unsigned : 1;
11435 unsigned : 1;
11436 unsigned : 1;
11437 unsigned : 1;
11440 struct
11442 unsigned EICODE : 5;
11443 unsigned : 3;
11446 struct
11448 unsigned : 1;
11449 unsigned ICODE : 3;
11450 unsigned : 4;
11453 struct
11455 unsigned : 5;
11456 unsigned OPMODE : 3;
11458 } __CANSTATbits_t;
11460 extern __at(0x0F6E) volatile __CANSTATbits_t CANSTATbits;
11462 #define _EICODE0 0x01
11463 #define _EICODE1_ICODE0 0x02
11464 #define _EICODE1 0x02
11465 #define _ICODE0 0x02
11466 #define _EICODE2_ICODE1 0x04
11467 #define _EICODE2 0x04
11468 #define _ICODE1 0x04
11469 #define _EICODE3_ICODE2 0x08
11470 #define _EICODE3 0x08
11471 #define _ICODE2 0x08
11472 #define _EICODE4 0x10
11473 #define _OPMODE0 0x20
11474 #define _OPMODE1 0x40
11475 #define _OPMODE2 0x80
11477 //==============================================================================
11480 //==============================================================================
11481 // CANCON Bits
11483 extern __at(0x0F6F) __sfr CANCON;
11485 typedef union
11487 struct
11489 unsigned FP0 : 1;
11490 unsigned WIN0_FP1 : 1;
11491 unsigned WIN1_FP2 : 1;
11492 unsigned WIN2_FP3 : 1;
11493 unsigned ABAT : 1;
11494 unsigned : 1;
11495 unsigned : 1;
11496 unsigned : 1;
11499 struct
11501 unsigned : 1;
11502 unsigned WIN0 : 1;
11503 unsigned WIN1 : 1;
11504 unsigned WIN2 : 1;
11505 unsigned : 1;
11506 unsigned : 1;
11507 unsigned : 1;
11508 unsigned : 1;
11511 struct
11513 unsigned : 1;
11514 unsigned FP1 : 1;
11515 unsigned FP2 : 1;
11516 unsigned FP3 : 1;
11517 unsigned : 1;
11518 unsigned : 1;
11519 unsigned : 1;
11520 unsigned : 1;
11523 struct
11525 unsigned FP : 4;
11526 unsigned : 4;
11529 struct
11531 unsigned : 1;
11532 unsigned WIN : 3;
11533 unsigned : 4;
11535 } __CANCONbits_t;
11537 extern __at(0x0F6F) volatile __CANCONbits_t CANCONbits;
11539 #define _FP0 0x01
11540 #define _WIN0_FP1 0x02
11541 #define _WIN0 0x02
11542 #define _FP1 0x02
11543 #define _WIN1_FP2 0x04
11544 #define _WIN1 0x04
11545 #define _FP2 0x04
11546 #define _WIN2_FP3 0x08
11547 #define _WIN2 0x08
11548 #define _FP3 0x08
11549 #define _ABAT 0x10
11551 //==============================================================================
11554 //==============================================================================
11555 // CIOCON Bits
11557 extern __at(0x0F70) __sfr CIOCON;
11559 typedef struct
11561 unsigned CLKSEL : 1;
11562 unsigned : 1;
11563 unsigned : 1;
11564 unsigned : 1;
11565 unsigned CANCAP : 1;
11566 unsigned ENDRHI : 1;
11567 unsigned TX2EN : 1;
11568 unsigned TX2SRC : 1;
11569 } __CIOCONbits_t;
11571 extern __at(0x0F70) volatile __CIOCONbits_t CIOCONbits;
11573 #define _CLKSEL 0x01
11574 #define _CANCAP 0x10
11575 #define _ENDRHI 0x20
11576 #define _TX2EN 0x40
11577 #define _TX2SRC 0x80
11579 //==============================================================================
11582 //==============================================================================
11583 // COMSTAT Bits
11585 extern __at(0x0F71) __sfr COMSTAT;
11587 typedef union
11589 struct
11591 unsigned EWARN : 1;
11592 unsigned RXWARN : 1;
11593 unsigned TXWARN : 1;
11594 unsigned RXBP : 1;
11595 unsigned TXBP : 1;
11596 unsigned TXBO : 1;
11597 unsigned RXB1OVFL : 1;
11598 unsigned RXB0OVFL : 1;
11601 struct
11603 unsigned : 1;
11604 unsigned : 1;
11605 unsigned : 1;
11606 unsigned : 1;
11607 unsigned : 1;
11608 unsigned : 1;
11609 unsigned : 1;
11610 unsigned NOT_FIFOEMPTY : 1;
11612 } __COMSTATbits_t;
11614 extern __at(0x0F71) volatile __COMSTATbits_t COMSTATbits;
11616 #define _EWARN 0x01
11617 #define _RXWARN 0x02
11618 #define _TXWARN 0x04
11619 #define _RXBP 0x08
11620 #define _TXBP 0x10
11621 #define _TXBO 0x20
11622 #define _RXB1OVFL 0x40
11623 #define _RXB0OVFL 0x80
11624 #define _NOT_FIFOEMPTY 0x80
11626 //==============================================================================
11629 //==============================================================================
11630 // ECANCON Bits
11632 extern __at(0x0F72) __sfr ECANCON;
11634 typedef union
11636 struct
11638 unsigned EWIN0 : 1;
11639 unsigned EWIN1 : 1;
11640 unsigned EWIN2 : 1;
11641 unsigned EWIN3 : 1;
11642 unsigned EWIN4 : 1;
11643 unsigned FIFOWM : 1;
11644 unsigned MDSEL0 : 1;
11645 unsigned MDSEL1 : 1;
11648 struct
11650 unsigned EWIN : 5;
11651 unsigned : 3;
11654 struct
11656 unsigned : 6;
11657 unsigned MDSEL : 2;
11659 } __ECANCONbits_t;
11661 extern __at(0x0F72) volatile __ECANCONbits_t ECANCONbits;
11663 #define _EWIN0 0x01
11664 #define _EWIN1 0x02
11665 #define _EWIN2 0x04
11666 #define _EWIN3 0x08
11667 #define _EWIN4 0x10
11668 #define _FIFOWM 0x20
11669 #define _MDSEL0 0x40
11670 #define _MDSEL1 0x80
11672 //==============================================================================
11674 extern __at(0x0F73) __sfr EEDATA;
11675 extern __at(0x0F74) __sfr EEADR;
11676 extern __at(0x0F75) __sfr EEADRH;
11678 //==============================================================================
11679 // PIE5 Bits
11681 extern __at(0x0F76) __sfr PIE5;
11683 typedef union
11685 struct
11687 unsigned RXB0IE : 1;
11688 unsigned RXB1IE : 1;
11689 unsigned TXB0IE : 1;
11690 unsigned TXB1IE : 1;
11691 unsigned TXB2IE : 1;
11692 unsigned ERRIE : 1;
11693 unsigned WAKIE : 1;
11694 unsigned IRXIE : 1;
11697 struct
11699 unsigned FIFOWMIE : 1;
11700 unsigned RXBnIE : 1;
11701 unsigned : 1;
11702 unsigned : 1;
11703 unsigned TXBnIE : 1;
11704 unsigned : 1;
11705 unsigned : 1;
11706 unsigned : 1;
11708 } __PIE5bits_t;
11710 extern __at(0x0F76) volatile __PIE5bits_t PIE5bits;
11712 #define _PIE5_RXB0IE 0x01
11713 #define _PIE5_FIFOWMIE 0x01
11714 #define _PIE5_RXB1IE 0x02
11715 #define _PIE5_RXBnIE 0x02
11716 #define _PIE5_TXB0IE 0x04
11717 #define _PIE5_TXB1IE 0x08
11718 #define _PIE5_TXB2IE 0x10
11719 #define _PIE5_TXBnIE 0x10
11720 #define _PIE5_ERRIE 0x20
11721 #define _PIE5_WAKIE 0x40
11722 #define _PIE5_IRXIE 0x80
11724 //==============================================================================
11727 //==============================================================================
11728 // PIR5 Bits
11730 extern __at(0x0F77) __sfr PIR5;
11732 typedef union
11734 struct
11736 unsigned RXB0IF : 1;
11737 unsigned RXB1IF : 1;
11738 unsigned TXB0IF : 1;
11739 unsigned TXB1IF : 1;
11740 unsigned TXB2IF : 1;
11741 unsigned ERRIF : 1;
11742 unsigned WAKIF : 1;
11743 unsigned IRXIF : 1;
11746 struct
11748 unsigned FIFOWMIF : 1;
11749 unsigned RXBnIF : 1;
11750 unsigned : 1;
11751 unsigned : 1;
11752 unsigned TXBnIF : 1;
11753 unsigned : 1;
11754 unsigned : 1;
11755 unsigned : 1;
11757 } __PIR5bits_t;
11759 extern __at(0x0F77) volatile __PIR5bits_t PIR5bits;
11761 #define _RXB0IF 0x01
11762 #define _FIFOWMIF 0x01
11763 #define _RXB1IF 0x02
11764 #define _RXBnIF 0x02
11765 #define _TXB0IF 0x04
11766 #define _TXB1IF 0x08
11767 #define _TXB2IF 0x10
11768 #define _TXBnIF 0x10
11769 #define _ERRIF 0x20
11770 #define _WAKIF 0x40
11771 #define _IRXIF 0x80
11773 //==============================================================================
11776 //==============================================================================
11777 // IPR5 Bits
11779 extern __at(0x0F78) __sfr IPR5;
11781 typedef union
11783 struct
11785 unsigned RXB0IP : 1;
11786 unsigned RXB1IP : 1;
11787 unsigned TXB0IP : 1;
11788 unsigned TXB1IP : 1;
11789 unsigned TXB2IP : 1;
11790 unsigned ERRIP : 1;
11791 unsigned WAKIP : 1;
11792 unsigned IRXIP : 1;
11795 struct
11797 unsigned FIFOWMIP : 1;
11798 unsigned RXBnIP : 1;
11799 unsigned : 1;
11800 unsigned : 1;
11801 unsigned TXBnIP : 1;
11802 unsigned : 1;
11803 unsigned : 1;
11804 unsigned : 1;
11806 } __IPR5bits_t;
11808 extern __at(0x0F78) volatile __IPR5bits_t IPR5bits;
11810 #define _RXB0IP 0x01
11811 #define _FIFOWMIP 0x01
11812 #define _RXB1IP 0x02
11813 #define _RXBnIP 0x02
11814 #define _TXB0IP 0x04
11815 #define _TXB1IP 0x08
11816 #define _TXB2IP 0x10
11817 #define _TXBnIP 0x10
11818 #define _ERRIP 0x20
11819 #define _WAKIP 0x40
11820 #define _IRXIP 0x80
11822 //==============================================================================
11824 extern __at(0x0F79) __sfr TXREG2;
11825 extern __at(0x0F7A) __sfr RCREG2;
11826 extern __at(0x0F7B) __sfr SPBRG2;
11827 extern __at(0x0F7C) __sfr SPBRGH2;
11828 extern __at(0x0F7D) __sfr SPBRGH1;
11829 extern __at(0x0F7E) __sfr EECON2;
11831 //==============================================================================
11832 // EECON1 Bits
11834 extern __at(0x0F7F) __sfr EECON1;
11836 typedef struct
11838 unsigned RD : 1;
11839 unsigned WR : 1;
11840 unsigned WREN : 1;
11841 unsigned WRERR : 1;
11842 unsigned FREE : 1;
11843 unsigned : 1;
11844 unsigned CFGS : 1;
11845 unsigned EEPGD : 1;
11846 } __EECON1bits_t;
11848 extern __at(0x0F7F) volatile __EECON1bits_t EECON1bits;
11850 #define _RD 0x01
11851 #define _WR 0x02
11852 #define _WREN 0x04
11853 #define _WRERR 0x08
11854 #define _FREE 0x10
11855 #define _CFGS 0x40
11856 #define _EEPGD 0x80
11858 //==============================================================================
11861 //==============================================================================
11862 // PORTA Bits
11864 extern __at(0x0F80) __sfr PORTA;
11866 typedef struct
11868 unsigned RA0 : 1;
11869 unsigned RA1 : 1;
11870 unsigned RA2 : 1;
11871 unsigned RA3 : 1;
11872 unsigned : 1;
11873 unsigned RA5 : 1;
11874 unsigned RA6 : 1;
11875 unsigned RA7 : 1;
11876 } __PORTAbits_t;
11878 extern __at(0x0F80) volatile __PORTAbits_t PORTAbits;
11880 #define _RA0 0x01
11881 #define _RA1 0x02
11882 #define _RA2 0x04
11883 #define _RA3 0x08
11884 #define _RA5 0x20
11885 #define _RA6 0x40
11886 #define _RA7 0x80
11888 //==============================================================================
11891 //==============================================================================
11892 // PORTB Bits
11894 extern __at(0x0F81) __sfr PORTB;
11896 typedef struct
11898 unsigned RB0 : 1;
11899 unsigned RB1 : 1;
11900 unsigned RB2 : 1;
11901 unsigned RB3 : 1;
11902 unsigned RB4 : 1;
11903 unsigned RB5 : 1;
11904 unsigned RB6 : 1;
11905 unsigned RB7 : 1;
11906 } __PORTBbits_t;
11908 extern __at(0x0F81) volatile __PORTBbits_t PORTBbits;
11910 #define _PORTB_RB0 0x01
11911 #define _PORTB_RB1 0x02
11912 #define _PORTB_RB2 0x04
11913 #define _PORTB_RB3 0x08
11914 #define _PORTB_RB4 0x10
11915 #define _PORTB_RB5 0x20
11916 #define _PORTB_RB6 0x40
11917 #define _PORTB_RB7 0x80
11919 //==============================================================================
11922 //==============================================================================
11923 // PORTC Bits
11925 extern __at(0x0F82) __sfr PORTC;
11927 typedef struct
11929 unsigned RC0 : 1;
11930 unsigned RC1 : 1;
11931 unsigned RC2 : 1;
11932 unsigned RC3 : 1;
11933 unsigned RC4 : 1;
11934 unsigned RC5 : 1;
11935 unsigned RC6 : 1;
11936 unsigned RC7 : 1;
11937 } __PORTCbits_t;
11939 extern __at(0x0F82) volatile __PORTCbits_t PORTCbits;
11941 #define _RC0 0x01
11942 #define _RC1 0x02
11943 #define _RC2 0x04
11944 #define _RC3 0x08
11945 #define _RC4 0x10
11946 #define _RC5 0x20
11947 #define _RC6 0x40
11948 #define _RC7 0x80
11950 //==============================================================================
11953 //==============================================================================
11954 // PORTE Bits
11956 extern __at(0x0F84) __sfr PORTE;
11958 typedef struct
11960 unsigned : 1;
11961 unsigned : 1;
11962 unsigned : 1;
11963 unsigned RE3 : 1;
11964 unsigned : 1;
11965 unsigned : 1;
11966 unsigned : 1;
11967 unsigned : 1;
11968 } __PORTEbits_t;
11970 extern __at(0x0F84) volatile __PORTEbits_t PORTEbits;
11972 #define _RE3 0x08
11974 //==============================================================================
11976 extern __at(0x0F87) __sfr TMR4;
11978 //==============================================================================
11979 // T4CON Bits
11981 extern __at(0x0F88) __sfr T4CON;
11983 typedef union
11985 struct
11987 unsigned T4CKPS0 : 1;
11988 unsigned T4CKPS1 : 1;
11989 unsigned TMR4ON : 1;
11990 unsigned T4OUTPS0 : 1;
11991 unsigned T4OUTPS1 : 1;
11992 unsigned T4OUTPS2 : 1;
11993 unsigned T4OUTPS3 : 1;
11994 unsigned : 1;
11997 struct
11999 unsigned T4CKPS : 2;
12000 unsigned : 6;
12003 struct
12005 unsigned : 3;
12006 unsigned T4OUTPS : 4;
12007 unsigned : 1;
12009 } __T4CONbits_t;
12011 extern __at(0x0F88) volatile __T4CONbits_t T4CONbits;
12013 #define _T4CKPS0 0x01
12014 #define _T4CKPS1 0x02
12015 #define _TMR4ON 0x04
12016 #define _T4OUTPS0 0x08
12017 #define _T4OUTPS1 0x10
12018 #define _T4OUTPS2 0x20
12019 #define _T4OUTPS3 0x40
12021 //==============================================================================
12024 //==============================================================================
12025 // LATA Bits
12027 extern __at(0x0F89) __sfr LATA;
12029 typedef struct
12031 unsigned LATA0 : 1;
12032 unsigned LATA1 : 1;
12033 unsigned LATA2 : 1;
12034 unsigned LATA3 : 1;
12035 unsigned : 1;
12036 unsigned LATA5 : 1;
12037 unsigned LATA6 : 1;
12038 unsigned LATA7 : 1;
12039 } __LATAbits_t;
12041 extern __at(0x0F89) volatile __LATAbits_t LATAbits;
12043 #define _LATA0 0x01
12044 #define _LATA1 0x02
12045 #define _LATA2 0x04
12046 #define _LATA3 0x08
12047 #define _LATA5 0x20
12048 #define _LATA6 0x40
12049 #define _LATA7 0x80
12051 //==============================================================================
12054 //==============================================================================
12055 // LATB Bits
12057 extern __at(0x0F8A) __sfr LATB;
12059 typedef struct
12061 unsigned LATB0 : 1;
12062 unsigned LATB1 : 1;
12063 unsigned LATB2 : 1;
12064 unsigned LATB3 : 1;
12065 unsigned LATB4 : 1;
12066 unsigned LATB5 : 1;
12067 unsigned LATB6 : 1;
12068 unsigned LATB7 : 1;
12069 } __LATBbits_t;
12071 extern __at(0x0F8A) volatile __LATBbits_t LATBbits;
12073 #define _LATB0 0x01
12074 #define _LATB1 0x02
12075 #define _LATB2 0x04
12076 #define _LATB3 0x08
12077 #define _LATB4 0x10
12078 #define _LATB5 0x20
12079 #define _LATB6 0x40
12080 #define _LATB7 0x80
12082 //==============================================================================
12085 //==============================================================================
12086 // LATC Bits
12088 extern __at(0x0F8B) __sfr LATC;
12090 typedef struct
12092 unsigned LATC0 : 1;
12093 unsigned LATC1 : 1;
12094 unsigned LATC2 : 1;
12095 unsigned LATC3 : 1;
12096 unsigned LATC4 : 1;
12097 unsigned LATC5 : 1;
12098 unsigned LATC6 : 1;
12099 unsigned LATC7 : 1;
12100 } __LATCbits_t;
12102 extern __at(0x0F8B) volatile __LATCbits_t LATCbits;
12104 #define _LATC0 0x01
12105 #define _LATC1 0x02
12106 #define _LATC2 0x04
12107 #define _LATC3 0x08
12108 #define _LATC4 0x10
12109 #define _LATC5 0x20
12110 #define _LATC6 0x40
12111 #define _LATC7 0x80
12113 //==============================================================================
12116 //==============================================================================
12117 // SLRCON Bits
12119 extern __at(0x0F90) __sfr SLRCON;
12121 typedef struct
12123 unsigned SLRA : 1;
12124 unsigned SLRB : 1;
12125 unsigned SLRC : 1;
12126 unsigned : 1;
12127 unsigned : 1;
12128 unsigned : 1;
12129 unsigned : 1;
12130 unsigned : 1;
12131 } __SLRCONbits_t;
12133 extern __at(0x0F90) volatile __SLRCONbits_t SLRCONbits;
12135 #define _SLRA 0x01
12136 #define _SLRB 0x02
12137 #define _SLRC 0x04
12139 //==============================================================================
12142 //==============================================================================
12143 // ODCON Bits
12145 extern __at(0x0F91) __sfr ODCON;
12147 typedef struct
12149 unsigned U1OD : 1;
12150 unsigned U2OD : 1;
12151 unsigned CCP1OD : 1;
12152 unsigned CCP2OD : 1;
12153 unsigned CCP3OD : 1;
12154 unsigned CCP4OD : 1;
12155 unsigned CCP5OD : 1;
12156 unsigned SSPOD : 1;
12157 } __ODCONbits_t;
12159 extern __at(0x0F91) volatile __ODCONbits_t ODCONbits;
12161 #define _U1OD 0x01
12162 #define _U2OD 0x02
12163 #define _CCP1OD 0x04
12164 #define _CCP2OD 0x08
12165 #define _CCP3OD 0x10
12166 #define _CCP4OD 0x20
12167 #define _CCP5OD 0x40
12168 #define _SSPOD 0x80
12170 //==============================================================================
12173 //==============================================================================
12174 // TRISA Bits
12176 extern __at(0x0F92) __sfr TRISA;
12178 typedef struct
12180 unsigned TRISA0 : 1;
12181 unsigned TRISA1 : 1;
12182 unsigned TRISA2 : 1;
12183 unsigned TRISA3 : 1;
12184 unsigned : 1;
12185 unsigned TRISA5 : 1;
12186 unsigned TRISA6 : 1;
12187 unsigned TRISA7 : 1;
12188 } __TRISAbits_t;
12190 extern __at(0x0F92) volatile __TRISAbits_t TRISAbits;
12192 #define _TRISA0 0x01
12193 #define _TRISA1 0x02
12194 #define _TRISA2 0x04
12195 #define _TRISA3 0x08
12196 #define _TRISA5 0x20
12197 #define _TRISA6 0x40
12198 #define _TRISA7 0x80
12200 //==============================================================================
12203 //==============================================================================
12204 // TRISB Bits
12206 extern __at(0x0F93) __sfr TRISB;
12208 typedef struct
12210 unsigned TRISB0 : 1;
12211 unsigned TRISB1 : 1;
12212 unsigned TRISB2 : 1;
12213 unsigned TRISB3 : 1;
12214 unsigned TRISB4 : 1;
12215 unsigned TRISB5 : 1;
12216 unsigned TRISB6 : 1;
12217 unsigned TRISB7 : 1;
12218 } __TRISBbits_t;
12220 extern __at(0x0F93) volatile __TRISBbits_t TRISBbits;
12222 #define _TRISB0 0x01
12223 #define _TRISB1 0x02
12224 #define _TRISB2 0x04
12225 #define _TRISB3 0x08
12226 #define _TRISB4 0x10
12227 #define _TRISB5 0x20
12228 #define _TRISB6 0x40
12229 #define _TRISB7 0x80
12231 //==============================================================================
12234 //==============================================================================
12235 // TRISC Bits
12237 extern __at(0x0F94) __sfr TRISC;
12239 typedef struct
12241 unsigned TRISC0 : 1;
12242 unsigned TRISC1 : 1;
12243 unsigned TRISC2 : 1;
12244 unsigned TRISC3 : 1;
12245 unsigned TRISC4 : 1;
12246 unsigned TRISC5 : 1;
12247 unsigned TRISC6 : 1;
12248 unsigned TRISC7 : 1;
12249 } __TRISCbits_t;
12251 extern __at(0x0F94) volatile __TRISCbits_t TRISCbits;
12253 #define _TRISC0 0x01
12254 #define _TRISC1 0x02
12255 #define _TRISC2 0x04
12256 #define _TRISC3 0x08
12257 #define _TRISC4 0x10
12258 #define _TRISC5 0x20
12259 #define _TRISC6 0x40
12260 #define _TRISC7 0x80
12262 //==============================================================================
12265 //==============================================================================
12266 // CCPTMRS Bits
12268 extern __at(0x0F99) __sfr CCPTMRS;
12270 typedef struct
12272 unsigned C1TSEL : 1;
12273 unsigned C2TSEL : 1;
12274 unsigned C3TSEL : 1;
12275 unsigned C4TSEL : 1;
12276 unsigned C5TSEL : 1;
12277 unsigned : 1;
12278 unsigned : 1;
12279 unsigned : 1;
12280 } __CCPTMRSbits_t;
12282 extern __at(0x0F99) volatile __CCPTMRSbits_t CCPTMRSbits;
12284 #define _C1TSEL 0x01
12285 #define _C2TSEL 0x02
12286 #define _C3TSEL 0x04
12287 #define _C4TSEL 0x08
12288 #define _C5TSEL 0x10
12290 //==============================================================================
12293 //==============================================================================
12294 // REFOCON Bits
12296 extern __at(0x0F9A) __sfr REFOCON;
12298 typedef union
12300 struct
12302 unsigned RODIV0 : 1;
12303 unsigned RODIV1 : 1;
12304 unsigned RODIV2 : 1;
12305 unsigned RODIV3 : 1;
12306 unsigned ROSEL : 1;
12307 unsigned ROSSLP : 1;
12308 unsigned : 1;
12309 unsigned ROON : 1;
12312 struct
12314 unsigned RODIV : 4;
12315 unsigned : 4;
12317 } __REFOCONbits_t;
12319 extern __at(0x0F9A) volatile __REFOCONbits_t REFOCONbits;
12321 #define _RODIV0 0x01
12322 #define _RODIV1 0x02
12323 #define _RODIV2 0x04
12324 #define _RODIV3 0x08
12325 #define _ROSEL 0x10
12326 #define _ROSSLP 0x20
12327 #define _ROON 0x80
12329 //==============================================================================
12332 //==============================================================================
12333 // OSCTUNE Bits
12335 extern __at(0x0F9B) __sfr OSCTUNE;
12337 typedef union
12339 struct
12341 unsigned TUN0 : 1;
12342 unsigned TUN1 : 1;
12343 unsigned TUN2 : 1;
12344 unsigned TUN3 : 1;
12345 unsigned TUN4 : 1;
12346 unsigned TUN5 : 1;
12347 unsigned PLLEN : 1;
12348 unsigned INTSRC : 1;
12351 struct
12353 unsigned TUN : 6;
12354 unsigned : 2;
12356 } __OSCTUNEbits_t;
12358 extern __at(0x0F9B) volatile __OSCTUNEbits_t OSCTUNEbits;
12360 #define _TUN0 0x01
12361 #define _TUN1 0x02
12362 #define _TUN2 0x04
12363 #define _TUN3 0x08
12364 #define _TUN4 0x10
12365 #define _TUN5 0x20
12366 #define _PLLEN 0x40
12367 #define _INTSRC 0x80
12369 //==============================================================================
12372 //==============================================================================
12373 // PSTR1CON Bits
12375 extern __at(0x0F9C) __sfr PSTR1CON;
12377 typedef union
12379 struct
12381 unsigned STRA : 1;
12382 unsigned STRB : 1;
12383 unsigned STRC : 1;
12384 unsigned STRD : 1;
12385 unsigned STRSYNC : 1;
12386 unsigned : 1;
12387 unsigned CMPL0 : 1;
12388 unsigned CMPL1 : 1;
12391 struct
12393 unsigned : 6;
12394 unsigned CMPL : 2;
12396 } __PSTR1CONbits_t;
12398 extern __at(0x0F9C) volatile __PSTR1CONbits_t PSTR1CONbits;
12400 #define _STRA 0x01
12401 #define _STRB 0x02
12402 #define _STRC 0x04
12403 #define _STRD 0x08
12404 #define _STRSYNC 0x10
12405 #define _CMPL0 0x40
12406 #define _CMPL1 0x80
12408 //==============================================================================
12411 //==============================================================================
12412 // PIE1 Bits
12414 extern __at(0x0F9D) __sfr PIE1;
12416 typedef union
12418 struct
12420 unsigned TMR1IE : 1;
12421 unsigned TMR2IE : 1;
12422 unsigned TMR1GIE : 1;
12423 unsigned SSPIE : 1;
12424 unsigned TX1IE : 1;
12425 unsigned RC1IE : 1;
12426 unsigned ADIE : 1;
12427 unsigned : 1;
12430 struct
12432 unsigned : 1;
12433 unsigned : 1;
12434 unsigned : 1;
12435 unsigned : 1;
12436 unsigned TXIE : 1;
12437 unsigned RCIE : 1;
12438 unsigned : 1;
12439 unsigned : 1;
12441 } __PIE1bits_t;
12443 extern __at(0x0F9D) volatile __PIE1bits_t PIE1bits;
12445 #define _TMR1IE 0x01
12446 #define _TMR2IE 0x02
12447 #define _TMR1GIE 0x04
12448 #define _SSPIE 0x08
12449 #define _TX1IE 0x10
12450 #define _TXIE 0x10
12451 #define _RC1IE 0x20
12452 #define _RCIE 0x20
12453 #define _ADIE 0x40
12455 //==============================================================================
12458 //==============================================================================
12459 // PIR1 Bits
12461 extern __at(0x0F9E) __sfr PIR1;
12463 typedef union
12465 struct
12467 unsigned TMR1IF : 1;
12468 unsigned TMR2IF : 1;
12469 unsigned TMR1GIF : 1;
12470 unsigned SSPIF : 1;
12471 unsigned TX1IF : 1;
12472 unsigned RC1IF : 1;
12473 unsigned ADIF : 1;
12474 unsigned : 1;
12477 struct
12479 unsigned : 1;
12480 unsigned : 1;
12481 unsigned : 1;
12482 unsigned : 1;
12483 unsigned TXIF : 1;
12484 unsigned RCIF : 1;
12485 unsigned : 1;
12486 unsigned : 1;
12488 } __PIR1bits_t;
12490 extern __at(0x0F9E) volatile __PIR1bits_t PIR1bits;
12492 #define _TMR1IF 0x01
12493 #define _TMR2IF 0x02
12494 #define _TMR1GIF 0x04
12495 #define _SSPIF 0x08
12496 #define _TX1IF 0x10
12497 #define _TXIF 0x10
12498 #define _RC1IF 0x20
12499 #define _RCIF 0x20
12500 #define _ADIF 0x40
12502 //==============================================================================
12505 //==============================================================================
12506 // IPR1 Bits
12508 extern __at(0x0F9F) __sfr IPR1;
12510 typedef union
12512 struct
12514 unsigned TMR1IP : 1;
12515 unsigned TMR2IP : 1;
12516 unsigned TMR1GIP : 1;
12517 unsigned SSPIP : 1;
12518 unsigned TX1IP : 1;
12519 unsigned RC1IP : 1;
12520 unsigned ADIP : 1;
12521 unsigned : 1;
12524 struct
12526 unsigned : 1;
12527 unsigned : 1;
12528 unsigned : 1;
12529 unsigned : 1;
12530 unsigned TXIP : 1;
12531 unsigned RCIP : 1;
12532 unsigned : 1;
12533 unsigned : 1;
12535 } __IPR1bits_t;
12537 extern __at(0x0F9F) volatile __IPR1bits_t IPR1bits;
12539 #define _TMR1IP 0x01
12540 #define _TMR2IP 0x02
12541 #define _TMR1GIP 0x04
12542 #define _SSPIP 0x08
12543 #define _TX1IP 0x10
12544 #define _TXIP 0x10
12545 #define _RC1IP 0x20
12546 #define _RCIP 0x20
12547 #define _ADIP 0x40
12549 //==============================================================================
12552 //==============================================================================
12553 // PIE2 Bits
12555 extern __at(0x0FA0) __sfr PIE2;
12557 typedef union
12559 struct
12561 unsigned TMR3GIE : 1;
12562 unsigned TMR3IE : 1;
12563 unsigned HLVDIE : 1;
12564 unsigned BCLIE : 1;
12565 unsigned : 1;
12566 unsigned : 1;
12567 unsigned : 1;
12568 unsigned OSCFIE : 1;
12571 struct
12573 unsigned : 1;
12574 unsigned : 1;
12575 unsigned LVDIE : 1;
12576 unsigned : 1;
12577 unsigned : 1;
12578 unsigned : 1;
12579 unsigned : 1;
12580 unsigned : 1;
12582 } __PIE2bits_t;
12584 extern __at(0x0FA0) volatile __PIE2bits_t PIE2bits;
12586 #define _TMR3GIE 0x01
12587 #define _TMR3IE 0x02
12588 #define _HLVDIE 0x04
12589 #define _LVDIE 0x04
12590 #define _BCLIE 0x08
12591 #define _OSCFIE 0x80
12593 //==============================================================================
12596 //==============================================================================
12597 // PIR2 Bits
12599 extern __at(0x0FA1) __sfr PIR2;
12601 typedef union
12603 struct
12605 unsigned TMR3GIF : 1;
12606 unsigned TMR3IF : 1;
12607 unsigned HLVDIF : 1;
12608 unsigned BCLIF : 1;
12609 unsigned : 1;
12610 unsigned : 1;
12611 unsigned : 1;
12612 unsigned OSCFIF : 1;
12615 struct
12617 unsigned : 1;
12618 unsigned : 1;
12619 unsigned LVDIF : 1;
12620 unsigned : 1;
12621 unsigned : 1;
12622 unsigned : 1;
12623 unsigned : 1;
12624 unsigned : 1;
12626 } __PIR2bits_t;
12628 extern __at(0x0FA1) volatile __PIR2bits_t PIR2bits;
12630 #define _TMR3GIF 0x01
12631 #define _TMR3IF 0x02
12632 #define _HLVDIF 0x04
12633 #define _LVDIF 0x04
12634 #define _BCLIF 0x08
12635 #define _OSCFIF 0x80
12637 //==============================================================================
12640 //==============================================================================
12641 // IPR2 Bits
12643 extern __at(0x0FA2) __sfr IPR2;
12645 typedef union
12647 struct
12649 unsigned TMR3GIP : 1;
12650 unsigned TMR3IP : 1;
12651 unsigned HLVDIP : 1;
12652 unsigned BCLIP : 1;
12653 unsigned : 1;
12654 unsigned : 1;
12655 unsigned : 1;
12656 unsigned OSCFIP : 1;
12659 struct
12661 unsigned : 1;
12662 unsigned : 1;
12663 unsigned LVDIP : 1;
12664 unsigned : 1;
12665 unsigned : 1;
12666 unsigned : 1;
12667 unsigned : 1;
12668 unsigned : 1;
12670 } __IPR2bits_t;
12672 extern __at(0x0FA2) volatile __IPR2bits_t IPR2bits;
12674 #define _TMR3GIP 0x01
12675 #define _TMR3IP 0x02
12676 #define _HLVDIP 0x04
12677 #define _LVDIP 0x04
12678 #define _BCLIP 0x08
12679 #define _OSCFIP 0x80
12681 //==============================================================================
12684 //==============================================================================
12685 // PIE3 Bits
12687 extern __at(0x0FA3) __sfr PIE3;
12689 typedef struct
12691 unsigned : 1;
12692 unsigned CCP1IE : 1;
12693 unsigned CCP2IE : 1;
12694 unsigned CTMUIE : 1;
12695 unsigned TX2IE : 1;
12696 unsigned RC2IE : 1;
12697 unsigned : 1;
12698 unsigned : 1;
12699 } __PIE3bits_t;
12701 extern __at(0x0FA3) volatile __PIE3bits_t PIE3bits;
12703 #define _CCP1IE 0x02
12704 #define _CCP2IE 0x04
12705 #define _CTMUIE 0x08
12706 #define _TX2IE 0x10
12707 #define _RC2IE 0x20
12709 //==============================================================================
12712 //==============================================================================
12713 // PIR3 Bits
12715 extern __at(0x0FA4) __sfr PIR3;
12717 typedef struct
12719 unsigned : 1;
12720 unsigned CCP1IF : 1;
12721 unsigned CCP2IF : 1;
12722 unsigned CTMUIF : 1;
12723 unsigned TX2IF : 1;
12724 unsigned RC2IF : 1;
12725 unsigned : 1;
12726 unsigned : 1;
12727 } __PIR3bits_t;
12729 extern __at(0x0FA4) volatile __PIR3bits_t PIR3bits;
12731 #define _CCP1IF 0x02
12732 #define _CCP2IF 0x04
12733 #define _CTMUIF 0x08
12734 #define _TX2IF 0x10
12735 #define _RC2IF 0x20
12737 //==============================================================================
12740 //==============================================================================
12741 // IPR3 Bits
12743 extern __at(0x0FA5) __sfr IPR3;
12745 typedef struct
12747 unsigned : 1;
12748 unsigned CCP1IP : 1;
12749 unsigned CCP2IP : 1;
12750 unsigned CTMUIP : 1;
12751 unsigned TX2IP : 1;
12752 unsigned RC2IP : 1;
12753 unsigned : 1;
12754 unsigned : 1;
12755 } __IPR3bits_t;
12757 extern __at(0x0FA5) volatile __IPR3bits_t IPR3bits;
12759 #define _CCP1IP 0x02
12760 #define _CCP2IP 0x04
12761 #define _CTMUIP 0x08
12762 #define _TX2IP 0x10
12763 #define _RC2IP 0x20
12765 //==============================================================================
12768 //==============================================================================
12769 // RCSTA2 Bits
12771 extern __at(0x0FA6) __sfr RCSTA2;
12773 typedef union
12775 struct
12777 unsigned RX9D : 1;
12778 unsigned OERR : 1;
12779 unsigned FERR : 1;
12780 unsigned ADDEN : 1;
12781 unsigned CREN : 1;
12782 unsigned SREN : 1;
12783 unsigned RX9 : 1;
12784 unsigned SPEN : 1;
12787 struct
12789 unsigned RX9D2 : 1;
12790 unsigned OERR2 : 1;
12791 unsigned FERR2 : 1;
12792 unsigned ADDEN2 : 1;
12793 unsigned CREN2 : 1;
12794 unsigned SREN2 : 1;
12795 unsigned RX92 : 1;
12796 unsigned SPEN2 : 1;
12798 } __RCSTA2bits_t;
12800 extern __at(0x0FA6) volatile __RCSTA2bits_t RCSTA2bits;
12802 #define _RCSTA2_RX9D 0x01
12803 #define _RCSTA2_RX9D2 0x01
12804 #define _RCSTA2_OERR 0x02
12805 #define _RCSTA2_OERR2 0x02
12806 #define _RCSTA2_FERR 0x04
12807 #define _RCSTA2_FERR2 0x04
12808 #define _RCSTA2_ADDEN 0x08
12809 #define _RCSTA2_ADDEN2 0x08
12810 #define _RCSTA2_CREN 0x10
12811 #define _RCSTA2_CREN2 0x10
12812 #define _RCSTA2_SREN 0x20
12813 #define _RCSTA2_SREN2 0x20
12814 #define _RCSTA2_RX9 0x40
12815 #define _RCSTA2_RX92 0x40
12816 #define _RCSTA2_SPEN 0x80
12817 #define _RCSTA2_SPEN2 0x80
12819 //==============================================================================
12822 //==============================================================================
12823 // BAUDCON1 Bits
12825 extern __at(0x0FA7) __sfr BAUDCON1;
12827 typedef union
12829 struct
12831 unsigned ABDEN : 1;
12832 unsigned WUE : 1;
12833 unsigned : 1;
12834 unsigned BRG16 : 1;
12835 unsigned TXCKP : 1;
12836 unsigned RXDTP : 1;
12837 unsigned RCIDL : 1;
12838 unsigned ABDOVF : 1;
12841 struct
12843 unsigned : 1;
12844 unsigned : 1;
12845 unsigned : 1;
12846 unsigned : 1;
12847 unsigned : 1;
12848 unsigned : 1;
12849 unsigned RCMT : 1;
12850 unsigned : 1;
12852 } __BAUDCON1bits_t;
12854 extern __at(0x0FA7) volatile __BAUDCON1bits_t BAUDCON1bits;
12856 #define _ABDEN 0x01
12857 #define _WUE 0x02
12858 #define _BRG16 0x08
12859 #define _TXCKP 0x10
12860 #define _RXDTP 0x20
12861 #define _RCIDL 0x40
12862 #define _RCMT 0x40
12863 #define _ABDOVF 0x80
12865 //==============================================================================
12868 //==============================================================================
12869 // HLVDCON Bits
12871 extern __at(0x0FA8) __sfr HLVDCON;
12873 typedef union
12875 struct
12877 unsigned HLVDL0 : 1;
12878 unsigned HLVDL1 : 1;
12879 unsigned HLVDL2 : 1;
12880 unsigned HLVDL3 : 1;
12881 unsigned HLVDEN : 1;
12882 unsigned IRVST : 1;
12883 unsigned BGVST : 1;
12884 unsigned VDIRMAG : 1;
12887 struct
12889 unsigned HLVDL : 4;
12890 unsigned : 4;
12892 } __HLVDCONbits_t;
12894 extern __at(0x0FA8) volatile __HLVDCONbits_t HLVDCONbits;
12896 #define _HLVDL0 0x01
12897 #define _HLVDL1 0x02
12898 #define _HLVDL2 0x04
12899 #define _HLVDL3 0x08
12900 #define _HLVDEN 0x10
12901 #define _IRVST 0x20
12902 #define _BGVST 0x40
12903 #define _VDIRMAG 0x80
12905 //==============================================================================
12907 extern __at(0x0FA9) __sfr PR4;
12909 //==============================================================================
12910 // T1GCON Bits
12912 extern __at(0x0FAA) __sfr T1GCON;
12914 typedef union
12916 struct
12918 unsigned T1GSS0 : 1;
12919 unsigned T1GSS1 : 1;
12920 unsigned T1GVAL : 1;
12921 unsigned T1GGO_NOT_T1DONE : 1;
12922 unsigned T1GSPM : 1;
12923 unsigned T1GTM : 1;
12924 unsigned T1GPOL : 1;
12925 unsigned TMR1GE : 1;
12928 struct
12930 unsigned : 1;
12931 unsigned : 1;
12932 unsigned : 1;
12933 unsigned T1GGO : 1;
12934 unsigned : 1;
12935 unsigned : 1;
12936 unsigned : 1;
12937 unsigned : 1;
12940 struct
12942 unsigned : 1;
12943 unsigned : 1;
12944 unsigned : 1;
12945 unsigned NOT_T1DONE : 1;
12946 unsigned : 1;
12947 unsigned : 1;
12948 unsigned : 1;
12949 unsigned : 1;
12952 struct
12954 unsigned T1GSS : 2;
12955 unsigned : 6;
12957 } __T1GCONbits_t;
12959 extern __at(0x0FAA) volatile __T1GCONbits_t T1GCONbits;
12961 #define _T1GSS0 0x01
12962 #define _T1GSS1 0x02
12963 #define _T1GVAL 0x04
12964 #define _T1GGO_NOT_T1DONE 0x08
12965 #define _T1GGO 0x08
12966 #define _NOT_T1DONE 0x08
12967 #define _T1GSPM 0x10
12968 #define _T1GTM 0x20
12969 #define _T1GPOL 0x40
12970 #define _TMR1GE 0x80
12972 //==============================================================================
12975 //==============================================================================
12976 // RCSTA Bits
12978 extern __at(0x0FAB) __sfr RCSTA;
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 RCD8 : 1;
12997 unsigned OERR1 : 1;
12998 unsigned FERR1 : 1;
12999 unsigned ADEN : 1;
13000 unsigned CREN1 : 1;
13001 unsigned SREN1 : 1;
13002 unsigned RC9 : 1;
13003 unsigned SPEN1 : 1;
13006 struct
13008 unsigned RX9D1 : 1;
13009 unsigned : 1;
13010 unsigned : 1;
13011 unsigned ADDEN1 : 1;
13012 unsigned : 1;
13013 unsigned : 1;
13014 unsigned NOT_RC8 : 1;
13015 unsigned : 1;
13018 struct
13020 unsigned : 1;
13021 unsigned : 1;
13022 unsigned : 1;
13023 unsigned : 1;
13024 unsigned : 1;
13025 unsigned : 1;
13026 unsigned RC8_9 : 1;
13027 unsigned : 1;
13030 struct
13032 unsigned : 1;
13033 unsigned : 1;
13034 unsigned : 1;
13035 unsigned : 1;
13036 unsigned : 1;
13037 unsigned : 1;
13038 unsigned RX91 : 1;
13039 unsigned : 1;
13041 } __RCSTAbits_t;
13043 extern __at(0x0FAB) volatile __RCSTAbits_t RCSTAbits;
13045 #define _RX9D 0x01
13046 #define _RCD8 0x01
13047 #define _RX9D1 0x01
13048 #define _OERR 0x02
13049 #define _OERR1 0x02
13050 #define _FERR 0x04
13051 #define _FERR1 0x04
13052 #define _ADDEN 0x08
13053 #define _ADEN 0x08
13054 #define _ADDEN1 0x08
13055 #define _CREN 0x10
13056 #define _CREN1 0x10
13057 #define _SREN 0x20
13058 #define _SREN1 0x20
13059 #define _RX9 0x40
13060 #define _RC9 0x40
13061 #define _NOT_RC8 0x40
13062 #define _RC8_9 0x40
13063 #define _RX91 0x40
13064 #define _SPEN 0x80
13065 #define _SPEN1 0x80
13067 //==============================================================================
13070 //==============================================================================
13071 // RCSTA1 Bits
13073 extern __at(0x0FAB) __sfr RCSTA1;
13075 typedef union
13077 struct
13079 unsigned RX9D : 1;
13080 unsigned OERR : 1;
13081 unsigned FERR : 1;
13082 unsigned ADDEN : 1;
13083 unsigned CREN : 1;
13084 unsigned SREN : 1;
13085 unsigned RX9 : 1;
13086 unsigned SPEN : 1;
13089 struct
13091 unsigned RCD8 : 1;
13092 unsigned OERR1 : 1;
13093 unsigned FERR1 : 1;
13094 unsigned ADEN : 1;
13095 unsigned CREN1 : 1;
13096 unsigned SREN1 : 1;
13097 unsigned RC9 : 1;
13098 unsigned SPEN1 : 1;
13101 struct
13103 unsigned RX9D1 : 1;
13104 unsigned : 1;
13105 unsigned : 1;
13106 unsigned ADDEN1 : 1;
13107 unsigned : 1;
13108 unsigned : 1;
13109 unsigned NOT_RC8 : 1;
13110 unsigned : 1;
13113 struct
13115 unsigned : 1;
13116 unsigned : 1;
13117 unsigned : 1;
13118 unsigned : 1;
13119 unsigned : 1;
13120 unsigned : 1;
13121 unsigned RC8_9 : 1;
13122 unsigned : 1;
13125 struct
13127 unsigned : 1;
13128 unsigned : 1;
13129 unsigned : 1;
13130 unsigned : 1;
13131 unsigned : 1;
13132 unsigned : 1;
13133 unsigned RX91 : 1;
13134 unsigned : 1;
13136 } __RCSTA1bits_t;
13138 extern __at(0x0FAB) volatile __RCSTA1bits_t RCSTA1bits;
13140 #define _RCSTA1_RX9D 0x01
13141 #define _RCSTA1_RCD8 0x01
13142 #define _RCSTA1_RX9D1 0x01
13143 #define _RCSTA1_OERR 0x02
13144 #define _RCSTA1_OERR1 0x02
13145 #define _RCSTA1_FERR 0x04
13146 #define _RCSTA1_FERR1 0x04
13147 #define _RCSTA1_ADDEN 0x08
13148 #define _RCSTA1_ADEN 0x08
13149 #define _RCSTA1_ADDEN1 0x08
13150 #define _RCSTA1_CREN 0x10
13151 #define _RCSTA1_CREN1 0x10
13152 #define _RCSTA1_SREN 0x20
13153 #define _RCSTA1_SREN1 0x20
13154 #define _RCSTA1_RX9 0x40
13155 #define _RCSTA1_RC9 0x40
13156 #define _RCSTA1_NOT_RC8 0x40
13157 #define _RCSTA1_RC8_9 0x40
13158 #define _RCSTA1_RX91 0x40
13159 #define _RCSTA1_SPEN 0x80
13160 #define _RCSTA1_SPEN1 0x80
13162 //==============================================================================
13165 //==============================================================================
13166 // TXSTA Bits
13168 extern __at(0x0FAC) __sfr TXSTA;
13170 typedef union
13172 struct
13174 unsigned TX9D : 1;
13175 unsigned TRMT : 1;
13176 unsigned BRGH : 1;
13177 unsigned SENDB : 1;
13178 unsigned SYNC : 1;
13179 unsigned TXEN : 1;
13180 unsigned TX9 : 1;
13181 unsigned CSRC : 1;
13184 struct
13186 unsigned TXD8 : 1;
13187 unsigned TRMT1 : 1;
13188 unsigned BRGH1 : 1;
13189 unsigned SENDB1 : 1;
13190 unsigned SYNC1 : 1;
13191 unsigned TXEN1 : 1;
13192 unsigned TX8_9 : 1;
13193 unsigned CSRC1 : 1;
13196 struct
13198 unsigned TX9D1 : 1;
13199 unsigned : 1;
13200 unsigned : 1;
13201 unsigned : 1;
13202 unsigned : 1;
13203 unsigned : 1;
13204 unsigned NOT_TX8 : 1;
13205 unsigned : 1;
13208 struct
13210 unsigned : 1;
13211 unsigned : 1;
13212 unsigned : 1;
13213 unsigned : 1;
13214 unsigned : 1;
13215 unsigned : 1;
13216 unsigned TX91 : 1;
13217 unsigned : 1;
13219 } __TXSTAbits_t;
13221 extern __at(0x0FAC) volatile __TXSTAbits_t TXSTAbits;
13223 #define _TX9D 0x01
13224 #define _TXD8 0x01
13225 #define _TX9D1 0x01
13226 #define _TRMT 0x02
13227 #define _TRMT1 0x02
13228 #define _BRGH 0x04
13229 #define _BRGH1 0x04
13230 #define _SENDB 0x08
13231 #define _SENDB1 0x08
13232 #define _SYNC 0x10
13233 #define _SYNC1 0x10
13234 #define _TXEN 0x20
13235 #define _TXEN1 0x20
13236 #define _TX9 0x40
13237 #define _TX8_9 0x40
13238 #define _NOT_TX8 0x40
13239 #define _TX91 0x40
13240 #define _CSRC 0x80
13241 #define _CSRC1 0x80
13243 //==============================================================================
13246 //==============================================================================
13247 // TXSTA1 Bits
13249 extern __at(0x0FAC) __sfr TXSTA1;
13251 typedef union
13253 struct
13255 unsigned TX9D : 1;
13256 unsigned TRMT : 1;
13257 unsigned BRGH : 1;
13258 unsigned SENDB : 1;
13259 unsigned SYNC : 1;
13260 unsigned TXEN : 1;
13261 unsigned TX9 : 1;
13262 unsigned CSRC : 1;
13265 struct
13267 unsigned TXD8 : 1;
13268 unsigned TRMT1 : 1;
13269 unsigned BRGH1 : 1;
13270 unsigned SENDB1 : 1;
13271 unsigned SYNC1 : 1;
13272 unsigned TXEN1 : 1;
13273 unsigned TX8_9 : 1;
13274 unsigned CSRC1 : 1;
13277 struct
13279 unsigned TX9D1 : 1;
13280 unsigned : 1;
13281 unsigned : 1;
13282 unsigned : 1;
13283 unsigned : 1;
13284 unsigned : 1;
13285 unsigned NOT_TX8 : 1;
13286 unsigned : 1;
13289 struct
13291 unsigned : 1;
13292 unsigned : 1;
13293 unsigned : 1;
13294 unsigned : 1;
13295 unsigned : 1;
13296 unsigned : 1;
13297 unsigned TX91 : 1;
13298 unsigned : 1;
13300 } __TXSTA1bits_t;
13302 extern __at(0x0FAC) volatile __TXSTA1bits_t TXSTA1bits;
13304 #define _TXSTA1_TX9D 0x01
13305 #define _TXSTA1_TXD8 0x01
13306 #define _TXSTA1_TX9D1 0x01
13307 #define _TXSTA1_TRMT 0x02
13308 #define _TXSTA1_TRMT1 0x02
13309 #define _TXSTA1_BRGH 0x04
13310 #define _TXSTA1_BRGH1 0x04
13311 #define _TXSTA1_SENDB 0x08
13312 #define _TXSTA1_SENDB1 0x08
13313 #define _TXSTA1_SYNC 0x10
13314 #define _TXSTA1_SYNC1 0x10
13315 #define _TXSTA1_TXEN 0x20
13316 #define _TXSTA1_TXEN1 0x20
13317 #define _TXSTA1_TX9 0x40
13318 #define _TXSTA1_TX8_9 0x40
13319 #define _TXSTA1_NOT_TX8 0x40
13320 #define _TXSTA1_TX91 0x40
13321 #define _TXSTA1_CSRC 0x80
13322 #define _TXSTA1_CSRC1 0x80
13324 //==============================================================================
13326 extern __at(0x0FAD) __sfr TXREG;
13327 extern __at(0x0FAD) __sfr TXREG1;
13328 extern __at(0x0FAE) __sfr RCREG;
13329 extern __at(0x0FAE) __sfr RCREG1;
13330 extern __at(0x0FAF) __sfr SPBRG;
13331 extern __at(0x0FAF) __sfr SPBRG1;
13333 //==============================================================================
13334 // T3GCON Bits
13336 extern __at(0x0FB0) __sfr T3GCON;
13338 typedef union
13340 struct
13342 unsigned T3GSS0 : 1;
13343 unsigned T3GSS1 : 1;
13344 unsigned T3GVAL : 1;
13345 unsigned T3GGO_NOT_T3DONE : 1;
13346 unsigned T3GSPM : 1;
13347 unsigned T3GTM : 1;
13348 unsigned T3GPOL : 1;
13349 unsigned TMR3GE : 1;
13352 struct
13354 unsigned : 1;
13355 unsigned : 1;
13356 unsigned : 1;
13357 unsigned T3GGO : 1;
13358 unsigned : 1;
13359 unsigned : 1;
13360 unsigned : 1;
13361 unsigned : 1;
13364 struct
13366 unsigned : 1;
13367 unsigned : 1;
13368 unsigned : 1;
13369 unsigned NOT_T3DONE : 1;
13370 unsigned : 1;
13371 unsigned : 1;
13372 unsigned : 1;
13373 unsigned : 1;
13376 struct
13378 unsigned T3GSS : 2;
13379 unsigned : 6;
13381 } __T3GCONbits_t;
13383 extern __at(0x0FB0) volatile __T3GCONbits_t T3GCONbits;
13385 #define _T3GSS0 0x01
13386 #define _T3GSS1 0x02
13387 #define _T3GVAL 0x04
13388 #define _T3GGO_NOT_T3DONE 0x08
13389 #define _T3GGO 0x08
13390 #define _NOT_T3DONE 0x08
13391 #define _T3GSPM 0x10
13392 #define _T3GTM 0x20
13393 #define _T3GPOL 0x40
13394 #define _TMR3GE 0x80
13396 //==============================================================================
13399 //==============================================================================
13400 // T3CON Bits
13402 extern __at(0x0FB1) __sfr T3CON;
13404 typedef union
13406 struct
13408 unsigned TMR3ON : 1;
13409 unsigned RD16 : 1;
13410 unsigned NOT_T3SYNC : 1;
13411 unsigned SOSCEN : 1;
13412 unsigned T3CKPS0 : 1;
13413 unsigned T3CKPS1 : 1;
13414 unsigned TMR3CS0 : 1;
13415 unsigned TMR3CS1 : 1;
13418 struct
13420 unsigned : 4;
13421 unsigned T3CKPS : 2;
13422 unsigned : 2;
13425 struct
13427 unsigned : 6;
13428 unsigned TMR3CS : 2;
13430 } __T3CONbits_t;
13432 extern __at(0x0FB1) volatile __T3CONbits_t T3CONbits;
13434 #define _T3CON_TMR3ON 0x01
13435 #define _T3CON_RD16 0x02
13436 #define _T3CON_NOT_T3SYNC 0x04
13437 #define _T3CON_SOSCEN 0x08
13438 #define _T3CON_T3CKPS0 0x10
13439 #define _T3CON_T3CKPS1 0x20
13440 #define _T3CON_TMR3CS0 0x40
13441 #define _T3CON_TMR3CS1 0x80
13443 //==============================================================================
13445 extern __at(0x0FB2) __sfr TMR3;
13446 extern __at(0x0FB2) __sfr TMR3L;
13447 extern __at(0x0FB3) __sfr TMR3H;
13449 //==============================================================================
13450 // CMSTAT Bits
13452 extern __at(0x0FB4) __sfr CMSTAT;
13454 typedef struct
13456 unsigned : 1;
13457 unsigned : 1;
13458 unsigned : 1;
13459 unsigned : 1;
13460 unsigned : 1;
13461 unsigned : 1;
13462 unsigned CMP1OUT : 1;
13463 unsigned CMP2OUT : 1;
13464 } __CMSTATbits_t;
13466 extern __at(0x0FB4) volatile __CMSTATbits_t CMSTATbits;
13468 #define _CMP1OUT 0x40
13469 #define _CMP2OUT 0x80
13471 //==============================================================================
13474 //==============================================================================
13475 // CMSTATUS Bits
13477 extern __at(0x0FB4) __sfr CMSTATUS;
13479 typedef struct
13481 unsigned : 1;
13482 unsigned : 1;
13483 unsigned : 1;
13484 unsigned : 1;
13485 unsigned : 1;
13486 unsigned : 1;
13487 unsigned CMP1OUT : 1;
13488 unsigned CMP2OUT : 1;
13489 } __CMSTATUSbits_t;
13491 extern __at(0x0FB4) volatile __CMSTATUSbits_t CMSTATUSbits;
13493 #define _CMSTATUS_CMP1OUT 0x40
13494 #define _CMSTATUS_CMP2OUT 0x80
13496 //==============================================================================
13499 //==============================================================================
13500 // CVRCON Bits
13502 extern __at(0x0FB5) __sfr CVRCON;
13504 typedef union
13506 struct
13508 unsigned CVR0 : 1;
13509 unsigned CVR1 : 1;
13510 unsigned CVR2 : 1;
13511 unsigned CVR3 : 1;
13512 unsigned CVR4 : 1;
13513 unsigned CVRSS : 1;
13514 unsigned CVROE : 1;
13515 unsigned CVREN : 1;
13518 struct
13520 unsigned CVR : 5;
13521 unsigned : 3;
13523 } __CVRCONbits_t;
13525 extern __at(0x0FB5) volatile __CVRCONbits_t CVRCONbits;
13527 #define _CVR0 0x01
13528 #define _CVR1 0x02
13529 #define _CVR2 0x04
13530 #define _CVR3 0x08
13531 #define _CVR4 0x10
13532 #define _CVRSS 0x20
13533 #define _CVROE 0x40
13534 #define _CVREN 0x80
13536 //==============================================================================
13539 //==============================================================================
13540 // PIE4 Bits
13542 extern __at(0x0FB6) __sfr PIE4;
13544 typedef struct
13546 unsigned CCP3IE : 1;
13547 unsigned CCP4IE : 1;
13548 unsigned CCP5IE : 1;
13549 unsigned : 1;
13550 unsigned CMP1IE : 1;
13551 unsigned CMP2IE : 1;
13552 unsigned EEIE : 1;
13553 unsigned TMR4IE : 1;
13554 } __PIE4bits_t;
13556 extern __at(0x0FB6) volatile __PIE4bits_t PIE4bits;
13558 #define _CCP3IE 0x01
13559 #define _CCP4IE 0x02
13560 #define _CCP5IE 0x04
13561 #define _CMP1IE 0x10
13562 #define _CMP2IE 0x20
13563 #define _EEIE 0x40
13564 #define _TMR4IE 0x80
13566 //==============================================================================
13569 //==============================================================================
13570 // PIR4 Bits
13572 extern __at(0x0FB7) __sfr PIR4;
13574 typedef struct
13576 unsigned CCP3IF : 1;
13577 unsigned CCP4IF : 1;
13578 unsigned CCP5IF : 1;
13579 unsigned : 1;
13580 unsigned CMP1IF : 1;
13581 unsigned CMP2IF : 1;
13582 unsigned EEIF : 1;
13583 unsigned TMR4IF : 1;
13584 } __PIR4bits_t;
13586 extern __at(0x0FB7) volatile __PIR4bits_t PIR4bits;
13588 #define _CCP3IF 0x01
13589 #define _CCP4IF 0x02
13590 #define _CCP5IF 0x04
13591 #define _CMP1IF 0x10
13592 #define _CMP2IF 0x20
13593 #define _EEIF 0x40
13594 #define _TMR4IF 0x80
13596 //==============================================================================
13599 //==============================================================================
13600 // IPR4 Bits
13602 extern __at(0x0FB8) __sfr IPR4;
13604 typedef struct
13606 unsigned CCP3IP : 1;
13607 unsigned CCP4IP : 1;
13608 unsigned CCP5IP : 1;
13609 unsigned : 1;
13610 unsigned CMP1IP : 1;
13611 unsigned CMP2IP : 1;
13612 unsigned EEIP : 1;
13613 unsigned TMR4IP : 1;
13614 } __IPR4bits_t;
13616 extern __at(0x0FB8) volatile __IPR4bits_t IPR4bits;
13618 #define _CCP3IP 0x01
13619 #define _CCP4IP 0x02
13620 #define _CCP5IP 0x04
13621 #define _CMP1IP 0x10
13622 #define _CMP2IP 0x20
13623 #define _EEIP 0x40
13624 #define _TMR4IP 0x80
13626 //==============================================================================
13629 //==============================================================================
13630 // BAUDCON2 Bits
13632 extern __at(0x0FB9) __sfr BAUDCON2;
13634 typedef union
13636 struct
13638 unsigned ABDEN : 1;
13639 unsigned WUE : 1;
13640 unsigned : 1;
13641 unsigned BRG16 : 1;
13642 unsigned TXCKP : 1;
13643 unsigned RXDTP : 1;
13644 unsigned RCIDL : 1;
13645 unsigned ABDOVF : 1;
13648 struct
13650 unsigned : 1;
13651 unsigned : 1;
13652 unsigned : 1;
13653 unsigned : 1;
13654 unsigned : 1;
13655 unsigned : 1;
13656 unsigned RCMT : 1;
13657 unsigned : 1;
13659 } __BAUDCON2bits_t;
13661 extern __at(0x0FB9) volatile __BAUDCON2bits_t BAUDCON2bits;
13663 #define _BAUDCON2_ABDEN 0x01
13664 #define _BAUDCON2_WUE 0x02
13665 #define _BAUDCON2_BRG16 0x08
13666 #define _BAUDCON2_TXCKP 0x10
13667 #define _BAUDCON2_RXDTP 0x20
13668 #define _BAUDCON2_RCIDL 0x40
13669 #define _BAUDCON2_RCMT 0x40
13670 #define _BAUDCON2_ABDOVF 0x80
13672 //==============================================================================
13675 //==============================================================================
13676 // TXSTA2 Bits
13678 extern __at(0x0FBA) __sfr TXSTA2;
13680 typedef union
13682 struct
13684 unsigned TX9D : 1;
13685 unsigned TRMT : 1;
13686 unsigned BRGH : 1;
13687 unsigned SENDB : 1;
13688 unsigned SYNC : 1;
13689 unsigned TXEN : 1;
13690 unsigned TX9 : 1;
13691 unsigned CSRC : 1;
13694 struct
13696 unsigned TX9D2 : 1;
13697 unsigned TRMT2 : 1;
13698 unsigned BRGH2 : 1;
13699 unsigned SENDB2 : 1;
13700 unsigned SYNC2 : 1;
13701 unsigned TXEN2 : 1;
13702 unsigned TX92 : 1;
13703 unsigned CSRC2 : 1;
13705 } __TXSTA2bits_t;
13707 extern __at(0x0FBA) volatile __TXSTA2bits_t TXSTA2bits;
13709 #define _TXSTA2_TX9D 0x01
13710 #define _TXSTA2_TX9D2 0x01
13711 #define _TXSTA2_TRMT 0x02
13712 #define _TXSTA2_TRMT2 0x02
13713 #define _TXSTA2_BRGH 0x04
13714 #define _TXSTA2_BRGH2 0x04
13715 #define _TXSTA2_SENDB 0x08
13716 #define _TXSTA2_SENDB2 0x08
13717 #define _TXSTA2_SYNC 0x10
13718 #define _TXSTA2_SYNC2 0x10
13719 #define _TXSTA2_TXEN 0x20
13720 #define _TXSTA2_TXEN2 0x20
13721 #define _TXSTA2_TX9 0x40
13722 #define _TXSTA2_TX92 0x40
13723 #define _TXSTA2_CSRC 0x80
13724 #define _TXSTA2_CSRC2 0x80
13726 //==============================================================================
13729 //==============================================================================
13730 // CCP1CON Bits
13732 extern __at(0x0FBB) __sfr CCP1CON;
13734 typedef union
13736 struct
13738 unsigned CCP1M0 : 1;
13739 unsigned CCP1M1 : 1;
13740 unsigned CCP1M2 : 1;
13741 unsigned CCP1M3 : 1;
13742 unsigned DC1B0 : 1;
13743 unsigned DC1B1 : 1;
13744 unsigned P1M0 : 1;
13745 unsigned P1M1 : 1;
13748 struct
13750 unsigned : 1;
13751 unsigned : 1;
13752 unsigned : 1;
13753 unsigned : 1;
13754 unsigned CCP1Y : 1;
13755 unsigned CCP1X : 1;
13756 unsigned : 1;
13757 unsigned : 1;
13760 struct
13762 unsigned CCP1M : 4;
13763 unsigned : 4;
13766 struct
13768 unsigned : 4;
13769 unsigned DC1B : 2;
13770 unsigned : 2;
13773 struct
13775 unsigned : 6;
13776 unsigned P1M : 2;
13778 } __CCP1CONbits_t;
13780 extern __at(0x0FBB) volatile __CCP1CONbits_t CCP1CONbits;
13782 #define _CCP1M0 0x01
13783 #define _CCP1M1 0x02
13784 #define _CCP1M2 0x04
13785 #define _CCP1M3 0x08
13786 #define _DC1B0 0x10
13787 #define _CCP1Y 0x10
13788 #define _DC1B1 0x20
13789 #define _CCP1X 0x20
13790 #define _P1M0 0x40
13791 #define _P1M1 0x80
13793 //==============================================================================
13796 //==============================================================================
13797 // ECCP1CON Bits
13799 extern __at(0x0FBB) __sfr ECCP1CON;
13801 typedef union
13803 struct
13805 unsigned CCP1M0 : 1;
13806 unsigned CCP1M1 : 1;
13807 unsigned CCP1M2 : 1;
13808 unsigned CCP1M3 : 1;
13809 unsigned DC1B0 : 1;
13810 unsigned DC1B1 : 1;
13811 unsigned P1M0 : 1;
13812 unsigned P1M1 : 1;
13815 struct
13817 unsigned : 1;
13818 unsigned : 1;
13819 unsigned : 1;
13820 unsigned : 1;
13821 unsigned CCP1Y : 1;
13822 unsigned CCP1X : 1;
13823 unsigned : 1;
13824 unsigned : 1;
13827 struct
13829 unsigned CCP1M : 4;
13830 unsigned : 4;
13833 struct
13835 unsigned : 4;
13836 unsigned DC1B : 2;
13837 unsigned : 2;
13840 struct
13842 unsigned : 6;
13843 unsigned P1M : 2;
13845 } __ECCP1CONbits_t;
13847 extern __at(0x0FBB) volatile __ECCP1CONbits_t ECCP1CONbits;
13849 #define _ECCP1CON_CCP1M0 0x01
13850 #define _ECCP1CON_CCP1M1 0x02
13851 #define _ECCP1CON_CCP1M2 0x04
13852 #define _ECCP1CON_CCP1M3 0x08
13853 #define _ECCP1CON_DC1B0 0x10
13854 #define _ECCP1CON_CCP1Y 0x10
13855 #define _ECCP1CON_DC1B1 0x20
13856 #define _ECCP1CON_CCP1X 0x20
13857 #define _ECCP1CON_P1M0 0x40
13858 #define _ECCP1CON_P1M1 0x80
13860 //==============================================================================
13862 extern __at(0x0FBC) __sfr CCPR1;
13863 extern __at(0x0FBC) __sfr CCPR1L;
13864 extern __at(0x0FBD) __sfr CCPR1H;
13866 //==============================================================================
13867 // ECCP1DEL Bits
13869 extern __at(0x0FBE) __sfr ECCP1DEL;
13871 typedef union
13873 struct
13875 unsigned P1DC0 : 1;
13876 unsigned P1DC1 : 1;
13877 unsigned P1DC2 : 1;
13878 unsigned P1DC3 : 1;
13879 unsigned P1DC4 : 1;
13880 unsigned P1DC5 : 1;
13881 unsigned P1DC6 : 1;
13882 unsigned P1RSEN : 1;
13885 struct
13887 unsigned P1DC : 7;
13888 unsigned : 1;
13890 } __ECCP1DELbits_t;
13892 extern __at(0x0FBE) volatile __ECCP1DELbits_t ECCP1DELbits;
13894 #define _P1DC0 0x01
13895 #define _P1DC1 0x02
13896 #define _P1DC2 0x04
13897 #define _P1DC3 0x08
13898 #define _P1DC4 0x10
13899 #define _P1DC5 0x20
13900 #define _P1DC6 0x40
13901 #define _P1RSEN 0x80
13903 //==============================================================================
13906 //==============================================================================
13907 // PWM1CON Bits
13909 extern __at(0x0FBE) __sfr PWM1CON;
13911 typedef union
13913 struct
13915 unsigned P1DC0 : 1;
13916 unsigned P1DC1 : 1;
13917 unsigned P1DC2 : 1;
13918 unsigned P1DC3 : 1;
13919 unsigned P1DC4 : 1;
13920 unsigned P1DC5 : 1;
13921 unsigned P1DC6 : 1;
13922 unsigned P1RSEN : 1;
13925 struct
13927 unsigned P1DC : 7;
13928 unsigned : 1;
13930 } __PWM1CONbits_t;
13932 extern __at(0x0FBE) volatile __PWM1CONbits_t PWM1CONbits;
13934 #define _PWM1CON_P1DC0 0x01
13935 #define _PWM1CON_P1DC1 0x02
13936 #define _PWM1CON_P1DC2 0x04
13937 #define _PWM1CON_P1DC3 0x08
13938 #define _PWM1CON_P1DC4 0x10
13939 #define _PWM1CON_P1DC5 0x20
13940 #define _PWM1CON_P1DC6 0x40
13941 #define _PWM1CON_P1RSEN 0x80
13943 //==============================================================================
13946 //==============================================================================
13947 // ECCP1AS Bits
13949 extern __at(0x0FBF) __sfr ECCP1AS;
13951 typedef union
13953 struct
13955 unsigned PSS1BD0 : 1;
13956 unsigned PSS1BD1 : 1;
13957 unsigned PSS1AC0 : 1;
13958 unsigned PSS1AC1 : 1;
13959 unsigned ECCP1AS0 : 1;
13960 unsigned ECCP1AS1 : 1;
13961 unsigned ECCP1AS2 : 1;
13962 unsigned ECCP1ASE : 1;
13965 struct
13967 unsigned PSS1BD : 2;
13968 unsigned : 6;
13971 struct
13973 unsigned : 2;
13974 unsigned PSS1AC : 2;
13975 unsigned : 4;
13978 struct
13980 unsigned : 4;
13981 unsigned ECCP1AS : 3;
13982 unsigned : 1;
13984 } __ECCP1ASbits_t;
13986 extern __at(0x0FBF) volatile __ECCP1ASbits_t ECCP1ASbits;
13988 #define _PSS1BD0 0x01
13989 #define _PSS1BD1 0x02
13990 #define _PSS1AC0 0x04
13991 #define _PSS1AC1 0x08
13992 #define _ECCP1AS0 0x10
13993 #define _ECCP1AS1 0x20
13994 #define _ECCP1AS2 0x40
13995 #define _ECCP1ASE 0x80
13997 //==============================================================================
14000 //==============================================================================
14001 // ADCON2 Bits
14003 extern __at(0x0FC0) __sfr ADCON2;
14005 typedef union
14007 struct
14009 unsigned ADCS0 : 1;
14010 unsigned ADCS1 : 1;
14011 unsigned ADCS2 : 1;
14012 unsigned ACQT0 : 1;
14013 unsigned ACQT1 : 1;
14014 unsigned ACQT2 : 1;
14015 unsigned : 1;
14016 unsigned ADFM : 1;
14019 struct
14021 unsigned ADCS : 3;
14022 unsigned : 5;
14025 struct
14027 unsigned : 3;
14028 unsigned ACQT : 3;
14029 unsigned : 2;
14031 } __ADCON2bits_t;
14033 extern __at(0x0FC0) volatile __ADCON2bits_t ADCON2bits;
14035 #define _ADCS0 0x01
14036 #define _ADCS1 0x02
14037 #define _ADCS2 0x04
14038 #define _ACQT0 0x08
14039 #define _ACQT1 0x10
14040 #define _ACQT2 0x20
14041 #define _ADFM 0x80
14043 //==============================================================================
14046 //==============================================================================
14047 // ADCON1 Bits
14049 extern __at(0x0FC1) __sfr ADCON1;
14051 typedef union
14053 struct
14055 unsigned CHSN0 : 1;
14056 unsigned CHSN1 : 1;
14057 unsigned CHSN2 : 1;
14058 unsigned VNCFG : 1;
14059 unsigned VCFG0 : 1;
14060 unsigned VCFG1 : 1;
14061 unsigned TRIGSEL0 : 1;
14062 unsigned TRIGSEL1 : 1;
14065 struct
14067 unsigned CHSN : 3;
14068 unsigned : 5;
14071 struct
14073 unsigned : 4;
14074 unsigned VCFG : 2;
14075 unsigned : 2;
14078 struct
14080 unsigned : 6;
14081 unsigned TRIGSEL : 2;
14083 } __ADCON1bits_t;
14085 extern __at(0x0FC1) volatile __ADCON1bits_t ADCON1bits;
14087 #define _CHSN0 0x01
14088 #define _CHSN1 0x02
14089 #define _CHSN2 0x04
14090 #define _VNCFG 0x08
14091 #define _VCFG0 0x10
14092 #define _VCFG1 0x20
14093 #define _TRIGSEL0 0x40
14094 #define _TRIGSEL1 0x80
14096 //==============================================================================
14099 //==============================================================================
14100 // ADCON0 Bits
14102 extern __at(0x0FC2) __sfr ADCON0;
14104 typedef union
14106 struct
14108 unsigned ADON : 1;
14109 unsigned GO_NOT_DONE : 1;
14110 unsigned CHS0 : 1;
14111 unsigned CHS1 : 1;
14112 unsigned CHS2 : 1;
14113 unsigned CHS3 : 1;
14114 unsigned CHS4 : 1;
14115 unsigned : 1;
14118 struct
14120 unsigned : 1;
14121 unsigned DONE : 1;
14122 unsigned : 1;
14123 unsigned : 1;
14124 unsigned : 1;
14125 unsigned : 1;
14126 unsigned : 1;
14127 unsigned : 1;
14130 struct
14132 unsigned : 1;
14133 unsigned GO : 1;
14134 unsigned : 1;
14135 unsigned : 1;
14136 unsigned : 1;
14137 unsigned : 1;
14138 unsigned : 1;
14139 unsigned : 1;
14142 struct
14144 unsigned : 1;
14145 unsigned NOT_DONE : 1;
14146 unsigned : 1;
14147 unsigned : 1;
14148 unsigned : 1;
14149 unsigned : 1;
14150 unsigned : 1;
14151 unsigned : 1;
14154 struct
14156 unsigned : 2;
14157 unsigned CHS : 5;
14158 unsigned : 1;
14160 } __ADCON0bits_t;
14162 extern __at(0x0FC2) volatile __ADCON0bits_t ADCON0bits;
14164 #define _ADON 0x01
14165 #define _GO_NOT_DONE 0x02
14166 #define _DONE 0x02
14167 #define _GO 0x02
14168 #define _NOT_DONE 0x02
14169 #define _CHS0 0x04
14170 #define _CHS1 0x08
14171 #define _CHS2 0x10
14172 #define _CHS3 0x20
14173 #define _CHS4 0x40
14175 //==============================================================================
14177 extern __at(0x0FC3) __sfr ADRES;
14178 extern __at(0x0FC3) __sfr ADRESL;
14179 extern __at(0x0FC4) __sfr ADRESH;
14181 //==============================================================================
14182 // SSPCON2 Bits
14184 extern __at(0x0FC5) __sfr SSPCON2;
14186 typedef union
14188 struct
14190 unsigned SEN : 1;
14191 unsigned RSEN : 1;
14192 unsigned PEN : 1;
14193 unsigned RCEN : 1;
14194 unsigned ACKEN : 1;
14195 unsigned ACKDT : 1;
14196 unsigned ACKSTAT : 1;
14197 unsigned GCEN : 1;
14200 struct
14202 unsigned : 1;
14203 unsigned ADMSK1 : 1;
14204 unsigned ADMSK2 : 1;
14205 unsigned ADMSK3 : 1;
14206 unsigned ADMSK4 : 1;
14207 unsigned ADMSK5 : 1;
14208 unsigned : 1;
14209 unsigned : 1;
14211 } __SSPCON2bits_t;
14213 extern __at(0x0FC5) volatile __SSPCON2bits_t SSPCON2bits;
14215 #define _SEN 0x01
14216 #define _RSEN 0x02
14217 #define _ADMSK1 0x02
14218 #define _PEN 0x04
14219 #define _ADMSK2 0x04
14220 #define _RCEN 0x08
14221 #define _ADMSK3 0x08
14222 #define _ACKEN 0x10
14223 #define _ADMSK4 0x10
14224 #define _ACKDT 0x20
14225 #define _ADMSK5 0x20
14226 #define _ACKSTAT 0x40
14227 #define _GCEN 0x80
14229 //==============================================================================
14232 //==============================================================================
14233 // SSPCON1 Bits
14235 extern __at(0x0FC6) __sfr SSPCON1;
14237 typedef union
14239 struct
14241 unsigned SSPM0 : 1;
14242 unsigned SSPM1 : 1;
14243 unsigned SSPM2 : 1;
14244 unsigned SSPM3 : 1;
14245 unsigned CKP : 1;
14246 unsigned SSPEN : 1;
14247 unsigned SSPOV : 1;
14248 unsigned WCOL : 1;
14251 struct
14253 unsigned SSPM : 4;
14254 unsigned : 4;
14256 } __SSPCON1bits_t;
14258 extern __at(0x0FC6) volatile __SSPCON1bits_t SSPCON1bits;
14260 #define _SSPM0 0x01
14261 #define _SSPM1 0x02
14262 #define _SSPM2 0x04
14263 #define _SSPM3 0x08
14264 #define _CKP 0x10
14265 #define _SSPEN 0x20
14266 #define _SSPOV 0x40
14267 #define _WCOL 0x80
14269 //==============================================================================
14272 //==============================================================================
14273 // SSPSTAT Bits
14275 extern __at(0x0FC7) __sfr SSPSTAT;
14277 typedef union
14279 struct
14281 unsigned BF : 1;
14282 unsigned UA : 1;
14283 unsigned R_NOT_W : 1;
14284 unsigned S : 1;
14285 unsigned P : 1;
14286 unsigned D_NOT_A : 1;
14287 unsigned CKE : 1;
14288 unsigned SMP : 1;
14291 struct
14293 unsigned : 1;
14294 unsigned : 1;
14295 unsigned R_W : 1;
14296 unsigned I2C_START : 1;
14297 unsigned I2C_STOP : 1;
14298 unsigned D_A : 1;
14299 unsigned : 1;
14300 unsigned : 1;
14303 struct
14305 unsigned : 1;
14306 unsigned : 1;
14307 unsigned NOT_W : 1;
14308 unsigned : 1;
14309 unsigned : 1;
14310 unsigned NOT_A : 1;
14311 unsigned : 1;
14312 unsigned : 1;
14315 struct
14317 unsigned : 1;
14318 unsigned : 1;
14319 unsigned NOT_WRITE : 1;
14320 unsigned : 1;
14321 unsigned : 1;
14322 unsigned NOT_ADDRESS : 1;
14323 unsigned : 1;
14324 unsigned : 1;
14327 struct
14329 unsigned : 1;
14330 unsigned : 1;
14331 unsigned READ_WRITE : 1;
14332 unsigned : 1;
14333 unsigned : 1;
14334 unsigned DATA_ADDRESS : 1;
14335 unsigned : 1;
14336 unsigned : 1;
14339 struct
14341 unsigned : 1;
14342 unsigned : 1;
14343 unsigned I2C_READ : 1;
14344 unsigned : 1;
14345 unsigned : 1;
14346 unsigned I2C_DAT : 1;
14347 unsigned : 1;
14348 unsigned : 1;
14350 } __SSPSTATbits_t;
14352 extern __at(0x0FC7) volatile __SSPSTATbits_t SSPSTATbits;
14354 #define _BF 0x01
14355 #define _UA 0x02
14356 #define _R_NOT_W 0x04
14357 #define _R_W 0x04
14358 #define _NOT_W 0x04
14359 #define _NOT_WRITE 0x04
14360 #define _READ_WRITE 0x04
14361 #define _I2C_READ 0x04
14362 #define _S 0x08
14363 #define _I2C_START 0x08
14364 #define _P 0x10
14365 #define _I2C_STOP 0x10
14366 #define _D_NOT_A 0x20
14367 #define _D_A 0x20
14368 #define _NOT_A 0x20
14369 #define _NOT_ADDRESS 0x20
14370 #define _DATA_ADDRESS 0x20
14371 #define _I2C_DAT 0x20
14372 #define _CKE 0x40
14373 #define _SMP 0x80
14375 //==============================================================================
14378 //==============================================================================
14379 // SSPADD Bits
14381 extern __at(0x0FC8) __sfr SSPADD;
14383 typedef struct
14385 unsigned MSK0 : 1;
14386 unsigned MSK1 : 1;
14387 unsigned MSK2 : 1;
14388 unsigned MSK3 : 1;
14389 unsigned MSK4 : 1;
14390 unsigned MSK5 : 1;
14391 unsigned MSK6 : 1;
14392 unsigned MSK7 : 1;
14393 } __SSPADDbits_t;
14395 extern __at(0x0FC8) volatile __SSPADDbits_t SSPADDbits;
14397 #define _MSK0 0x01
14398 #define _MSK1 0x02
14399 #define _MSK2 0x04
14400 #define _MSK3 0x08
14401 #define _MSK4 0x10
14402 #define _MSK5 0x20
14403 #define _MSK6 0x40
14404 #define _MSK7 0x80
14406 //==============================================================================
14408 extern __at(0x0FC9) __sfr SSPBUF;
14410 //==============================================================================
14411 // T2CON Bits
14413 extern __at(0x0FCA) __sfr T2CON;
14415 typedef union
14417 struct
14419 unsigned T2CKPS0 : 1;
14420 unsigned T2CKPS1 : 1;
14421 unsigned TMR2ON : 1;
14422 unsigned T2OUTPS0 : 1;
14423 unsigned T2OUTPS1 : 1;
14424 unsigned T2OUTPS2 : 1;
14425 unsigned T2OUTPS3 : 1;
14426 unsigned : 1;
14429 struct
14431 unsigned T2CKPS : 2;
14432 unsigned : 6;
14435 struct
14437 unsigned : 3;
14438 unsigned T2OUTPS : 4;
14439 unsigned : 1;
14441 } __T2CONbits_t;
14443 extern __at(0x0FCA) volatile __T2CONbits_t T2CONbits;
14445 #define _T2CKPS0 0x01
14446 #define _T2CKPS1 0x02
14447 #define _TMR2ON 0x04
14448 #define _T2OUTPS0 0x08
14449 #define _T2OUTPS1 0x10
14450 #define _T2OUTPS2 0x20
14451 #define _T2OUTPS3 0x40
14453 //==============================================================================
14455 extern __at(0x0FCB) __sfr PR2;
14456 extern __at(0x0FCC) __sfr TMR2;
14458 //==============================================================================
14459 // T1CON Bits
14461 extern __at(0x0FCD) __sfr T1CON;
14463 typedef union
14465 struct
14467 unsigned TMR1ON : 1;
14468 unsigned RD16 : 1;
14469 unsigned NOT_T1SYNC : 1;
14470 unsigned SOSCEN : 1;
14471 unsigned T1CKPS0 : 1;
14472 unsigned T1CKPS1 : 1;
14473 unsigned TMR1CS0 : 1;
14474 unsigned TMR1CS1 : 1;
14477 struct
14479 unsigned : 4;
14480 unsigned T1CKPS : 2;
14481 unsigned : 2;
14484 struct
14486 unsigned : 6;
14487 unsigned TMR1CS : 2;
14489 } __T1CONbits_t;
14491 extern __at(0x0FCD) volatile __T1CONbits_t T1CONbits;
14493 #define _TMR1ON 0x01
14494 #define _RD16 0x02
14495 #define _NOT_T1SYNC 0x04
14496 #define _SOSCEN 0x08
14497 #define _T1CKPS0 0x10
14498 #define _T1CKPS1 0x20
14499 #define _TMR1CS0 0x40
14500 #define _TMR1CS1 0x80
14502 //==============================================================================
14504 extern __at(0x0FCE) __sfr TMR1;
14505 extern __at(0x0FCE) __sfr TMR1L;
14506 extern __at(0x0FCF) __sfr TMR1H;
14508 //==============================================================================
14509 // RCON Bits
14511 extern __at(0x0FD0) __sfr RCON;
14513 typedef union
14515 struct
14517 unsigned NOT_BOR : 1;
14518 unsigned NOT_POR : 1;
14519 unsigned NOT_PD : 1;
14520 unsigned NOT_TO : 1;
14521 unsigned NOT_RI : 1;
14522 unsigned NOT_CM : 1;
14523 unsigned SBOREN : 1;
14524 unsigned IPEN : 1;
14527 struct
14529 unsigned BOR : 1;
14530 unsigned POR : 1;
14531 unsigned PD : 1;
14532 unsigned TO : 1;
14533 unsigned RI : 1;
14534 unsigned CM : 1;
14535 unsigned : 1;
14536 unsigned : 1;
14538 } __RCONbits_t;
14540 extern __at(0x0FD0) volatile __RCONbits_t RCONbits;
14542 #define _NOT_BOR 0x01
14543 #define _BOR 0x01
14544 #define _NOT_POR 0x02
14545 #define _POR 0x02
14546 #define _NOT_PD 0x04
14547 #define _PD 0x04
14548 #define _NOT_TO 0x08
14549 #define _TO 0x08
14550 #define _NOT_RI 0x10
14551 #define _RI 0x10
14552 #define _NOT_CM 0x20
14553 #define _CM 0x20
14554 #define _SBOREN 0x40
14555 #define _IPEN 0x80
14557 //==============================================================================
14560 //==============================================================================
14561 // WDTCON Bits
14563 extern __at(0x0FD1) __sfr WDTCON;
14565 typedef union
14567 struct
14569 unsigned SWDTEN : 1;
14570 unsigned ULPSINK : 1;
14571 unsigned ULPEN : 1;
14572 unsigned : 1;
14573 unsigned SRETEN : 1;
14574 unsigned ULPLVL : 1;
14575 unsigned : 1;
14576 unsigned REGSLP : 1;
14579 struct
14581 unsigned SWDTE : 1;
14582 unsigned : 1;
14583 unsigned : 1;
14584 unsigned : 1;
14585 unsigned : 1;
14586 unsigned : 1;
14587 unsigned : 1;
14588 unsigned : 1;
14590 } __WDTCONbits_t;
14592 extern __at(0x0FD1) volatile __WDTCONbits_t WDTCONbits;
14594 #define _SWDTEN 0x01
14595 #define _SWDTE 0x01
14596 #define _ULPSINK 0x02
14597 #define _ULPEN 0x04
14598 #define _SRETEN 0x10
14599 #define _ULPLVL 0x20
14600 #define _REGSLP 0x80
14602 //==============================================================================
14605 //==============================================================================
14606 // OSCCON2 Bits
14608 extern __at(0x0FD2) __sfr OSCCON2;
14610 typedef union
14612 struct
14614 unsigned MFIOSEL : 1;
14615 unsigned MFIOFS : 1;
14616 unsigned LVDL2 : 1;
14617 unsigned SOSCGO : 1;
14618 unsigned SOSCDRV : 1;
14619 unsigned : 1;
14620 unsigned SOSCRUN : 1;
14621 unsigned : 1;
14624 struct
14626 unsigned LVDL0 : 1;
14627 unsigned LVDL1 : 1;
14628 unsigned : 1;
14629 unsigned LVDL3 : 1;
14630 unsigned : 1;
14631 unsigned : 1;
14632 unsigned : 1;
14633 unsigned : 1;
14636 struct
14638 unsigned LVDL : 4;
14639 unsigned : 4;
14641 } __OSCCON2bits_t;
14643 extern __at(0x0FD2) volatile __OSCCON2bits_t OSCCON2bits;
14645 #define _MFIOSEL 0x01
14646 #define _LVDL0 0x01
14647 #define _MFIOFS 0x02
14648 #define _LVDL1 0x02
14649 #define _LVDL2 0x04
14650 #define _SOSCGO 0x08
14651 #define _LVDL3 0x08
14652 #define _SOSCDRV 0x10
14653 #define _SOSCRUN 0x40
14655 //==============================================================================
14658 //==============================================================================
14659 // OSCCON Bits
14661 extern __at(0x0FD3) __sfr OSCCON;
14663 typedef union
14665 struct
14667 unsigned SCS0 : 1;
14668 unsigned SCS1 : 1;
14669 unsigned HFIOFS : 1;
14670 unsigned OSTS : 1;
14671 unsigned IRCF0 : 1;
14672 unsigned IRCF1 : 1;
14673 unsigned IRCF2 : 1;
14674 unsigned IDLEN : 1;
14677 struct
14679 unsigned SCS : 2;
14680 unsigned : 6;
14683 struct
14685 unsigned : 4;
14686 unsigned IRCF : 3;
14687 unsigned : 1;
14689 } __OSCCONbits_t;
14691 extern __at(0x0FD3) volatile __OSCCONbits_t OSCCONbits;
14693 #define _SCS0 0x01
14694 #define _SCS1 0x02
14695 #define _HFIOFS 0x04
14696 #define _OSTS 0x08
14697 #define _IRCF0 0x10
14698 #define _IRCF1 0x20
14699 #define _IRCF2 0x40
14700 #define _IDLEN 0x80
14702 //==============================================================================
14705 //==============================================================================
14706 // T0CON Bits
14708 extern __at(0x0FD5) __sfr T0CON;
14710 typedef union
14712 struct
14714 unsigned T0PS0 : 1;
14715 unsigned T0PS1 : 1;
14716 unsigned T0PS2 : 1;
14717 unsigned PSA : 1;
14718 unsigned T0SE : 1;
14719 unsigned T0CS : 1;
14720 unsigned T08BIT : 1;
14721 unsigned TMR0ON : 1;
14724 struct
14726 unsigned T0PS : 3;
14727 unsigned : 5;
14729 } __T0CONbits_t;
14731 extern __at(0x0FD5) volatile __T0CONbits_t T0CONbits;
14733 #define _T0PS0 0x01
14734 #define _T0PS1 0x02
14735 #define _T0PS2 0x04
14736 #define _PSA 0x08
14737 #define _T0SE 0x10
14738 #define _T0CS 0x20
14739 #define _T08BIT 0x40
14740 #define _TMR0ON 0x80
14742 //==============================================================================
14744 extern __at(0x0FD6) __sfr TMR0;
14745 extern __at(0x0FD6) __sfr TMR0L;
14746 extern __at(0x0FD7) __sfr TMR0H;
14748 //==============================================================================
14749 // STATUS Bits
14751 extern __at(0x0FD8) __sfr STATUS;
14753 typedef struct
14755 unsigned C : 1;
14756 unsigned DC : 1;
14757 unsigned Z : 1;
14758 unsigned OV : 1;
14759 unsigned N : 1;
14760 unsigned : 1;
14761 unsigned : 1;
14762 unsigned : 1;
14763 } __STATUSbits_t;
14765 extern __at(0x0FD8) volatile __STATUSbits_t STATUSbits;
14767 #define _C 0x01
14768 #define _DC 0x02
14769 #define _Z 0x04
14770 #define _OV 0x08
14771 #define _N 0x10
14773 //==============================================================================
14775 extern __at(0x0FD9) __sfr FSR2L;
14776 extern __at(0x0FDA) __sfr FSR2H;
14777 extern __at(0x0FDB) __sfr PLUSW2;
14778 extern __at(0x0FDC) __sfr PREINC2;
14779 extern __at(0x0FDD) __sfr POSTDEC2;
14780 extern __at(0x0FDE) __sfr POSTINC2;
14781 extern __at(0x0FDF) __sfr INDF2;
14782 extern __at(0x0FE0) __sfr BSR;
14783 extern __at(0x0FE1) __sfr FSR1L;
14784 extern __at(0x0FE2) __sfr FSR1H;
14785 extern __at(0x0FE3) __sfr PLUSW1;
14786 extern __at(0x0FE4) __sfr PREINC1;
14787 extern __at(0x0FE5) __sfr POSTDEC1;
14788 extern __at(0x0FE6) __sfr POSTINC1;
14789 extern __at(0x0FE7) __sfr INDF1;
14790 extern __at(0x0FE8) __sfr WREG;
14791 extern __at(0x0FE9) __sfr FSR0L;
14792 extern __at(0x0FEA) __sfr FSR0H;
14793 extern __at(0x0FEB) __sfr PLUSW0;
14794 extern __at(0x0FEC) __sfr PREINC0;
14795 extern __at(0x0FED) __sfr POSTDEC0;
14796 extern __at(0x0FEE) __sfr POSTINC0;
14797 extern __at(0x0FEF) __sfr INDF0;
14799 //==============================================================================
14800 // INTCON3 Bits
14802 extern __at(0x0FF0) __sfr INTCON3;
14804 typedef union
14806 struct
14808 unsigned INT1IF : 1;
14809 unsigned INT2IF : 1;
14810 unsigned INT3IF : 1;
14811 unsigned INT1IE : 1;
14812 unsigned INT2IE : 1;
14813 unsigned INT3IE : 1;
14814 unsigned INT1IP : 1;
14815 unsigned INT2IP : 1;
14818 struct
14820 unsigned INT1F : 1;
14821 unsigned INT2F : 1;
14822 unsigned INT3F : 1;
14823 unsigned INT1E : 1;
14824 unsigned INT2E : 1;
14825 unsigned INT3E : 1;
14826 unsigned INT1P : 1;
14827 unsigned INT2P : 1;
14829 } __INTCON3bits_t;
14831 extern __at(0x0FF0) volatile __INTCON3bits_t INTCON3bits;
14833 #define _INT1IF 0x01
14834 #define _INT1F 0x01
14835 #define _INT2IF 0x02
14836 #define _INT2F 0x02
14837 #define _INT3IF 0x04
14838 #define _INT3F 0x04
14839 #define _INT1IE 0x08
14840 #define _INT1E 0x08
14841 #define _INT2IE 0x10
14842 #define _INT2E 0x10
14843 #define _INT3IE 0x20
14844 #define _INT3E 0x20
14845 #define _INT1IP 0x40
14846 #define _INT1P 0x40
14847 #define _INT2IP 0x80
14848 #define _INT2P 0x80
14850 //==============================================================================
14853 //==============================================================================
14854 // INTCON2 Bits
14856 extern __at(0x0FF1) __sfr INTCON2;
14858 typedef union
14860 struct
14862 unsigned RBIP : 1;
14863 unsigned INT3IP : 1;
14864 unsigned TMR0IP : 1;
14865 unsigned INTEDG3 : 1;
14866 unsigned INTEDG2 : 1;
14867 unsigned INTEDG1 : 1;
14868 unsigned INTEDG0 : 1;
14869 unsigned NOT_RBPU : 1;
14872 struct
14874 unsigned : 1;
14875 unsigned INT3P : 1;
14876 unsigned T0IP : 1;
14877 unsigned : 1;
14878 unsigned : 1;
14879 unsigned : 1;
14880 unsigned : 1;
14881 unsigned RBPU : 1;
14883 } __INTCON2bits_t;
14885 extern __at(0x0FF1) volatile __INTCON2bits_t INTCON2bits;
14887 #define _RBIP 0x01
14888 #define _INT3IP 0x02
14889 #define _INT3P 0x02
14890 #define _TMR0IP 0x04
14891 #define _T0IP 0x04
14892 #define _INTEDG3 0x08
14893 #define _INTEDG2 0x10
14894 #define _INTEDG1 0x20
14895 #define _INTEDG0 0x40
14896 #define _NOT_RBPU 0x80
14897 #define _RBPU 0x80
14899 //==============================================================================
14902 //==============================================================================
14903 // INTCON Bits
14905 extern __at(0x0FF2) __sfr INTCON;
14907 typedef union
14909 struct
14911 unsigned RBIF : 1;
14912 unsigned INT0IF : 1;
14913 unsigned TMR0IF : 1;
14914 unsigned RBIE : 1;
14915 unsigned INT0IE : 1;
14916 unsigned TMR0IE : 1;
14917 unsigned PEIE_GIEL : 1;
14918 unsigned GIE_GIEH : 1;
14921 struct
14923 unsigned : 1;
14924 unsigned INT0F : 1;
14925 unsigned T0IF : 1;
14926 unsigned : 1;
14927 unsigned INT0E : 1;
14928 unsigned T0IE : 1;
14929 unsigned PEIE : 1;
14930 unsigned GIE : 1;
14933 struct
14935 unsigned : 1;
14936 unsigned : 1;
14937 unsigned : 1;
14938 unsigned : 1;
14939 unsigned : 1;
14940 unsigned : 1;
14941 unsigned GIEL : 1;
14942 unsigned GIEH : 1;
14944 } __INTCONbits_t;
14946 extern __at(0x0FF2) volatile __INTCONbits_t INTCONbits;
14948 #define _RBIF 0x01
14949 #define _INT0IF 0x02
14950 #define _INT0F 0x02
14951 #define _TMR0IF 0x04
14952 #define _T0IF 0x04
14953 #define _RBIE 0x08
14954 #define _INT0IE 0x10
14955 #define _INT0E 0x10
14956 #define _TMR0IE 0x20
14957 #define _T0IE 0x20
14958 #define _PEIE_GIEL 0x40
14959 #define _PEIE 0x40
14960 #define _GIEL 0x40
14961 #define _GIE_GIEH 0x80
14962 #define _GIE 0x80
14963 #define _GIEH 0x80
14965 //==============================================================================
14968 //==============================================================================
14969 // INTCON1 Bits
14971 extern __at(0x0FF2) __sfr INTCON1;
14973 typedef union
14975 struct
14977 unsigned RBIF : 1;
14978 unsigned INT0IF : 1;
14979 unsigned TMR0IF : 1;
14980 unsigned RBIE : 1;
14981 unsigned INT0IE : 1;
14982 unsigned TMR0IE : 1;
14983 unsigned PEIE_GIEL : 1;
14984 unsigned GIE_GIEH : 1;
14987 struct
14989 unsigned : 1;
14990 unsigned INT0F : 1;
14991 unsigned T0IF : 1;
14992 unsigned : 1;
14993 unsigned INT0E : 1;
14994 unsigned T0IE : 1;
14995 unsigned PEIE : 1;
14996 unsigned GIE : 1;
14999 struct
15001 unsigned : 1;
15002 unsigned : 1;
15003 unsigned : 1;
15004 unsigned : 1;
15005 unsigned : 1;
15006 unsigned : 1;
15007 unsigned GIEL : 1;
15008 unsigned GIEH : 1;
15010 } __INTCON1bits_t;
15012 extern __at(0x0FF2) volatile __INTCON1bits_t INTCON1bits;
15014 #define _INTCON1_RBIF 0x01
15015 #define _INTCON1_INT0IF 0x02
15016 #define _INTCON1_INT0F 0x02
15017 #define _INTCON1_TMR0IF 0x04
15018 #define _INTCON1_T0IF 0x04
15019 #define _INTCON1_RBIE 0x08
15020 #define _INTCON1_INT0IE 0x10
15021 #define _INTCON1_INT0E 0x10
15022 #define _INTCON1_TMR0IE 0x20
15023 #define _INTCON1_T0IE 0x20
15024 #define _INTCON1_PEIE_GIEL 0x40
15025 #define _INTCON1_PEIE 0x40
15026 #define _INTCON1_GIEL 0x40
15027 #define _INTCON1_GIE_GIEH 0x80
15028 #define _INTCON1_GIE 0x80
15029 #define _INTCON1_GIEH 0x80
15031 //==============================================================================
15033 extern __at(0x0FF3) __sfr PROD;
15034 extern __at(0x0FF3) __sfr PRODL;
15035 extern __at(0x0FF4) __sfr PRODH;
15036 extern __at(0x0FF5) __sfr TABLAT;
15037 extern __at(0x0FF6) __sfr TBLPTR;
15038 extern __at(0x0FF6) __sfr TBLPTRL;
15039 extern __at(0x0FF7) __sfr TBLPTRH;
15040 extern __at(0x0FF8) __sfr TBLPTRU;
15041 extern __at(0x0FF9) __sfr PC;
15042 extern __at(0x0FF9) __sfr PCL;
15043 extern __at(0x0FFA) __sfr PCLATH;
15044 extern __at(0x0FFB) __sfr PCLATU;
15046 //==============================================================================
15047 // STKPTR Bits
15049 extern __at(0x0FFC) __sfr STKPTR;
15051 typedef union
15053 struct
15055 unsigned SP0 : 1;
15056 unsigned SP1 : 1;
15057 unsigned SP2 : 1;
15058 unsigned SP3 : 1;
15059 unsigned SP4 : 1;
15060 unsigned : 1;
15061 unsigned STKUNF : 1;
15062 unsigned STKFUL : 1;
15065 struct
15067 unsigned : 1;
15068 unsigned : 1;
15069 unsigned : 1;
15070 unsigned : 1;
15071 unsigned : 1;
15072 unsigned : 1;
15073 unsigned : 1;
15074 unsigned STKOVF : 1;
15077 struct
15079 unsigned SP : 5;
15080 unsigned : 3;
15082 } __STKPTRbits_t;
15084 extern __at(0x0FFC) volatile __STKPTRbits_t STKPTRbits;
15086 #define _SP0 0x01
15087 #define _SP1 0x02
15088 #define _SP2 0x04
15089 #define _SP3 0x08
15090 #define _SP4 0x10
15091 #define _STKUNF 0x40
15092 #define _STKFUL 0x80
15093 #define _STKOVF 0x80
15095 //==============================================================================
15097 extern __at(0x0FFD) __sfr TOS;
15098 extern __at(0x0FFD) __sfr TOSL;
15099 extern __at(0x0FFE) __sfr TOSH;
15100 extern __at(0x0FFF) __sfr TOSU;
15102 //==============================================================================
15104 // Configuration Bits
15106 //==============================================================================
15108 #define __CONFIG1L 0x300000
15109 #define __CONFIG1H 0x300001
15110 #define __CONFIG2L 0x300002
15111 #define __CONFIG2H 0x300003
15112 #define __CONFIG3H 0x300005
15113 #define __CONFIG4L 0x300006
15114 #define __CONFIG5L 0x300008
15115 #define __CONFIG5H 0x300009
15116 #define __CONFIG6L 0x30000A
15117 #define __CONFIG6H 0x30000B
15118 #define __CONFIG7L 0x30000C
15119 #define __CONFIG7H 0x30000D
15121 //----------------------------- CONFIG1L Options -------------------------------
15123 #define _RETEN_ON_1L 0xFE // Ultra low-power regulator is Enabled (Controlled by SRETEN bit).
15124 #define _RETEN_OFF_1L 0xFF // Ultra low-power regulator is Disabled (Controlled by REGSLP bit).
15125 #define _INTOSCSEL_LOW_1L 0xFB // LF-INTOSC in Low-power mode during Sleep.
15126 #define _INTOSCSEL_HIGH_1L 0xFF // LF-INTOSC in High-power mode during Sleep.
15127 #define _SOSCSEL_LOW_1L 0xEF // Low Power SOSC circuit selected.
15128 #define _SOSCSEL_DIG_1L 0xF7 // Digital (SCLKI) mode.
15129 #define _SOSCSEL_HIGH_1L 0xFF // High Power SOSC circuit selected.
15130 #define _XINST_OFF_1L 0xBF // Disabled.
15131 #define _XINST_ON_1L 0xFF // Enabled.
15133 //----------------------------- CONFIG1H Options -------------------------------
15135 #define _FOSC_LP_1H 0xF0 // LP oscillator.
15136 #define _FOSC_XT_1H 0xF1 // XT oscillator.
15137 #define _FOSC_HS2_1H 0xF2 // HS oscillator (High power, 16 MHz - 25 MHz).
15138 #define _FOSC_HS1_1H 0xF3 // HS oscillator (Medium power, 4 MHz - 16 MHz).
15139 #define _FOSC_EC3IO_1H 0xF4 // EC oscillator, CLKOUT function on OSC2 (High power, 16 MHz - 64 MHz).
15140 #define _FOSC_EC3_1H 0xF5 // EC oscillator (High power, 16 MHz - 64 MHz).
15141 #define _FOSC_RC_1H 0xF6 // External RC oscillator, CLKOUT function on OSC2.
15142 #define _FOSC_RCIO_1H 0xF7 // External RC oscillator.
15143 #define _FOSC_INTIO2_1H 0xF8 // Internal RC oscillator.
15144 #define _FOSC_INTIO1_1H 0xF9 // Internal RC oscillator, CLKOUT function on OSC2.
15145 #define _FOSC_EC2IO_1H 0xFA // EC oscillator, CLKOUT function on OSC2 (Medium power, 160 kHz - 16 MHz).
15146 #define _FOSC_EC2_1H 0xFB // EC oscillator (Medium power, 160 kHz - 16 MHz).
15147 #define _FOSC_EC1IO_1H 0xFC // EC oscillator, CLKOUT function on OSC2 (Low power, DC - 160 kHz).
15148 #define _FOSC_EC1_1H 0xFD // EC oscillator (Low power, DC - 160 kHz).
15149 #define _PLLCFG_OFF_1H 0xEF // Disabled.
15150 #define _PLLCFG_ON_1H 0xFF // Enabled.
15151 #define _FCMEN_OFF_1H 0xBF // Disabled.
15152 #define _FCMEN_ON_1H 0xFF // Enabled.
15153 #define _IESO_OFF_1H 0x7F // Disabled.
15154 #define _IESO_ON_1H 0xFF // Enabled.
15156 //----------------------------- CONFIG2L Options -------------------------------
15158 #define _PWRTEN_ON_2L 0xFE // Enabled.
15159 #define _PWRTEN_OFF_2L 0xFF // Disabled.
15160 #define _BOREN_OFF_2L 0xF9 // Disabled in hardware, SBOREN disabled.
15161 #define _BOREN_ON_2L 0xFB // Controlled with SBOREN bit.
15162 #define _BOREN_NOSLP_2L 0xFD // Enabled while active, disabled in SLEEP, SBOREN disabled.
15163 #define _BOREN_SBORDIS_2L 0xFF // Enabled in hardware, SBOREN disabled.
15164 #define _BORV_0_2L 0xE7 // 3.0V.
15165 #define _BORV_1_2L 0xEF // 2.7V.
15166 #define _BORV_2_2L 0xF7 // 2.0V.
15167 #define _BORV_3_2L 0xFF // 1.8V.
15168 #define _BORPWR_LOW_2L 0x9F // BORMV set to low power level.
15169 #define _BORPWR_MEDIUM_2L 0xBF // BORMV set to medium power level.
15170 #define _BORPWR_HIGH_2L 0xDF // BORMV set to high power level.
15171 #define _BORPWR_ZPBORMV_2L 0xFF // ZPBORMV instead of BORMV is selected.
15173 //----------------------------- CONFIG2H Options -------------------------------
15175 #define _WDTEN_OFF_2H 0xFC // WDT disabled in hardware; SWDTEN bit disabled.
15176 #define _WDTEN_NOSLP_2H 0xFD // WDT enabled only while device is active and disabled in Sleep mode; SWDTEN bit disabled.
15177 #define _WDTEN_ON_2H 0xFE // WDT controlled by SWDTEN bit setting.
15178 #define _WDTEN_SWDTDIS_2H 0xFF // WDT enabled in hardware; SWDTEN bit disabled.
15179 #define _WDTPS_1_2H 0x83 // 1:1.
15180 #define _WDTPS_2_2H 0x87 // 1:2.
15181 #define _WDTPS_4_2H 0x8B // 1:4.
15182 #define _WDTPS_8_2H 0x8F // 1:8.
15183 #define _WDTPS_16_2H 0x93 // 1:16.
15184 #define _WDTPS_32_2H 0x97 // 1:32.
15185 #define _WDTPS_64_2H 0x9B // 1:64.
15186 #define _WDTPS_128_2H 0x9F // 1:128.
15187 #define _WDTPS_256_2H 0xA3 // 1:256.
15188 #define _WDTPS_512_2H 0xA7 // 1:512.
15189 #define _WDTPS_1024_2H 0xAB // 1:1024.
15190 #define _WDTPS_2048_2H 0xAF // 1:2048.
15191 #define _WDTPS_4096_2H 0xB3 // 1:4096.
15192 #define _WDTPS_8192_2H 0xB7 // 1:8192.
15193 #define _WDTPS_16384_2H 0xBB // 1:16384.
15194 #define _WDTPS_32768_2H 0xBF // 1:32768.
15195 #define _WDTPS_65536_2H 0xC3 // 1:65536.
15196 #define _WDTPS_131072_2H 0xC7 // 1:131072.
15197 #define _WDTPS_262144_2H 0xCB // 1:262144.
15198 #define _WDTPS_524288_2H 0xCF // 1:524288.
15199 #define _WDTPS_1048576_2H 0xFF // 1:1048576.
15201 //----------------------------- CONFIG3H Options -------------------------------
15203 #define _CANMX_PORTC_3H 0xFE // ECAN TX and RX pins are located on RC6 and RC7, respectively.
15204 #define _CANMX_PORTB_3H 0xFF // ECAN TX and RX pins are located on RB2 and RB3, respectively.
15205 #define _MSSPMSK_MSK5_3H 0xF7 // 5 bit address masking mode.
15206 #define _MSSPMSK_MSK7_3H 0xFF // 7 Bit address masking mode.
15207 #define _MCLRE_OFF_3H 0x7F // MCLR Disabled, RG5 Enabled.
15208 #define _MCLRE_ON_3H 0xFF // MCLR Enabled, RE3 Disabled.
15210 //----------------------------- CONFIG4L Options -------------------------------
15212 #define _STVREN_OFF_4L 0xFE // Disabled.
15213 #define _STVREN_ON_4L 0xFF // Enabled.
15214 #define _BBSIZ_BB1K_4L 0xEF // 1K word Boot Block size.
15215 #define _BBSIZ_BB2K_4L 0xFF // 2K word Boot Block size.
15217 //----------------------------- CONFIG5L Options -------------------------------
15219 #define _CP0_ON_5L 0xFE // Enabled.
15220 #define _CP0_OFF_5L 0xFF // Disabled.
15221 #define _CP1_ON_5L 0xFD // Enabled.
15222 #define _CP1_OFF_5L 0xFF // Disabled.
15223 #define _CP2_ON_5L 0xFB // Enabled.
15224 #define _CP2_OFF_5L 0xFF // Disabled.
15225 #define _CP3_ON_5L 0xF7 // Enabled.
15226 #define _CP3_OFF_5L 0xFF // Disabled.
15228 //----------------------------- CONFIG5H Options -------------------------------
15230 #define _CPB_ON_5H 0xBF // Enabled.
15231 #define _CPB_OFF_5H 0xFF // Disabled.
15232 #define _CPD_ON_5H 0x7F // Enabled.
15233 #define _CPD_OFF_5H 0xFF // Disabled.
15235 //----------------------------- CONFIG6L Options -------------------------------
15237 #define _WRT0_ON_6L 0xFE // Enabled.
15238 #define _WRT0_OFF_6L 0xFF // Disabled.
15239 #define _WRT1_ON_6L 0xFD // Enabled.
15240 #define _WRT1_OFF_6L 0xFF // Disabled.
15241 #define _WRT2_ON_6L 0xFB // Enabled.
15242 #define _WRT2_OFF_6L 0xFF // Disabled.
15243 #define _WRT3_ON_6L 0xF7 // Enabled.
15244 #define _WRT3_OFF_6L 0xFF // Disabled.
15246 //----------------------------- CONFIG6H Options -------------------------------
15248 #define _WRTC_ON_6H 0xDF // Enabled.
15249 #define _WRTC_OFF_6H 0xFF // Disabled.
15250 #define _WRTB_ON_6H 0xBF // Enabled.
15251 #define _WRTB_OFF_6H 0xFF // Disabled.
15252 #define _WRTD_ON_6H 0x7F // Enabled.
15253 #define _WRTD_OFF_6H 0xFF // Disabled.
15255 //----------------------------- CONFIG7L Options -------------------------------
15257 #define _EBTR0_ON_7L 0xFE // Enabled.
15258 #define _EBTR0_OFF_7L 0xFF // Disabled.
15259 #define _EBTR1_ON_7L 0xFD // Enabled.
15260 #define _EBTR1_OFF_7L 0xFF // Disabled.
15261 #define _EBTR2_ON_7L 0xFB // Enabled.
15262 #define _EBTR2_OFF_7L 0xFF // Disabled.
15263 #define _EBTR3_ON_7L 0xF7 // Enabled.
15264 #define _EBTR3_OFF_7L 0xFF // Disabled.
15266 //----------------------------- CONFIG7H Options -------------------------------
15268 #define _EBTRB_ON_7H 0xBF // Enabled.
15269 #define _EBTRB_OFF_7H 0xFF // Disabled.
15271 //==============================================================================
15273 #define __DEVID1 0x3FFFFE
15274 #define __DEVID2 0x3FFFFF
15276 #define __IDLOC0 0x200000
15277 #define __IDLOC1 0x200001
15278 #define __IDLOC2 0x200002
15279 #define __IDLOC3 0x200003
15280 #define __IDLOC4 0x200004
15281 #define __IDLOC5 0x200005
15282 #define __IDLOC6 0x200006
15283 #define __IDLOC7 0x200007
15285 #endif // #ifndef __PIC18F25K80_H__