struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / include / pic16 / pic18lf66k80.h
blob246f2b9773a8b5843299a4dd46b306cc161ab6c1
1 /*
2 * This declarations of the PIC18LF66K80 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:58 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 __PIC18LF66K80_H__
26 #define __PIC18LF66K80_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 TXPRI : 2;
2378 unsigned : 6;
2381 struct
2383 unsigned FILHIT : 5;
2384 unsigned : 3;
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 FILHIT : 5;
3768 unsigned : 3;
3771 struct
3773 unsigned TXPRI : 2;
3774 unsigned : 6;
3776 } __B2CONbits_t;
3778 extern __at(0x0EA0) volatile __B2CONbits_t B2CONbits;
3780 #define _B2CON_FILHIT0_TXPRI0 0x01
3781 #define _B2CON_FILHIT0 0x01
3782 #define _B2CON_TXPRI0 0x01
3783 #define _B2CON_FILHIT1_TXPRI1 0x02
3784 #define _B2CON_FILHIT1 0x02
3785 #define _B2CON_TXPRI1 0x02
3786 #define _B2CON_FILHIT2_RTREN 0x04
3787 #define _B2CON_FILHIT2 0x04
3788 #define _B2CON_RTREN 0x04
3789 #define _B2CON_FILHIT3_TXREQ 0x08
3790 #define _B2CON_FILHIT3 0x08
3791 #define _B2CON_TXREQ 0x08
3792 #define _B2CON_FILHIT4_TXERR 0x10
3793 #define _B2CON_FILHIT4 0x10
3794 #define _B2CON_TXERR 0x10
3795 #define _B2CON_RXRTRRO_TXLARB 0x20
3796 #define _B2CON_RXRTRRO 0x20
3797 #define _B2CON_TXLARB 0x20
3798 #define _B2CON_RXM1_TXABT 0x40
3799 #define _B2CON_RXM1 0x40
3800 #define _B2CON_TXABT 0x40
3801 #define _B2CON_RXFUL_TXBIF 0x80
3802 #define _B2CON_RXFUL 0x80
3803 #define _B2CON_TXBIF 0x80
3805 //==============================================================================
3808 //==============================================================================
3809 // B2SIDH Bits
3811 extern __at(0x0EA1) __sfr B2SIDH;
3813 typedef struct
3815 unsigned SID3 : 1;
3816 unsigned SID4 : 1;
3817 unsigned SID5 : 1;
3818 unsigned SID6 : 1;
3819 unsigned SID7 : 1;
3820 unsigned SID8 : 1;
3821 unsigned SID9 : 1;
3822 unsigned SID10 : 1;
3823 } __B2SIDHbits_t;
3825 extern __at(0x0EA1) volatile __B2SIDHbits_t B2SIDHbits;
3827 #define _B2SIDH_SID3 0x01
3828 #define _B2SIDH_SID4 0x02
3829 #define _B2SIDH_SID5 0x04
3830 #define _B2SIDH_SID6 0x08
3831 #define _B2SIDH_SID7 0x10
3832 #define _B2SIDH_SID8 0x20
3833 #define _B2SIDH_SID9 0x40
3834 #define _B2SIDH_SID10 0x80
3836 //==============================================================================
3839 //==============================================================================
3840 // B2SIDL Bits
3842 extern __at(0x0EA2) __sfr B2SIDL;
3844 typedef union
3846 struct
3848 unsigned EID16 : 1;
3849 unsigned EID17 : 1;
3850 unsigned : 1;
3851 unsigned EXIDE : 1;
3852 unsigned SRR : 1;
3853 unsigned SID0 : 1;
3854 unsigned SID1 : 1;
3855 unsigned SID2 : 1;
3858 struct
3860 unsigned : 5;
3861 unsigned SID : 3;
3863 } __B2SIDLbits_t;
3865 extern __at(0x0EA2) volatile __B2SIDLbits_t B2SIDLbits;
3867 #define _B2SIDL_EID16 0x01
3868 #define _B2SIDL_EID17 0x02
3869 #define _B2SIDL_EXIDE 0x08
3870 #define _B2SIDL_SRR 0x10
3871 #define _B2SIDL_SID0 0x20
3872 #define _B2SIDL_SID1 0x40
3873 #define _B2SIDL_SID2 0x80
3875 //==============================================================================
3878 //==============================================================================
3879 // B2EIDH Bits
3881 extern __at(0x0EA3) __sfr B2EIDH;
3883 typedef struct
3885 unsigned EID8 : 1;
3886 unsigned EID9 : 1;
3887 unsigned EID10 : 1;
3888 unsigned EID11 : 1;
3889 unsigned EID12 : 1;
3890 unsigned EID13 : 1;
3891 unsigned EID14 : 1;
3892 unsigned EID15 : 1;
3893 } __B2EIDHbits_t;
3895 extern __at(0x0EA3) volatile __B2EIDHbits_t B2EIDHbits;
3897 #define _B2EIDH_EID8 0x01
3898 #define _B2EIDH_EID9 0x02
3899 #define _B2EIDH_EID10 0x04
3900 #define _B2EIDH_EID11 0x08
3901 #define _B2EIDH_EID12 0x10
3902 #define _B2EIDH_EID13 0x20
3903 #define _B2EIDH_EID14 0x40
3904 #define _B2EIDH_EID15 0x80
3906 //==============================================================================
3909 //==============================================================================
3910 // B2EIDL Bits
3912 extern __at(0x0EA4) __sfr B2EIDL;
3914 typedef struct
3916 unsigned EID0 : 1;
3917 unsigned EID1 : 1;
3918 unsigned EID2 : 1;
3919 unsigned EID3 : 1;
3920 unsigned EID4 : 1;
3921 unsigned EID5 : 1;
3922 unsigned EID6 : 1;
3923 unsigned EID7 : 1;
3924 } __B2EIDLbits_t;
3926 extern __at(0x0EA4) volatile __B2EIDLbits_t B2EIDLbits;
3928 #define _B2EIDL_EID0 0x01
3929 #define _B2EIDL_EID1 0x02
3930 #define _B2EIDL_EID2 0x04
3931 #define _B2EIDL_EID3 0x08
3932 #define _B2EIDL_EID4 0x10
3933 #define _B2EIDL_EID5 0x20
3934 #define _B2EIDL_EID6 0x40
3935 #define _B2EIDL_EID7 0x80
3937 //==============================================================================
3940 //==============================================================================
3941 // B2DLC Bits
3943 extern __at(0x0EA5) __sfr B2DLC;
3945 typedef union
3947 struct
3949 unsigned DLC0 : 1;
3950 unsigned DLC1 : 1;
3951 unsigned DLC2 : 1;
3952 unsigned DLC3 : 1;
3953 unsigned RB0 : 1;
3954 unsigned RB1 : 1;
3955 unsigned RXRTR_TXRTR : 1;
3956 unsigned : 1;
3959 struct
3961 unsigned : 1;
3962 unsigned : 1;
3963 unsigned : 1;
3964 unsigned : 1;
3965 unsigned : 1;
3966 unsigned : 1;
3967 unsigned RXRTR : 1;
3968 unsigned : 1;
3971 struct
3973 unsigned : 1;
3974 unsigned : 1;
3975 unsigned : 1;
3976 unsigned : 1;
3977 unsigned : 1;
3978 unsigned : 1;
3979 unsigned TXRTR : 1;
3980 unsigned : 1;
3983 struct
3985 unsigned DLC : 4;
3986 unsigned : 4;
3989 struct
3991 unsigned : 4;
3992 unsigned RB : 2;
3993 unsigned : 2;
3995 } __B2DLCbits_t;
3997 extern __at(0x0EA5) volatile __B2DLCbits_t B2DLCbits;
3999 #define _B2DLC_DLC0 0x01
4000 #define _B2DLC_DLC1 0x02
4001 #define _B2DLC_DLC2 0x04
4002 #define _B2DLC_DLC3 0x08
4003 #define _B2DLC_RB0 0x10
4004 #define _B2DLC_RB1 0x20
4005 #define _B2DLC_RXRTR_TXRTR 0x40
4006 #define _B2DLC_RXRTR 0x40
4007 #define _B2DLC_TXRTR 0x40
4009 //==============================================================================
4012 //==============================================================================
4013 // B2D0 Bits
4015 extern __at(0x0EA6) __sfr B2D0;
4017 typedef struct
4019 unsigned B2D00 : 1;
4020 unsigned B2D01 : 1;
4021 unsigned B2D02 : 1;
4022 unsigned B2D03 : 1;
4023 unsigned B2D04 : 1;
4024 unsigned B2D05 : 1;
4025 unsigned B2D06 : 1;
4026 unsigned B2D07 : 1;
4027 } __B2D0bits_t;
4029 extern __at(0x0EA6) volatile __B2D0bits_t B2D0bits;
4031 #define _B2D00 0x01
4032 #define _B2D01 0x02
4033 #define _B2D02 0x04
4034 #define _B2D03 0x08
4035 #define _B2D04 0x10
4036 #define _B2D05 0x20
4037 #define _B2D06 0x40
4038 #define _B2D07 0x80
4040 //==============================================================================
4043 //==============================================================================
4044 // B2D1 Bits
4046 extern __at(0x0EA7) __sfr B2D1;
4048 typedef struct
4050 unsigned B2D10 : 1;
4051 unsigned B2D11 : 1;
4052 unsigned B2D12 : 1;
4053 unsigned B2D13 : 1;
4054 unsigned B2D14 : 1;
4055 unsigned B2D15 : 1;
4056 unsigned B2D16 : 1;
4057 unsigned B2D17 : 1;
4058 } __B2D1bits_t;
4060 extern __at(0x0EA7) volatile __B2D1bits_t B2D1bits;
4062 #define _B2D10 0x01
4063 #define _B2D11 0x02
4064 #define _B2D12 0x04
4065 #define _B2D13 0x08
4066 #define _B2D14 0x10
4067 #define _B2D15 0x20
4068 #define _B2D16 0x40
4069 #define _B2D17 0x80
4071 //==============================================================================
4074 //==============================================================================
4075 // B2D2 Bits
4077 extern __at(0x0EA8) __sfr B2D2;
4079 typedef struct
4081 unsigned B2D20 : 1;
4082 unsigned B2D21 : 1;
4083 unsigned B2D22 : 1;
4084 unsigned B2D23 : 1;
4085 unsigned B2D24 : 1;
4086 unsigned B2D25 : 1;
4087 unsigned B2D26 : 1;
4088 unsigned B2D27 : 1;
4089 } __B2D2bits_t;
4091 extern __at(0x0EA8) volatile __B2D2bits_t B2D2bits;
4093 #define _B2D20 0x01
4094 #define _B2D21 0x02
4095 #define _B2D22 0x04
4096 #define _B2D23 0x08
4097 #define _B2D24 0x10
4098 #define _B2D25 0x20
4099 #define _B2D26 0x40
4100 #define _B2D27 0x80
4102 //==============================================================================
4105 //==============================================================================
4106 // B2D3 Bits
4108 extern __at(0x0EA9) __sfr B2D3;
4110 typedef struct
4112 unsigned B2D30 : 1;
4113 unsigned B2D31 : 1;
4114 unsigned B2D32 : 1;
4115 unsigned B2D33 : 1;
4116 unsigned B2D34 : 1;
4117 unsigned B2D35 : 1;
4118 unsigned B2D36 : 1;
4119 unsigned B2D37 : 1;
4120 } __B2D3bits_t;
4122 extern __at(0x0EA9) volatile __B2D3bits_t B2D3bits;
4124 #define _B2D30 0x01
4125 #define _B2D31 0x02
4126 #define _B2D32 0x04
4127 #define _B2D33 0x08
4128 #define _B2D34 0x10
4129 #define _B2D35 0x20
4130 #define _B2D36 0x40
4131 #define _B2D37 0x80
4133 //==============================================================================
4136 //==============================================================================
4137 // B2D4 Bits
4139 extern __at(0x0EAA) __sfr B2D4;
4141 typedef struct
4143 unsigned B2D40 : 1;
4144 unsigned B2D41 : 1;
4145 unsigned B2D42 : 1;
4146 unsigned B2D43 : 1;
4147 unsigned B2D44 : 1;
4148 unsigned B2D45 : 1;
4149 unsigned B2D46 : 1;
4150 unsigned B2D47 : 1;
4151 } __B2D4bits_t;
4153 extern __at(0x0EAA) volatile __B2D4bits_t B2D4bits;
4155 #define _B2D40 0x01
4156 #define _B2D41 0x02
4157 #define _B2D42 0x04
4158 #define _B2D43 0x08
4159 #define _B2D44 0x10
4160 #define _B2D45 0x20
4161 #define _B2D46 0x40
4162 #define _B2D47 0x80
4164 //==============================================================================
4167 //==============================================================================
4168 // B2D5 Bits
4170 extern __at(0x0EAB) __sfr B2D5;
4172 typedef struct
4174 unsigned B2D50 : 1;
4175 unsigned B2D51 : 1;
4176 unsigned B2D52 : 1;
4177 unsigned B2D53 : 1;
4178 unsigned B2D54 : 1;
4179 unsigned B2D55 : 1;
4180 unsigned B2D56 : 1;
4181 unsigned B2D57 : 1;
4182 } __B2D5bits_t;
4184 extern __at(0x0EAB) volatile __B2D5bits_t B2D5bits;
4186 #define _B2D50 0x01
4187 #define _B2D51 0x02
4188 #define _B2D52 0x04
4189 #define _B2D53 0x08
4190 #define _B2D54 0x10
4191 #define _B2D55 0x20
4192 #define _B2D56 0x40
4193 #define _B2D57 0x80
4195 //==============================================================================
4198 //==============================================================================
4199 // B2D6 Bits
4201 extern __at(0x0EAC) __sfr B2D6;
4203 typedef struct
4205 unsigned B2D60 : 1;
4206 unsigned B2D61 : 1;
4207 unsigned B2D62 : 1;
4208 unsigned B2D63 : 1;
4209 unsigned B2D64 : 1;
4210 unsigned B2D65 : 1;
4211 unsigned B2D66 : 1;
4212 unsigned B2D67 : 1;
4213 } __B2D6bits_t;
4215 extern __at(0x0EAC) volatile __B2D6bits_t B2D6bits;
4217 #define _B2D60 0x01
4218 #define _B2D61 0x02
4219 #define _B2D62 0x04
4220 #define _B2D63 0x08
4221 #define _B2D64 0x10
4222 #define _B2D65 0x20
4223 #define _B2D66 0x40
4224 #define _B2D67 0x80
4226 //==============================================================================
4229 //==============================================================================
4230 // B2D7 Bits
4232 extern __at(0x0EAD) __sfr B2D7;
4234 typedef struct
4236 unsigned B2D70 : 1;
4237 unsigned B2D71 : 1;
4238 unsigned B2D72 : 1;
4239 unsigned B2D73 : 1;
4240 unsigned B2D74 : 1;
4241 unsigned B2D75 : 1;
4242 unsigned B2D76 : 1;
4243 unsigned B2D77 : 1;
4244 } __B2D7bits_t;
4246 extern __at(0x0EAD) volatile __B2D7bits_t B2D7bits;
4248 #define _B2D70 0x01
4249 #define _B2D71 0x02
4250 #define _B2D72 0x04
4251 #define _B2D73 0x08
4252 #define _B2D74 0x10
4253 #define _B2D75 0x20
4254 #define _B2D76 0x40
4255 #define _B2D77 0x80
4257 //==============================================================================
4260 //==============================================================================
4261 // CANSTAT_RO7 Bits
4263 extern __at(0x0EAE) __sfr CANSTAT_RO7;
4265 typedef union
4267 struct
4269 unsigned EICODE0 : 1;
4270 unsigned EICODE1_ICODE0 : 1;
4271 unsigned EICODE2_ICODE1 : 1;
4272 unsigned EICODE3_ICODE2 : 1;
4273 unsigned EICODE4 : 1;
4274 unsigned OPMODE0 : 1;
4275 unsigned OPMODE1 : 1;
4276 unsigned OPMODE2 : 1;
4279 struct
4281 unsigned : 1;
4282 unsigned EICODE1 : 1;
4283 unsigned EICODE2 : 1;
4284 unsigned EICODE3 : 1;
4285 unsigned : 1;
4286 unsigned : 1;
4287 unsigned : 1;
4288 unsigned : 1;
4291 struct
4293 unsigned : 1;
4294 unsigned ICODE0 : 1;
4295 unsigned ICODE1 : 1;
4296 unsigned ICODE2 : 1;
4297 unsigned : 1;
4298 unsigned : 1;
4299 unsigned : 1;
4300 unsigned : 1;
4303 struct
4305 unsigned EICODE : 5;
4306 unsigned : 3;
4309 struct
4311 unsigned : 1;
4312 unsigned ICODE : 3;
4313 unsigned : 4;
4316 struct
4318 unsigned : 5;
4319 unsigned OPMODE : 3;
4321 } __CANSTAT_RO7bits_t;
4323 extern __at(0x0EAE) volatile __CANSTAT_RO7bits_t CANSTAT_RO7bits;
4325 #define _CANSTAT_RO7_EICODE0 0x01
4326 #define _CANSTAT_RO7_EICODE1_ICODE0 0x02
4327 #define _CANSTAT_RO7_EICODE1 0x02
4328 #define _CANSTAT_RO7_ICODE0 0x02
4329 #define _CANSTAT_RO7_EICODE2_ICODE1 0x04
4330 #define _CANSTAT_RO7_EICODE2 0x04
4331 #define _CANSTAT_RO7_ICODE1 0x04
4332 #define _CANSTAT_RO7_EICODE3_ICODE2 0x08
4333 #define _CANSTAT_RO7_EICODE3 0x08
4334 #define _CANSTAT_RO7_ICODE2 0x08
4335 #define _CANSTAT_RO7_EICODE4 0x10
4336 #define _CANSTAT_RO7_OPMODE0 0x20
4337 #define _CANSTAT_RO7_OPMODE1 0x40
4338 #define _CANSTAT_RO7_OPMODE2 0x80
4340 //==============================================================================
4343 //==============================================================================
4344 // CANCON_RO7 Bits
4346 extern __at(0x0EAF) __sfr CANCON_RO7;
4348 typedef union
4350 struct
4352 unsigned FP0 : 1;
4353 unsigned WIN0_FP1 : 1;
4354 unsigned WIN1_FP2 : 1;
4355 unsigned WIN2_FP3 : 1;
4356 unsigned ABAT : 1;
4357 unsigned : 1;
4358 unsigned : 1;
4359 unsigned : 1;
4362 struct
4364 unsigned : 1;
4365 unsigned WIN0 : 1;
4366 unsigned WIN1 : 1;
4367 unsigned WIN2 : 1;
4368 unsigned : 1;
4369 unsigned : 1;
4370 unsigned : 1;
4371 unsigned : 1;
4374 struct
4376 unsigned : 1;
4377 unsigned FP1 : 1;
4378 unsigned FP2 : 1;
4379 unsigned FP3 : 1;
4380 unsigned : 1;
4381 unsigned : 1;
4382 unsigned : 1;
4383 unsigned : 1;
4386 struct
4388 unsigned FP : 4;
4389 unsigned : 4;
4392 struct
4394 unsigned : 1;
4395 unsigned WIN : 3;
4396 unsigned : 4;
4398 } __CANCON_RO7bits_t;
4400 extern __at(0x0EAF) volatile __CANCON_RO7bits_t CANCON_RO7bits;
4402 #define _CANCON_RO7_FP0 0x01
4403 #define _CANCON_RO7_WIN0_FP1 0x02
4404 #define _CANCON_RO7_WIN0 0x02
4405 #define _CANCON_RO7_FP1 0x02
4406 #define _CANCON_RO7_WIN1_FP2 0x04
4407 #define _CANCON_RO7_WIN1 0x04
4408 #define _CANCON_RO7_FP2 0x04
4409 #define _CANCON_RO7_WIN2_FP3 0x08
4410 #define _CANCON_RO7_WIN2 0x08
4411 #define _CANCON_RO7_FP3 0x08
4412 #define _CANCON_RO7_ABAT 0x10
4414 //==============================================================================
4417 //==============================================================================
4418 // B3CON Bits
4420 extern __at(0x0EB0) __sfr B3CON;
4422 typedef union
4424 struct
4426 unsigned FILHIT0_TXPRI0 : 1;
4427 unsigned FILHIT1_TXPRI1 : 1;
4428 unsigned FILHIT2_RTREN : 1;
4429 unsigned FILHIT3_TXREQ : 1;
4430 unsigned FILHIT4_TXERR : 1;
4431 unsigned RXRTRRO_TXLARB : 1;
4432 unsigned RXM1_TXABT : 1;
4433 unsigned RXFUL_TXBIF : 1;
4436 struct
4438 unsigned FILHIT0 : 1;
4439 unsigned FILHIT1 : 1;
4440 unsigned FILHIT2 : 1;
4441 unsigned FILHIT3 : 1;
4442 unsigned FILHIT4 : 1;
4443 unsigned RXRTRRO : 1;
4444 unsigned RXM1 : 1;
4445 unsigned RXFUL : 1;
4448 struct
4450 unsigned TXPRI0 : 1;
4451 unsigned TXPRI1 : 1;
4452 unsigned RTREN : 1;
4453 unsigned TXREQ : 1;
4454 unsigned TXERR : 1;
4455 unsigned TXLARB : 1;
4456 unsigned TXABT : 1;
4457 unsigned TXBIF : 1;
4460 struct
4462 unsigned TXPRI : 2;
4463 unsigned : 6;
4466 struct
4468 unsigned FILHIT : 5;
4469 unsigned : 3;
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 // MDCARL Bits
10043 extern __at(0x0F42) __sfr MDCARL;
10045 typedef union
10047 struct
10049 unsigned MDCL0 : 1;
10050 unsigned MDCL1 : 1;
10051 unsigned MDCL2 : 1;
10052 unsigned MDCL3 : 1;
10053 unsigned : 1;
10054 unsigned MDCLSYNC : 1;
10055 unsigned MDCLPOL : 1;
10056 unsigned MDCLODIS : 1;
10059 struct
10061 unsigned MDCL : 4;
10062 unsigned : 4;
10064 } __MDCARLbits_t;
10066 extern __at(0x0F42) volatile __MDCARLbits_t MDCARLbits;
10068 #define _MDCL0 0x01
10069 #define _MDCL1 0x02
10070 #define _MDCL2 0x04
10071 #define _MDCL3 0x08
10072 #define _MDCLSYNC 0x20
10073 #define _MDCLPOL 0x40
10074 #define _MDCLODIS 0x80
10076 //==============================================================================
10079 //==============================================================================
10080 // MDCARH Bits
10082 extern __at(0x0F43) __sfr MDCARH;
10084 typedef union
10086 struct
10088 unsigned MDCH0 : 1;
10089 unsigned MDCH1 : 1;
10090 unsigned MDCH2 : 1;
10091 unsigned MDCH3 : 1;
10092 unsigned : 1;
10093 unsigned MDCHSYNC : 1;
10094 unsigned MDCHPOL : 1;
10095 unsigned MDCHODIS : 1;
10098 struct
10100 unsigned MDCH : 4;
10101 unsigned : 4;
10103 } __MDCARHbits_t;
10105 extern __at(0x0F43) volatile __MDCARHbits_t MDCARHbits;
10107 #define _MDCH0 0x01
10108 #define _MDCH1 0x02
10109 #define _MDCH2 0x04
10110 #define _MDCH3 0x08
10111 #define _MDCHSYNC 0x20
10112 #define _MDCHPOL 0x40
10113 #define _MDCHODIS 0x80
10115 //==============================================================================
10118 //==============================================================================
10119 // MDSRC Bits
10121 extern __at(0x0F44) __sfr MDSRC;
10123 typedef union
10125 struct
10127 unsigned MDSRC0 : 1;
10128 unsigned MDSRC1 : 1;
10129 unsigned MDSRC2 : 1;
10130 unsigned MDSRC3 : 1;
10131 unsigned : 1;
10132 unsigned : 1;
10133 unsigned : 1;
10134 unsigned MDSODIS : 1;
10137 struct
10139 unsigned MDSRC : 4;
10140 unsigned : 4;
10142 } __MDSRCbits_t;
10144 extern __at(0x0F44) volatile __MDSRCbits_t MDSRCbits;
10146 #define _MDSRC0 0x01
10147 #define _MDSRC1 0x02
10148 #define _MDSRC2 0x04
10149 #define _MDSRC3 0x08
10150 #define _MDSODIS 0x80
10152 //==============================================================================
10155 //==============================================================================
10156 // MDCON Bits
10158 extern __at(0x0F45) __sfr MDCON;
10160 typedef struct
10162 unsigned MDBIT : 1;
10163 unsigned : 1;
10164 unsigned : 1;
10165 unsigned MDO : 1;
10166 unsigned MDOPOL : 1;
10167 unsigned MDSLR : 1;
10168 unsigned MDOE : 1;
10169 unsigned MDEN : 1;
10170 } __MDCONbits_t;
10172 extern __at(0x0F45) volatile __MDCONbits_t MDCONbits;
10174 #define _MDBIT 0x01
10175 #define _MDO 0x08
10176 #define _MDOPOL 0x10
10177 #define _MDSLR 0x20
10178 #define _MDOE 0x40
10179 #define _MDEN 0x80
10181 //==============================================================================
10184 //==============================================================================
10185 // PSPCON Bits
10187 extern __at(0x0F46) __sfr PSPCON;
10189 typedef struct
10191 unsigned : 1;
10192 unsigned : 1;
10193 unsigned : 1;
10194 unsigned : 1;
10195 unsigned PSPMODE : 1;
10196 unsigned IBOV : 1;
10197 unsigned OBF : 1;
10198 unsigned IBF : 1;
10199 } __PSPCONbits_t;
10201 extern __at(0x0F46) volatile __PSPCONbits_t PSPCONbits;
10203 #define _PSPMODE 0x10
10204 #define _IBOV 0x20
10205 #define _OBF 0x40
10206 #define _IBF 0x80
10208 //==============================================================================
10211 //==============================================================================
10212 // CCP5CON Bits
10214 extern __at(0x0F47) __sfr CCP5CON;
10216 typedef union
10218 struct
10220 unsigned CCP5M0 : 1;
10221 unsigned CCP5M1 : 1;
10222 unsigned CCP5M2 : 1;
10223 unsigned CCP5M3 : 1;
10224 unsigned DC5B0 : 1;
10225 unsigned DC5B1 : 1;
10226 unsigned : 1;
10227 unsigned : 1;
10230 struct
10232 unsigned : 1;
10233 unsigned : 1;
10234 unsigned : 1;
10235 unsigned : 1;
10236 unsigned CCP5Y : 1;
10237 unsigned CCP5X : 1;
10238 unsigned : 1;
10239 unsigned : 1;
10242 struct
10244 unsigned CCP5M : 4;
10245 unsigned : 4;
10248 struct
10250 unsigned : 4;
10251 unsigned DC5B : 2;
10252 unsigned : 2;
10254 } __CCP5CONbits_t;
10256 extern __at(0x0F47) volatile __CCP5CONbits_t CCP5CONbits;
10258 #define _CCP5M0 0x01
10259 #define _CCP5M1 0x02
10260 #define _CCP5M2 0x04
10261 #define _CCP5M3 0x08
10262 #define _DC5B0 0x10
10263 #define _CCP5Y 0x10
10264 #define _DC5B1 0x20
10265 #define _CCP5X 0x20
10267 //==============================================================================
10269 extern __at(0x0F48) __sfr CCPR5;
10270 extern __at(0x0F48) __sfr CCPR5L;
10271 extern __at(0x0F49) __sfr CCPR5H;
10273 //==============================================================================
10274 // CCP4CON Bits
10276 extern __at(0x0F4A) __sfr CCP4CON;
10278 typedef union
10280 struct
10282 unsigned CCP4M0 : 1;
10283 unsigned CCP4M1 : 1;
10284 unsigned CCP4M2 : 1;
10285 unsigned CCP4M3 : 1;
10286 unsigned DC4B0 : 1;
10287 unsigned DC4B1 : 1;
10288 unsigned : 1;
10289 unsigned : 1;
10292 struct
10294 unsigned : 1;
10295 unsigned : 1;
10296 unsigned : 1;
10297 unsigned : 1;
10298 unsigned CCP4Y : 1;
10299 unsigned CCP4X : 1;
10300 unsigned : 1;
10301 unsigned : 1;
10304 struct
10306 unsigned CCP4M : 4;
10307 unsigned : 4;
10310 struct
10312 unsigned : 4;
10313 unsigned DC4B : 2;
10314 unsigned : 2;
10316 } __CCP4CONbits_t;
10318 extern __at(0x0F4A) volatile __CCP4CONbits_t CCP4CONbits;
10320 #define _CCP4M0 0x01
10321 #define _CCP4M1 0x02
10322 #define _CCP4M2 0x04
10323 #define _CCP4M3 0x08
10324 #define _DC4B0 0x10
10325 #define _CCP4Y 0x10
10326 #define _DC4B1 0x20
10327 #define _CCP4X 0x20
10329 //==============================================================================
10331 extern __at(0x0F4B) __sfr CCPR4;
10332 extern __at(0x0F4B) __sfr CCPR4L;
10333 extern __at(0x0F4C) __sfr CCPR4H;
10335 //==============================================================================
10336 // CCP3CON Bits
10338 extern __at(0x0F4D) __sfr CCP3CON;
10340 typedef union
10342 struct
10344 unsigned CCP3M0 : 1;
10345 unsigned CCP3M1 : 1;
10346 unsigned CCP3M2 : 1;
10347 unsigned CCP3M3 : 1;
10348 unsigned DC3B0 : 1;
10349 unsigned DC3B1 : 1;
10350 unsigned : 1;
10351 unsigned : 1;
10354 struct
10356 unsigned : 1;
10357 unsigned : 1;
10358 unsigned : 1;
10359 unsigned : 1;
10360 unsigned CCP3Y : 1;
10361 unsigned CCP3X : 1;
10362 unsigned : 1;
10363 unsigned : 1;
10366 struct
10368 unsigned CCP3M : 4;
10369 unsigned : 4;
10372 struct
10374 unsigned : 4;
10375 unsigned DC3B : 2;
10376 unsigned : 2;
10378 } __CCP3CONbits_t;
10380 extern __at(0x0F4D) volatile __CCP3CONbits_t CCP3CONbits;
10382 #define _CCP3M0 0x01
10383 #define _CCP3M1 0x02
10384 #define _CCP3M2 0x04
10385 #define _CCP3M3 0x08
10386 #define _DC3B0 0x10
10387 #define _CCP3Y 0x10
10388 #define _DC3B1 0x20
10389 #define _CCP3X 0x20
10391 //==============================================================================
10393 extern __at(0x0F4E) __sfr CCPR3;
10394 extern __at(0x0F4E) __sfr CCPR3L;
10395 extern __at(0x0F4F) __sfr CCPR3H;
10397 //==============================================================================
10398 // CCP2CON Bits
10400 extern __at(0x0F50) __sfr CCP2CON;
10402 typedef union
10404 struct
10406 unsigned CCP2M0 : 1;
10407 unsigned CCP2M1 : 1;
10408 unsigned CCP2M2 : 1;
10409 unsigned CCP2M3 : 1;
10410 unsigned DC2B0 : 1;
10411 unsigned DC2B1 : 1;
10412 unsigned : 1;
10413 unsigned : 1;
10416 struct
10418 unsigned : 1;
10419 unsigned : 1;
10420 unsigned : 1;
10421 unsigned : 1;
10422 unsigned CCP2Y : 1;
10423 unsigned CCP2X : 1;
10424 unsigned : 1;
10425 unsigned : 1;
10428 struct
10430 unsigned CCP2M : 4;
10431 unsigned : 4;
10434 struct
10436 unsigned : 4;
10437 unsigned DC2B : 2;
10438 unsigned : 2;
10440 } __CCP2CONbits_t;
10442 extern __at(0x0F50) volatile __CCP2CONbits_t CCP2CONbits;
10444 #define _CCP2M0 0x01
10445 #define _CCP2M1 0x02
10446 #define _CCP2M2 0x04
10447 #define _CCP2M3 0x08
10448 #define _DC2B0 0x10
10449 #define _CCP2Y 0x10
10450 #define _DC2B1 0x20
10451 #define _CCP2X 0x20
10453 //==============================================================================
10456 //==============================================================================
10457 // ECCP2CON Bits
10459 extern __at(0x0F50) __sfr ECCP2CON;
10461 typedef union
10463 struct
10465 unsigned CCP2M0 : 1;
10466 unsigned CCP2M1 : 1;
10467 unsigned CCP2M2 : 1;
10468 unsigned CCP2M3 : 1;
10469 unsigned DC2B0 : 1;
10470 unsigned DC2B1 : 1;
10471 unsigned : 1;
10472 unsigned : 1;
10475 struct
10477 unsigned : 1;
10478 unsigned : 1;
10479 unsigned : 1;
10480 unsigned : 1;
10481 unsigned CCP2Y : 1;
10482 unsigned CCP2X : 1;
10483 unsigned : 1;
10484 unsigned : 1;
10487 struct
10489 unsigned CCP2M : 4;
10490 unsigned : 4;
10493 struct
10495 unsigned : 4;
10496 unsigned DC2B : 2;
10497 unsigned : 2;
10499 } __ECCP2CONbits_t;
10501 extern __at(0x0F50) volatile __ECCP2CONbits_t ECCP2CONbits;
10503 #define _ECCP2CON_CCP2M0 0x01
10504 #define _ECCP2CON_CCP2M1 0x02
10505 #define _ECCP2CON_CCP2M2 0x04
10506 #define _ECCP2CON_CCP2M3 0x08
10507 #define _ECCP2CON_DC2B0 0x10
10508 #define _ECCP2CON_CCP2Y 0x10
10509 #define _ECCP2CON_DC2B1 0x20
10510 #define _ECCP2CON_CCP2X 0x20
10512 //==============================================================================
10514 extern __at(0x0F51) __sfr CCPR2;
10515 extern __at(0x0F51) __sfr CCPR2L;
10516 extern __at(0x0F52) __sfr CCPR2H;
10518 //==============================================================================
10519 // CTMUICON Bits
10521 extern __at(0x0F53) __sfr CTMUICON;
10523 typedef union
10525 struct
10527 unsigned IRNG0 : 1;
10528 unsigned IRNG1 : 1;
10529 unsigned ITRIM0 : 1;
10530 unsigned ITRIM1 : 1;
10531 unsigned ITRIM2 : 1;
10532 unsigned ITRIM3 : 1;
10533 unsigned ITRIM4 : 1;
10534 unsigned ITRIM5 : 1;
10537 struct
10539 unsigned IRNG : 2;
10540 unsigned : 6;
10543 struct
10545 unsigned : 2;
10546 unsigned ITRIM : 6;
10548 } __CTMUICONbits_t;
10550 extern __at(0x0F53) volatile __CTMUICONbits_t CTMUICONbits;
10552 #define _IRNG0 0x01
10553 #define _IRNG1 0x02
10554 #define _ITRIM0 0x04
10555 #define _ITRIM1 0x08
10556 #define _ITRIM2 0x10
10557 #define _ITRIM3 0x20
10558 #define _ITRIM4 0x40
10559 #define _ITRIM5 0x80
10561 //==============================================================================
10564 //==============================================================================
10565 // CTMUCONL Bits
10567 extern __at(0x0F54) __sfr CTMUCONL;
10569 typedef union
10571 struct
10573 unsigned EDG1STAT : 1;
10574 unsigned EDG2STAT : 1;
10575 unsigned EDG1SEL0 : 1;
10576 unsigned EDG1SEL1 : 1;
10577 unsigned EDG1POL : 1;
10578 unsigned EDG2SEL0 : 1;
10579 unsigned EDG2SEL1 : 1;
10580 unsigned EDG2POL : 1;
10583 struct
10585 unsigned : 2;
10586 unsigned EDG1SEL : 2;
10587 unsigned : 4;
10590 struct
10592 unsigned : 5;
10593 unsigned EDG2SEL : 2;
10594 unsigned : 1;
10596 } __CTMUCONLbits_t;
10598 extern __at(0x0F54) volatile __CTMUCONLbits_t CTMUCONLbits;
10600 #define _EDG1STAT 0x01
10601 #define _EDG2STAT 0x02
10602 #define _EDG1SEL0 0x04
10603 #define _EDG1SEL1 0x08
10604 #define _EDG1POL 0x10
10605 #define _EDG2SEL0 0x20
10606 #define _EDG2SEL1 0x40
10607 #define _EDG2POL 0x80
10609 //==============================================================================
10612 //==============================================================================
10613 // CTMUCONH Bits
10615 extern __at(0x0F55) __sfr CTMUCONH;
10617 typedef struct
10619 unsigned CTTRIG : 1;
10620 unsigned IDISSEN : 1;
10621 unsigned EDGSEQEN : 1;
10622 unsigned EDGEN : 1;
10623 unsigned TGEN : 1;
10624 unsigned CTMUSIDL : 1;
10625 unsigned : 1;
10626 unsigned CTMUEN : 1;
10627 } __CTMUCONHbits_t;
10629 extern __at(0x0F55) volatile __CTMUCONHbits_t CTMUCONHbits;
10631 #define _CTTRIG 0x01
10632 #define _IDISSEN 0x02
10633 #define _EDGSEQEN 0x04
10634 #define _EDGEN 0x08
10635 #define _TGEN 0x10
10636 #define _CTMUSIDL 0x20
10637 #define _CTMUEN 0x80
10639 //==============================================================================
10642 //==============================================================================
10643 // PADCFG1 Bits
10645 extern __at(0x0F56) __sfr PADCFG1;
10647 typedef struct
10649 unsigned CTMUDS : 1;
10650 unsigned : 1;
10651 unsigned : 1;
10652 unsigned : 1;
10653 unsigned RGPU : 1;
10654 unsigned RFPU : 1;
10655 unsigned REPU : 1;
10656 unsigned RDPU : 1;
10657 } __PADCFG1bits_t;
10659 extern __at(0x0F56) volatile __PADCFG1bits_t PADCFG1bits;
10661 #define _CTMUDS 0x01
10662 #define _RGPU 0x10
10663 #define _RFPU 0x20
10664 #define _REPU 0x40
10665 #define _RDPU 0x80
10667 //==============================================================================
10670 //==============================================================================
10671 // PMD2 Bits
10673 extern __at(0x0F57) __sfr PMD2;
10675 typedef struct
10677 unsigned CMP1MD : 1;
10678 unsigned CMP2MD : 1;
10679 unsigned ECANMD : 1;
10680 unsigned MODMD : 1;
10681 unsigned : 1;
10682 unsigned : 1;
10683 unsigned : 1;
10684 unsigned : 1;
10685 } __PMD2bits_t;
10687 extern __at(0x0F57) volatile __PMD2bits_t PMD2bits;
10689 #define _CMP1MD 0x01
10690 #define _CMP2MD 0x02
10691 #define _ECANMD 0x04
10692 #define _MODMD 0x08
10694 //==============================================================================
10697 //==============================================================================
10698 // PMD1 Bits
10700 extern __at(0x0F58) __sfr PMD1;
10702 typedef struct
10704 unsigned TMR0MD : 1;
10705 unsigned TMR1MD : 1;
10706 unsigned TMR2MD : 1;
10707 unsigned TMR3MD : 1;
10708 unsigned TMR4MD : 1;
10709 unsigned ADCMD : 1;
10710 unsigned CTMUMD : 1;
10711 unsigned PSPMD : 1;
10712 } __PMD1bits_t;
10714 extern __at(0x0F58) volatile __PMD1bits_t PMD1bits;
10716 #define _TMR0MD 0x01
10717 #define _TMR1MD 0x02
10718 #define _TMR2MD 0x04
10719 #define _TMR3MD 0x08
10720 #define _TMR4MD 0x10
10721 #define _ADCMD 0x20
10722 #define _CTMUMD 0x40
10723 #define _PSPMD 0x80
10725 //==============================================================================
10728 //==============================================================================
10729 // PMD0 Bits
10731 extern __at(0x0F59) __sfr PMD0;
10733 typedef struct
10735 unsigned SSPMD : 1;
10736 unsigned UART1MD : 1;
10737 unsigned UART2MD : 1;
10738 unsigned CCP1MD : 1;
10739 unsigned CCP2MD : 1;
10740 unsigned CCP3MD : 1;
10741 unsigned CCP4MD : 1;
10742 unsigned CCP5MD : 1;
10743 } __PMD0bits_t;
10745 extern __at(0x0F59) volatile __PMD0bits_t PMD0bits;
10747 #define _SSPMD 0x01
10748 #define _UART1MD 0x02
10749 #define _UART2MD 0x04
10750 #define _CCP1MD 0x08
10751 #define _CCP2MD 0x10
10752 #define _CCP3MD 0x20
10753 #define _CCP4MD 0x40
10754 #define _CCP5MD 0x80
10756 //==============================================================================
10759 //==============================================================================
10760 // IOCB Bits
10762 extern __at(0x0F5A) __sfr IOCB;
10764 typedef struct
10766 unsigned : 1;
10767 unsigned : 1;
10768 unsigned : 1;
10769 unsigned : 1;
10770 unsigned IOCB4 : 1;
10771 unsigned IOCB5 : 1;
10772 unsigned IOCB6 : 1;
10773 unsigned IOCB7 : 1;
10774 } __IOCBbits_t;
10776 extern __at(0x0F5A) volatile __IOCBbits_t IOCBbits;
10778 #define _IOCB4 0x10
10779 #define _IOCB5 0x20
10780 #define _IOCB6 0x40
10781 #define _IOCB7 0x80
10783 //==============================================================================
10786 //==============================================================================
10787 // WPUB Bits
10789 extern __at(0x0F5B) __sfr WPUB;
10791 typedef struct
10793 unsigned WPUB0 : 1;
10794 unsigned WPUB1 : 1;
10795 unsigned WPUB2 : 1;
10796 unsigned WPUB3 : 1;
10797 unsigned WPUB4 : 1;
10798 unsigned WPUB5 : 1;
10799 unsigned WPUB6 : 1;
10800 unsigned WPUB7 : 1;
10801 } __WPUBbits_t;
10803 extern __at(0x0F5B) volatile __WPUBbits_t WPUBbits;
10805 #define _WPUB0 0x01
10806 #define _WPUB1 0x02
10807 #define _WPUB2 0x04
10808 #define _WPUB3 0x08
10809 #define _WPUB4 0x10
10810 #define _WPUB5 0x20
10811 #define _WPUB6 0x40
10812 #define _WPUB7 0x80
10814 //==============================================================================
10817 //==============================================================================
10818 // ANCON1 Bits
10820 extern __at(0x0F5C) __sfr ANCON1;
10822 typedef struct
10824 unsigned ANSEL8 : 1;
10825 unsigned ANSEL9 : 1;
10826 unsigned ANSEL10 : 1;
10827 unsigned ANSEL11 : 1;
10828 unsigned ANSEL12 : 1;
10829 unsigned ANSEL13 : 1;
10830 unsigned ANSEL14 : 1;
10831 unsigned : 1;
10832 } __ANCON1bits_t;
10834 extern __at(0x0F5C) volatile __ANCON1bits_t ANCON1bits;
10836 #define _ANSEL8 0x01
10837 #define _ANSEL9 0x02
10838 #define _ANSEL10 0x04
10839 #define _ANSEL11 0x08
10840 #define _ANSEL12 0x10
10841 #define _ANSEL13 0x20
10842 #define _ANSEL14 0x40
10844 //==============================================================================
10847 //==============================================================================
10848 // ANCON0 Bits
10850 extern __at(0x0F5D) __sfr ANCON0;
10852 typedef struct
10854 unsigned ANSEL0 : 1;
10855 unsigned ANSEL1 : 1;
10856 unsigned ANSEL2 : 1;
10857 unsigned ANSEL3 : 1;
10858 unsigned ANSEL4 : 1;
10859 unsigned ANSEL5 : 1;
10860 unsigned ANSEL6 : 1;
10861 unsigned ANSEL7 : 1;
10862 } __ANCON0bits_t;
10864 extern __at(0x0F5D) volatile __ANCON0bits_t ANCON0bits;
10866 #define _ANSEL0 0x01
10867 #define _ANSEL1 0x02
10868 #define _ANSEL2 0x04
10869 #define _ANSEL3 0x08
10870 #define _ANSEL4 0x10
10871 #define _ANSEL5 0x20
10872 #define _ANSEL6 0x40
10873 #define _ANSEL7 0x80
10875 //==============================================================================
10878 //==============================================================================
10879 // CM2CON Bits
10881 extern __at(0x0F5E) __sfr CM2CON;
10883 typedef union
10885 struct
10887 unsigned CCH0 : 1;
10888 unsigned CCH1 : 1;
10889 unsigned CREF : 1;
10890 unsigned EVPOL0 : 1;
10891 unsigned EVPOL1 : 1;
10892 unsigned CPOL : 1;
10893 unsigned COE : 1;
10894 unsigned CON : 1;
10897 struct
10899 unsigned CCH : 2;
10900 unsigned : 6;
10903 struct
10905 unsigned : 3;
10906 unsigned EVPOL : 2;
10907 unsigned : 3;
10909 } __CM2CONbits_t;
10911 extern __at(0x0F5E) volatile __CM2CONbits_t CM2CONbits;
10913 #define _CM2CON_CCH0 0x01
10914 #define _CM2CON_CCH1 0x02
10915 #define _CM2CON_CREF 0x04
10916 #define _CM2CON_EVPOL0 0x08
10917 #define _CM2CON_EVPOL1 0x10
10918 #define _CM2CON_CPOL 0x20
10919 #define _CM2CON_COE 0x40
10920 #define _CM2CON_CON 0x80
10922 //==============================================================================
10925 //==============================================================================
10926 // CM2CON1 Bits
10928 extern __at(0x0F5E) __sfr CM2CON1;
10930 typedef union
10932 struct
10934 unsigned CCH0 : 1;
10935 unsigned CCH1 : 1;
10936 unsigned CREF : 1;
10937 unsigned EVPOL0 : 1;
10938 unsigned EVPOL1 : 1;
10939 unsigned CPOL : 1;
10940 unsigned COE : 1;
10941 unsigned CON : 1;
10944 struct
10946 unsigned CCH : 2;
10947 unsigned : 6;
10950 struct
10952 unsigned : 3;
10953 unsigned EVPOL : 2;
10954 unsigned : 3;
10956 } __CM2CON1bits_t;
10958 extern __at(0x0F5E) volatile __CM2CON1bits_t CM2CON1bits;
10960 #define _CM2CON1_CCH0 0x01
10961 #define _CM2CON1_CCH1 0x02
10962 #define _CM2CON1_CREF 0x04
10963 #define _CM2CON1_EVPOL0 0x08
10964 #define _CM2CON1_EVPOL1 0x10
10965 #define _CM2CON1_CPOL 0x20
10966 #define _CM2CON1_COE 0x40
10967 #define _CM2CON1_CON 0x80
10969 //==============================================================================
10972 //==============================================================================
10973 // CM1CON Bits
10975 extern __at(0x0F5F) __sfr CM1CON;
10977 typedef union
10979 struct
10981 unsigned CCH0 : 1;
10982 unsigned CCH1 : 1;
10983 unsigned CREF : 1;
10984 unsigned EVPOL0 : 1;
10985 unsigned EVPOL1 : 1;
10986 unsigned CPOL : 1;
10987 unsigned COE : 1;
10988 unsigned CON : 1;
10991 struct
10993 unsigned CCH : 2;
10994 unsigned : 6;
10997 struct
10999 unsigned : 3;
11000 unsigned EVPOL : 2;
11001 unsigned : 3;
11003 } __CM1CONbits_t;
11005 extern __at(0x0F5F) volatile __CM1CONbits_t CM1CONbits;
11007 #define _CCH0 0x01
11008 #define _CCH1 0x02
11009 #define _CREF 0x04
11010 #define _EVPOL0 0x08
11011 #define _EVPOL1 0x10
11012 #define _CPOL 0x20
11013 #define _COE 0x40
11014 #define _CON 0x80
11016 //==============================================================================
11019 //==============================================================================
11020 // CM1CON1 Bits
11022 extern __at(0x0F5F) __sfr CM1CON1;
11024 typedef union
11026 struct
11028 unsigned CCH0 : 1;
11029 unsigned CCH1 : 1;
11030 unsigned CREF : 1;
11031 unsigned EVPOL0 : 1;
11032 unsigned EVPOL1 : 1;
11033 unsigned CPOL : 1;
11034 unsigned COE : 1;
11035 unsigned CON : 1;
11038 struct
11040 unsigned CCH : 2;
11041 unsigned : 6;
11044 struct
11046 unsigned : 3;
11047 unsigned EVPOL : 2;
11048 unsigned : 3;
11050 } __CM1CON1bits_t;
11052 extern __at(0x0F5F) volatile __CM1CON1bits_t CM1CON1bits;
11054 #define _CM1CON1_CCH0 0x01
11055 #define _CM1CON1_CCH1 0x02
11056 #define _CM1CON1_CREF 0x04
11057 #define _CM1CON1_EVPOL0 0x08
11058 #define _CM1CON1_EVPOL1 0x10
11059 #define _CM1CON1_CPOL 0x20
11060 #define _CM1CON1_COE 0x40
11061 #define _CM1CON1_CON 0x80
11063 //==============================================================================
11066 //==============================================================================
11067 // RXB0CON Bits
11069 extern __at(0x0F60) __sfr RXB0CON;
11071 typedef union
11073 struct
11075 unsigned FILHIT0 : 1;
11076 unsigned JTOFF_FILHIT1 : 1;
11077 unsigned RB0DBEN_FILHIT2 : 1;
11078 unsigned RXRTRRO_FILHIT3 : 1;
11079 unsigned FILHIT4 : 1;
11080 unsigned RXM0_RTRRO : 1;
11081 unsigned RXM1 : 1;
11082 unsigned RXFUL : 1;
11085 struct
11087 unsigned : 1;
11088 unsigned JTOFF : 1;
11089 unsigned RB0DBEN : 1;
11090 unsigned RXRTRRO : 1;
11091 unsigned : 1;
11092 unsigned RTRRO : 1;
11093 unsigned : 1;
11094 unsigned : 1;
11097 struct
11099 unsigned : 1;
11100 unsigned FILHIT1 : 1;
11101 unsigned FILHIT2 : 1;
11102 unsigned FILHIT3 : 1;
11103 unsigned : 1;
11104 unsigned RXM0 : 1;
11105 unsigned : 1;
11106 unsigned : 1;
11109 struct
11111 unsigned FILHIT : 5;
11112 unsigned : 3;
11115 struct
11117 unsigned : 5;
11118 unsigned RXM : 2;
11119 unsigned : 1;
11121 } __RXB0CONbits_t;
11123 extern __at(0x0F60) volatile __RXB0CONbits_t RXB0CONbits;
11125 #define _RXB0CON_FILHIT0 0x01
11126 #define _RXB0CON_JTOFF_FILHIT1 0x02
11127 #define _RXB0CON_JTOFF 0x02
11128 #define _RXB0CON_FILHIT1 0x02
11129 #define _RXB0CON_RB0DBEN_FILHIT2 0x04
11130 #define _RXB0CON_RB0DBEN 0x04
11131 #define _RXB0CON_FILHIT2 0x04
11132 #define _RXB0CON_RXRTRRO_FILHIT3 0x08
11133 #define _RXB0CON_RXRTRRO 0x08
11134 #define _RXB0CON_FILHIT3 0x08
11135 #define _RXB0CON_FILHIT4 0x10
11136 #define _RXB0CON_RXM0_RTRRO 0x20
11137 #define _RXB0CON_RTRRO 0x20
11138 #define _RXB0CON_RXM0 0x20
11139 #define _RXB0CON_RXM1 0x40
11140 #define _RXB0CON_RXFUL 0x80
11142 //==============================================================================
11145 //==============================================================================
11146 // RXB0SIDH Bits
11148 extern __at(0x0F61) __sfr RXB0SIDH;
11150 typedef struct
11152 unsigned SID3 : 1;
11153 unsigned SID4 : 1;
11154 unsigned SID5 : 1;
11155 unsigned SID6 : 1;
11156 unsigned SID7 : 1;
11157 unsigned SID8 : 1;
11158 unsigned SID9 : 1;
11159 unsigned SID10 : 1;
11160 } __RXB0SIDHbits_t;
11162 extern __at(0x0F61) volatile __RXB0SIDHbits_t RXB0SIDHbits;
11164 #define _RXB0SIDH_SID3 0x01
11165 #define _RXB0SIDH_SID4 0x02
11166 #define _RXB0SIDH_SID5 0x04
11167 #define _RXB0SIDH_SID6 0x08
11168 #define _RXB0SIDH_SID7 0x10
11169 #define _RXB0SIDH_SID8 0x20
11170 #define _RXB0SIDH_SID9 0x40
11171 #define _RXB0SIDH_SID10 0x80
11173 //==============================================================================
11176 //==============================================================================
11177 // RXB0SIDL Bits
11179 extern __at(0x0F62) __sfr RXB0SIDL;
11181 typedef union
11183 struct
11185 unsigned EID16 : 1;
11186 unsigned EID17 : 1;
11187 unsigned : 1;
11188 unsigned EXID : 1;
11189 unsigned SRR : 1;
11190 unsigned SID0 : 1;
11191 unsigned SID1 : 1;
11192 unsigned SID2 : 1;
11195 struct
11197 unsigned : 5;
11198 unsigned SID : 3;
11200 } __RXB0SIDLbits_t;
11202 extern __at(0x0F62) volatile __RXB0SIDLbits_t RXB0SIDLbits;
11204 #define _RXB0SIDL_EID16 0x01
11205 #define _RXB0SIDL_EID17 0x02
11206 #define _RXB0SIDL_EXID 0x08
11207 #define _RXB0SIDL_SRR 0x10
11208 #define _RXB0SIDL_SID0 0x20
11209 #define _RXB0SIDL_SID1 0x40
11210 #define _RXB0SIDL_SID2 0x80
11212 //==============================================================================
11215 //==============================================================================
11216 // RXB0EIDH Bits
11218 extern __at(0x0F63) __sfr RXB0EIDH;
11220 typedef struct
11222 unsigned EID8 : 1;
11223 unsigned EID9 : 1;
11224 unsigned EID10 : 1;
11225 unsigned EID11 : 1;
11226 unsigned EID12 : 1;
11227 unsigned EID13 : 1;
11228 unsigned EID14 : 1;
11229 unsigned EID15 : 1;
11230 } __RXB0EIDHbits_t;
11232 extern __at(0x0F63) volatile __RXB0EIDHbits_t RXB0EIDHbits;
11234 #define _RXB0EIDH_EID8 0x01
11235 #define _RXB0EIDH_EID9 0x02
11236 #define _RXB0EIDH_EID10 0x04
11237 #define _RXB0EIDH_EID11 0x08
11238 #define _RXB0EIDH_EID12 0x10
11239 #define _RXB0EIDH_EID13 0x20
11240 #define _RXB0EIDH_EID14 0x40
11241 #define _RXB0EIDH_EID15 0x80
11243 //==============================================================================
11246 //==============================================================================
11247 // RXB0EIDL Bits
11249 extern __at(0x0F64) __sfr RXB0EIDL;
11251 typedef struct
11253 unsigned EID0 : 1;
11254 unsigned EID1 : 1;
11255 unsigned EID2 : 1;
11256 unsigned EID3 : 1;
11257 unsigned EID4 : 1;
11258 unsigned EID5 : 1;
11259 unsigned EID6 : 1;
11260 unsigned EID7 : 1;
11261 } __RXB0EIDLbits_t;
11263 extern __at(0x0F64) volatile __RXB0EIDLbits_t RXB0EIDLbits;
11265 #define _RXB0EIDL_EID0 0x01
11266 #define _RXB0EIDL_EID1 0x02
11267 #define _RXB0EIDL_EID2 0x04
11268 #define _RXB0EIDL_EID3 0x08
11269 #define _RXB0EIDL_EID4 0x10
11270 #define _RXB0EIDL_EID5 0x20
11271 #define _RXB0EIDL_EID6 0x40
11272 #define _RXB0EIDL_EID7 0x80
11274 //==============================================================================
11277 //==============================================================================
11278 // RXB0DLC Bits
11280 extern __at(0x0F65) __sfr RXB0DLC;
11282 typedef union
11284 struct
11286 unsigned DLC0 : 1;
11287 unsigned DLC1 : 1;
11288 unsigned DLC2 : 1;
11289 unsigned DLC3 : 1;
11290 unsigned RB0 : 1;
11291 unsigned RB1 : 1;
11292 unsigned RXRTR : 1;
11293 unsigned : 1;
11296 struct
11298 unsigned DLC : 4;
11299 unsigned : 4;
11302 struct
11304 unsigned : 4;
11305 unsigned RB : 2;
11306 unsigned : 2;
11308 } __RXB0DLCbits_t;
11310 extern __at(0x0F65) volatile __RXB0DLCbits_t RXB0DLCbits;
11312 #define _RXB0DLC_DLC0 0x01
11313 #define _RXB0DLC_DLC1 0x02
11314 #define _RXB0DLC_DLC2 0x04
11315 #define _RXB0DLC_DLC3 0x08
11316 #define _RXB0DLC_RB0 0x10
11317 #define _RXB0DLC_RB1 0x20
11318 #define _RXB0DLC_RXRTR 0x40
11320 //==============================================================================
11323 //==============================================================================
11324 // RXB0D0 Bits
11326 extern __at(0x0F66) __sfr RXB0D0;
11328 typedef struct
11330 unsigned RXB0D00 : 1;
11331 unsigned RXB0D01 : 1;
11332 unsigned RXB0D02 : 1;
11333 unsigned RXB0D03 : 1;
11334 unsigned RXB0D04 : 1;
11335 unsigned RXB0D05 : 1;
11336 unsigned RXB0D06 : 1;
11337 unsigned RXB0D07 : 1;
11338 } __RXB0D0bits_t;
11340 extern __at(0x0F66) volatile __RXB0D0bits_t RXB0D0bits;
11342 #define _RXB0D00 0x01
11343 #define _RXB0D01 0x02
11344 #define _RXB0D02 0x04
11345 #define _RXB0D03 0x08
11346 #define _RXB0D04 0x10
11347 #define _RXB0D05 0x20
11348 #define _RXB0D06 0x40
11349 #define _RXB0D07 0x80
11351 //==============================================================================
11354 //==============================================================================
11355 // RXB0D1 Bits
11357 extern __at(0x0F67) __sfr RXB0D1;
11359 typedef struct
11361 unsigned RXB0D10 : 1;
11362 unsigned RXB0D11 : 1;
11363 unsigned RXB0D12 : 1;
11364 unsigned RXB0D13 : 1;
11365 unsigned RXB0D14 : 1;
11366 unsigned RXB0D15 : 1;
11367 unsigned RXB0D16 : 1;
11368 unsigned RXB0D17 : 1;
11369 } __RXB0D1bits_t;
11371 extern __at(0x0F67) volatile __RXB0D1bits_t RXB0D1bits;
11373 #define _RXB0D10 0x01
11374 #define _RXB0D11 0x02
11375 #define _RXB0D12 0x04
11376 #define _RXB0D13 0x08
11377 #define _RXB0D14 0x10
11378 #define _RXB0D15 0x20
11379 #define _RXB0D16 0x40
11380 #define _RXB0D17 0x80
11382 //==============================================================================
11385 //==============================================================================
11386 // RXB0D2 Bits
11388 extern __at(0x0F68) __sfr RXB0D2;
11390 typedef struct
11392 unsigned RXB0D20 : 1;
11393 unsigned RXB0D21 : 1;
11394 unsigned RXB0D22 : 1;
11395 unsigned RXB0D23 : 1;
11396 unsigned RXB0D24 : 1;
11397 unsigned RXB0D25 : 1;
11398 unsigned RXB0D26 : 1;
11399 unsigned RXB0D27 : 1;
11400 } __RXB0D2bits_t;
11402 extern __at(0x0F68) volatile __RXB0D2bits_t RXB0D2bits;
11404 #define _RXB0D20 0x01
11405 #define _RXB0D21 0x02
11406 #define _RXB0D22 0x04
11407 #define _RXB0D23 0x08
11408 #define _RXB0D24 0x10
11409 #define _RXB0D25 0x20
11410 #define _RXB0D26 0x40
11411 #define _RXB0D27 0x80
11413 //==============================================================================
11416 //==============================================================================
11417 // RXB0D3 Bits
11419 extern __at(0x0F69) __sfr RXB0D3;
11421 typedef struct
11423 unsigned RXB0D30 : 1;
11424 unsigned RXB0D31 : 1;
11425 unsigned RXB0D32 : 1;
11426 unsigned RXB0D33 : 1;
11427 unsigned RXB0D34 : 1;
11428 unsigned RXB0D35 : 1;
11429 unsigned RXB0D36 : 1;
11430 unsigned RXB0D37 : 1;
11431 } __RXB0D3bits_t;
11433 extern __at(0x0F69) volatile __RXB0D3bits_t RXB0D3bits;
11435 #define _RXB0D30 0x01
11436 #define _RXB0D31 0x02
11437 #define _RXB0D32 0x04
11438 #define _RXB0D33 0x08
11439 #define _RXB0D34 0x10
11440 #define _RXB0D35 0x20
11441 #define _RXB0D36 0x40
11442 #define _RXB0D37 0x80
11444 //==============================================================================
11447 //==============================================================================
11448 // RXB0D4 Bits
11450 extern __at(0x0F6A) __sfr RXB0D4;
11452 typedef struct
11454 unsigned RXB0D40 : 1;
11455 unsigned RXB0D41 : 1;
11456 unsigned RXB0D42 : 1;
11457 unsigned RXB0D43 : 1;
11458 unsigned RXB0D44 : 1;
11459 unsigned RXB0D45 : 1;
11460 unsigned RXB0D46 : 1;
11461 unsigned RXB0D47 : 1;
11462 } __RXB0D4bits_t;
11464 extern __at(0x0F6A) volatile __RXB0D4bits_t RXB0D4bits;
11466 #define _RXB0D40 0x01
11467 #define _RXB0D41 0x02
11468 #define _RXB0D42 0x04
11469 #define _RXB0D43 0x08
11470 #define _RXB0D44 0x10
11471 #define _RXB0D45 0x20
11472 #define _RXB0D46 0x40
11473 #define _RXB0D47 0x80
11475 //==============================================================================
11478 //==============================================================================
11479 // RXB0D5 Bits
11481 extern __at(0x0F6B) __sfr RXB0D5;
11483 typedef struct
11485 unsigned RXB0D50 : 1;
11486 unsigned RXB0D51 : 1;
11487 unsigned RXB0D52 : 1;
11488 unsigned RXB0D53 : 1;
11489 unsigned RXB0D54 : 1;
11490 unsigned RXB0D55 : 1;
11491 unsigned RXB0D56 : 1;
11492 unsigned RXB0D57 : 1;
11493 } __RXB0D5bits_t;
11495 extern __at(0x0F6B) volatile __RXB0D5bits_t RXB0D5bits;
11497 #define _RXB0D50 0x01
11498 #define _RXB0D51 0x02
11499 #define _RXB0D52 0x04
11500 #define _RXB0D53 0x08
11501 #define _RXB0D54 0x10
11502 #define _RXB0D55 0x20
11503 #define _RXB0D56 0x40
11504 #define _RXB0D57 0x80
11506 //==============================================================================
11509 //==============================================================================
11510 // RXB0D6 Bits
11512 extern __at(0x0F6C) __sfr RXB0D6;
11514 typedef struct
11516 unsigned RXB0D60 : 1;
11517 unsigned RXB0D61 : 1;
11518 unsigned RXB0D62 : 1;
11519 unsigned RXB0D63 : 1;
11520 unsigned RXB0D64 : 1;
11521 unsigned RXB0D65 : 1;
11522 unsigned RXB0D66 : 1;
11523 unsigned RXB0D67 : 1;
11524 } __RXB0D6bits_t;
11526 extern __at(0x0F6C) volatile __RXB0D6bits_t RXB0D6bits;
11528 #define _RXB0D60 0x01
11529 #define _RXB0D61 0x02
11530 #define _RXB0D62 0x04
11531 #define _RXB0D63 0x08
11532 #define _RXB0D64 0x10
11533 #define _RXB0D65 0x20
11534 #define _RXB0D66 0x40
11535 #define _RXB0D67 0x80
11537 //==============================================================================
11540 //==============================================================================
11541 // RXB0D7 Bits
11543 extern __at(0x0F6D) __sfr RXB0D7;
11545 typedef struct
11547 unsigned RXB0D70 : 1;
11548 unsigned RXB0D71 : 1;
11549 unsigned RXB0D72 : 1;
11550 unsigned RXB0D73 : 1;
11551 unsigned RXB0D74 : 1;
11552 unsigned RXB0D75 : 1;
11553 unsigned RXB0D76 : 1;
11554 unsigned RXB0D77 : 1;
11555 } __RXB0D7bits_t;
11557 extern __at(0x0F6D) volatile __RXB0D7bits_t RXB0D7bits;
11559 #define _RXB0D70 0x01
11560 #define _RXB0D71 0x02
11561 #define _RXB0D72 0x04
11562 #define _RXB0D73 0x08
11563 #define _RXB0D74 0x10
11564 #define _RXB0D75 0x20
11565 #define _RXB0D76 0x40
11566 #define _RXB0D77 0x80
11568 //==============================================================================
11571 //==============================================================================
11572 // CANSTAT Bits
11574 extern __at(0x0F6E) __sfr CANSTAT;
11576 typedef union
11578 struct
11580 unsigned EICODE0 : 1;
11581 unsigned EICODE1_ICODE0 : 1;
11582 unsigned EICODE2_ICODE1 : 1;
11583 unsigned EICODE3_ICODE2 : 1;
11584 unsigned EICODE4 : 1;
11585 unsigned OPMODE0 : 1;
11586 unsigned OPMODE1 : 1;
11587 unsigned OPMODE2 : 1;
11590 struct
11592 unsigned : 1;
11593 unsigned EICODE1 : 1;
11594 unsigned EICODE2 : 1;
11595 unsigned EICODE3 : 1;
11596 unsigned : 1;
11597 unsigned : 1;
11598 unsigned : 1;
11599 unsigned : 1;
11602 struct
11604 unsigned : 1;
11605 unsigned ICODE0 : 1;
11606 unsigned ICODE1 : 1;
11607 unsigned ICODE2 : 1;
11608 unsigned : 1;
11609 unsigned : 1;
11610 unsigned : 1;
11611 unsigned : 1;
11614 struct
11616 unsigned EICODE : 5;
11617 unsigned : 3;
11620 struct
11622 unsigned : 1;
11623 unsigned ICODE : 3;
11624 unsigned : 4;
11627 struct
11629 unsigned : 5;
11630 unsigned OPMODE : 3;
11632 } __CANSTATbits_t;
11634 extern __at(0x0F6E) volatile __CANSTATbits_t CANSTATbits;
11636 #define _EICODE0 0x01
11637 #define _EICODE1_ICODE0 0x02
11638 #define _EICODE1 0x02
11639 #define _ICODE0 0x02
11640 #define _EICODE2_ICODE1 0x04
11641 #define _EICODE2 0x04
11642 #define _ICODE1 0x04
11643 #define _EICODE3_ICODE2 0x08
11644 #define _EICODE3 0x08
11645 #define _ICODE2 0x08
11646 #define _EICODE4 0x10
11647 #define _OPMODE0 0x20
11648 #define _OPMODE1 0x40
11649 #define _OPMODE2 0x80
11651 //==============================================================================
11654 //==============================================================================
11655 // CANCON Bits
11657 extern __at(0x0F6F) __sfr CANCON;
11659 typedef union
11661 struct
11663 unsigned FP0 : 1;
11664 unsigned WIN0_FP1 : 1;
11665 unsigned WIN1_FP2 : 1;
11666 unsigned WIN2_FP3 : 1;
11667 unsigned ABAT : 1;
11668 unsigned : 1;
11669 unsigned : 1;
11670 unsigned : 1;
11673 struct
11675 unsigned : 1;
11676 unsigned WIN0 : 1;
11677 unsigned WIN1 : 1;
11678 unsigned WIN2 : 1;
11679 unsigned : 1;
11680 unsigned : 1;
11681 unsigned : 1;
11682 unsigned : 1;
11685 struct
11687 unsigned : 1;
11688 unsigned FP1 : 1;
11689 unsigned FP2 : 1;
11690 unsigned FP3 : 1;
11691 unsigned : 1;
11692 unsigned : 1;
11693 unsigned : 1;
11694 unsigned : 1;
11697 struct
11699 unsigned FP : 4;
11700 unsigned : 4;
11703 struct
11705 unsigned : 1;
11706 unsigned WIN : 3;
11707 unsigned : 4;
11709 } __CANCONbits_t;
11711 extern __at(0x0F6F) volatile __CANCONbits_t CANCONbits;
11713 #define _FP0 0x01
11714 #define _WIN0_FP1 0x02
11715 #define _WIN0 0x02
11716 #define _FP1 0x02
11717 #define _WIN1_FP2 0x04
11718 #define _WIN1 0x04
11719 #define _FP2 0x04
11720 #define _WIN2_FP3 0x08
11721 #define _WIN2 0x08
11722 #define _FP3 0x08
11723 #define _ABAT 0x10
11725 //==============================================================================
11728 //==============================================================================
11729 // CIOCON Bits
11731 extern __at(0x0F70) __sfr CIOCON;
11733 typedef struct
11735 unsigned CLKSEL : 1;
11736 unsigned : 1;
11737 unsigned : 1;
11738 unsigned : 1;
11739 unsigned CANCAP : 1;
11740 unsigned ENDRHI : 1;
11741 unsigned TX2EN : 1;
11742 unsigned TX2SRC : 1;
11743 } __CIOCONbits_t;
11745 extern __at(0x0F70) volatile __CIOCONbits_t CIOCONbits;
11747 #define _CLKSEL 0x01
11748 #define _CANCAP 0x10
11749 #define _ENDRHI 0x20
11750 #define _TX2EN 0x40
11751 #define _TX2SRC 0x80
11753 //==============================================================================
11756 //==============================================================================
11757 // COMSTAT Bits
11759 extern __at(0x0F71) __sfr COMSTAT;
11761 typedef union
11763 struct
11765 unsigned EWARN : 1;
11766 unsigned RXWARN : 1;
11767 unsigned TXWARN : 1;
11768 unsigned RXBP : 1;
11769 unsigned TXBP : 1;
11770 unsigned TXBO : 1;
11771 unsigned RXB1OVFL : 1;
11772 unsigned RXB0OVFL : 1;
11775 struct
11777 unsigned : 1;
11778 unsigned : 1;
11779 unsigned : 1;
11780 unsigned : 1;
11781 unsigned : 1;
11782 unsigned : 1;
11783 unsigned : 1;
11784 unsigned NOT_FIFOEMPTY : 1;
11786 } __COMSTATbits_t;
11788 extern __at(0x0F71) volatile __COMSTATbits_t COMSTATbits;
11790 #define _EWARN 0x01
11791 #define _RXWARN 0x02
11792 #define _TXWARN 0x04
11793 #define _RXBP 0x08
11794 #define _TXBP 0x10
11795 #define _TXBO 0x20
11796 #define _RXB1OVFL 0x40
11797 #define _RXB0OVFL 0x80
11798 #define _NOT_FIFOEMPTY 0x80
11800 //==============================================================================
11803 //==============================================================================
11804 // ECANCON Bits
11806 extern __at(0x0F72) __sfr ECANCON;
11808 typedef union
11810 struct
11812 unsigned EWIN0 : 1;
11813 unsigned EWIN1 : 1;
11814 unsigned EWIN2 : 1;
11815 unsigned EWIN3 : 1;
11816 unsigned EWIN4 : 1;
11817 unsigned FIFOWM : 1;
11818 unsigned MDSEL0 : 1;
11819 unsigned MDSEL1 : 1;
11822 struct
11824 unsigned EWIN : 5;
11825 unsigned : 3;
11828 struct
11830 unsigned : 6;
11831 unsigned MDSEL : 2;
11833 } __ECANCONbits_t;
11835 extern __at(0x0F72) volatile __ECANCONbits_t ECANCONbits;
11837 #define _EWIN0 0x01
11838 #define _EWIN1 0x02
11839 #define _EWIN2 0x04
11840 #define _EWIN3 0x08
11841 #define _EWIN4 0x10
11842 #define _FIFOWM 0x20
11843 #define _MDSEL0 0x40
11844 #define _MDSEL1 0x80
11846 //==============================================================================
11848 extern __at(0x0F73) __sfr EEDATA;
11849 extern __at(0x0F74) __sfr EEADR;
11850 extern __at(0x0F75) __sfr EEADRH;
11852 //==============================================================================
11853 // PIE5 Bits
11855 extern __at(0x0F76) __sfr PIE5;
11857 typedef union
11859 struct
11861 unsigned RXB0IE : 1;
11862 unsigned RXB1IE : 1;
11863 unsigned TXB0IE : 1;
11864 unsigned TXB1IE : 1;
11865 unsigned TXB2IE : 1;
11866 unsigned ERRIE : 1;
11867 unsigned WAKIE : 1;
11868 unsigned IRXIE : 1;
11871 struct
11873 unsigned FIFOWMIE : 1;
11874 unsigned RXBnIE : 1;
11875 unsigned : 1;
11876 unsigned : 1;
11877 unsigned TXBnIE : 1;
11878 unsigned : 1;
11879 unsigned : 1;
11880 unsigned : 1;
11882 } __PIE5bits_t;
11884 extern __at(0x0F76) volatile __PIE5bits_t PIE5bits;
11886 #define _PIE5_RXB0IE 0x01
11887 #define _PIE5_FIFOWMIE 0x01
11888 #define _PIE5_RXB1IE 0x02
11889 #define _PIE5_RXBnIE 0x02
11890 #define _PIE5_TXB0IE 0x04
11891 #define _PIE5_TXB1IE 0x08
11892 #define _PIE5_TXB2IE 0x10
11893 #define _PIE5_TXBnIE 0x10
11894 #define _PIE5_ERRIE 0x20
11895 #define _PIE5_WAKIE 0x40
11896 #define _PIE5_IRXIE 0x80
11898 //==============================================================================
11901 //==============================================================================
11902 // PIR5 Bits
11904 extern __at(0x0F77) __sfr PIR5;
11906 typedef union
11908 struct
11910 unsigned RXB0IF : 1;
11911 unsigned RXB1IF : 1;
11912 unsigned TXB0IF : 1;
11913 unsigned TXB1IF : 1;
11914 unsigned TXB2IF : 1;
11915 unsigned ERRIF : 1;
11916 unsigned WAKIF : 1;
11917 unsigned IRXIF : 1;
11920 struct
11922 unsigned FIFOWMIF : 1;
11923 unsigned RXBnIF : 1;
11924 unsigned : 1;
11925 unsigned : 1;
11926 unsigned TXBnIF : 1;
11927 unsigned : 1;
11928 unsigned : 1;
11929 unsigned : 1;
11931 } __PIR5bits_t;
11933 extern __at(0x0F77) volatile __PIR5bits_t PIR5bits;
11935 #define _RXB0IF 0x01
11936 #define _FIFOWMIF 0x01
11937 #define _RXB1IF 0x02
11938 #define _RXBnIF 0x02
11939 #define _TXB0IF 0x04
11940 #define _TXB1IF 0x08
11941 #define _TXB2IF 0x10
11942 #define _TXBnIF 0x10
11943 #define _ERRIF 0x20
11944 #define _WAKIF 0x40
11945 #define _IRXIF 0x80
11947 //==============================================================================
11950 //==============================================================================
11951 // IPR5 Bits
11953 extern __at(0x0F78) __sfr IPR5;
11955 typedef union
11957 struct
11959 unsigned RXB0IP : 1;
11960 unsigned RXB1IP : 1;
11961 unsigned TXB0IP : 1;
11962 unsigned TXB1IP : 1;
11963 unsigned TXB2IP : 1;
11964 unsigned ERRIP : 1;
11965 unsigned WAKIP : 1;
11966 unsigned IRXIP : 1;
11969 struct
11971 unsigned FIFOWMIP : 1;
11972 unsigned RXBnIP : 1;
11973 unsigned : 1;
11974 unsigned : 1;
11975 unsigned TXBnIP : 1;
11976 unsigned : 1;
11977 unsigned : 1;
11978 unsigned : 1;
11980 } __IPR5bits_t;
11982 extern __at(0x0F78) volatile __IPR5bits_t IPR5bits;
11984 #define _RXB0IP 0x01
11985 #define _FIFOWMIP 0x01
11986 #define _RXB1IP 0x02
11987 #define _RXBnIP 0x02
11988 #define _TXB0IP 0x04
11989 #define _TXB1IP 0x08
11990 #define _TXB2IP 0x10
11991 #define _TXBnIP 0x10
11992 #define _ERRIP 0x20
11993 #define _WAKIP 0x40
11994 #define _IRXIP 0x80
11996 //==============================================================================
11998 extern __at(0x0F79) __sfr TXREG2;
11999 extern __at(0x0F7A) __sfr RCREG2;
12000 extern __at(0x0F7B) __sfr SPBRG2;
12001 extern __at(0x0F7C) __sfr SPBRGH2;
12002 extern __at(0x0F7D) __sfr SPBRGH1;
12003 extern __at(0x0F7E) __sfr EECON2;
12005 //==============================================================================
12006 // EECON1 Bits
12008 extern __at(0x0F7F) __sfr EECON1;
12010 typedef struct
12012 unsigned RD : 1;
12013 unsigned WR : 1;
12014 unsigned WREN : 1;
12015 unsigned WRERR : 1;
12016 unsigned FREE : 1;
12017 unsigned : 1;
12018 unsigned CFGS : 1;
12019 unsigned EEPGD : 1;
12020 } __EECON1bits_t;
12022 extern __at(0x0F7F) volatile __EECON1bits_t EECON1bits;
12024 #define _RD 0x01
12025 #define _WR 0x02
12026 #define _WREN 0x04
12027 #define _WRERR 0x08
12028 #define _FREE 0x10
12029 #define _CFGS 0x40
12030 #define _EEPGD 0x80
12032 //==============================================================================
12035 //==============================================================================
12036 // PORTA Bits
12038 extern __at(0x0F80) __sfr PORTA;
12040 typedef struct
12042 unsigned RA0 : 1;
12043 unsigned RA1 : 1;
12044 unsigned RA2 : 1;
12045 unsigned RA3 : 1;
12046 unsigned : 1;
12047 unsigned RA5 : 1;
12048 unsigned RA6 : 1;
12049 unsigned RA7 : 1;
12050 } __PORTAbits_t;
12052 extern __at(0x0F80) volatile __PORTAbits_t PORTAbits;
12054 #define _RA0 0x01
12055 #define _RA1 0x02
12056 #define _RA2 0x04
12057 #define _RA3 0x08
12058 #define _RA5 0x20
12059 #define _RA6 0x40
12060 #define _RA7 0x80
12062 //==============================================================================
12065 //==============================================================================
12066 // PORTB Bits
12068 extern __at(0x0F81) __sfr PORTB;
12070 typedef struct
12072 unsigned RB0 : 1;
12073 unsigned RB1 : 1;
12074 unsigned RB2 : 1;
12075 unsigned RB3 : 1;
12076 unsigned RB4 : 1;
12077 unsigned RB5 : 1;
12078 unsigned RB6 : 1;
12079 unsigned RB7 : 1;
12080 } __PORTBbits_t;
12082 extern __at(0x0F81) volatile __PORTBbits_t PORTBbits;
12084 #define _PORTB_RB0 0x01
12085 #define _PORTB_RB1 0x02
12086 #define _PORTB_RB2 0x04
12087 #define _PORTB_RB3 0x08
12088 #define _PORTB_RB4 0x10
12089 #define _PORTB_RB5 0x20
12090 #define _PORTB_RB6 0x40
12091 #define _PORTB_RB7 0x80
12093 //==============================================================================
12096 //==============================================================================
12097 // PORTC Bits
12099 extern __at(0x0F82) __sfr PORTC;
12101 typedef struct
12103 unsigned RC0 : 1;
12104 unsigned RC1 : 1;
12105 unsigned RC2 : 1;
12106 unsigned RC3 : 1;
12107 unsigned RC4 : 1;
12108 unsigned RC5 : 1;
12109 unsigned RC6 : 1;
12110 unsigned RC7 : 1;
12111 } __PORTCbits_t;
12113 extern __at(0x0F82) volatile __PORTCbits_t PORTCbits;
12115 #define _RC0 0x01
12116 #define _RC1 0x02
12117 #define _RC2 0x04
12118 #define _RC3 0x08
12119 #define _RC4 0x10
12120 #define _RC5 0x20
12121 #define _RC6 0x40
12122 #define _RC7 0x80
12124 //==============================================================================
12127 //==============================================================================
12128 // PORTD Bits
12130 extern __at(0x0F83) __sfr PORTD;
12132 typedef struct
12134 unsigned RD0 : 1;
12135 unsigned RD1 : 1;
12136 unsigned RD2 : 1;
12137 unsigned RD3 : 1;
12138 unsigned RD4 : 1;
12139 unsigned RD5 : 1;
12140 unsigned RD6 : 1;
12141 unsigned RD7 : 1;
12142 } __PORTDbits_t;
12144 extern __at(0x0F83) volatile __PORTDbits_t PORTDbits;
12146 #define _RD0 0x01
12147 #define _RD1 0x02
12148 #define _RD2 0x04
12149 #define _RD3 0x08
12150 #define _RD4 0x10
12151 #define _RD5 0x20
12152 #define _RD6 0x40
12153 #define _RD7 0x80
12155 //==============================================================================
12158 //==============================================================================
12159 // PORTE Bits
12161 extern __at(0x0F84) __sfr PORTE;
12163 typedef struct
12165 unsigned RE0 : 1;
12166 unsigned RE1 : 1;
12167 unsigned RE2 : 1;
12168 unsigned RE3 : 1;
12169 unsigned RE4 : 1;
12170 unsigned RE5 : 1;
12171 unsigned RE6 : 1;
12172 unsigned RE7 : 1;
12173 } __PORTEbits_t;
12175 extern __at(0x0F84) volatile __PORTEbits_t PORTEbits;
12177 #define _RE0 0x01
12178 #define _RE1 0x02
12179 #define _RE2 0x04
12180 #define _RE3 0x08
12181 #define _RE4 0x10
12182 #define _RE5 0x20
12183 #define _RE6 0x40
12184 #define _RE7 0x80
12186 //==============================================================================
12189 //==============================================================================
12190 // PORTF Bits
12192 extern __at(0x0F85) __sfr PORTF;
12194 typedef struct
12196 unsigned RF0 : 1;
12197 unsigned RF1 : 1;
12198 unsigned RF2 : 1;
12199 unsigned RF3 : 1;
12200 unsigned RF4 : 1;
12201 unsigned RF5 : 1;
12202 unsigned RF6 : 1;
12203 unsigned RF7 : 1;
12204 } __PORTFbits_t;
12206 extern __at(0x0F85) volatile __PORTFbits_t PORTFbits;
12208 #define _RF0 0x01
12209 #define _RF1 0x02
12210 #define _RF2 0x04
12211 #define _RF3 0x08
12212 #define _RF4 0x10
12213 #define _RF5 0x20
12214 #define _RF6 0x40
12215 #define _RF7 0x80
12217 //==============================================================================
12220 //==============================================================================
12221 // PORTG Bits
12223 extern __at(0x0F86) __sfr PORTG;
12225 typedef union
12227 struct
12229 unsigned RG0 : 1;
12230 unsigned RG1 : 1;
12231 unsigned RG2 : 1;
12232 unsigned RG3 : 1;
12233 unsigned RG4 : 1;
12234 unsigned : 1;
12235 unsigned : 1;
12236 unsigned : 1;
12239 struct
12241 unsigned RG : 5;
12242 unsigned : 3;
12244 } __PORTGbits_t;
12246 extern __at(0x0F86) volatile __PORTGbits_t PORTGbits;
12248 #define _RG0 0x01
12249 #define _RG1 0x02
12250 #define _RG2 0x04
12251 #define _RG3 0x08
12252 #define _RG4 0x10
12254 //==============================================================================
12256 extern __at(0x0F87) __sfr TMR4;
12258 //==============================================================================
12259 // T4CON Bits
12261 extern __at(0x0F88) __sfr T4CON;
12263 typedef union
12265 struct
12267 unsigned T4CKPS0 : 1;
12268 unsigned T4CKPS1 : 1;
12269 unsigned TMR4ON : 1;
12270 unsigned T4OUTPS0 : 1;
12271 unsigned T4OUTPS1 : 1;
12272 unsigned T4OUTPS2 : 1;
12273 unsigned T4OUTPS3 : 1;
12274 unsigned : 1;
12277 struct
12279 unsigned T4CKPS : 2;
12280 unsigned : 6;
12283 struct
12285 unsigned : 3;
12286 unsigned T4OUTPS : 4;
12287 unsigned : 1;
12289 } __T4CONbits_t;
12291 extern __at(0x0F88) volatile __T4CONbits_t T4CONbits;
12293 #define _T4CKPS0 0x01
12294 #define _T4CKPS1 0x02
12295 #define _TMR4ON 0x04
12296 #define _T4OUTPS0 0x08
12297 #define _T4OUTPS1 0x10
12298 #define _T4OUTPS2 0x20
12299 #define _T4OUTPS3 0x40
12301 //==============================================================================
12304 //==============================================================================
12305 // LATA Bits
12307 extern __at(0x0F89) __sfr LATA;
12309 typedef struct
12311 unsigned LATA0 : 1;
12312 unsigned LATA1 : 1;
12313 unsigned LATA2 : 1;
12314 unsigned LATA3 : 1;
12315 unsigned : 1;
12316 unsigned LATA5 : 1;
12317 unsigned LATA6 : 1;
12318 unsigned LATA7 : 1;
12319 } __LATAbits_t;
12321 extern __at(0x0F89) volatile __LATAbits_t LATAbits;
12323 #define _LATA0 0x01
12324 #define _LATA1 0x02
12325 #define _LATA2 0x04
12326 #define _LATA3 0x08
12327 #define _LATA5 0x20
12328 #define _LATA6 0x40
12329 #define _LATA7 0x80
12331 //==============================================================================
12334 //==============================================================================
12335 // LATB Bits
12337 extern __at(0x0F8A) __sfr LATB;
12339 typedef struct
12341 unsigned LATB0 : 1;
12342 unsigned LATB1 : 1;
12343 unsigned LATB2 : 1;
12344 unsigned LATB3 : 1;
12345 unsigned LATB4 : 1;
12346 unsigned LATB5 : 1;
12347 unsigned LATB6 : 1;
12348 unsigned LATB7 : 1;
12349 } __LATBbits_t;
12351 extern __at(0x0F8A) volatile __LATBbits_t LATBbits;
12353 #define _LATB0 0x01
12354 #define _LATB1 0x02
12355 #define _LATB2 0x04
12356 #define _LATB3 0x08
12357 #define _LATB4 0x10
12358 #define _LATB5 0x20
12359 #define _LATB6 0x40
12360 #define _LATB7 0x80
12362 //==============================================================================
12365 //==============================================================================
12366 // LATC Bits
12368 extern __at(0x0F8B) __sfr LATC;
12370 typedef struct
12372 unsigned LATC0 : 1;
12373 unsigned LATC1 : 1;
12374 unsigned LATC2 : 1;
12375 unsigned LATC3 : 1;
12376 unsigned LATC4 : 1;
12377 unsigned LATC5 : 1;
12378 unsigned LATC6 : 1;
12379 unsigned LATC7 : 1;
12380 } __LATCbits_t;
12382 extern __at(0x0F8B) volatile __LATCbits_t LATCbits;
12384 #define _LATC0 0x01
12385 #define _LATC1 0x02
12386 #define _LATC2 0x04
12387 #define _LATC3 0x08
12388 #define _LATC4 0x10
12389 #define _LATC5 0x20
12390 #define _LATC6 0x40
12391 #define _LATC7 0x80
12393 //==============================================================================
12396 //==============================================================================
12397 // LATD Bits
12399 extern __at(0x0F8C) __sfr LATD;
12401 typedef struct
12403 unsigned LATD0 : 1;
12404 unsigned LATD1 : 1;
12405 unsigned LATD2 : 1;
12406 unsigned LATD3 : 1;
12407 unsigned LATD4 : 1;
12408 unsigned LATD5 : 1;
12409 unsigned LATD6 : 1;
12410 unsigned LATD7 : 1;
12411 } __LATDbits_t;
12413 extern __at(0x0F8C) volatile __LATDbits_t LATDbits;
12415 #define _LATD0 0x01
12416 #define _LATD1 0x02
12417 #define _LATD2 0x04
12418 #define _LATD3 0x08
12419 #define _LATD4 0x10
12420 #define _LATD5 0x20
12421 #define _LATD6 0x40
12422 #define _LATD7 0x80
12424 //==============================================================================
12427 //==============================================================================
12428 // LATE Bits
12430 extern __at(0x0F8D) __sfr LATE;
12432 typedef struct
12434 unsigned LATE0 : 1;
12435 unsigned LATE1 : 1;
12436 unsigned LATE2 : 1;
12437 unsigned : 1;
12438 unsigned LATE4 : 1;
12439 unsigned LATE5 : 1;
12440 unsigned LATE6 : 1;
12441 unsigned LATE7 : 1;
12442 } __LATEbits_t;
12444 extern __at(0x0F8D) volatile __LATEbits_t LATEbits;
12446 #define _LATE0 0x01
12447 #define _LATE1 0x02
12448 #define _LATE2 0x04
12449 #define _LATE4 0x10
12450 #define _LATE5 0x20
12451 #define _LATE6 0x40
12452 #define _LATE7 0x80
12454 //==============================================================================
12457 //==============================================================================
12458 // LATF Bits
12460 extern __at(0x0F8E) __sfr LATF;
12462 typedef struct
12464 unsigned LATF0 : 1;
12465 unsigned LATF1 : 1;
12466 unsigned LATF2 : 1;
12467 unsigned LATF3 : 1;
12468 unsigned LATF4 : 1;
12469 unsigned LATF5 : 1;
12470 unsigned LATF6 : 1;
12471 unsigned LATF7 : 1;
12472 } __LATFbits_t;
12474 extern __at(0x0F8E) volatile __LATFbits_t LATFbits;
12476 #define _LATF0 0x01
12477 #define _LATF1 0x02
12478 #define _LATF2 0x04
12479 #define _LATF3 0x08
12480 #define _LATF4 0x10
12481 #define _LATF5 0x20
12482 #define _LATF6 0x40
12483 #define _LATF7 0x80
12485 //==============================================================================
12488 //==============================================================================
12489 // LATG Bits
12491 extern __at(0x0F8F) __sfr LATG;
12493 typedef union
12495 struct
12497 unsigned LATG0 : 1;
12498 unsigned LATG1 : 1;
12499 unsigned LATG2 : 1;
12500 unsigned LATG3 : 1;
12501 unsigned LATG4 : 1;
12502 unsigned : 1;
12503 unsigned : 1;
12504 unsigned : 1;
12507 struct
12509 unsigned LATG : 5;
12510 unsigned : 3;
12512 } __LATGbits_t;
12514 extern __at(0x0F8F) volatile __LATGbits_t LATGbits;
12516 #define _LATG0 0x01
12517 #define _LATG1 0x02
12518 #define _LATG2 0x04
12519 #define _LATG3 0x08
12520 #define _LATG4 0x10
12522 //==============================================================================
12525 //==============================================================================
12526 // SLRCON Bits
12528 extern __at(0x0F90) __sfr SLRCON;
12530 typedef struct
12532 unsigned SLRA : 1;
12533 unsigned SLRB : 1;
12534 unsigned SLRC : 1;
12535 unsigned SLRD : 1;
12536 unsigned SLRE : 1;
12537 unsigned SLRF : 1;
12538 unsigned SLRG : 1;
12539 unsigned : 1;
12540 } __SLRCONbits_t;
12542 extern __at(0x0F90) volatile __SLRCONbits_t SLRCONbits;
12544 #define _SLRA 0x01
12545 #define _SLRB 0x02
12546 #define _SLRC 0x04
12547 #define _SLRD 0x08
12548 #define _SLRE 0x10
12549 #define _SLRF 0x20
12550 #define _SLRG 0x40
12552 //==============================================================================
12555 //==============================================================================
12556 // ODCON Bits
12558 extern __at(0x0F91) __sfr ODCON;
12560 typedef struct
12562 unsigned U1OD : 1;
12563 unsigned U2OD : 1;
12564 unsigned CCP1OD : 1;
12565 unsigned CCP2OD : 1;
12566 unsigned CCP3OD : 1;
12567 unsigned CCP4OD : 1;
12568 unsigned CCP5OD : 1;
12569 unsigned SSPOD : 1;
12570 } __ODCONbits_t;
12572 extern __at(0x0F91) volatile __ODCONbits_t ODCONbits;
12574 #define _U1OD 0x01
12575 #define _U2OD 0x02
12576 #define _CCP1OD 0x04
12577 #define _CCP2OD 0x08
12578 #define _CCP3OD 0x10
12579 #define _CCP4OD 0x20
12580 #define _CCP5OD 0x40
12581 #define _SSPOD 0x80
12583 //==============================================================================
12586 //==============================================================================
12587 // TRISA Bits
12589 extern __at(0x0F92) __sfr TRISA;
12591 typedef struct
12593 unsigned TRISA0 : 1;
12594 unsigned TRISA1 : 1;
12595 unsigned TRISA2 : 1;
12596 unsigned TRISA3 : 1;
12597 unsigned : 1;
12598 unsigned TRISA5 : 1;
12599 unsigned TRISA6 : 1;
12600 unsigned TRISA7 : 1;
12601 } __TRISAbits_t;
12603 extern __at(0x0F92) volatile __TRISAbits_t TRISAbits;
12605 #define _TRISA0 0x01
12606 #define _TRISA1 0x02
12607 #define _TRISA2 0x04
12608 #define _TRISA3 0x08
12609 #define _TRISA5 0x20
12610 #define _TRISA6 0x40
12611 #define _TRISA7 0x80
12613 //==============================================================================
12616 //==============================================================================
12617 // TRISB Bits
12619 extern __at(0x0F93) __sfr TRISB;
12621 typedef struct
12623 unsigned TRISB0 : 1;
12624 unsigned TRISB1 : 1;
12625 unsigned TRISB2 : 1;
12626 unsigned TRISB3 : 1;
12627 unsigned TRISB4 : 1;
12628 unsigned TRISB5 : 1;
12629 unsigned TRISB6 : 1;
12630 unsigned TRISB7 : 1;
12631 } __TRISBbits_t;
12633 extern __at(0x0F93) volatile __TRISBbits_t TRISBbits;
12635 #define _TRISB0 0x01
12636 #define _TRISB1 0x02
12637 #define _TRISB2 0x04
12638 #define _TRISB3 0x08
12639 #define _TRISB4 0x10
12640 #define _TRISB5 0x20
12641 #define _TRISB6 0x40
12642 #define _TRISB7 0x80
12644 //==============================================================================
12647 //==============================================================================
12648 // TRISC Bits
12650 extern __at(0x0F94) __sfr TRISC;
12652 typedef struct
12654 unsigned TRISC0 : 1;
12655 unsigned TRISC1 : 1;
12656 unsigned TRISC2 : 1;
12657 unsigned TRISC3 : 1;
12658 unsigned TRISC4 : 1;
12659 unsigned TRISC5 : 1;
12660 unsigned TRISC6 : 1;
12661 unsigned TRISC7 : 1;
12662 } __TRISCbits_t;
12664 extern __at(0x0F94) volatile __TRISCbits_t TRISCbits;
12666 #define _TRISC0 0x01
12667 #define _TRISC1 0x02
12668 #define _TRISC2 0x04
12669 #define _TRISC3 0x08
12670 #define _TRISC4 0x10
12671 #define _TRISC5 0x20
12672 #define _TRISC6 0x40
12673 #define _TRISC7 0x80
12675 //==============================================================================
12678 //==============================================================================
12679 // TRISD Bits
12681 extern __at(0x0F95) __sfr TRISD;
12683 typedef struct
12685 unsigned TRISD0 : 1;
12686 unsigned TRISD1 : 1;
12687 unsigned TRISD2 : 1;
12688 unsigned TRISD3 : 1;
12689 unsigned TRISD4 : 1;
12690 unsigned TRISD5 : 1;
12691 unsigned TRISD6 : 1;
12692 unsigned TRISD7 : 1;
12693 } __TRISDbits_t;
12695 extern __at(0x0F95) volatile __TRISDbits_t TRISDbits;
12697 #define _TRISD0 0x01
12698 #define _TRISD1 0x02
12699 #define _TRISD2 0x04
12700 #define _TRISD3 0x08
12701 #define _TRISD4 0x10
12702 #define _TRISD5 0x20
12703 #define _TRISD6 0x40
12704 #define _TRISD7 0x80
12706 //==============================================================================
12709 //==============================================================================
12710 // TRISE Bits
12712 extern __at(0x0F96) __sfr TRISE;
12714 typedef struct
12716 unsigned TRISE0 : 1;
12717 unsigned TRISE1 : 1;
12718 unsigned TRISE2 : 1;
12719 unsigned : 1;
12720 unsigned TRISE4 : 1;
12721 unsigned TRISE5 : 1;
12722 unsigned TRISE6 : 1;
12723 unsigned TRISE7 : 1;
12724 } __TRISEbits_t;
12726 extern __at(0x0F96) volatile __TRISEbits_t TRISEbits;
12728 #define _TRISE0 0x01
12729 #define _TRISE1 0x02
12730 #define _TRISE2 0x04
12731 #define _TRISE4 0x10
12732 #define _TRISE5 0x20
12733 #define _TRISE6 0x40
12734 #define _TRISE7 0x80
12736 //==============================================================================
12739 //==============================================================================
12740 // TRISF Bits
12742 extern __at(0x0F97) __sfr TRISF;
12744 typedef struct
12746 unsigned TRISF0 : 1;
12747 unsigned TRISF1 : 1;
12748 unsigned TRISF2 : 1;
12749 unsigned TRISF3 : 1;
12750 unsigned TRISF4 : 1;
12751 unsigned TRISF5 : 1;
12752 unsigned TRISF6 : 1;
12753 unsigned TRISF7 : 1;
12754 } __TRISFbits_t;
12756 extern __at(0x0F97) volatile __TRISFbits_t TRISFbits;
12758 #define _TRISF0 0x01
12759 #define _TRISF1 0x02
12760 #define _TRISF2 0x04
12761 #define _TRISF3 0x08
12762 #define _TRISF4 0x10
12763 #define _TRISF5 0x20
12764 #define _TRISF6 0x40
12765 #define _TRISF7 0x80
12767 //==============================================================================
12770 //==============================================================================
12771 // TRISG Bits
12773 extern __at(0x0F98) __sfr TRISG;
12775 typedef union
12777 struct
12779 unsigned TRISG0 : 1;
12780 unsigned TRISG1 : 1;
12781 unsigned TRISG2 : 1;
12782 unsigned TRISG3 : 1;
12783 unsigned TRISG4 : 1;
12784 unsigned : 1;
12785 unsigned : 1;
12786 unsigned : 1;
12789 struct
12791 unsigned TRISG : 5;
12792 unsigned : 3;
12794 } __TRISGbits_t;
12796 extern __at(0x0F98) volatile __TRISGbits_t TRISGbits;
12798 #define _TRISG0 0x01
12799 #define _TRISG1 0x02
12800 #define _TRISG2 0x04
12801 #define _TRISG3 0x08
12802 #define _TRISG4 0x10
12804 //==============================================================================
12807 //==============================================================================
12808 // CCPTMRS Bits
12810 extern __at(0x0F99) __sfr CCPTMRS;
12812 typedef struct
12814 unsigned C1TSEL : 1;
12815 unsigned C2TSEL : 1;
12816 unsigned C3TSEL : 1;
12817 unsigned C4TSEL : 1;
12818 unsigned C5TSEL : 1;
12819 unsigned : 1;
12820 unsigned : 1;
12821 unsigned : 1;
12822 } __CCPTMRSbits_t;
12824 extern __at(0x0F99) volatile __CCPTMRSbits_t CCPTMRSbits;
12826 #define _C1TSEL 0x01
12827 #define _C2TSEL 0x02
12828 #define _C3TSEL 0x04
12829 #define _C4TSEL 0x08
12830 #define _C5TSEL 0x10
12832 //==============================================================================
12835 //==============================================================================
12836 // REFOCON Bits
12838 extern __at(0x0F9A) __sfr REFOCON;
12840 typedef union
12842 struct
12844 unsigned RODIV0 : 1;
12845 unsigned RODIV1 : 1;
12846 unsigned RODIV2 : 1;
12847 unsigned RODIV3 : 1;
12848 unsigned ROSEL : 1;
12849 unsigned ROSSLP : 1;
12850 unsigned : 1;
12851 unsigned ROON : 1;
12854 struct
12856 unsigned RODIV : 4;
12857 unsigned : 4;
12859 } __REFOCONbits_t;
12861 extern __at(0x0F9A) volatile __REFOCONbits_t REFOCONbits;
12863 #define _RODIV0 0x01
12864 #define _RODIV1 0x02
12865 #define _RODIV2 0x04
12866 #define _RODIV3 0x08
12867 #define _ROSEL 0x10
12868 #define _ROSSLP 0x20
12869 #define _ROON 0x80
12871 //==============================================================================
12874 //==============================================================================
12875 // OSCTUNE Bits
12877 extern __at(0x0F9B) __sfr OSCTUNE;
12879 typedef union
12881 struct
12883 unsigned TUN0 : 1;
12884 unsigned TUN1 : 1;
12885 unsigned TUN2 : 1;
12886 unsigned TUN3 : 1;
12887 unsigned TUN4 : 1;
12888 unsigned TUN5 : 1;
12889 unsigned PLLEN : 1;
12890 unsigned INTSRC : 1;
12893 struct
12895 unsigned TUN : 6;
12896 unsigned : 2;
12898 } __OSCTUNEbits_t;
12900 extern __at(0x0F9B) volatile __OSCTUNEbits_t OSCTUNEbits;
12902 #define _TUN0 0x01
12903 #define _TUN1 0x02
12904 #define _TUN2 0x04
12905 #define _TUN3 0x08
12906 #define _TUN4 0x10
12907 #define _TUN5 0x20
12908 #define _PLLEN 0x40
12909 #define _INTSRC 0x80
12911 //==============================================================================
12914 //==============================================================================
12915 // PSTR1CON Bits
12917 extern __at(0x0F9C) __sfr PSTR1CON;
12919 typedef union
12921 struct
12923 unsigned STRA : 1;
12924 unsigned STRB : 1;
12925 unsigned STRC : 1;
12926 unsigned STRD : 1;
12927 unsigned STRSYNC : 1;
12928 unsigned : 1;
12929 unsigned CMPL0 : 1;
12930 unsigned CMPL1 : 1;
12933 struct
12935 unsigned : 6;
12936 unsigned CMPL : 2;
12938 } __PSTR1CONbits_t;
12940 extern __at(0x0F9C) volatile __PSTR1CONbits_t PSTR1CONbits;
12942 #define _STRA 0x01
12943 #define _STRB 0x02
12944 #define _STRC 0x04
12945 #define _STRD 0x08
12946 #define _STRSYNC 0x10
12947 #define _CMPL0 0x40
12948 #define _CMPL1 0x80
12950 //==============================================================================
12953 //==============================================================================
12954 // PIE1 Bits
12956 extern __at(0x0F9D) __sfr PIE1;
12958 typedef union
12960 struct
12962 unsigned TMR1IE : 1;
12963 unsigned TMR2IE : 1;
12964 unsigned TMR1GIE : 1;
12965 unsigned SSPIE : 1;
12966 unsigned TX1IE : 1;
12967 unsigned RC1IE : 1;
12968 unsigned ADIE : 1;
12969 unsigned PSPIE : 1;
12972 struct
12974 unsigned : 1;
12975 unsigned : 1;
12976 unsigned : 1;
12977 unsigned : 1;
12978 unsigned TXIE : 1;
12979 unsigned RCIE : 1;
12980 unsigned : 1;
12981 unsigned : 1;
12983 } __PIE1bits_t;
12985 extern __at(0x0F9D) volatile __PIE1bits_t PIE1bits;
12987 #define _TMR1IE 0x01
12988 #define _TMR2IE 0x02
12989 #define _TMR1GIE 0x04
12990 #define _SSPIE 0x08
12991 #define _TX1IE 0x10
12992 #define _TXIE 0x10
12993 #define _RC1IE 0x20
12994 #define _RCIE 0x20
12995 #define _ADIE 0x40
12996 #define _PSPIE 0x80
12998 //==============================================================================
13001 //==============================================================================
13002 // PIR1 Bits
13004 extern __at(0x0F9E) __sfr PIR1;
13006 typedef union
13008 struct
13010 unsigned TMR1IF : 1;
13011 unsigned TMR2IF : 1;
13012 unsigned TMR1GIF : 1;
13013 unsigned SSPIF : 1;
13014 unsigned TX1IF : 1;
13015 unsigned RC1IF : 1;
13016 unsigned ADIF : 1;
13017 unsigned PSPIF : 1;
13020 struct
13022 unsigned : 1;
13023 unsigned : 1;
13024 unsigned : 1;
13025 unsigned : 1;
13026 unsigned TXIF : 1;
13027 unsigned RCIF : 1;
13028 unsigned : 1;
13029 unsigned : 1;
13031 } __PIR1bits_t;
13033 extern __at(0x0F9E) volatile __PIR1bits_t PIR1bits;
13035 #define _TMR1IF 0x01
13036 #define _TMR2IF 0x02
13037 #define _TMR1GIF 0x04
13038 #define _SSPIF 0x08
13039 #define _TX1IF 0x10
13040 #define _TXIF 0x10
13041 #define _RC1IF 0x20
13042 #define _RCIF 0x20
13043 #define _ADIF 0x40
13044 #define _PSPIF 0x80
13046 //==============================================================================
13049 //==============================================================================
13050 // IPR1 Bits
13052 extern __at(0x0F9F) __sfr IPR1;
13054 typedef union
13056 struct
13058 unsigned TMR1IP : 1;
13059 unsigned TMR2IP : 1;
13060 unsigned TMR1GIP : 1;
13061 unsigned SSPIP : 1;
13062 unsigned TX1IP : 1;
13063 unsigned RC1IP : 1;
13064 unsigned ADIP : 1;
13065 unsigned PSPIP : 1;
13068 struct
13070 unsigned : 1;
13071 unsigned : 1;
13072 unsigned : 1;
13073 unsigned : 1;
13074 unsigned TXIP : 1;
13075 unsigned RCIP : 1;
13076 unsigned : 1;
13077 unsigned : 1;
13079 } __IPR1bits_t;
13081 extern __at(0x0F9F) volatile __IPR1bits_t IPR1bits;
13083 #define _TMR1IP 0x01
13084 #define _TMR2IP 0x02
13085 #define _TMR1GIP 0x04
13086 #define _SSPIP 0x08
13087 #define _TX1IP 0x10
13088 #define _TXIP 0x10
13089 #define _RC1IP 0x20
13090 #define _RCIP 0x20
13091 #define _ADIP 0x40
13092 #define _PSPIP 0x80
13094 //==============================================================================
13097 //==============================================================================
13098 // PIE2 Bits
13100 extern __at(0x0FA0) __sfr PIE2;
13102 typedef union
13104 struct
13106 unsigned TMR3GIE : 1;
13107 unsigned TMR3IE : 1;
13108 unsigned HLVDIE : 1;
13109 unsigned BCLIE : 1;
13110 unsigned : 1;
13111 unsigned : 1;
13112 unsigned : 1;
13113 unsigned OSCFIE : 1;
13116 struct
13118 unsigned : 1;
13119 unsigned : 1;
13120 unsigned LVDIE : 1;
13121 unsigned : 1;
13122 unsigned : 1;
13123 unsigned : 1;
13124 unsigned : 1;
13125 unsigned : 1;
13127 } __PIE2bits_t;
13129 extern __at(0x0FA0) volatile __PIE2bits_t PIE2bits;
13131 #define _TMR3GIE 0x01
13132 #define _TMR3IE 0x02
13133 #define _HLVDIE 0x04
13134 #define _LVDIE 0x04
13135 #define _BCLIE 0x08
13136 #define _OSCFIE 0x80
13138 //==============================================================================
13141 //==============================================================================
13142 // PIR2 Bits
13144 extern __at(0x0FA1) __sfr PIR2;
13146 typedef union
13148 struct
13150 unsigned TMR3GIF : 1;
13151 unsigned TMR3IF : 1;
13152 unsigned HLVDIF : 1;
13153 unsigned BCLIF : 1;
13154 unsigned : 1;
13155 unsigned : 1;
13156 unsigned : 1;
13157 unsigned OSCFIF : 1;
13160 struct
13162 unsigned : 1;
13163 unsigned : 1;
13164 unsigned LVDIF : 1;
13165 unsigned : 1;
13166 unsigned : 1;
13167 unsigned : 1;
13168 unsigned : 1;
13169 unsigned : 1;
13171 } __PIR2bits_t;
13173 extern __at(0x0FA1) volatile __PIR2bits_t PIR2bits;
13175 #define _TMR3GIF 0x01
13176 #define _TMR3IF 0x02
13177 #define _HLVDIF 0x04
13178 #define _LVDIF 0x04
13179 #define _BCLIF 0x08
13180 #define _OSCFIF 0x80
13182 //==============================================================================
13185 //==============================================================================
13186 // IPR2 Bits
13188 extern __at(0x0FA2) __sfr IPR2;
13190 typedef union
13192 struct
13194 unsigned TMR3GIP : 1;
13195 unsigned TMR3IP : 1;
13196 unsigned HLVDIP : 1;
13197 unsigned BCLIP : 1;
13198 unsigned : 1;
13199 unsigned : 1;
13200 unsigned : 1;
13201 unsigned OSCFIP : 1;
13204 struct
13206 unsigned : 1;
13207 unsigned : 1;
13208 unsigned LVDIP : 1;
13209 unsigned : 1;
13210 unsigned : 1;
13211 unsigned : 1;
13212 unsigned : 1;
13213 unsigned : 1;
13215 } __IPR2bits_t;
13217 extern __at(0x0FA2) volatile __IPR2bits_t IPR2bits;
13219 #define _TMR3GIP 0x01
13220 #define _TMR3IP 0x02
13221 #define _HLVDIP 0x04
13222 #define _LVDIP 0x04
13223 #define _BCLIP 0x08
13224 #define _OSCFIP 0x80
13226 //==============================================================================
13229 //==============================================================================
13230 // PIE3 Bits
13232 extern __at(0x0FA3) __sfr PIE3;
13234 typedef struct
13236 unsigned : 1;
13237 unsigned CCP1IE : 1;
13238 unsigned CCP2IE : 1;
13239 unsigned CTMUIE : 1;
13240 unsigned TX2IE : 1;
13241 unsigned RC2IE : 1;
13242 unsigned : 1;
13243 unsigned : 1;
13244 } __PIE3bits_t;
13246 extern __at(0x0FA3) volatile __PIE3bits_t PIE3bits;
13248 #define _CCP1IE 0x02
13249 #define _CCP2IE 0x04
13250 #define _CTMUIE 0x08
13251 #define _TX2IE 0x10
13252 #define _RC2IE 0x20
13254 //==============================================================================
13257 //==============================================================================
13258 // PIR3 Bits
13260 extern __at(0x0FA4) __sfr PIR3;
13262 typedef struct
13264 unsigned : 1;
13265 unsigned CCP1IF : 1;
13266 unsigned CCP2IF : 1;
13267 unsigned CTMUIF : 1;
13268 unsigned TX2IF : 1;
13269 unsigned RC2IF : 1;
13270 unsigned : 1;
13271 unsigned : 1;
13272 } __PIR3bits_t;
13274 extern __at(0x0FA4) volatile __PIR3bits_t PIR3bits;
13276 #define _CCP1IF 0x02
13277 #define _CCP2IF 0x04
13278 #define _CTMUIF 0x08
13279 #define _TX2IF 0x10
13280 #define _RC2IF 0x20
13282 //==============================================================================
13285 //==============================================================================
13286 // IPR3 Bits
13288 extern __at(0x0FA5) __sfr IPR3;
13290 typedef struct
13292 unsigned : 1;
13293 unsigned CCP1IP : 1;
13294 unsigned CCP2IP : 1;
13295 unsigned CTMUIP : 1;
13296 unsigned TX2IP : 1;
13297 unsigned RC2IP : 1;
13298 unsigned : 1;
13299 unsigned : 1;
13300 } __IPR3bits_t;
13302 extern __at(0x0FA5) volatile __IPR3bits_t IPR3bits;
13304 #define _CCP1IP 0x02
13305 #define _CCP2IP 0x04
13306 #define _CTMUIP 0x08
13307 #define _TX2IP 0x10
13308 #define _RC2IP 0x20
13310 //==============================================================================
13313 //==============================================================================
13314 // RCSTA2 Bits
13316 extern __at(0x0FA6) __sfr RCSTA2;
13318 typedef union
13320 struct
13322 unsigned RX9D : 1;
13323 unsigned OERR : 1;
13324 unsigned FERR : 1;
13325 unsigned ADDEN : 1;
13326 unsigned CREN : 1;
13327 unsigned SREN : 1;
13328 unsigned RX9 : 1;
13329 unsigned SPEN : 1;
13332 struct
13334 unsigned RX9D2 : 1;
13335 unsigned OERR2 : 1;
13336 unsigned FERR2 : 1;
13337 unsigned ADDEN2 : 1;
13338 unsigned CREN2 : 1;
13339 unsigned SREN2 : 1;
13340 unsigned RX92 : 1;
13341 unsigned SPEN2 : 1;
13343 } __RCSTA2bits_t;
13345 extern __at(0x0FA6) volatile __RCSTA2bits_t RCSTA2bits;
13347 #define _RCSTA2_RX9D 0x01
13348 #define _RCSTA2_RX9D2 0x01
13349 #define _RCSTA2_OERR 0x02
13350 #define _RCSTA2_OERR2 0x02
13351 #define _RCSTA2_FERR 0x04
13352 #define _RCSTA2_FERR2 0x04
13353 #define _RCSTA2_ADDEN 0x08
13354 #define _RCSTA2_ADDEN2 0x08
13355 #define _RCSTA2_CREN 0x10
13356 #define _RCSTA2_CREN2 0x10
13357 #define _RCSTA2_SREN 0x20
13358 #define _RCSTA2_SREN2 0x20
13359 #define _RCSTA2_RX9 0x40
13360 #define _RCSTA2_RX92 0x40
13361 #define _RCSTA2_SPEN 0x80
13362 #define _RCSTA2_SPEN2 0x80
13364 //==============================================================================
13367 //==============================================================================
13368 // BAUDCON1 Bits
13370 extern __at(0x0FA7) __sfr BAUDCON1;
13372 typedef union
13374 struct
13376 unsigned ABDEN : 1;
13377 unsigned WUE : 1;
13378 unsigned : 1;
13379 unsigned BRG16 : 1;
13380 unsigned TXCKP : 1;
13381 unsigned RXDTP : 1;
13382 unsigned RCIDL : 1;
13383 unsigned ABDOVF : 1;
13386 struct
13388 unsigned : 1;
13389 unsigned : 1;
13390 unsigned : 1;
13391 unsigned : 1;
13392 unsigned : 1;
13393 unsigned : 1;
13394 unsigned RCMT : 1;
13395 unsigned : 1;
13397 } __BAUDCON1bits_t;
13399 extern __at(0x0FA7) volatile __BAUDCON1bits_t BAUDCON1bits;
13401 #define _ABDEN 0x01
13402 #define _WUE 0x02
13403 #define _BRG16 0x08
13404 #define _TXCKP 0x10
13405 #define _RXDTP 0x20
13406 #define _RCIDL 0x40
13407 #define _RCMT 0x40
13408 #define _ABDOVF 0x80
13410 //==============================================================================
13413 //==============================================================================
13414 // HLVDCON Bits
13416 extern __at(0x0FA8) __sfr HLVDCON;
13418 typedef union
13420 struct
13422 unsigned HLVDL0 : 1;
13423 unsigned HLVDL1 : 1;
13424 unsigned HLVDL2 : 1;
13425 unsigned HLVDL3 : 1;
13426 unsigned HLVDEN : 1;
13427 unsigned IRVST : 1;
13428 unsigned BGVST : 1;
13429 unsigned VDIRMAG : 1;
13432 struct
13434 unsigned HLVDL : 4;
13435 unsigned : 4;
13437 } __HLVDCONbits_t;
13439 extern __at(0x0FA8) volatile __HLVDCONbits_t HLVDCONbits;
13441 #define _HLVDL0 0x01
13442 #define _HLVDL1 0x02
13443 #define _HLVDL2 0x04
13444 #define _HLVDL3 0x08
13445 #define _HLVDEN 0x10
13446 #define _IRVST 0x20
13447 #define _BGVST 0x40
13448 #define _VDIRMAG 0x80
13450 //==============================================================================
13452 extern __at(0x0FA9) __sfr PR4;
13454 //==============================================================================
13455 // T1GCON Bits
13457 extern __at(0x0FAA) __sfr T1GCON;
13459 typedef union
13461 struct
13463 unsigned T1GSS0 : 1;
13464 unsigned T1GSS1 : 1;
13465 unsigned T1GVAL : 1;
13466 unsigned T1GGO_NOT_T1DONE : 1;
13467 unsigned T1GSPM : 1;
13468 unsigned T1GTM : 1;
13469 unsigned T1GPOL : 1;
13470 unsigned TMR1GE : 1;
13473 struct
13475 unsigned : 1;
13476 unsigned : 1;
13477 unsigned : 1;
13478 unsigned T1GGO : 1;
13479 unsigned : 1;
13480 unsigned : 1;
13481 unsigned : 1;
13482 unsigned : 1;
13485 struct
13487 unsigned : 1;
13488 unsigned : 1;
13489 unsigned : 1;
13490 unsigned NOT_T1DONE : 1;
13491 unsigned : 1;
13492 unsigned : 1;
13493 unsigned : 1;
13494 unsigned : 1;
13497 struct
13499 unsigned T1GSS : 2;
13500 unsigned : 6;
13502 } __T1GCONbits_t;
13504 extern __at(0x0FAA) volatile __T1GCONbits_t T1GCONbits;
13506 #define _T1GSS0 0x01
13507 #define _T1GSS1 0x02
13508 #define _T1GVAL 0x04
13509 #define _T1GGO_NOT_T1DONE 0x08
13510 #define _T1GGO 0x08
13511 #define _NOT_T1DONE 0x08
13512 #define _T1GSPM 0x10
13513 #define _T1GTM 0x20
13514 #define _T1GPOL 0x40
13515 #define _TMR1GE 0x80
13517 //==============================================================================
13520 //==============================================================================
13521 // RCSTA Bits
13523 extern __at(0x0FAB) __sfr RCSTA;
13525 typedef union
13527 struct
13529 unsigned RX9D : 1;
13530 unsigned OERR : 1;
13531 unsigned FERR : 1;
13532 unsigned ADDEN : 1;
13533 unsigned CREN : 1;
13534 unsigned SREN : 1;
13535 unsigned RX9 : 1;
13536 unsigned SPEN : 1;
13539 struct
13541 unsigned RCD8 : 1;
13542 unsigned OERR1 : 1;
13543 unsigned FERR1 : 1;
13544 unsigned ADEN : 1;
13545 unsigned CREN1 : 1;
13546 unsigned SREN1 : 1;
13547 unsigned RC9 : 1;
13548 unsigned SPEN1 : 1;
13551 struct
13553 unsigned RX9D1 : 1;
13554 unsigned : 1;
13555 unsigned : 1;
13556 unsigned ADDEN1 : 1;
13557 unsigned : 1;
13558 unsigned : 1;
13559 unsigned NOT_RC8 : 1;
13560 unsigned : 1;
13563 struct
13565 unsigned : 1;
13566 unsigned : 1;
13567 unsigned : 1;
13568 unsigned : 1;
13569 unsigned : 1;
13570 unsigned : 1;
13571 unsigned RC8_9 : 1;
13572 unsigned : 1;
13575 struct
13577 unsigned : 1;
13578 unsigned : 1;
13579 unsigned : 1;
13580 unsigned : 1;
13581 unsigned : 1;
13582 unsigned : 1;
13583 unsigned RX91 : 1;
13584 unsigned : 1;
13586 } __RCSTAbits_t;
13588 extern __at(0x0FAB) volatile __RCSTAbits_t RCSTAbits;
13590 #define _RX9D 0x01
13591 #define _RCD8 0x01
13592 #define _RX9D1 0x01
13593 #define _OERR 0x02
13594 #define _OERR1 0x02
13595 #define _FERR 0x04
13596 #define _FERR1 0x04
13597 #define _ADDEN 0x08
13598 #define _ADEN 0x08
13599 #define _ADDEN1 0x08
13600 #define _CREN 0x10
13601 #define _CREN1 0x10
13602 #define _SREN 0x20
13603 #define _SREN1 0x20
13604 #define _RX9 0x40
13605 #define _RC9 0x40
13606 #define _NOT_RC8 0x40
13607 #define _RC8_9 0x40
13608 #define _RX91 0x40
13609 #define _SPEN 0x80
13610 #define _SPEN1 0x80
13612 //==============================================================================
13615 //==============================================================================
13616 // RCSTA1 Bits
13618 extern __at(0x0FAB) __sfr RCSTA1;
13620 typedef union
13622 struct
13624 unsigned RX9D : 1;
13625 unsigned OERR : 1;
13626 unsigned FERR : 1;
13627 unsigned ADDEN : 1;
13628 unsigned CREN : 1;
13629 unsigned SREN : 1;
13630 unsigned RX9 : 1;
13631 unsigned SPEN : 1;
13634 struct
13636 unsigned RCD8 : 1;
13637 unsigned OERR1 : 1;
13638 unsigned FERR1 : 1;
13639 unsigned ADEN : 1;
13640 unsigned CREN1 : 1;
13641 unsigned SREN1 : 1;
13642 unsigned RC9 : 1;
13643 unsigned SPEN1 : 1;
13646 struct
13648 unsigned RX9D1 : 1;
13649 unsigned : 1;
13650 unsigned : 1;
13651 unsigned ADDEN1 : 1;
13652 unsigned : 1;
13653 unsigned : 1;
13654 unsigned NOT_RC8 : 1;
13655 unsigned : 1;
13658 struct
13660 unsigned : 1;
13661 unsigned : 1;
13662 unsigned : 1;
13663 unsigned : 1;
13664 unsigned : 1;
13665 unsigned : 1;
13666 unsigned RC8_9 : 1;
13667 unsigned : 1;
13670 struct
13672 unsigned : 1;
13673 unsigned : 1;
13674 unsigned : 1;
13675 unsigned : 1;
13676 unsigned : 1;
13677 unsigned : 1;
13678 unsigned RX91 : 1;
13679 unsigned : 1;
13681 } __RCSTA1bits_t;
13683 extern __at(0x0FAB) volatile __RCSTA1bits_t RCSTA1bits;
13685 #define _RCSTA1_RX9D 0x01
13686 #define _RCSTA1_RCD8 0x01
13687 #define _RCSTA1_RX9D1 0x01
13688 #define _RCSTA1_OERR 0x02
13689 #define _RCSTA1_OERR1 0x02
13690 #define _RCSTA1_FERR 0x04
13691 #define _RCSTA1_FERR1 0x04
13692 #define _RCSTA1_ADDEN 0x08
13693 #define _RCSTA1_ADEN 0x08
13694 #define _RCSTA1_ADDEN1 0x08
13695 #define _RCSTA1_CREN 0x10
13696 #define _RCSTA1_CREN1 0x10
13697 #define _RCSTA1_SREN 0x20
13698 #define _RCSTA1_SREN1 0x20
13699 #define _RCSTA1_RX9 0x40
13700 #define _RCSTA1_RC9 0x40
13701 #define _RCSTA1_NOT_RC8 0x40
13702 #define _RCSTA1_RC8_9 0x40
13703 #define _RCSTA1_RX91 0x40
13704 #define _RCSTA1_SPEN 0x80
13705 #define _RCSTA1_SPEN1 0x80
13707 //==============================================================================
13710 //==============================================================================
13711 // TXSTA Bits
13713 extern __at(0x0FAC) __sfr TXSTA;
13715 typedef union
13717 struct
13719 unsigned TX9D : 1;
13720 unsigned TRMT : 1;
13721 unsigned BRGH : 1;
13722 unsigned SENDB : 1;
13723 unsigned SYNC : 1;
13724 unsigned TXEN : 1;
13725 unsigned TX9 : 1;
13726 unsigned CSRC : 1;
13729 struct
13731 unsigned TXD8 : 1;
13732 unsigned TRMT1 : 1;
13733 unsigned BRGH1 : 1;
13734 unsigned SENDB1 : 1;
13735 unsigned SYNC1 : 1;
13736 unsigned TXEN1 : 1;
13737 unsigned TX8_9 : 1;
13738 unsigned CSRC1 : 1;
13741 struct
13743 unsigned TX9D1 : 1;
13744 unsigned : 1;
13745 unsigned : 1;
13746 unsigned : 1;
13747 unsigned : 1;
13748 unsigned : 1;
13749 unsigned NOT_TX8 : 1;
13750 unsigned : 1;
13753 struct
13755 unsigned : 1;
13756 unsigned : 1;
13757 unsigned : 1;
13758 unsigned : 1;
13759 unsigned : 1;
13760 unsigned : 1;
13761 unsigned TX91 : 1;
13762 unsigned : 1;
13764 } __TXSTAbits_t;
13766 extern __at(0x0FAC) volatile __TXSTAbits_t TXSTAbits;
13768 #define _TX9D 0x01
13769 #define _TXD8 0x01
13770 #define _TX9D1 0x01
13771 #define _TRMT 0x02
13772 #define _TRMT1 0x02
13773 #define _BRGH 0x04
13774 #define _BRGH1 0x04
13775 #define _SENDB 0x08
13776 #define _SENDB1 0x08
13777 #define _SYNC 0x10
13778 #define _SYNC1 0x10
13779 #define _TXEN 0x20
13780 #define _TXEN1 0x20
13781 #define _TX9 0x40
13782 #define _TX8_9 0x40
13783 #define _NOT_TX8 0x40
13784 #define _TX91 0x40
13785 #define _CSRC 0x80
13786 #define _CSRC1 0x80
13788 //==============================================================================
13791 //==============================================================================
13792 // TXSTA1 Bits
13794 extern __at(0x0FAC) __sfr TXSTA1;
13796 typedef union
13798 struct
13800 unsigned TX9D : 1;
13801 unsigned TRMT : 1;
13802 unsigned BRGH : 1;
13803 unsigned SENDB : 1;
13804 unsigned SYNC : 1;
13805 unsigned TXEN : 1;
13806 unsigned TX9 : 1;
13807 unsigned CSRC : 1;
13810 struct
13812 unsigned TXD8 : 1;
13813 unsigned TRMT1 : 1;
13814 unsigned BRGH1 : 1;
13815 unsigned SENDB1 : 1;
13816 unsigned SYNC1 : 1;
13817 unsigned TXEN1 : 1;
13818 unsigned TX8_9 : 1;
13819 unsigned CSRC1 : 1;
13822 struct
13824 unsigned TX9D1 : 1;
13825 unsigned : 1;
13826 unsigned : 1;
13827 unsigned : 1;
13828 unsigned : 1;
13829 unsigned : 1;
13830 unsigned NOT_TX8 : 1;
13831 unsigned : 1;
13834 struct
13836 unsigned : 1;
13837 unsigned : 1;
13838 unsigned : 1;
13839 unsigned : 1;
13840 unsigned : 1;
13841 unsigned : 1;
13842 unsigned TX91 : 1;
13843 unsigned : 1;
13845 } __TXSTA1bits_t;
13847 extern __at(0x0FAC) volatile __TXSTA1bits_t TXSTA1bits;
13849 #define _TXSTA1_TX9D 0x01
13850 #define _TXSTA1_TXD8 0x01
13851 #define _TXSTA1_TX9D1 0x01
13852 #define _TXSTA1_TRMT 0x02
13853 #define _TXSTA1_TRMT1 0x02
13854 #define _TXSTA1_BRGH 0x04
13855 #define _TXSTA1_BRGH1 0x04
13856 #define _TXSTA1_SENDB 0x08
13857 #define _TXSTA1_SENDB1 0x08
13858 #define _TXSTA1_SYNC 0x10
13859 #define _TXSTA1_SYNC1 0x10
13860 #define _TXSTA1_TXEN 0x20
13861 #define _TXSTA1_TXEN1 0x20
13862 #define _TXSTA1_TX9 0x40
13863 #define _TXSTA1_TX8_9 0x40
13864 #define _TXSTA1_NOT_TX8 0x40
13865 #define _TXSTA1_TX91 0x40
13866 #define _TXSTA1_CSRC 0x80
13867 #define _TXSTA1_CSRC1 0x80
13869 //==============================================================================
13871 extern __at(0x0FAD) __sfr TXREG;
13872 extern __at(0x0FAD) __sfr TXREG1;
13873 extern __at(0x0FAE) __sfr RCREG;
13874 extern __at(0x0FAE) __sfr RCREG1;
13875 extern __at(0x0FAF) __sfr SPBRG;
13876 extern __at(0x0FAF) __sfr SPBRG1;
13878 //==============================================================================
13879 // T3GCON Bits
13881 extern __at(0x0FB0) __sfr T3GCON;
13883 typedef union
13885 struct
13887 unsigned T3GSS0 : 1;
13888 unsigned T3GSS1 : 1;
13889 unsigned T3GVAL : 1;
13890 unsigned T3GGO_NOT_T3DONE : 1;
13891 unsigned T3GSPM : 1;
13892 unsigned T3GTM : 1;
13893 unsigned T3GPOL : 1;
13894 unsigned TMR3GE : 1;
13897 struct
13899 unsigned : 1;
13900 unsigned : 1;
13901 unsigned : 1;
13902 unsigned T3GGO : 1;
13903 unsigned : 1;
13904 unsigned : 1;
13905 unsigned : 1;
13906 unsigned : 1;
13909 struct
13911 unsigned : 1;
13912 unsigned : 1;
13913 unsigned : 1;
13914 unsigned NOT_T3DONE : 1;
13915 unsigned : 1;
13916 unsigned : 1;
13917 unsigned : 1;
13918 unsigned : 1;
13921 struct
13923 unsigned T3GSS : 2;
13924 unsigned : 6;
13926 } __T3GCONbits_t;
13928 extern __at(0x0FB0) volatile __T3GCONbits_t T3GCONbits;
13930 #define _T3GSS0 0x01
13931 #define _T3GSS1 0x02
13932 #define _T3GVAL 0x04
13933 #define _T3GGO_NOT_T3DONE 0x08
13934 #define _T3GGO 0x08
13935 #define _NOT_T3DONE 0x08
13936 #define _T3GSPM 0x10
13937 #define _T3GTM 0x20
13938 #define _T3GPOL 0x40
13939 #define _TMR3GE 0x80
13941 //==============================================================================
13944 //==============================================================================
13945 // T3CON Bits
13947 extern __at(0x0FB1) __sfr T3CON;
13949 typedef union
13951 struct
13953 unsigned TMR3ON : 1;
13954 unsigned RD16 : 1;
13955 unsigned NOT_T3SYNC : 1;
13956 unsigned SOSCEN : 1;
13957 unsigned T3CKPS0 : 1;
13958 unsigned T3CKPS1 : 1;
13959 unsigned TMR3CS0 : 1;
13960 unsigned TMR3CS1 : 1;
13963 struct
13965 unsigned : 4;
13966 unsigned T3CKPS : 2;
13967 unsigned : 2;
13970 struct
13972 unsigned : 6;
13973 unsigned TMR3CS : 2;
13975 } __T3CONbits_t;
13977 extern __at(0x0FB1) volatile __T3CONbits_t T3CONbits;
13979 #define _T3CON_TMR3ON 0x01
13980 #define _T3CON_RD16 0x02
13981 #define _T3CON_NOT_T3SYNC 0x04
13982 #define _T3CON_SOSCEN 0x08
13983 #define _T3CON_T3CKPS0 0x10
13984 #define _T3CON_T3CKPS1 0x20
13985 #define _T3CON_TMR3CS0 0x40
13986 #define _T3CON_TMR3CS1 0x80
13988 //==============================================================================
13990 extern __at(0x0FB2) __sfr TMR3;
13991 extern __at(0x0FB2) __sfr TMR3L;
13992 extern __at(0x0FB3) __sfr TMR3H;
13994 //==============================================================================
13995 // CMSTAT Bits
13997 extern __at(0x0FB4) __sfr CMSTAT;
13999 typedef struct
14001 unsigned : 1;
14002 unsigned : 1;
14003 unsigned : 1;
14004 unsigned : 1;
14005 unsigned : 1;
14006 unsigned : 1;
14007 unsigned CMP1OUT : 1;
14008 unsigned CMP2OUT : 1;
14009 } __CMSTATbits_t;
14011 extern __at(0x0FB4) volatile __CMSTATbits_t CMSTATbits;
14013 #define _CMP1OUT 0x40
14014 #define _CMP2OUT 0x80
14016 //==============================================================================
14019 //==============================================================================
14020 // CMSTATUS Bits
14022 extern __at(0x0FB4) __sfr CMSTATUS;
14024 typedef struct
14026 unsigned : 1;
14027 unsigned : 1;
14028 unsigned : 1;
14029 unsigned : 1;
14030 unsigned : 1;
14031 unsigned : 1;
14032 unsigned CMP1OUT : 1;
14033 unsigned CMP2OUT : 1;
14034 } __CMSTATUSbits_t;
14036 extern __at(0x0FB4) volatile __CMSTATUSbits_t CMSTATUSbits;
14038 #define _CMSTATUS_CMP1OUT 0x40
14039 #define _CMSTATUS_CMP2OUT 0x80
14041 //==============================================================================
14044 //==============================================================================
14045 // CVRCON Bits
14047 extern __at(0x0FB5) __sfr CVRCON;
14049 typedef union
14051 struct
14053 unsigned CVR0 : 1;
14054 unsigned CVR1 : 1;
14055 unsigned CVR2 : 1;
14056 unsigned CVR3 : 1;
14057 unsigned CVR4 : 1;
14058 unsigned CVRSS : 1;
14059 unsigned CVROE : 1;
14060 unsigned CVREN : 1;
14063 struct
14065 unsigned CVR : 5;
14066 unsigned : 3;
14068 } __CVRCONbits_t;
14070 extern __at(0x0FB5) volatile __CVRCONbits_t CVRCONbits;
14072 #define _CVR0 0x01
14073 #define _CVR1 0x02
14074 #define _CVR2 0x04
14075 #define _CVR3 0x08
14076 #define _CVR4 0x10
14077 #define _CVRSS 0x20
14078 #define _CVROE 0x40
14079 #define _CVREN 0x80
14081 //==============================================================================
14084 //==============================================================================
14085 // PIE4 Bits
14087 extern __at(0x0FB6) __sfr PIE4;
14089 typedef struct
14091 unsigned CCP3IE : 1;
14092 unsigned CCP4IE : 1;
14093 unsigned CCP5IE : 1;
14094 unsigned : 1;
14095 unsigned CMP1IE : 1;
14096 unsigned CMP2IE : 1;
14097 unsigned EEIE : 1;
14098 unsigned TMR4IE : 1;
14099 } __PIE4bits_t;
14101 extern __at(0x0FB6) volatile __PIE4bits_t PIE4bits;
14103 #define _CCP3IE 0x01
14104 #define _CCP4IE 0x02
14105 #define _CCP5IE 0x04
14106 #define _CMP1IE 0x10
14107 #define _CMP2IE 0x20
14108 #define _EEIE 0x40
14109 #define _TMR4IE 0x80
14111 //==============================================================================
14114 //==============================================================================
14115 // PIR4 Bits
14117 extern __at(0x0FB7) __sfr PIR4;
14119 typedef struct
14121 unsigned CCP3IF : 1;
14122 unsigned CCP4IF : 1;
14123 unsigned CCP5IF : 1;
14124 unsigned : 1;
14125 unsigned CMP1IF : 1;
14126 unsigned CMP2IF : 1;
14127 unsigned EEIF : 1;
14128 unsigned TMR4IF : 1;
14129 } __PIR4bits_t;
14131 extern __at(0x0FB7) volatile __PIR4bits_t PIR4bits;
14133 #define _CCP3IF 0x01
14134 #define _CCP4IF 0x02
14135 #define _CCP5IF 0x04
14136 #define _CMP1IF 0x10
14137 #define _CMP2IF 0x20
14138 #define _EEIF 0x40
14139 #define _TMR4IF 0x80
14141 //==============================================================================
14144 //==============================================================================
14145 // IPR4 Bits
14147 extern __at(0x0FB8) __sfr IPR4;
14149 typedef struct
14151 unsigned CCP3IP : 1;
14152 unsigned CCP4IP : 1;
14153 unsigned CCP5IP : 1;
14154 unsigned : 1;
14155 unsigned CMP1IP : 1;
14156 unsigned CMP2IP : 1;
14157 unsigned EEIP : 1;
14158 unsigned TMR4IP : 1;
14159 } __IPR4bits_t;
14161 extern __at(0x0FB8) volatile __IPR4bits_t IPR4bits;
14163 #define _CCP3IP 0x01
14164 #define _CCP4IP 0x02
14165 #define _CCP5IP 0x04
14166 #define _CMP1IP 0x10
14167 #define _CMP2IP 0x20
14168 #define _EEIP 0x40
14169 #define _TMR4IP 0x80
14171 //==============================================================================
14174 //==============================================================================
14175 // BAUDCON2 Bits
14177 extern __at(0x0FB9) __sfr BAUDCON2;
14179 typedef union
14181 struct
14183 unsigned ABDEN : 1;
14184 unsigned WUE : 1;
14185 unsigned : 1;
14186 unsigned BRG16 : 1;
14187 unsigned TXCKP : 1;
14188 unsigned RXDTP : 1;
14189 unsigned RCIDL : 1;
14190 unsigned ABDOVF : 1;
14193 struct
14195 unsigned : 1;
14196 unsigned : 1;
14197 unsigned : 1;
14198 unsigned : 1;
14199 unsigned : 1;
14200 unsigned : 1;
14201 unsigned RCMT : 1;
14202 unsigned : 1;
14204 } __BAUDCON2bits_t;
14206 extern __at(0x0FB9) volatile __BAUDCON2bits_t BAUDCON2bits;
14208 #define _BAUDCON2_ABDEN 0x01
14209 #define _BAUDCON2_WUE 0x02
14210 #define _BAUDCON2_BRG16 0x08
14211 #define _BAUDCON2_TXCKP 0x10
14212 #define _BAUDCON2_RXDTP 0x20
14213 #define _BAUDCON2_RCIDL 0x40
14214 #define _BAUDCON2_RCMT 0x40
14215 #define _BAUDCON2_ABDOVF 0x80
14217 //==============================================================================
14220 //==============================================================================
14221 // TXSTA2 Bits
14223 extern __at(0x0FBA) __sfr TXSTA2;
14225 typedef union
14227 struct
14229 unsigned TX9D : 1;
14230 unsigned TRMT : 1;
14231 unsigned BRGH : 1;
14232 unsigned SENDB : 1;
14233 unsigned SYNC : 1;
14234 unsigned TXEN : 1;
14235 unsigned TX9 : 1;
14236 unsigned CSRC : 1;
14239 struct
14241 unsigned TX9D2 : 1;
14242 unsigned TRMT2 : 1;
14243 unsigned BRGH2 : 1;
14244 unsigned SENDB2 : 1;
14245 unsigned SYNC2 : 1;
14246 unsigned TXEN2 : 1;
14247 unsigned TX92 : 1;
14248 unsigned CSRC2 : 1;
14250 } __TXSTA2bits_t;
14252 extern __at(0x0FBA) volatile __TXSTA2bits_t TXSTA2bits;
14254 #define _TXSTA2_TX9D 0x01
14255 #define _TXSTA2_TX9D2 0x01
14256 #define _TXSTA2_TRMT 0x02
14257 #define _TXSTA2_TRMT2 0x02
14258 #define _TXSTA2_BRGH 0x04
14259 #define _TXSTA2_BRGH2 0x04
14260 #define _TXSTA2_SENDB 0x08
14261 #define _TXSTA2_SENDB2 0x08
14262 #define _TXSTA2_SYNC 0x10
14263 #define _TXSTA2_SYNC2 0x10
14264 #define _TXSTA2_TXEN 0x20
14265 #define _TXSTA2_TXEN2 0x20
14266 #define _TXSTA2_TX9 0x40
14267 #define _TXSTA2_TX92 0x40
14268 #define _TXSTA2_CSRC 0x80
14269 #define _TXSTA2_CSRC2 0x80
14271 //==============================================================================
14274 //==============================================================================
14275 // CCP1CON Bits
14277 extern __at(0x0FBB) __sfr CCP1CON;
14279 typedef union
14281 struct
14283 unsigned CCP1M0 : 1;
14284 unsigned CCP1M1 : 1;
14285 unsigned CCP1M2 : 1;
14286 unsigned CCP1M3 : 1;
14287 unsigned DC1B0 : 1;
14288 unsigned DC1B1 : 1;
14289 unsigned P1M0 : 1;
14290 unsigned P1M1 : 1;
14293 struct
14295 unsigned : 1;
14296 unsigned : 1;
14297 unsigned : 1;
14298 unsigned : 1;
14299 unsigned CCP1Y : 1;
14300 unsigned CCP1X : 1;
14301 unsigned : 1;
14302 unsigned : 1;
14305 struct
14307 unsigned CCP1M : 4;
14308 unsigned : 4;
14311 struct
14313 unsigned : 4;
14314 unsigned DC1B : 2;
14315 unsigned : 2;
14318 struct
14320 unsigned : 6;
14321 unsigned P1M : 2;
14323 } __CCP1CONbits_t;
14325 extern __at(0x0FBB) volatile __CCP1CONbits_t CCP1CONbits;
14327 #define _CCP1M0 0x01
14328 #define _CCP1M1 0x02
14329 #define _CCP1M2 0x04
14330 #define _CCP1M3 0x08
14331 #define _DC1B0 0x10
14332 #define _CCP1Y 0x10
14333 #define _DC1B1 0x20
14334 #define _CCP1X 0x20
14335 #define _P1M0 0x40
14336 #define _P1M1 0x80
14338 //==============================================================================
14341 //==============================================================================
14342 // ECCP1CON Bits
14344 extern __at(0x0FBB) __sfr ECCP1CON;
14346 typedef union
14348 struct
14350 unsigned CCP1M0 : 1;
14351 unsigned CCP1M1 : 1;
14352 unsigned CCP1M2 : 1;
14353 unsigned CCP1M3 : 1;
14354 unsigned DC1B0 : 1;
14355 unsigned DC1B1 : 1;
14356 unsigned P1M0 : 1;
14357 unsigned P1M1 : 1;
14360 struct
14362 unsigned : 1;
14363 unsigned : 1;
14364 unsigned : 1;
14365 unsigned : 1;
14366 unsigned CCP1Y : 1;
14367 unsigned CCP1X : 1;
14368 unsigned : 1;
14369 unsigned : 1;
14372 struct
14374 unsigned CCP1M : 4;
14375 unsigned : 4;
14378 struct
14380 unsigned : 4;
14381 unsigned DC1B : 2;
14382 unsigned : 2;
14385 struct
14387 unsigned : 6;
14388 unsigned P1M : 2;
14390 } __ECCP1CONbits_t;
14392 extern __at(0x0FBB) volatile __ECCP1CONbits_t ECCP1CONbits;
14394 #define _ECCP1CON_CCP1M0 0x01
14395 #define _ECCP1CON_CCP1M1 0x02
14396 #define _ECCP1CON_CCP1M2 0x04
14397 #define _ECCP1CON_CCP1M3 0x08
14398 #define _ECCP1CON_DC1B0 0x10
14399 #define _ECCP1CON_CCP1Y 0x10
14400 #define _ECCP1CON_DC1B1 0x20
14401 #define _ECCP1CON_CCP1X 0x20
14402 #define _ECCP1CON_P1M0 0x40
14403 #define _ECCP1CON_P1M1 0x80
14405 //==============================================================================
14407 extern __at(0x0FBC) __sfr CCPR1;
14408 extern __at(0x0FBC) __sfr CCPR1L;
14409 extern __at(0x0FBD) __sfr CCPR1H;
14411 //==============================================================================
14412 // ECCP1DEL Bits
14414 extern __at(0x0FBE) __sfr ECCP1DEL;
14416 typedef union
14418 struct
14420 unsigned P1DC0 : 1;
14421 unsigned P1DC1 : 1;
14422 unsigned P1DC2 : 1;
14423 unsigned P1DC3 : 1;
14424 unsigned P1DC4 : 1;
14425 unsigned P1DC5 : 1;
14426 unsigned P1DC6 : 1;
14427 unsigned P1RSEN : 1;
14430 struct
14432 unsigned P1DC : 7;
14433 unsigned : 1;
14435 } __ECCP1DELbits_t;
14437 extern __at(0x0FBE) volatile __ECCP1DELbits_t ECCP1DELbits;
14439 #define _P1DC0 0x01
14440 #define _P1DC1 0x02
14441 #define _P1DC2 0x04
14442 #define _P1DC3 0x08
14443 #define _P1DC4 0x10
14444 #define _P1DC5 0x20
14445 #define _P1DC6 0x40
14446 #define _P1RSEN 0x80
14448 //==============================================================================
14451 //==============================================================================
14452 // PWM1CON Bits
14454 extern __at(0x0FBE) __sfr PWM1CON;
14456 typedef union
14458 struct
14460 unsigned P1DC0 : 1;
14461 unsigned P1DC1 : 1;
14462 unsigned P1DC2 : 1;
14463 unsigned P1DC3 : 1;
14464 unsigned P1DC4 : 1;
14465 unsigned P1DC5 : 1;
14466 unsigned P1DC6 : 1;
14467 unsigned P1RSEN : 1;
14470 struct
14472 unsigned P1DC : 7;
14473 unsigned : 1;
14475 } __PWM1CONbits_t;
14477 extern __at(0x0FBE) volatile __PWM1CONbits_t PWM1CONbits;
14479 #define _PWM1CON_P1DC0 0x01
14480 #define _PWM1CON_P1DC1 0x02
14481 #define _PWM1CON_P1DC2 0x04
14482 #define _PWM1CON_P1DC3 0x08
14483 #define _PWM1CON_P1DC4 0x10
14484 #define _PWM1CON_P1DC5 0x20
14485 #define _PWM1CON_P1DC6 0x40
14486 #define _PWM1CON_P1RSEN 0x80
14488 //==============================================================================
14491 //==============================================================================
14492 // ECCP1AS Bits
14494 extern __at(0x0FBF) __sfr ECCP1AS;
14496 typedef union
14498 struct
14500 unsigned PSS1BD0 : 1;
14501 unsigned PSS1BD1 : 1;
14502 unsigned PSS1AC0 : 1;
14503 unsigned PSS1AC1 : 1;
14504 unsigned ECCP1AS0 : 1;
14505 unsigned ECCP1AS1 : 1;
14506 unsigned ECCP1AS2 : 1;
14507 unsigned ECCP1ASE : 1;
14510 struct
14512 unsigned PSS1BD : 2;
14513 unsigned : 6;
14516 struct
14518 unsigned : 2;
14519 unsigned PSS1AC : 2;
14520 unsigned : 4;
14523 struct
14525 unsigned : 4;
14526 unsigned ECCP1AS : 3;
14527 unsigned : 1;
14529 } __ECCP1ASbits_t;
14531 extern __at(0x0FBF) volatile __ECCP1ASbits_t ECCP1ASbits;
14533 #define _PSS1BD0 0x01
14534 #define _PSS1BD1 0x02
14535 #define _PSS1AC0 0x04
14536 #define _PSS1AC1 0x08
14537 #define _ECCP1AS0 0x10
14538 #define _ECCP1AS1 0x20
14539 #define _ECCP1AS2 0x40
14540 #define _ECCP1ASE 0x80
14542 //==============================================================================
14545 //==============================================================================
14546 // ADCON2 Bits
14548 extern __at(0x0FC0) __sfr ADCON2;
14550 typedef union
14552 struct
14554 unsigned ADCS0 : 1;
14555 unsigned ADCS1 : 1;
14556 unsigned ADCS2 : 1;
14557 unsigned ACQT0 : 1;
14558 unsigned ACQT1 : 1;
14559 unsigned ACQT2 : 1;
14560 unsigned : 1;
14561 unsigned ADFM : 1;
14564 struct
14566 unsigned ADCS : 3;
14567 unsigned : 5;
14570 struct
14572 unsigned : 3;
14573 unsigned ACQT : 3;
14574 unsigned : 2;
14576 } __ADCON2bits_t;
14578 extern __at(0x0FC0) volatile __ADCON2bits_t ADCON2bits;
14580 #define _ADCS0 0x01
14581 #define _ADCS1 0x02
14582 #define _ADCS2 0x04
14583 #define _ACQT0 0x08
14584 #define _ACQT1 0x10
14585 #define _ACQT2 0x20
14586 #define _ADFM 0x80
14588 //==============================================================================
14591 //==============================================================================
14592 // ADCON1 Bits
14594 extern __at(0x0FC1) __sfr ADCON1;
14596 typedef union
14598 struct
14600 unsigned CHSN0 : 1;
14601 unsigned CHSN1 : 1;
14602 unsigned CHSN2 : 1;
14603 unsigned VNCFG : 1;
14604 unsigned VCFG0 : 1;
14605 unsigned VCFG1 : 1;
14606 unsigned TRIGSEL0 : 1;
14607 unsigned TRIGSEL1 : 1;
14610 struct
14612 unsigned CHSN : 3;
14613 unsigned : 5;
14616 struct
14618 unsigned : 4;
14619 unsigned VCFG : 2;
14620 unsigned : 2;
14623 struct
14625 unsigned : 6;
14626 unsigned TRIGSEL : 2;
14628 } __ADCON1bits_t;
14630 extern __at(0x0FC1) volatile __ADCON1bits_t ADCON1bits;
14632 #define _CHSN0 0x01
14633 #define _CHSN1 0x02
14634 #define _CHSN2 0x04
14635 #define _VNCFG 0x08
14636 #define _VCFG0 0x10
14637 #define _VCFG1 0x20
14638 #define _TRIGSEL0 0x40
14639 #define _TRIGSEL1 0x80
14641 //==============================================================================
14644 //==============================================================================
14645 // ADCON0 Bits
14647 extern __at(0x0FC2) __sfr ADCON0;
14649 typedef union
14651 struct
14653 unsigned ADON : 1;
14654 unsigned GO_NOT_DONE : 1;
14655 unsigned CHS0 : 1;
14656 unsigned CHS1 : 1;
14657 unsigned CHS2 : 1;
14658 unsigned CHS3 : 1;
14659 unsigned CHS4 : 1;
14660 unsigned : 1;
14663 struct
14665 unsigned : 1;
14666 unsigned DONE : 1;
14667 unsigned : 1;
14668 unsigned : 1;
14669 unsigned : 1;
14670 unsigned : 1;
14671 unsigned : 1;
14672 unsigned : 1;
14675 struct
14677 unsigned : 1;
14678 unsigned GO : 1;
14679 unsigned : 1;
14680 unsigned : 1;
14681 unsigned : 1;
14682 unsigned : 1;
14683 unsigned : 1;
14684 unsigned : 1;
14687 struct
14689 unsigned : 1;
14690 unsigned NOT_DONE : 1;
14691 unsigned : 1;
14692 unsigned : 1;
14693 unsigned : 1;
14694 unsigned : 1;
14695 unsigned : 1;
14696 unsigned : 1;
14699 struct
14701 unsigned : 2;
14702 unsigned CHS : 5;
14703 unsigned : 1;
14705 } __ADCON0bits_t;
14707 extern __at(0x0FC2) volatile __ADCON0bits_t ADCON0bits;
14709 #define _ADON 0x01
14710 #define _GO_NOT_DONE 0x02
14711 #define _DONE 0x02
14712 #define _GO 0x02
14713 #define _NOT_DONE 0x02
14714 #define _CHS0 0x04
14715 #define _CHS1 0x08
14716 #define _CHS2 0x10
14717 #define _CHS3 0x20
14718 #define _CHS4 0x40
14720 //==============================================================================
14722 extern __at(0x0FC3) __sfr ADRES;
14723 extern __at(0x0FC3) __sfr ADRESL;
14724 extern __at(0x0FC4) __sfr ADRESH;
14726 //==============================================================================
14727 // SSPCON2 Bits
14729 extern __at(0x0FC5) __sfr SSPCON2;
14731 typedef union
14733 struct
14735 unsigned SEN : 1;
14736 unsigned RSEN : 1;
14737 unsigned PEN : 1;
14738 unsigned RCEN : 1;
14739 unsigned ACKEN : 1;
14740 unsigned ACKDT : 1;
14741 unsigned ACKSTAT : 1;
14742 unsigned GCEN : 1;
14745 struct
14747 unsigned : 1;
14748 unsigned ADMSK1 : 1;
14749 unsigned ADMSK2 : 1;
14750 unsigned ADMSK3 : 1;
14751 unsigned ADMSK4 : 1;
14752 unsigned ADMSK5 : 1;
14753 unsigned : 1;
14754 unsigned : 1;
14756 } __SSPCON2bits_t;
14758 extern __at(0x0FC5) volatile __SSPCON2bits_t SSPCON2bits;
14760 #define _SEN 0x01
14761 #define _RSEN 0x02
14762 #define _ADMSK1 0x02
14763 #define _PEN 0x04
14764 #define _ADMSK2 0x04
14765 #define _RCEN 0x08
14766 #define _ADMSK3 0x08
14767 #define _ACKEN 0x10
14768 #define _ADMSK4 0x10
14769 #define _ACKDT 0x20
14770 #define _ADMSK5 0x20
14771 #define _ACKSTAT 0x40
14772 #define _GCEN 0x80
14774 //==============================================================================
14777 //==============================================================================
14778 // SSPCON1 Bits
14780 extern __at(0x0FC6) __sfr SSPCON1;
14782 typedef union
14784 struct
14786 unsigned SSPM0 : 1;
14787 unsigned SSPM1 : 1;
14788 unsigned SSPM2 : 1;
14789 unsigned SSPM3 : 1;
14790 unsigned CKP : 1;
14791 unsigned SSPEN : 1;
14792 unsigned SSPOV : 1;
14793 unsigned WCOL : 1;
14796 struct
14798 unsigned SSPM : 4;
14799 unsigned : 4;
14801 } __SSPCON1bits_t;
14803 extern __at(0x0FC6) volatile __SSPCON1bits_t SSPCON1bits;
14805 #define _SSPM0 0x01
14806 #define _SSPM1 0x02
14807 #define _SSPM2 0x04
14808 #define _SSPM3 0x08
14809 #define _CKP 0x10
14810 #define _SSPEN 0x20
14811 #define _SSPOV 0x40
14812 #define _WCOL 0x80
14814 //==============================================================================
14817 //==============================================================================
14818 // SSPSTAT Bits
14820 extern __at(0x0FC7) __sfr SSPSTAT;
14822 typedef union
14824 struct
14826 unsigned BF : 1;
14827 unsigned UA : 1;
14828 unsigned R_NOT_W : 1;
14829 unsigned S : 1;
14830 unsigned P : 1;
14831 unsigned D_NOT_A : 1;
14832 unsigned CKE : 1;
14833 unsigned SMP : 1;
14836 struct
14838 unsigned : 1;
14839 unsigned : 1;
14840 unsigned R_W : 1;
14841 unsigned I2C_START : 1;
14842 unsigned I2C_STOP : 1;
14843 unsigned D_A : 1;
14844 unsigned : 1;
14845 unsigned : 1;
14848 struct
14850 unsigned : 1;
14851 unsigned : 1;
14852 unsigned NOT_W : 1;
14853 unsigned : 1;
14854 unsigned : 1;
14855 unsigned NOT_A : 1;
14856 unsigned : 1;
14857 unsigned : 1;
14860 struct
14862 unsigned : 1;
14863 unsigned : 1;
14864 unsigned NOT_WRITE : 1;
14865 unsigned : 1;
14866 unsigned : 1;
14867 unsigned NOT_ADDRESS : 1;
14868 unsigned : 1;
14869 unsigned : 1;
14872 struct
14874 unsigned : 1;
14875 unsigned : 1;
14876 unsigned READ_WRITE : 1;
14877 unsigned : 1;
14878 unsigned : 1;
14879 unsigned DATA_ADDRESS : 1;
14880 unsigned : 1;
14881 unsigned : 1;
14884 struct
14886 unsigned : 1;
14887 unsigned : 1;
14888 unsigned I2C_READ : 1;
14889 unsigned : 1;
14890 unsigned : 1;
14891 unsigned I2C_DAT : 1;
14892 unsigned : 1;
14893 unsigned : 1;
14895 } __SSPSTATbits_t;
14897 extern __at(0x0FC7) volatile __SSPSTATbits_t SSPSTATbits;
14899 #define _BF 0x01
14900 #define _UA 0x02
14901 #define _R_NOT_W 0x04
14902 #define _R_W 0x04
14903 #define _NOT_W 0x04
14904 #define _NOT_WRITE 0x04
14905 #define _READ_WRITE 0x04
14906 #define _I2C_READ 0x04
14907 #define _S 0x08
14908 #define _I2C_START 0x08
14909 #define _P 0x10
14910 #define _I2C_STOP 0x10
14911 #define _D_NOT_A 0x20
14912 #define _D_A 0x20
14913 #define _NOT_A 0x20
14914 #define _NOT_ADDRESS 0x20
14915 #define _DATA_ADDRESS 0x20
14916 #define _I2C_DAT 0x20
14917 #define _CKE 0x40
14918 #define _SMP 0x80
14920 //==============================================================================
14923 //==============================================================================
14924 // SSPADD Bits
14926 extern __at(0x0FC8) __sfr SSPADD;
14928 typedef struct
14930 unsigned MSK0 : 1;
14931 unsigned MSK1 : 1;
14932 unsigned MSK2 : 1;
14933 unsigned MSK3 : 1;
14934 unsigned MSK4 : 1;
14935 unsigned MSK5 : 1;
14936 unsigned MSK6 : 1;
14937 unsigned MSK7 : 1;
14938 } __SSPADDbits_t;
14940 extern __at(0x0FC8) volatile __SSPADDbits_t SSPADDbits;
14942 #define _MSK0 0x01
14943 #define _MSK1 0x02
14944 #define _MSK2 0x04
14945 #define _MSK3 0x08
14946 #define _MSK4 0x10
14947 #define _MSK5 0x20
14948 #define _MSK6 0x40
14949 #define _MSK7 0x80
14951 //==============================================================================
14953 extern __at(0x0FC9) __sfr SSPBUF;
14955 //==============================================================================
14956 // T2CON Bits
14958 extern __at(0x0FCA) __sfr T2CON;
14960 typedef union
14962 struct
14964 unsigned T2CKPS0 : 1;
14965 unsigned T2CKPS1 : 1;
14966 unsigned TMR2ON : 1;
14967 unsigned T2OUTPS0 : 1;
14968 unsigned T2OUTPS1 : 1;
14969 unsigned T2OUTPS2 : 1;
14970 unsigned T2OUTPS3 : 1;
14971 unsigned : 1;
14974 struct
14976 unsigned T2CKPS : 2;
14977 unsigned : 6;
14980 struct
14982 unsigned : 3;
14983 unsigned T2OUTPS : 4;
14984 unsigned : 1;
14986 } __T2CONbits_t;
14988 extern __at(0x0FCA) volatile __T2CONbits_t T2CONbits;
14990 #define _T2CKPS0 0x01
14991 #define _T2CKPS1 0x02
14992 #define _TMR2ON 0x04
14993 #define _T2OUTPS0 0x08
14994 #define _T2OUTPS1 0x10
14995 #define _T2OUTPS2 0x20
14996 #define _T2OUTPS3 0x40
14998 //==============================================================================
15000 extern __at(0x0FCB) __sfr PR2;
15001 extern __at(0x0FCC) __sfr TMR2;
15003 //==============================================================================
15004 // T1CON Bits
15006 extern __at(0x0FCD) __sfr T1CON;
15008 typedef union
15010 struct
15012 unsigned TMR1ON : 1;
15013 unsigned RD16 : 1;
15014 unsigned NOT_T1SYNC : 1;
15015 unsigned SOSCEN : 1;
15016 unsigned T1CKPS0 : 1;
15017 unsigned T1CKPS1 : 1;
15018 unsigned TMR1CS0 : 1;
15019 unsigned TMR1CS1 : 1;
15022 struct
15024 unsigned : 4;
15025 unsigned T1CKPS : 2;
15026 unsigned : 2;
15029 struct
15031 unsigned : 6;
15032 unsigned TMR1CS : 2;
15034 } __T1CONbits_t;
15036 extern __at(0x0FCD) volatile __T1CONbits_t T1CONbits;
15038 #define _TMR1ON 0x01
15039 #define _RD16 0x02
15040 #define _NOT_T1SYNC 0x04
15041 #define _SOSCEN 0x08
15042 #define _T1CKPS0 0x10
15043 #define _T1CKPS1 0x20
15044 #define _TMR1CS0 0x40
15045 #define _TMR1CS1 0x80
15047 //==============================================================================
15049 extern __at(0x0FCE) __sfr TMR1;
15050 extern __at(0x0FCE) __sfr TMR1L;
15051 extern __at(0x0FCF) __sfr TMR1H;
15053 //==============================================================================
15054 // RCON Bits
15056 extern __at(0x0FD0) __sfr RCON;
15058 typedef union
15060 struct
15062 unsigned NOT_BOR : 1;
15063 unsigned NOT_POR : 1;
15064 unsigned NOT_PD : 1;
15065 unsigned NOT_TO : 1;
15066 unsigned NOT_RI : 1;
15067 unsigned NOT_CM : 1;
15068 unsigned SBOREN : 1;
15069 unsigned IPEN : 1;
15072 struct
15074 unsigned BOR : 1;
15075 unsigned POR : 1;
15076 unsigned PD : 1;
15077 unsigned TO : 1;
15078 unsigned RI : 1;
15079 unsigned CM : 1;
15080 unsigned : 1;
15081 unsigned : 1;
15083 } __RCONbits_t;
15085 extern __at(0x0FD0) volatile __RCONbits_t RCONbits;
15087 #define _NOT_BOR 0x01
15088 #define _BOR 0x01
15089 #define _NOT_POR 0x02
15090 #define _POR 0x02
15091 #define _NOT_PD 0x04
15092 #define _PD 0x04
15093 #define _NOT_TO 0x08
15094 #define _TO 0x08
15095 #define _NOT_RI 0x10
15096 #define _RI 0x10
15097 #define _NOT_CM 0x20
15098 #define _CM 0x20
15099 #define _SBOREN 0x40
15100 #define _IPEN 0x80
15102 //==============================================================================
15105 //==============================================================================
15106 // WDTCON Bits
15108 extern __at(0x0FD1) __sfr WDTCON;
15110 typedef union
15112 struct
15114 unsigned SWDTEN : 1;
15115 unsigned ULPSINK : 1;
15116 unsigned ULPEN : 1;
15117 unsigned : 1;
15118 unsigned SRETEN : 1;
15119 unsigned ULPLVL : 1;
15120 unsigned : 1;
15121 unsigned REGSLP : 1;
15124 struct
15126 unsigned SWDTE : 1;
15127 unsigned : 1;
15128 unsigned : 1;
15129 unsigned : 1;
15130 unsigned : 1;
15131 unsigned : 1;
15132 unsigned : 1;
15133 unsigned : 1;
15135 } __WDTCONbits_t;
15137 extern __at(0x0FD1) volatile __WDTCONbits_t WDTCONbits;
15139 #define _SWDTEN 0x01
15140 #define _SWDTE 0x01
15141 #define _ULPSINK 0x02
15142 #define _ULPEN 0x04
15143 #define _SRETEN 0x10
15144 #define _ULPLVL 0x20
15145 #define _REGSLP 0x80
15147 //==============================================================================
15150 //==============================================================================
15151 // OSCCON2 Bits
15153 extern __at(0x0FD2) __sfr OSCCON2;
15155 typedef union
15157 struct
15159 unsigned MFIOSEL : 1;
15160 unsigned MFIOFS : 1;
15161 unsigned LVDL2 : 1;
15162 unsigned SOSCGO : 1;
15163 unsigned SOSCDRV : 1;
15164 unsigned : 1;
15165 unsigned SOSCRUN : 1;
15166 unsigned : 1;
15169 struct
15171 unsigned LVDL0 : 1;
15172 unsigned LVDL1 : 1;
15173 unsigned : 1;
15174 unsigned LVDL3 : 1;
15175 unsigned : 1;
15176 unsigned : 1;
15177 unsigned : 1;
15178 unsigned : 1;
15181 struct
15183 unsigned LVDL : 4;
15184 unsigned : 4;
15186 } __OSCCON2bits_t;
15188 extern __at(0x0FD2) volatile __OSCCON2bits_t OSCCON2bits;
15190 #define _MFIOSEL 0x01
15191 #define _LVDL0 0x01
15192 #define _MFIOFS 0x02
15193 #define _LVDL1 0x02
15194 #define _LVDL2 0x04
15195 #define _SOSCGO 0x08
15196 #define _LVDL3 0x08
15197 #define _SOSCDRV 0x10
15198 #define _SOSCRUN 0x40
15200 //==============================================================================
15203 //==============================================================================
15204 // OSCCON Bits
15206 extern __at(0x0FD3) __sfr OSCCON;
15208 typedef union
15210 struct
15212 unsigned SCS0 : 1;
15213 unsigned SCS1 : 1;
15214 unsigned HFIOFS : 1;
15215 unsigned OSTS : 1;
15216 unsigned IRCF0 : 1;
15217 unsigned IRCF1 : 1;
15218 unsigned IRCF2 : 1;
15219 unsigned IDLEN : 1;
15222 struct
15224 unsigned SCS : 2;
15225 unsigned : 6;
15228 struct
15230 unsigned : 4;
15231 unsigned IRCF : 3;
15232 unsigned : 1;
15234 } __OSCCONbits_t;
15236 extern __at(0x0FD3) volatile __OSCCONbits_t OSCCONbits;
15238 #define _SCS0 0x01
15239 #define _SCS1 0x02
15240 #define _HFIOFS 0x04
15241 #define _OSTS 0x08
15242 #define _IRCF0 0x10
15243 #define _IRCF1 0x20
15244 #define _IRCF2 0x40
15245 #define _IDLEN 0x80
15247 //==============================================================================
15250 //==============================================================================
15251 // T0CON Bits
15253 extern __at(0x0FD5) __sfr T0CON;
15255 typedef union
15257 struct
15259 unsigned T0PS0 : 1;
15260 unsigned T0PS1 : 1;
15261 unsigned T0PS2 : 1;
15262 unsigned PSA : 1;
15263 unsigned T0SE : 1;
15264 unsigned T0CS : 1;
15265 unsigned T08BIT : 1;
15266 unsigned TMR0ON : 1;
15269 struct
15271 unsigned T0PS : 3;
15272 unsigned : 5;
15274 } __T0CONbits_t;
15276 extern __at(0x0FD5) volatile __T0CONbits_t T0CONbits;
15278 #define _T0PS0 0x01
15279 #define _T0PS1 0x02
15280 #define _T0PS2 0x04
15281 #define _PSA 0x08
15282 #define _T0SE 0x10
15283 #define _T0CS 0x20
15284 #define _T08BIT 0x40
15285 #define _TMR0ON 0x80
15287 //==============================================================================
15289 extern __at(0x0FD6) __sfr TMR0;
15290 extern __at(0x0FD6) __sfr TMR0L;
15291 extern __at(0x0FD7) __sfr TMR0H;
15293 //==============================================================================
15294 // STATUS Bits
15296 extern __at(0x0FD8) __sfr STATUS;
15298 typedef struct
15300 unsigned C : 1;
15301 unsigned DC : 1;
15302 unsigned Z : 1;
15303 unsigned OV : 1;
15304 unsigned N : 1;
15305 unsigned : 1;
15306 unsigned : 1;
15307 unsigned : 1;
15308 } __STATUSbits_t;
15310 extern __at(0x0FD8) volatile __STATUSbits_t STATUSbits;
15312 #define _C 0x01
15313 #define _DC 0x02
15314 #define _Z 0x04
15315 #define _OV 0x08
15316 #define _N 0x10
15318 //==============================================================================
15320 extern __at(0x0FD9) __sfr FSR2L;
15321 extern __at(0x0FDA) __sfr FSR2H;
15322 extern __at(0x0FDB) __sfr PLUSW2;
15323 extern __at(0x0FDC) __sfr PREINC2;
15324 extern __at(0x0FDD) __sfr POSTDEC2;
15325 extern __at(0x0FDE) __sfr POSTINC2;
15326 extern __at(0x0FDF) __sfr INDF2;
15327 extern __at(0x0FE0) __sfr BSR;
15328 extern __at(0x0FE1) __sfr FSR1L;
15329 extern __at(0x0FE2) __sfr FSR1H;
15330 extern __at(0x0FE3) __sfr PLUSW1;
15331 extern __at(0x0FE4) __sfr PREINC1;
15332 extern __at(0x0FE5) __sfr POSTDEC1;
15333 extern __at(0x0FE6) __sfr POSTINC1;
15334 extern __at(0x0FE7) __sfr INDF1;
15335 extern __at(0x0FE8) __sfr WREG;
15336 extern __at(0x0FE9) __sfr FSR0L;
15337 extern __at(0x0FEA) __sfr FSR0H;
15338 extern __at(0x0FEB) __sfr PLUSW0;
15339 extern __at(0x0FEC) __sfr PREINC0;
15340 extern __at(0x0FED) __sfr POSTDEC0;
15341 extern __at(0x0FEE) __sfr POSTINC0;
15342 extern __at(0x0FEF) __sfr INDF0;
15344 //==============================================================================
15345 // INTCON3 Bits
15347 extern __at(0x0FF0) __sfr INTCON3;
15349 typedef union
15351 struct
15353 unsigned INT1IF : 1;
15354 unsigned INT2IF : 1;
15355 unsigned INT3IF : 1;
15356 unsigned INT1IE : 1;
15357 unsigned INT2IE : 1;
15358 unsigned INT3IE : 1;
15359 unsigned INT1IP : 1;
15360 unsigned INT2IP : 1;
15363 struct
15365 unsigned INT1F : 1;
15366 unsigned INT2F : 1;
15367 unsigned INT3F : 1;
15368 unsigned INT1E : 1;
15369 unsigned INT2E : 1;
15370 unsigned INT3E : 1;
15371 unsigned INT1P : 1;
15372 unsigned INT2P : 1;
15374 } __INTCON3bits_t;
15376 extern __at(0x0FF0) volatile __INTCON3bits_t INTCON3bits;
15378 #define _INT1IF 0x01
15379 #define _INT1F 0x01
15380 #define _INT2IF 0x02
15381 #define _INT2F 0x02
15382 #define _INT3IF 0x04
15383 #define _INT3F 0x04
15384 #define _INT1IE 0x08
15385 #define _INT1E 0x08
15386 #define _INT2IE 0x10
15387 #define _INT2E 0x10
15388 #define _INT3IE 0x20
15389 #define _INT3E 0x20
15390 #define _INT1IP 0x40
15391 #define _INT1P 0x40
15392 #define _INT2IP 0x80
15393 #define _INT2P 0x80
15395 //==============================================================================
15398 //==============================================================================
15399 // INTCON2 Bits
15401 extern __at(0x0FF1) __sfr INTCON2;
15403 typedef union
15405 struct
15407 unsigned RBIP : 1;
15408 unsigned INT3IP : 1;
15409 unsigned TMR0IP : 1;
15410 unsigned INTEDG3 : 1;
15411 unsigned INTEDG2 : 1;
15412 unsigned INTEDG1 : 1;
15413 unsigned INTEDG0 : 1;
15414 unsigned NOT_RBPU : 1;
15417 struct
15419 unsigned : 1;
15420 unsigned INT3P : 1;
15421 unsigned T0IP : 1;
15422 unsigned : 1;
15423 unsigned : 1;
15424 unsigned : 1;
15425 unsigned : 1;
15426 unsigned RBPU : 1;
15428 } __INTCON2bits_t;
15430 extern __at(0x0FF1) volatile __INTCON2bits_t INTCON2bits;
15432 #define _RBIP 0x01
15433 #define _INT3IP 0x02
15434 #define _INT3P 0x02
15435 #define _TMR0IP 0x04
15436 #define _T0IP 0x04
15437 #define _INTEDG3 0x08
15438 #define _INTEDG2 0x10
15439 #define _INTEDG1 0x20
15440 #define _INTEDG0 0x40
15441 #define _NOT_RBPU 0x80
15442 #define _RBPU 0x80
15444 //==============================================================================
15447 //==============================================================================
15448 // INTCON Bits
15450 extern __at(0x0FF2) __sfr INTCON;
15452 typedef union
15454 struct
15456 unsigned RBIF : 1;
15457 unsigned INT0IF : 1;
15458 unsigned TMR0IF : 1;
15459 unsigned RBIE : 1;
15460 unsigned INT0IE : 1;
15461 unsigned TMR0IE : 1;
15462 unsigned PEIE_GIEL : 1;
15463 unsigned GIE_GIEH : 1;
15466 struct
15468 unsigned : 1;
15469 unsigned INT0F : 1;
15470 unsigned T0IF : 1;
15471 unsigned : 1;
15472 unsigned INT0E : 1;
15473 unsigned T0IE : 1;
15474 unsigned PEIE : 1;
15475 unsigned GIE : 1;
15478 struct
15480 unsigned : 1;
15481 unsigned : 1;
15482 unsigned : 1;
15483 unsigned : 1;
15484 unsigned : 1;
15485 unsigned : 1;
15486 unsigned GIEL : 1;
15487 unsigned GIEH : 1;
15489 } __INTCONbits_t;
15491 extern __at(0x0FF2) volatile __INTCONbits_t INTCONbits;
15493 #define _RBIF 0x01
15494 #define _INT0IF 0x02
15495 #define _INT0F 0x02
15496 #define _TMR0IF 0x04
15497 #define _T0IF 0x04
15498 #define _RBIE 0x08
15499 #define _INT0IE 0x10
15500 #define _INT0E 0x10
15501 #define _TMR0IE 0x20
15502 #define _T0IE 0x20
15503 #define _PEIE_GIEL 0x40
15504 #define _PEIE 0x40
15505 #define _GIEL 0x40
15506 #define _GIE_GIEH 0x80
15507 #define _GIE 0x80
15508 #define _GIEH 0x80
15510 //==============================================================================
15513 //==============================================================================
15514 // INTCON1 Bits
15516 extern __at(0x0FF2) __sfr INTCON1;
15518 typedef union
15520 struct
15522 unsigned RBIF : 1;
15523 unsigned INT0IF : 1;
15524 unsigned TMR0IF : 1;
15525 unsigned RBIE : 1;
15526 unsigned INT0IE : 1;
15527 unsigned TMR0IE : 1;
15528 unsigned PEIE_GIEL : 1;
15529 unsigned GIE_GIEH : 1;
15532 struct
15534 unsigned : 1;
15535 unsigned INT0F : 1;
15536 unsigned T0IF : 1;
15537 unsigned : 1;
15538 unsigned INT0E : 1;
15539 unsigned T0IE : 1;
15540 unsigned PEIE : 1;
15541 unsigned GIE : 1;
15544 struct
15546 unsigned : 1;
15547 unsigned : 1;
15548 unsigned : 1;
15549 unsigned : 1;
15550 unsigned : 1;
15551 unsigned : 1;
15552 unsigned GIEL : 1;
15553 unsigned GIEH : 1;
15555 } __INTCON1bits_t;
15557 extern __at(0x0FF2) volatile __INTCON1bits_t INTCON1bits;
15559 #define _INTCON1_RBIF 0x01
15560 #define _INTCON1_INT0IF 0x02
15561 #define _INTCON1_INT0F 0x02
15562 #define _INTCON1_TMR0IF 0x04
15563 #define _INTCON1_T0IF 0x04
15564 #define _INTCON1_RBIE 0x08
15565 #define _INTCON1_INT0IE 0x10
15566 #define _INTCON1_INT0E 0x10
15567 #define _INTCON1_TMR0IE 0x20
15568 #define _INTCON1_T0IE 0x20
15569 #define _INTCON1_PEIE_GIEL 0x40
15570 #define _INTCON1_PEIE 0x40
15571 #define _INTCON1_GIEL 0x40
15572 #define _INTCON1_GIE_GIEH 0x80
15573 #define _INTCON1_GIE 0x80
15574 #define _INTCON1_GIEH 0x80
15576 //==============================================================================
15578 extern __at(0x0FF3) __sfr PROD;
15579 extern __at(0x0FF3) __sfr PRODL;
15580 extern __at(0x0FF4) __sfr PRODH;
15581 extern __at(0x0FF5) __sfr TABLAT;
15582 extern __at(0x0FF6) __sfr TBLPTR;
15583 extern __at(0x0FF6) __sfr TBLPTRL;
15584 extern __at(0x0FF7) __sfr TBLPTRH;
15585 extern __at(0x0FF8) __sfr TBLPTRU;
15586 extern __at(0x0FF9) __sfr PC;
15587 extern __at(0x0FF9) __sfr PCL;
15588 extern __at(0x0FFA) __sfr PCLATH;
15589 extern __at(0x0FFB) __sfr PCLATU;
15591 //==============================================================================
15592 // STKPTR Bits
15594 extern __at(0x0FFC) __sfr STKPTR;
15596 typedef union
15598 struct
15600 unsigned SP0 : 1;
15601 unsigned SP1 : 1;
15602 unsigned SP2 : 1;
15603 unsigned SP3 : 1;
15604 unsigned SP4 : 1;
15605 unsigned : 1;
15606 unsigned STKUNF : 1;
15607 unsigned STKFUL : 1;
15610 struct
15612 unsigned : 1;
15613 unsigned : 1;
15614 unsigned : 1;
15615 unsigned : 1;
15616 unsigned : 1;
15617 unsigned : 1;
15618 unsigned : 1;
15619 unsigned STKOVF : 1;
15622 struct
15624 unsigned SP : 5;
15625 unsigned : 3;
15627 } __STKPTRbits_t;
15629 extern __at(0x0FFC) volatile __STKPTRbits_t STKPTRbits;
15631 #define _SP0 0x01
15632 #define _SP1 0x02
15633 #define _SP2 0x04
15634 #define _SP3 0x08
15635 #define _SP4 0x10
15636 #define _STKUNF 0x40
15637 #define _STKFUL 0x80
15638 #define _STKOVF 0x80
15640 //==============================================================================
15642 extern __at(0x0FFD) __sfr TOS;
15643 extern __at(0x0FFD) __sfr TOSL;
15644 extern __at(0x0FFE) __sfr TOSH;
15645 extern __at(0x0FFF) __sfr TOSU;
15647 //==============================================================================
15649 // Configuration Bits
15651 //==============================================================================
15653 #define __CONFIG1L 0x300000
15654 #define __CONFIG1H 0x300001
15655 #define __CONFIG2L 0x300002
15656 #define __CONFIG2H 0x300003
15657 #define __CONFIG3H 0x300005
15658 #define __CONFIG4L 0x300006
15659 #define __CONFIG5L 0x300008
15660 #define __CONFIG5H 0x300009
15661 #define __CONFIG6L 0x30000A
15662 #define __CONFIG6H 0x30000B
15663 #define __CONFIG7L 0x30000C
15664 #define __CONFIG7H 0x30000D
15666 //----------------------------- CONFIG1L Options -------------------------------
15668 #define _RETEN_ON_1L 0xFE // Ultra low-power regulator is Enabled (Controlled by SRETEN bit).
15669 #define _RETEN_OFF_1L 0xFF // Ultra low-power regulator is Disabled (Controlled by REGSLP bit).
15670 #define _INTOSCSEL_LOW_1L 0xFB // LF-INTOSC in Low-power mode during Sleep.
15671 #define _INTOSCSEL_HIGH_1L 0xFF // LF-INTOSC in High-power mode during Sleep.
15672 #define _SOSCSEL_LOW_1L 0xEF // Low Power SOSC circuit selected.
15673 #define _SOSCSEL_DIG_1L 0xF7 // Digital (SCLKI) mode.
15674 #define _SOSCSEL_HIGH_1L 0xFF // High Power SOSC circuit selected.
15675 #define _XINST_OFF_1L 0xBF // Disabled.
15676 #define _XINST_ON_1L 0xFF // Enabled.
15678 //----------------------------- CONFIG1H Options -------------------------------
15680 #define _FOSC_LP_1H 0xF0 // LP oscillator.
15681 #define _FOSC_XT_1H 0xF1 // XT oscillator.
15682 #define _FOSC_HS2_1H 0xF2 // HS oscillator (High power, 16 MHz - 25 MHz).
15683 #define _FOSC_HS1_1H 0xF3 // HS oscillator (Medium power, 4 MHz - 16 MHz).
15684 #define _FOSC_EC3IO_1H 0xF4 // EC oscillator, CLKOUT function on OSC2 (High power, 16 MHz - 64 MHz).
15685 #define _FOSC_EC3_1H 0xF5 // EC oscillator (High power, 16 MHz - 64 MHz).
15686 #define _FOSC_RC_1H 0xF6 // External RC oscillator, CLKOUT function on OSC2.
15687 #define _FOSC_RCIO_1H 0xF7 // External RC oscillator.
15688 #define _FOSC_INTIO2_1H 0xF8 // Internal RC oscillator.
15689 #define _FOSC_INTIO1_1H 0xF9 // Internal RC oscillator, CLKOUT function on OSC2.
15690 #define _FOSC_EC2IO_1H 0xFA // EC oscillator, CLKOUT function on OSC2 (Medium power, 160 kHz - 16 MHz).
15691 #define _FOSC_EC2_1H 0xFB // EC oscillator (Medium power, 160 kHz - 16 MHz).
15692 #define _FOSC_EC1IO_1H 0xFC // EC oscillator, CLKOUT function on OSC2 (Low power, DC - 160 kHz).
15693 #define _FOSC_EC1_1H 0xFD // EC oscillator (Low power, DC - 160 kHz).
15694 #define _PLLCFG_OFF_1H 0xEF // Disabled.
15695 #define _PLLCFG_ON_1H 0xFF // Enabled.
15696 #define _FCMEN_OFF_1H 0xBF // Disabled.
15697 #define _FCMEN_ON_1H 0xFF // Enabled.
15698 #define _IESO_OFF_1H 0x7F // Disabled.
15699 #define _IESO_ON_1H 0xFF // Enabled.
15701 //----------------------------- CONFIG2L Options -------------------------------
15703 #define _PWRTEN_ON_2L 0xFE // Enabled.
15704 #define _PWRTEN_OFF_2L 0xFF // Disabled.
15705 #define _BOREN_OFF_2L 0xF9 // Disabled in hardware, SBOREN disabled.
15706 #define _BOREN_ON_2L 0xFB // Controlled with SBOREN bit.
15707 #define _BOREN_NOSLP_2L 0xFD // Enabled while active, disabled in SLEEP, SBOREN disabled.
15708 #define _BOREN_SBORDIS_2L 0xFF // Enabled in hardware, SBOREN disabled.
15709 #define _BORV_0_2L 0xE7 // 3.0V.
15710 #define _BORV_1_2L 0xEF // 2.7V.
15711 #define _BORV_2_2L 0xF7 // 2.0V.
15712 #define _BORV_3_2L 0xFF // 1.8V.
15713 #define _BORPWR_LOW_2L 0x9F // BORMV set to low power level.
15714 #define _BORPWR_MEDIUM_2L 0xBF // BORMV set to medium power level.
15715 #define _BORPWR_HIGH_2L 0xDF // BORMV set to high power level.
15716 #define _BORPWR_ZPBORMV_2L 0xFF // ZPBORMV instead of BORMV is selected.
15718 //----------------------------- CONFIG2H Options -------------------------------
15720 #define _WDTEN_OFF_2H 0xFC // WDT disabled in hardware; SWDTEN bit disabled.
15721 #define _WDTEN_NOSLP_2H 0xFD // WDT enabled only while device is active and disabled in Sleep mode; SWDTEN bit disabled.
15722 #define _WDTEN_ON_2H 0xFE // WDT controlled by SWDTEN bit setting.
15723 #define _WDTEN_SWDTDIS_2H 0xFF // WDT enabled in hardware; SWDTEN bit disabled.
15724 #define _WDTPS_1_2H 0x83 // 1:1.
15725 #define _WDTPS_2_2H 0x87 // 1:2.
15726 #define _WDTPS_4_2H 0x8B // 1:4.
15727 #define _WDTPS_8_2H 0x8F // 1:8.
15728 #define _WDTPS_16_2H 0x93 // 1:16.
15729 #define _WDTPS_32_2H 0x97 // 1:32.
15730 #define _WDTPS_64_2H 0x9B // 1:64.
15731 #define _WDTPS_128_2H 0x9F // 1:128.
15732 #define _WDTPS_256_2H 0xA3 // 1:256.
15733 #define _WDTPS_512_2H 0xA7 // 1:512.
15734 #define _WDTPS_1024_2H 0xAB // 1:1024.
15735 #define _WDTPS_2048_2H 0xAF // 1:2048.
15736 #define _WDTPS_4096_2H 0xB3 // 1:4096.
15737 #define _WDTPS_8192_2H 0xB7 // 1:8192.
15738 #define _WDTPS_16384_2H 0xBB // 1:16384.
15739 #define _WDTPS_32768_2H 0xBF // 1:32768.
15740 #define _WDTPS_65536_2H 0xC3 // 1:65536.
15741 #define _WDTPS_131072_2H 0xC7 // 1:131072.
15742 #define _WDTPS_262144_2H 0xCB // 1:262144.
15743 #define _WDTPS_524288_2H 0xCF // 1:524288.
15744 #define _WDTPS_1048576_2H 0xFF // 1:1048576.
15746 //----------------------------- CONFIG3H Options -------------------------------
15748 #define _CANMX_PORTE_3H 0xFE // ECAN TX and RX pins are located on RE5 and RE4, respectively.
15749 #define _CANMX_PORTB_3H 0xFF // ECAN TX and RX pins are located on RB2 and RB3, respectively.
15750 #define _T0CKMX_PORTG_3H 0xFD // Timer0 gets its clock input from the RG4/T0CKI pin on 64-pin packages.
15751 #define _T0CKMX_PORTB_3H 0xFF // Timer0 gets its clock input from the RB5/T0CKI pin on 64-pin packages.
15752 #define _T3CKMX_PORTB_3H 0xFB // Timer3 gets its clock input from the RB5/T3CKI pin on 64-pin packages.
15753 #define _T3CKMX_PORTG_3H 0xFF // Timer3 gets its clock input from the RG2/T3CKI pin on 64-pin packages.
15754 #define _MSSPMSK_MSK5_3H 0xF7 // 5 bit address masking mode.
15755 #define _MSSPMSK_MSK7_3H 0xFF // 7 Bit address masking mode.
15756 #define _MCLRE_OFF_3H 0x7F // MCLR Disabled, RG5 Enabled.
15757 #define _MCLRE_ON_3H 0xFF // MCLR Enabled, RE3 Disabled.
15759 //----------------------------- CONFIG4L Options -------------------------------
15761 #define _STVREN_OFF_4L 0xFE // Disabled.
15762 #define _STVREN_ON_4L 0xFF // Enabled.
15763 #define _BBSIZ_BB1K_4L 0xEF // 1K word Boot Block size.
15764 #define _BBSIZ_BB2K_4L 0xFF // 2K word Boot Block size.
15766 //----------------------------- CONFIG5L Options -------------------------------
15768 #define _CP0_ON_5L 0xFE // Enabled.
15769 #define _CP0_OFF_5L 0xFF // Disabled.
15770 #define _CP1_ON_5L 0xFD // Enabled.
15771 #define _CP1_OFF_5L 0xFF // Disabled.
15772 #define _CP2_ON_5L 0xFB // Enabled.
15773 #define _CP2_OFF_5L 0xFF // Disabled.
15774 #define _CP3_ON_5L 0xF7 // Enabled.
15775 #define _CP3_OFF_5L 0xFF // Disabled.
15777 //----------------------------- CONFIG5H Options -------------------------------
15779 #define _CPB_ON_5H 0xBF // Enabled.
15780 #define _CPB_OFF_5H 0xFF // Disabled.
15781 #define _CPD_ON_5H 0x7F // Enabled.
15782 #define _CPD_OFF_5H 0xFF // Disabled.
15784 //----------------------------- CONFIG6L Options -------------------------------
15786 #define _WRT0_ON_6L 0xFE // Enabled.
15787 #define _WRT0_OFF_6L 0xFF // Disabled.
15788 #define _WRT1_ON_6L 0xFD // Enabled.
15789 #define _WRT1_OFF_6L 0xFF // Disabled.
15790 #define _WRT2_ON_6L 0xFB // Enabled.
15791 #define _WRT2_OFF_6L 0xFF // Disabled.
15792 #define _WRT3_ON_6L 0xF7 // Enabled.
15793 #define _WRT3_OFF_6L 0xFF // Disabled.
15795 //----------------------------- CONFIG6H Options -------------------------------
15797 #define _WRTC_ON_6H 0xDF // Enabled.
15798 #define _WRTC_OFF_6H 0xFF // Disabled.
15799 #define _WRTB_ON_6H 0xBF // Enabled.
15800 #define _WRTB_OFF_6H 0xFF // Disabled.
15801 #define _WRTD_ON_6H 0x7F // Enabled.
15802 #define _WRTD_OFF_6H 0xFF // Disabled.
15804 //----------------------------- CONFIG7L Options -------------------------------
15806 #define _EBTR0_ON_7L 0xFE // Enabled.
15807 #define _EBTR0_OFF_7L 0xFF // Disabled.
15808 #define _EBTR1_ON_7L 0xFD // Enabled.
15809 #define _EBTR1_OFF_7L 0xFF // Disabled.
15810 #define _EBTR2_ON_7L 0xFB // Enabled.
15811 #define _EBTR2_OFF_7L 0xFF // Disabled.
15812 #define _EBTR3_ON_7L 0xF7 // Enabled.
15813 #define _EBTR3_OFF_7L 0xFF // Disabled.
15815 //----------------------------- CONFIG7H Options -------------------------------
15817 #define _EBTRB_ON_7H 0xBF // Enabled.
15818 #define _EBTRB_OFF_7H 0xFF // Disabled.
15820 //==============================================================================
15822 #define __DEVID1 0x3FFFFE
15823 #define __DEVID2 0x3FFFFF
15825 #define __IDLOC0 0x200000
15826 #define __IDLOC1 0x200001
15827 #define __IDLOC2 0x200002
15828 #define __IDLOC3 0x200003
15829 #define __IDLOC4 0x200004
15830 #define __IDLOC5 0x200005
15831 #define __IDLOC6 0x200006
15832 #define __IDLOC7 0x200007
15834 #endif // #ifndef __PIC18LF66K80_H__