1 /* 2 * This declarations of the PIC18LF6585 MCU. 3 * 4 * This file is part of the GNU PIC library for SDCC, originally 5 * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016. 6 * 7 * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:24:06 UTC. 8 * 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. 12 * 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. 21 * 22 * See http://sdcc.sourceforge.net/ for the latest information on sdcc. 23 */ 24 25 #ifndef __PIC18LF6585_H__ 26 #define __PIC18LF6585_H__ 27 28 //============================================================================== 29 30 //============================================================================== 31 // 32 // Register Definitions 33 // 34 //============================================================================== 35 36 37 //============================================================================== 38 // RXF6SIDH Bits 39 40 extern __at(0x0D60) __sfr RXF6SIDH; 41 42 typedef struct 43 { 44 unsigned SID3 : 1; 45 unsigned SID4 : 1; 46 unsigned SID5 : 1; 47 unsigned SID6 : 1; 48 unsigned SID7 : 1; 49 unsigned SID8 : 1; 50 unsigned SID9 : 1; 51 unsigned SID10 : 1; 52 } __RXF6SIDHbits_t; 53 54 extern __at(0x0D60) volatile __RXF6SIDHbits_t RXF6SIDHbits; 55 56 #define _RXF6SIDH_SID3 0x01 57 #define _RXF6SIDH_SID4 0x02 58 #define _RXF6SIDH_SID5 0x04 59 #define _RXF6SIDH_SID6 0x08 60 #define _RXF6SIDH_SID7 0x10 61 #define _RXF6SIDH_SID8 0x20 62 #define _RXF6SIDH_SID9 0x40 63 #define _RXF6SIDH_SID10 0x80 64 65 //============================================================================== 66 67 68 //============================================================================== 69 // RXF6SIDL Bits 70 71 extern __at(0x0D61) __sfr RXF6SIDL; 72 73 typedef union 74 { 75 struct 76 { 77 unsigned EID16 : 1; 78 unsigned EID17 : 1; 79 unsigned : 1; 80 unsigned EXIDEN : 1; 81 unsigned : 1; 82 unsigned SID0 : 1; 83 unsigned SID1 : 1; 84 unsigned SID2 : 1; 85 }; 86 87 struct 88 { 89 unsigned : 1; 90 unsigned : 1; 91 unsigned : 1; 92 unsigned EXIDE : 1; 93 unsigned : 1; 94 unsigned : 1; 95 unsigned : 1; 96 unsigned : 1; 97 }; 98 99 struct 100 { 101 unsigned : 5; 102 unsigned SID : 3; 103 }; 104 } __RXF6SIDLbits_t; 105 106 extern __at(0x0D61) volatile __RXF6SIDLbits_t RXF6SIDLbits; 107 108 #define _RXF6SIDL_EID16 0x01 109 #define _RXF6SIDL_EID17 0x02 110 #define _RXF6SIDL_EXIDEN 0x08 111 #define _RXF6SIDL_EXIDE 0x08 112 #define _RXF6SIDL_SID0 0x20 113 #define _RXF6SIDL_SID1 0x40 114 #define _RXF6SIDL_SID2 0x80 115 116 //============================================================================== 117 118 119 //============================================================================== 120 // RXF6EIDH Bits 121 122 extern __at(0x0D62) __sfr RXF6EIDH; 123 124 typedef struct 125 { 126 unsigned EID8 : 1; 127 unsigned EID9 : 1; 128 unsigned EID10 : 1; 129 unsigned EID11 : 1; 130 unsigned EID12 : 1; 131 unsigned EID13 : 1; 132 unsigned EID14 : 1; 133 unsigned EID15 : 1; 134 } __RXF6EIDHbits_t; 135 136 extern __at(0x0D62) volatile __RXF6EIDHbits_t RXF6EIDHbits; 137 138 #define _RXF6EIDH_EID8 0x01 139 #define _RXF6EIDH_EID9 0x02 140 #define _RXF6EIDH_EID10 0x04 141 #define _RXF6EIDH_EID11 0x08 142 #define _RXF6EIDH_EID12 0x10 143 #define _RXF6EIDH_EID13 0x20 144 #define _RXF6EIDH_EID14 0x40 145 #define _RXF6EIDH_EID15 0x80 146 147 //============================================================================== 148 149 150 //============================================================================== 151 // RXF6EIDL Bits 152 153 extern __at(0x0D63) __sfr RXF6EIDL; 154 155 typedef struct 156 { 157 unsigned EID0 : 1; 158 unsigned EID1 : 1; 159 unsigned EID2 : 1; 160 unsigned EID3 : 1; 161 unsigned EID4 : 1; 162 unsigned EID5 : 1; 163 unsigned EID6 : 1; 164 unsigned EID7 : 1; 165 } __RXF6EIDLbits_t; 166 167 extern __at(0x0D63) volatile __RXF6EIDLbits_t RXF6EIDLbits; 168 169 #define _RXF6EIDL_EID0 0x01 170 #define _RXF6EIDL_EID1 0x02 171 #define _RXF6EIDL_EID2 0x04 172 #define _RXF6EIDL_EID3 0x08 173 #define _RXF6EIDL_EID4 0x10 174 #define _RXF6EIDL_EID5 0x20 175 #define _RXF6EIDL_EID6 0x40 176 #define _RXF6EIDL_EID7 0x80 177 178 //============================================================================== 179 180 181 //============================================================================== 182 // RXF7SIDH Bits 183 184 extern __at(0x0D64) __sfr RXF7SIDH; 185 186 typedef struct 187 { 188 unsigned SID3 : 1; 189 unsigned SID4 : 1; 190 unsigned SID5 : 1; 191 unsigned SID6 : 1; 192 unsigned SID7 : 1; 193 unsigned SID8 : 1; 194 unsigned SID9 : 1; 195 unsigned SID10 : 1; 196 } __RXF7SIDHbits_t; 197 198 extern __at(0x0D64) volatile __RXF7SIDHbits_t RXF7SIDHbits; 199 200 #define _RXF7SIDH_SID3 0x01 201 #define _RXF7SIDH_SID4 0x02 202 #define _RXF7SIDH_SID5 0x04 203 #define _RXF7SIDH_SID6 0x08 204 #define _RXF7SIDH_SID7 0x10 205 #define _RXF7SIDH_SID8 0x20 206 #define _RXF7SIDH_SID9 0x40 207 #define _RXF7SIDH_SID10 0x80 208 209 //============================================================================== 210 211 212 //============================================================================== 213 // RXF7SIDL Bits 214 215 extern __at(0x0D65) __sfr RXF7SIDL; 216 217 typedef union 218 { 219 struct 220 { 221 unsigned EID16 : 1; 222 unsigned EID17 : 1; 223 unsigned : 1; 224 unsigned EXIDEN : 1; 225 unsigned : 1; 226 unsigned SID0 : 1; 227 unsigned SID1 : 1; 228 unsigned SID2 : 1; 229 }; 230 231 struct 232 { 233 unsigned : 1; 234 unsigned : 1; 235 unsigned : 1; 236 unsigned EXIDE : 1; 237 unsigned : 1; 238 unsigned : 1; 239 unsigned : 1; 240 unsigned : 1; 241 }; 242 243 struct 244 { 245 unsigned : 5; 246 unsigned SID : 3; 247 }; 248 } __RXF7SIDLbits_t; 249 250 extern __at(0x0D65) volatile __RXF7SIDLbits_t RXF7SIDLbits; 251 252 #define _RXF7SIDL_EID16 0x01 253 #define _RXF7SIDL_EID17 0x02 254 #define _RXF7SIDL_EXIDEN 0x08 255 #define _RXF7SIDL_EXIDE 0x08 256 #define _RXF7SIDL_SID0 0x20 257 #define _RXF7SIDL_SID1 0x40 258 #define _RXF7SIDL_SID2 0x80 259 260 //============================================================================== 261 262 263 //============================================================================== 264 // RXF7EIDH Bits 265 266 extern __at(0x0D66) __sfr RXF7EIDH; 267 268 typedef struct 269 { 270 unsigned EID8 : 1; 271 unsigned EID9 : 1; 272 unsigned EID10 : 1; 273 unsigned EID11 : 1; 274 unsigned EID12 : 1; 275 unsigned EID13 : 1; 276 unsigned EID14 : 1; 277 unsigned EID15 : 1; 278 } __RXF7EIDHbits_t; 279 280 extern __at(0x0D66) volatile __RXF7EIDHbits_t RXF7EIDHbits; 281 282 #define _RXF7EIDH_EID8 0x01 283 #define _RXF7EIDH_EID9 0x02 284 #define _RXF7EIDH_EID10 0x04 285 #define _RXF7EIDH_EID11 0x08 286 #define _RXF7EIDH_EID12 0x10 287 #define _RXF7EIDH_EID13 0x20 288 #define _RXF7EIDH_EID14 0x40 289 #define _RXF7EIDH_EID15 0x80 290 291 //============================================================================== 292 293 294 //============================================================================== 295 // RXF7EIDL Bits 296 297 extern __at(0x0D67) __sfr RXF7EIDL; 298 299 typedef struct 300 { 301 unsigned EID0 : 1; 302 unsigned EID1 : 1; 303 unsigned EID2 : 1; 304 unsigned EID3 : 1; 305 unsigned EID4 : 1; 306 unsigned EID5 : 1; 307 unsigned EID6 : 1; 308 unsigned EID7 : 1; 309 } __RXF7EIDLbits_t; 310 311 extern __at(0x0D67) volatile __RXF7EIDLbits_t RXF7EIDLbits; 312 313 #define _RXF7EIDL_EID0 0x01 314 #define _RXF7EIDL_EID1 0x02 315 #define _RXF7EIDL_EID2 0x04 316 #define _RXF7EIDL_EID3 0x08 317 #define _RXF7EIDL_EID4 0x10 318 #define _RXF7EIDL_EID5 0x20 319 #define _RXF7EIDL_EID6 0x40 320 #define _RXF7EIDL_EID7 0x80 321 322 //============================================================================== 323 324 325 //============================================================================== 326 // RXF8SIDH Bits 327 328 extern __at(0x0D68) __sfr RXF8SIDH; 329 330 typedef struct 331 { 332 unsigned SID3 : 1; 333 unsigned SID4 : 1; 334 unsigned SID5 : 1; 335 unsigned SID6 : 1; 336 unsigned SID7 : 1; 337 unsigned SID8 : 1; 338 unsigned SID9 : 1; 339 unsigned SID10 : 1; 340 } __RXF8SIDHbits_t; 341 342 extern __at(0x0D68) volatile __RXF8SIDHbits_t RXF8SIDHbits; 343 344 #define _RXF8SIDH_SID3 0x01 345 #define _RXF8SIDH_SID4 0x02 346 #define _RXF8SIDH_SID5 0x04 347 #define _RXF8SIDH_SID6 0x08 348 #define _RXF8SIDH_SID7 0x10 349 #define _RXF8SIDH_SID8 0x20 350 #define _RXF8SIDH_SID9 0x40 351 #define _RXF8SIDH_SID10 0x80 352 353 //============================================================================== 354 355 356 //============================================================================== 357 // RXF8SIDL Bits 358 359 extern __at(0x0D69) __sfr RXF8SIDL; 360 361 typedef union 362 { 363 struct 364 { 365 unsigned EID16 : 1; 366 unsigned EID17 : 1; 367 unsigned : 1; 368 unsigned EXIDEN : 1; 369 unsigned : 1; 370 unsigned SID0 : 1; 371 unsigned SID1 : 1; 372 unsigned SID2 : 1; 373 }; 374 375 struct 376 { 377 unsigned : 1; 378 unsigned : 1; 379 unsigned : 1; 380 unsigned EXIDE : 1; 381 unsigned : 1; 382 unsigned : 1; 383 unsigned : 1; 384 unsigned : 1; 385 }; 386 387 struct 388 { 389 unsigned : 5; 390 unsigned SID : 3; 391 }; 392 } __RXF8SIDLbits_t; 393 394 extern __at(0x0D69) volatile __RXF8SIDLbits_t RXF8SIDLbits; 395 396 #define _RXF8SIDL_EID16 0x01 397 #define _RXF8SIDL_EID17 0x02 398 #define _RXF8SIDL_EXIDEN 0x08 399 #define _RXF8SIDL_EXIDE 0x08 400 #define _RXF8SIDL_SID0 0x20 401 #define _RXF8SIDL_SID1 0x40 402 #define _RXF8SIDL_SID2 0x80 403 404 //============================================================================== 405 406 407 //============================================================================== 408 // RXF8EIDH Bits 409 410 extern __at(0x0D6A) __sfr RXF8EIDH; 411 412 typedef struct 413 { 414 unsigned EID8 : 1; 415 unsigned EID9 : 1; 416 unsigned EID10 : 1; 417 unsigned EID11 : 1; 418 unsigned EID12 : 1; 419 unsigned EID13 : 1; 420 unsigned EID14 : 1; 421 unsigned EID15 : 1; 422 } __RXF8EIDHbits_t; 423 424 extern __at(0x0D6A) volatile __RXF8EIDHbits_t RXF8EIDHbits; 425 426 #define _RXF8EIDH_EID8 0x01 427 #define _RXF8EIDH_EID9 0x02 428 #define _RXF8EIDH_EID10 0x04 429 #define _RXF8EIDH_EID11 0x08 430 #define _RXF8EIDH_EID12 0x10 431 #define _RXF8EIDH_EID13 0x20 432 #define _RXF8EIDH_EID14 0x40 433 #define _RXF8EIDH_EID15 0x80 434 435 //============================================================================== 436 437 438 //============================================================================== 439 // RXF8EIDL Bits 440 441 extern __at(0x0D6B) __sfr RXF8EIDL; 442 443 typedef struct 444 { 445 unsigned EID0 : 1; 446 unsigned EID1 : 1; 447 unsigned EID2 : 1; 448 unsigned EID3 : 1; 449 unsigned EID4 : 1; 450 unsigned EID5 : 1; 451 unsigned EID6 : 1; 452 unsigned EID7 : 1; 453 } __RXF8EIDLbits_t; 454 455 extern __at(0x0D6B) volatile __RXF8EIDLbits_t RXF8EIDLbits; 456 457 #define _RXF8EIDL_EID0 0x01 458 #define _RXF8EIDL_EID1 0x02 459 #define _RXF8EIDL_EID2 0x04 460 #define _RXF8EIDL_EID3 0x08 461 #define _RXF8EIDL_EID4 0x10 462 #define _RXF8EIDL_EID5 0x20 463 #define _RXF8EIDL_EID6 0x40 464 #define _RXF8EIDL_EID7 0x80 465 466 //============================================================================== 467 468 469 //============================================================================== 470 // RXF9SIDH Bits 471 472 extern __at(0x0D70) __sfr RXF9SIDH; 473 474 typedef struct 475 { 476 unsigned SID3 : 1; 477 unsigned SID4 : 1; 478 unsigned SID5 : 1; 479 unsigned SID6 : 1; 480 unsigned SID7 : 1; 481 unsigned SID8 : 1; 482 unsigned SID9 : 1; 483 unsigned SID10 : 1; 484 } __RXF9SIDHbits_t; 485 486 extern __at(0x0D70) volatile __RXF9SIDHbits_t RXF9SIDHbits; 487 488 #define _RXF9SIDH_SID3 0x01 489 #define _RXF9SIDH_SID4 0x02 490 #define _RXF9SIDH_SID5 0x04 491 #define _RXF9SIDH_SID6 0x08 492 #define _RXF9SIDH_SID7 0x10 493 #define _RXF9SIDH_SID8 0x20 494 #define _RXF9SIDH_SID9 0x40 495 #define _RXF9SIDH_SID10 0x80 496 497 //============================================================================== 498 499 500 //============================================================================== 501 // RXF9SIDL Bits 502 503 extern __at(0x0D71) __sfr RXF9SIDL; 504 505 typedef union 506 { 507 struct 508 { 509 unsigned EID16 : 1; 510 unsigned EID17 : 1; 511 unsigned : 1; 512 unsigned EXIDEN : 1; 513 unsigned : 1; 514 unsigned SID0 : 1; 515 unsigned SID1 : 1; 516 unsigned SID2 : 1; 517 }; 518 519 struct 520 { 521 unsigned : 1; 522 unsigned : 1; 523 unsigned : 1; 524 unsigned EXIDE : 1; 525 unsigned : 1; 526 unsigned : 1; 527 unsigned : 1; 528 unsigned : 1; 529 }; 530 531 struct 532 { 533 unsigned : 5; 534 unsigned SID : 3; 535 }; 536 } __RXF9SIDLbits_t; 537 538 extern __at(0x0D71) volatile __RXF9SIDLbits_t RXF9SIDLbits; 539 540 #define _RXF9SIDL_EID16 0x01 541 #define _RXF9SIDL_EID17 0x02 542 #define _RXF9SIDL_EXIDEN 0x08 543 #define _RXF9SIDL_EXIDE 0x08 544 #define _RXF9SIDL_SID0 0x20 545 #define _RXF9SIDL_SID1 0x40 546 #define _RXF9SIDL_SID2 0x80 547 548 //============================================================================== 549 550 551 //============================================================================== 552 // RXF9EIDH Bits 553 554 extern __at(0x0D72) __sfr RXF9EIDH; 555 556 typedef struct 557 { 558 unsigned EID8 : 1; 559 unsigned EID9 : 1; 560 unsigned EID10 : 1; 561 unsigned EID11 : 1; 562 unsigned EID12 : 1; 563 unsigned EID13 : 1; 564 unsigned EID14 : 1; 565 unsigned EID15 : 1; 566 } __RXF9EIDHbits_t; 567 568 extern __at(0x0D72) volatile __RXF9EIDHbits_t RXF9EIDHbits; 569 570 #define _RXF9EIDH_EID8 0x01 571 #define _RXF9EIDH_EID9 0x02 572 #define _RXF9EIDH_EID10 0x04 573 #define _RXF9EIDH_EID11 0x08 574 #define _RXF9EIDH_EID12 0x10 575 #define _RXF9EIDH_EID13 0x20 576 #define _RXF9EIDH_EID14 0x40 577 #define _RXF9EIDH_EID15 0x80 578 579 //============================================================================== 580 581 582 //============================================================================== 583 // RXF9EIDL Bits 584 585 extern __at(0x0D73) __sfr RXF9EIDL; 586 587 typedef struct 588 { 589 unsigned EID0 : 1; 590 unsigned EID1 : 1; 591 unsigned EID2 : 1; 592 unsigned EID3 : 1; 593 unsigned EID4 : 1; 594 unsigned EID5 : 1; 595 unsigned EID6 : 1; 596 unsigned EID7 : 1; 597 } __RXF9EIDLbits_t; 598 599 extern __at(0x0D73) volatile __RXF9EIDLbits_t RXF9EIDLbits; 600 601 #define _RXF9EIDL_EID0 0x01 602 #define _RXF9EIDL_EID1 0x02 603 #define _RXF9EIDL_EID2 0x04 604 #define _RXF9EIDL_EID3 0x08 605 #define _RXF9EIDL_EID4 0x10 606 #define _RXF9EIDL_EID5 0x20 607 #define _RXF9EIDL_EID6 0x40 608 #define _RXF9EIDL_EID7 0x80 609 610 //============================================================================== 611 612 613 //============================================================================== 614 // RXF10SIDH Bits 615 616 extern __at(0x0D74) __sfr RXF10SIDH; 617 618 typedef struct 619 { 620 unsigned SID3 : 1; 621 unsigned SID4 : 1; 622 unsigned SID5 : 1; 623 unsigned SID6 : 1; 624 unsigned SID7 : 1; 625 unsigned SID8 : 1; 626 unsigned SID9 : 1; 627 unsigned SID10 : 1; 628 } __RXF10SIDHbits_t; 629 630 extern __at(0x0D74) volatile __RXF10SIDHbits_t RXF10SIDHbits; 631 632 #define _RXF10SIDH_SID3 0x01 633 #define _RXF10SIDH_SID4 0x02 634 #define _RXF10SIDH_SID5 0x04 635 #define _RXF10SIDH_SID6 0x08 636 #define _RXF10SIDH_SID7 0x10 637 #define _RXF10SIDH_SID8 0x20 638 #define _RXF10SIDH_SID9 0x40 639 #define _RXF10SIDH_SID10 0x80 640 641 //============================================================================== 642 643 644 //============================================================================== 645 // RXF10SIDL Bits 646 647 extern __at(0x0D75) __sfr RXF10SIDL; 648 649 typedef union 650 { 651 struct 652 { 653 unsigned EID16 : 1; 654 unsigned EID17 : 1; 655 unsigned : 1; 656 unsigned EXIDEN : 1; 657 unsigned : 1; 658 unsigned SID0 : 1; 659 unsigned SID1 : 1; 660 unsigned SID2 : 1; 661 }; 662 663 struct 664 { 665 unsigned : 1; 666 unsigned : 1; 667 unsigned : 1; 668 unsigned EXIDE : 1; 669 unsigned : 1; 670 unsigned : 1; 671 unsigned : 1; 672 unsigned : 1; 673 }; 674 675 struct 676 { 677 unsigned : 5; 678 unsigned SID : 3; 679 }; 680 } __RXF10SIDLbits_t; 681 682 extern __at(0x0D75) volatile __RXF10SIDLbits_t RXF10SIDLbits; 683 684 #define _RXF10SIDL_EID16 0x01 685 #define _RXF10SIDL_EID17 0x02 686 #define _RXF10SIDL_EXIDEN 0x08 687 #define _RXF10SIDL_EXIDE 0x08 688 #define _RXF10SIDL_SID0 0x20 689 #define _RXF10SIDL_SID1 0x40 690 #define _RXF10SIDL_SID2 0x80 691 692 //============================================================================== 693 694 695 //============================================================================== 696 // RXF10EIDH Bits 697 698 extern __at(0x0D76) __sfr RXF10EIDH; 699 700 typedef struct 701 { 702 unsigned EID8 : 1; 703 unsigned EID9 : 1; 704 unsigned EID10 : 1; 705 unsigned EID11 : 1; 706 unsigned EID12 : 1; 707 unsigned EID13 : 1; 708 unsigned EID14 : 1; 709 unsigned EID15 : 1; 710 } __RXF10EIDHbits_t; 711 712 extern __at(0x0D76) volatile __RXF10EIDHbits_t RXF10EIDHbits; 713 714 #define _RXF10EIDH_EID8 0x01 715 #define _RXF10EIDH_EID9 0x02 716 #define _RXF10EIDH_EID10 0x04 717 #define _RXF10EIDH_EID11 0x08 718 #define _RXF10EIDH_EID12 0x10 719 #define _RXF10EIDH_EID13 0x20 720 #define _RXF10EIDH_EID14 0x40 721 #define _RXF10EIDH_EID15 0x80 722 723 //============================================================================== 724 725 726 //============================================================================== 727 // RXF10EIDL Bits 728 729 extern __at(0x0D77) __sfr RXF10EIDL; 730 731 typedef struct 732 { 733 unsigned EID0 : 1; 734 unsigned EID1 : 1; 735 unsigned EID2 : 1; 736 unsigned EID3 : 1; 737 unsigned EID4 : 1; 738 unsigned EID5 : 1; 739 unsigned EID6 : 1; 740 unsigned EID7 : 1; 741 } __RXF10EIDLbits_t; 742 743 extern __at(0x0D77) volatile __RXF10EIDLbits_t RXF10EIDLbits; 744 745 #define _RXF10EIDL_EID0 0x01 746 #define _RXF10EIDL_EID1 0x02 747 #define _RXF10EIDL_EID2 0x04 748 #define _RXF10EIDL_EID3 0x08 749 #define _RXF10EIDL_EID4 0x10 750 #define _RXF10EIDL_EID5 0x20 751 #define _RXF10EIDL_EID6 0x40 752 #define _RXF10EIDL_EID7 0x80 753 754 //============================================================================== 755 756 757 //============================================================================== 758 // RXF11SIDH Bits 759 760 extern __at(0x0D78) __sfr RXF11SIDH; 761 762 typedef struct 763 { 764 unsigned SID3 : 1; 765 unsigned SID4 : 1; 766 unsigned SID5 : 1; 767 unsigned SID6 : 1; 768 unsigned SID7 : 1; 769 unsigned SID8 : 1; 770 unsigned SID9 : 1; 771 unsigned SID10 : 1; 772 } __RXF11SIDHbits_t; 773 774 extern __at(0x0D78) volatile __RXF11SIDHbits_t RXF11SIDHbits; 775 776 #define _RXF11SIDH_SID3 0x01 777 #define _RXF11SIDH_SID4 0x02 778 #define _RXF11SIDH_SID5 0x04 779 #define _RXF11SIDH_SID6 0x08 780 #define _RXF11SIDH_SID7 0x10 781 #define _RXF11SIDH_SID8 0x20 782 #define _RXF11SIDH_SID9 0x40 783 #define _RXF11SIDH_SID10 0x80 784 785 //============================================================================== 786 787 788 //============================================================================== 789 // RXF11SIDL Bits 790 791 extern __at(0x0D79) __sfr RXF11SIDL; 792 793 typedef union 794 { 795 struct 796 { 797 unsigned EID16 : 1; 798 unsigned EID17 : 1; 799 unsigned : 1; 800 unsigned EXIDEN : 1; 801 unsigned : 1; 802 unsigned SID0 : 1; 803 unsigned SID1 : 1; 804 unsigned SID2 : 1; 805 }; 806 807 struct 808 { 809 unsigned : 1; 810 unsigned : 1; 811 unsigned : 1; 812 unsigned EXIDE : 1; 813 unsigned : 1; 814 unsigned : 1; 815 unsigned : 1; 816 unsigned : 1; 817 }; 818 819 struct 820 { 821 unsigned : 5; 822 unsigned SID : 3; 823 }; 824 } __RXF11SIDLbits_t; 825 826 extern __at(0x0D79) volatile __RXF11SIDLbits_t RXF11SIDLbits; 827 828 #define _RXF11SIDL_EID16 0x01 829 #define _RXF11SIDL_EID17 0x02 830 #define _RXF11SIDL_EXIDEN 0x08 831 #define _RXF11SIDL_EXIDE 0x08 832 #define _RXF11SIDL_SID0 0x20 833 #define _RXF11SIDL_SID1 0x40 834 #define _RXF11SIDL_SID2 0x80 835 836 //============================================================================== 837 838 839 //============================================================================== 840 // RXF11EIDH Bits 841 842 extern __at(0x0D7A) __sfr RXF11EIDH; 843 844 typedef struct 845 { 846 unsigned EID8 : 1; 847 unsigned EID9 : 1; 848 unsigned EID10 : 1; 849 unsigned EID11 : 1; 850 unsigned EID12 : 1; 851 unsigned EID13 : 1; 852 unsigned EID14 : 1; 853 unsigned EID15 : 1; 854 } __RXF11EIDHbits_t; 855 856 extern __at(0x0D7A) volatile __RXF11EIDHbits_t RXF11EIDHbits; 857 858 #define _RXF11EIDH_EID8 0x01 859 #define _RXF11EIDH_EID9 0x02 860 #define _RXF11EIDH_EID10 0x04 861 #define _RXF11EIDH_EID11 0x08 862 #define _RXF11EIDH_EID12 0x10 863 #define _RXF11EIDH_EID13 0x20 864 #define _RXF11EIDH_EID14 0x40 865 #define _RXF11EIDH_EID15 0x80 866 867 //============================================================================== 868 869 870 //============================================================================== 871 // RXF11EIDL Bits 872 873 extern __at(0x0D7B) __sfr RXF11EIDL; 874 875 typedef struct 876 { 877 unsigned EID0 : 1; 878 unsigned EID1 : 1; 879 unsigned EID2 : 1; 880 unsigned EID3 : 1; 881 unsigned EID4 : 1; 882 unsigned EID5 : 1; 883 unsigned EID6 : 1; 884 unsigned EID7 : 1; 885 } __RXF11EIDLbits_t; 886 887 extern __at(0x0D7B) volatile __RXF11EIDLbits_t RXF11EIDLbits; 888 889 #define _RXF11EIDL_EID0 0x01 890 #define _RXF11EIDL_EID1 0x02 891 #define _RXF11EIDL_EID2 0x04 892 #define _RXF11EIDL_EID3 0x08 893 #define _RXF11EIDL_EID4 0x10 894 #define _RXF11EIDL_EID5 0x20 895 #define _RXF11EIDL_EID6 0x40 896 #define _RXF11EIDL_EID7 0x80 897 898 //============================================================================== 899 900 901 //============================================================================== 902 // RXF12SIDH Bits 903 904 extern __at(0x0D80) __sfr RXF12SIDH; 905 906 typedef struct 907 { 908 unsigned SID3 : 1; 909 unsigned SID4 : 1; 910 unsigned SID5 : 1; 911 unsigned SID6 : 1; 912 unsigned SID7 : 1; 913 unsigned SID8 : 1; 914 unsigned SID9 : 1; 915 unsigned SID10 : 1; 916 } __RXF12SIDHbits_t; 917 918 extern __at(0x0D80) volatile __RXF12SIDHbits_t RXF12SIDHbits; 919 920 #define _RXF12SIDH_SID3 0x01 921 #define _RXF12SIDH_SID4 0x02 922 #define _RXF12SIDH_SID5 0x04 923 #define _RXF12SIDH_SID6 0x08 924 #define _RXF12SIDH_SID7 0x10 925 #define _RXF12SIDH_SID8 0x20 926 #define _RXF12SIDH_SID9 0x40 927 #define _RXF12SIDH_SID10 0x80 928 929 //============================================================================== 930 931 932 //============================================================================== 933 // RXF12SIDL Bits 934 935 extern __at(0x0D81) __sfr RXF12SIDL; 936 937 typedef union 938 { 939 struct 940 { 941 unsigned EID16 : 1; 942 unsigned EID17 : 1; 943 unsigned : 1; 944 unsigned EXIDEN : 1; 945 unsigned : 1; 946 unsigned SID0 : 1; 947 unsigned SID1 : 1; 948 unsigned SID2 : 1; 949 }; 950 951 struct 952 { 953 unsigned : 1; 954 unsigned : 1; 955 unsigned : 1; 956 unsigned EXIDE : 1; 957 unsigned : 1; 958 unsigned : 1; 959 unsigned : 1; 960 unsigned : 1; 961 }; 962 963 struct 964 { 965 unsigned : 5; 966 unsigned SID : 3; 967 }; 968 } __RXF12SIDLbits_t; 969 970 extern __at(0x0D81) volatile __RXF12SIDLbits_t RXF12SIDLbits; 971 972 #define _RXF12SIDL_EID16 0x01 973 #define _RXF12SIDL_EID17 0x02 974 #define _RXF12SIDL_EXIDEN 0x08 975 #define _RXF12SIDL_EXIDE 0x08 976 #define _RXF12SIDL_SID0 0x20 977 #define _RXF12SIDL_SID1 0x40 978 #define _RXF12SIDL_SID2 0x80 979 980 //============================================================================== 981 982 983 //============================================================================== 984 // RXF12EIDH Bits 985 986 extern __at(0x0D82) __sfr RXF12EIDH; 987 988 typedef struct 989 { 990 unsigned EID8 : 1; 991 unsigned EID9 : 1; 992 unsigned EID10 : 1; 993 unsigned EID11 : 1; 994 unsigned EID12 : 1; 995 unsigned EID13 : 1; 996 unsigned EID14 : 1; 997 unsigned EID15 : 1; 998 } __RXF12EIDHbits_t; 999 1000 extern __at(0x0D82) volatile __RXF12EIDHbits_t RXF12EIDHbits; 1001 1002 #define _RXF12EIDH_EID8 0x01 1003 #define _RXF12EIDH_EID9 0x02 1004 #define _RXF12EIDH_EID10 0x04 1005 #define _RXF12EIDH_EID11 0x08 1006 #define _RXF12EIDH_EID12 0x10 1007 #define _RXF12EIDH_EID13 0x20 1008 #define _RXF12EIDH_EID14 0x40 1009 #define _RXF12EIDH_EID15 0x80 1010 1011 //============================================================================== 1012 1013 1014 //============================================================================== 1015 // RXF12EIDL Bits 1016 1017 extern __at(0x0D83) __sfr RXF12EIDL; 1018 1019 typedef struct 1020 { 1021 unsigned EID0 : 1; 1022 unsigned EID1 : 1; 1023 unsigned EID2 : 1; 1024 unsigned EID3 : 1; 1025 unsigned EID4 : 1; 1026 unsigned EID5 : 1; 1027 unsigned EID6 : 1; 1028 unsigned EID7 : 1; 1029 } __RXF12EIDLbits_t; 1030 1031 extern __at(0x0D83) volatile __RXF12EIDLbits_t RXF12EIDLbits; 1032 1033 #define _RXF12EIDL_EID0 0x01 1034 #define _RXF12EIDL_EID1 0x02 1035 #define _RXF12EIDL_EID2 0x04 1036 #define _RXF12EIDL_EID3 0x08 1037 #define _RXF12EIDL_EID4 0x10 1038 #define _RXF12EIDL_EID5 0x20 1039 #define _RXF12EIDL_EID6 0x40 1040 #define _RXF12EIDL_EID7 0x80 1041 1042 //============================================================================== 1043 1044 1045 //============================================================================== 1046 // RXF13SIDH Bits 1047 1048 extern __at(0x0D84) __sfr RXF13SIDH; 1049 1050 typedef struct 1051 { 1052 unsigned SID3 : 1; 1053 unsigned SID4 : 1; 1054 unsigned SID5 : 1; 1055 unsigned SID6 : 1; 1056 unsigned SID7 : 1; 1057 unsigned SID8 : 1; 1058 unsigned SID9 : 1; 1059 unsigned SID10 : 1; 1060 } __RXF13SIDHbits_t; 1061 1062 extern __at(0x0D84) volatile __RXF13SIDHbits_t RXF13SIDHbits; 1063 1064 #define _RXF13SIDH_SID3 0x01 1065 #define _RXF13SIDH_SID4 0x02 1066 #define _RXF13SIDH_SID5 0x04 1067 #define _RXF13SIDH_SID6 0x08 1068 #define _RXF13SIDH_SID7 0x10 1069 #define _RXF13SIDH_SID8 0x20 1070 #define _RXF13SIDH_SID9 0x40 1071 #define _RXF13SIDH_SID10 0x80 1072 1073 //============================================================================== 1074 1075 1076 //============================================================================== 1077 // RXF13SIDL Bits 1078 1079 extern __at(0x0D85) __sfr RXF13SIDL; 1080 1081 typedef union 1082 { 1083 struct 1084 { 1085 unsigned EID16 : 1; 1086 unsigned EID17 : 1; 1087 unsigned : 1; 1088 unsigned EXIDEN : 1; 1089 unsigned : 1; 1090 unsigned SID0 : 1; 1091 unsigned SID1 : 1; 1092 unsigned SID2 : 1; 1093 }; 1094 1095 struct 1096 { 1097 unsigned : 1; 1098 unsigned : 1; 1099 unsigned : 1; 1100 unsigned EXIDE : 1; 1101 unsigned : 1; 1102 unsigned : 1; 1103 unsigned : 1; 1104 unsigned : 1; 1105 }; 1106 1107 struct 1108 { 1109 unsigned : 5; 1110 unsigned SID : 3; 1111 }; 1112 } __RXF13SIDLbits_t; 1113 1114 extern __at(0x0D85) volatile __RXF13SIDLbits_t RXF13SIDLbits; 1115 1116 #define _RXF13SIDL_EID16 0x01 1117 #define _RXF13SIDL_EID17 0x02 1118 #define _RXF13SIDL_EXIDEN 0x08 1119 #define _RXF13SIDL_EXIDE 0x08 1120 #define _RXF13SIDL_SID0 0x20 1121 #define _RXF13SIDL_SID1 0x40 1122 #define _RXF13SIDL_SID2 0x80 1123 1124 //============================================================================== 1125 1126 1127 //============================================================================== 1128 // RXF13EIDH Bits 1129 1130 extern __at(0x0D86) __sfr RXF13EIDH; 1131 1132 typedef struct 1133 { 1134 unsigned EID8 : 1; 1135 unsigned EID9 : 1; 1136 unsigned EID10 : 1; 1137 unsigned EID11 : 1; 1138 unsigned EID12 : 1; 1139 unsigned EID13 : 1; 1140 unsigned EID14 : 1; 1141 unsigned EID15 : 1; 1142 } __RXF13EIDHbits_t; 1143 1144 extern __at(0x0D86) volatile __RXF13EIDHbits_t RXF13EIDHbits; 1145 1146 #define _RXF13EIDH_EID8 0x01 1147 #define _RXF13EIDH_EID9 0x02 1148 #define _RXF13EIDH_EID10 0x04 1149 #define _RXF13EIDH_EID11 0x08 1150 #define _RXF13EIDH_EID12 0x10 1151 #define _RXF13EIDH_EID13 0x20 1152 #define _RXF13EIDH_EID14 0x40 1153 #define _RXF13EIDH_EID15 0x80 1154 1155 //============================================================================== 1156 1157 1158 //============================================================================== 1159 // RXF13EIDL Bits 1160 1161 extern __at(0x0D87) __sfr RXF13EIDL; 1162 1163 typedef struct 1164 { 1165 unsigned EID0 : 1; 1166 unsigned EID1 : 1; 1167 unsigned EID2 : 1; 1168 unsigned EID3 : 1; 1169 unsigned EID4 : 1; 1170 unsigned EID5 : 1; 1171 unsigned EID6 : 1; 1172 unsigned EID7 : 1; 1173 } __RXF13EIDLbits_t; 1174 1175 extern __at(0x0D87) volatile __RXF13EIDLbits_t RXF13EIDLbits; 1176 1177 #define _RXF13EIDL_EID0 0x01 1178 #define _RXF13EIDL_EID1 0x02 1179 #define _RXF13EIDL_EID2 0x04 1180 #define _RXF13EIDL_EID3 0x08 1181 #define _RXF13EIDL_EID4 0x10 1182 #define _RXF13EIDL_EID5 0x20 1183 #define _RXF13EIDL_EID6 0x40 1184 #define _RXF13EIDL_EID7 0x80 1185 1186 //============================================================================== 1187 1188 1189 //============================================================================== 1190 // RXF14SIDH Bits 1191 1192 extern __at(0x0D88) __sfr RXF14SIDH; 1193 1194 typedef struct 1195 { 1196 unsigned SID3 : 1; 1197 unsigned SID4 : 1; 1198 unsigned SID5 : 1; 1199 unsigned SID6 : 1; 1200 unsigned SID7 : 1; 1201 unsigned SID8 : 1; 1202 unsigned SID9 : 1; 1203 unsigned SID10 : 1; 1204 } __RXF14SIDHbits_t; 1205 1206 extern __at(0x0D88) volatile __RXF14SIDHbits_t RXF14SIDHbits; 1207 1208 #define _RXF14SIDH_SID3 0x01 1209 #define _RXF14SIDH_SID4 0x02 1210 #define _RXF14SIDH_SID5 0x04 1211 #define _RXF14SIDH_SID6 0x08 1212 #define _RXF14SIDH_SID7 0x10 1213 #define _RXF14SIDH_SID8 0x20 1214 #define _RXF14SIDH_SID9 0x40 1215 #define _RXF14SIDH_SID10 0x80 1216 1217 //============================================================================== 1218 1219 1220 //============================================================================== 1221 // RXF14SIDL Bits 1222 1223 extern __at(0x0D89) __sfr RXF14SIDL; 1224 1225 typedef union 1226 { 1227 struct 1228 { 1229 unsigned EID16 : 1; 1230 unsigned EID17 : 1; 1231 unsigned : 1; 1232 unsigned EXIDEN : 1; 1233 unsigned : 1; 1234 unsigned SID0 : 1; 1235 unsigned SID1 : 1; 1236 unsigned SID2 : 1; 1237 }; 1238 1239 struct 1240 { 1241 unsigned : 1; 1242 unsigned : 1; 1243 unsigned : 1; 1244 unsigned EXIDE : 1; 1245 unsigned : 1; 1246 unsigned : 1; 1247 unsigned : 1; 1248 unsigned : 1; 1249 }; 1250 1251 struct 1252 { 1253 unsigned : 5; 1254 unsigned SID : 3; 1255 }; 1256 } __RXF14SIDLbits_t; 1257 1258 extern __at(0x0D89) volatile __RXF14SIDLbits_t RXF14SIDLbits; 1259 1260 #define _RXF14SIDL_EID16 0x01 1261 #define _RXF14SIDL_EID17 0x02 1262 #define _RXF14SIDL_EXIDEN 0x08 1263 #define _RXF14SIDL_EXIDE 0x08 1264 #define _RXF14SIDL_SID0 0x20 1265 #define _RXF14SIDL_SID1 0x40 1266 #define _RXF14SIDL_SID2 0x80 1267 1268 //============================================================================== 1269 1270 1271 //============================================================================== 1272 // RXF14EIDH Bits 1273 1274 extern __at(0x0D8A) __sfr RXF14EIDH; 1275 1276 typedef struct 1277 { 1278 unsigned EID8 : 1; 1279 unsigned EID9 : 1; 1280 unsigned EID10 : 1; 1281 unsigned EID11 : 1; 1282 unsigned EID12 : 1; 1283 unsigned EID13 : 1; 1284 unsigned EID14 : 1; 1285 unsigned EID15 : 1; 1286 } __RXF14EIDHbits_t; 1287 1288 extern __at(0x0D8A) volatile __RXF14EIDHbits_t RXF14EIDHbits; 1289 1290 #define _RXF14EIDH_EID8 0x01 1291 #define _RXF14EIDH_EID9 0x02 1292 #define _RXF14EIDH_EID10 0x04 1293 #define _RXF14EIDH_EID11 0x08 1294 #define _RXF14EIDH_EID12 0x10 1295 #define _RXF14EIDH_EID13 0x20 1296 #define _RXF14EIDH_EID14 0x40 1297 #define _RXF14EIDH_EID15 0x80 1298 1299 //============================================================================== 1300 1301 1302 //============================================================================== 1303 // RXF14EIDL Bits 1304 1305 extern __at(0x0D8B) __sfr RXF14EIDL; 1306 1307 typedef struct 1308 { 1309 unsigned EID0 : 1; 1310 unsigned EID1 : 1; 1311 unsigned EID2 : 1; 1312 unsigned EID3 : 1; 1313 unsigned EID4 : 1; 1314 unsigned EID5 : 1; 1315 unsigned EID6 : 1; 1316 unsigned EID7 : 1; 1317 } __RXF14EIDLbits_t; 1318 1319 extern __at(0x0D8B) volatile __RXF14EIDLbits_t RXF14EIDLbits; 1320 1321 #define _RXF14EIDL_EID0 0x01 1322 #define _RXF14EIDL_EID1 0x02 1323 #define _RXF14EIDL_EID2 0x04 1324 #define _RXF14EIDL_EID3 0x08 1325 #define _RXF14EIDL_EID4 0x10 1326 #define _RXF14EIDL_EID5 0x20 1327 #define _RXF14EIDL_EID6 0x40 1328 #define _RXF14EIDL_EID7 0x80 1329 1330 //============================================================================== 1331 1332 1333 //============================================================================== 1334 // RXF15SIDH Bits 1335 1336 extern __at(0x0D90) __sfr RXF15SIDH; 1337 1338 typedef struct 1339 { 1340 unsigned SID3 : 1; 1341 unsigned SID4 : 1; 1342 unsigned SID5 : 1; 1343 unsigned SID6 : 1; 1344 unsigned SID7 : 1; 1345 unsigned SID8 : 1; 1346 unsigned SID9 : 1; 1347 unsigned SID10 : 1; 1348 } __RXF15SIDHbits_t; 1349 1350 extern __at(0x0D90) volatile __RXF15SIDHbits_t RXF15SIDHbits; 1351 1352 #define _RXF15SIDH_SID3 0x01 1353 #define _RXF15SIDH_SID4 0x02 1354 #define _RXF15SIDH_SID5 0x04 1355 #define _RXF15SIDH_SID6 0x08 1356 #define _RXF15SIDH_SID7 0x10 1357 #define _RXF15SIDH_SID8 0x20 1358 #define _RXF15SIDH_SID9 0x40 1359 #define _RXF15SIDH_SID10 0x80 1360 1361 //============================================================================== 1362 1363 1364 //============================================================================== 1365 // RXF15SIDL Bits 1366 1367 extern __at(0x0D91) __sfr RXF15SIDL; 1368 1369 typedef union 1370 { 1371 struct 1372 { 1373 unsigned EID16 : 1; 1374 unsigned EID17 : 1; 1375 unsigned : 1; 1376 unsigned EXIDEN : 1; 1377 unsigned : 1; 1378 unsigned SID0 : 1; 1379 unsigned SID1 : 1; 1380 unsigned SID2 : 1; 1381 }; 1382 1383 struct 1384 { 1385 unsigned : 1; 1386 unsigned : 1; 1387 unsigned : 1; 1388 unsigned EXIDE : 1; 1389 unsigned : 1; 1390 unsigned : 1; 1391 unsigned : 1; 1392 unsigned : 1; 1393 }; 1394 1395 struct 1396 { 1397 unsigned : 5; 1398 unsigned SID : 3; 1399 }; 1400 } __RXF15SIDLbits_t; 1401 1402 extern __at(0x0D91) volatile __RXF15SIDLbits_t RXF15SIDLbits; 1403 1404 #define _RXF15SIDL_EID16 0x01 1405 #define _RXF15SIDL_EID17 0x02 1406 #define _RXF15SIDL_EXIDEN 0x08 1407 #define _RXF15SIDL_EXIDE 0x08 1408 #define _RXF15SIDL_SID0 0x20 1409 #define _RXF15SIDL_SID1 0x40 1410 #define _RXF15SIDL_SID2 0x80 1411 1412 //============================================================================== 1413 1414 1415 //============================================================================== 1416 // RXF15EIDH Bits 1417 1418 extern __at(0x0D92) __sfr RXF15EIDH; 1419 1420 typedef struct 1421 { 1422 unsigned EID8 : 1; 1423 unsigned EID9 : 1; 1424 unsigned EID10 : 1; 1425 unsigned EID11 : 1; 1426 unsigned EID12 : 1; 1427 unsigned EID13 : 1; 1428 unsigned EID14 : 1; 1429 unsigned EID15 : 1; 1430 } __RXF15EIDHbits_t; 1431 1432 extern __at(0x0D92) volatile __RXF15EIDHbits_t RXF15EIDHbits; 1433 1434 #define _RXF15EIDH_EID8 0x01 1435 #define _RXF15EIDH_EID9 0x02 1436 #define _RXF15EIDH_EID10 0x04 1437 #define _RXF15EIDH_EID11 0x08 1438 #define _RXF15EIDH_EID12 0x10 1439 #define _RXF15EIDH_EID13 0x20 1440 #define _RXF15EIDH_EID14 0x40 1441 #define _RXF15EIDH_EID15 0x80 1442 1443 //============================================================================== 1444 1445 1446 //============================================================================== 1447 // RXF15EIDL Bits 1448 1449 extern __at(0x0D93) __sfr RXF15EIDL; 1450 1451 typedef struct 1452 { 1453 unsigned EID0 : 1; 1454 unsigned EID1 : 1; 1455 unsigned EID2 : 1; 1456 unsigned EID3 : 1; 1457 unsigned EID4 : 1; 1458 unsigned EID5 : 1; 1459 unsigned EID6 : 1; 1460 unsigned EID7 : 1; 1461 } __RXF15EIDLbits_t; 1462 1463 extern __at(0x0D93) volatile __RXF15EIDLbits_t RXF15EIDLbits; 1464 1465 #define _RXF15EIDL_EID0 0x01 1466 #define _RXF15EIDL_EID1 0x02 1467 #define _RXF15EIDL_EID2 0x04 1468 #define _RXF15EIDL_EID3 0x08 1469 #define _RXF15EIDL_EID4 0x10 1470 #define _RXF15EIDL_EID5 0x20 1471 #define _RXF15EIDL_EID6 0x40 1472 #define _RXF15EIDL_EID7 0x80 1473 1474 //============================================================================== 1475 1476 1477 //============================================================================== 1478 // RXFCON0 Bits 1479 1480 extern __at(0x0DD4) __sfr RXFCON0; 1481 1482 typedef struct 1483 { 1484 unsigned RXF0EN : 1; 1485 unsigned RXF1EN : 1; 1486 unsigned RXF2EN : 1; 1487 unsigned RXF3EN : 1; 1488 unsigned RXF4EN : 1; 1489 unsigned RXF5EN : 1; 1490 unsigned RXF6EN : 1; 1491 unsigned RXF7EN : 1; 1492 } __RXFCON0bits_t; 1493 1494 extern __at(0x0DD4) volatile __RXFCON0bits_t RXFCON0bits; 1495 1496 #define _RXF0EN 0x01 1497 #define _RXF1EN 0x02 1498 #define _RXF2EN 0x04 1499 #define _RXF3EN 0x08 1500 #define _RXF4EN 0x10 1501 #define _RXF5EN 0x20 1502 #define _RXF6EN 0x40 1503 #define _RXF7EN 0x80 1504 1505 //============================================================================== 1506 1507 1508 //============================================================================== 1509 // RXFCON1 Bits 1510 1511 extern __at(0x0DD5) __sfr RXFCON1; 1512 1513 typedef struct 1514 { 1515 unsigned RXF8EN : 1; 1516 unsigned RXF9EN : 1; 1517 unsigned RXF10EN : 1; 1518 unsigned RXF11EN : 1; 1519 unsigned RXF12EN : 1; 1520 unsigned RXF13EN : 1; 1521 unsigned RXF14EN : 1; 1522 unsigned RXF15EN : 1; 1523 } __RXFCON1bits_t; 1524 1525 extern __at(0x0DD5) volatile __RXFCON1bits_t RXFCON1bits; 1526 1527 #define _RXF8EN 0x01 1528 #define _RXF9EN 0x02 1529 #define _RXF10EN 0x04 1530 #define _RXF11EN 0x08 1531 #define _RXF12EN 0x10 1532 #define _RXF13EN 0x20 1533 #define _RXF14EN 0x40 1534 #define _RXF15EN 0x80 1535 1536 //============================================================================== 1537 1538 1539 //============================================================================== 1540 // SDFLC Bits 1541 1542 extern __at(0x0DD8) __sfr SDFLC; 1543 1544 typedef union 1545 { 1546 struct 1547 { 1548 unsigned DFLC0 : 1; 1549 unsigned DFLC1 : 1; 1550 unsigned DFLC2 : 1; 1551 unsigned DFLC3 : 1; 1552 unsigned DFLC4 : 1; 1553 unsigned : 1; 1554 unsigned : 1; 1555 unsigned : 1; 1556 }; 1557 1558 struct 1559 { 1560 unsigned DFLC : 5; 1561 unsigned : 3; 1562 }; 1563 } __SDFLCbits_t; 1564 1565 extern __at(0x0DD8) volatile __SDFLCbits_t SDFLCbits; 1566 1567 #define _DFLC0 0x01 1568 #define _DFLC1 0x02 1569 #define _DFLC2 0x04 1570 #define _DFLC3 0x08 1571 #define _DFLC4 0x10 1572 1573 //============================================================================== 1574 1575 1576 //============================================================================== 1577 // RXFBCON0 Bits 1578 1579 extern __at(0x0DE0) __sfr RXFBCON0; 1580 1581 typedef union 1582 { 1583 struct 1584 { 1585 unsigned F0BP_0 : 1; 1586 unsigned F0BP_1 : 1; 1587 unsigned F0BP_2 : 1; 1588 unsigned F0BP_3 : 1; 1589 unsigned F1BP_0 : 1; 1590 unsigned F1BP_1 : 1; 1591 unsigned F1BP_2 : 1; 1592 unsigned F1BP_3 : 1; 1593 }; 1594 1595 struct 1596 { 1597 unsigned F0BP_ : 4; 1598 unsigned : 4; 1599 }; 1600 1601 struct 1602 { 1603 unsigned : 4; 1604 unsigned F1BP_ : 4; 1605 }; 1606 } __RXFBCON0bits_t; 1607 1608 extern __at(0x0DE0) volatile __RXFBCON0bits_t RXFBCON0bits; 1609 1610 #define _F0BP_0 0x01 1611 #define _F0BP_1 0x02 1612 #define _F0BP_2 0x04 1613 #define _F0BP_3 0x08 1614 #define _F1BP_0 0x10 1615 #define _F1BP_1 0x20 1616 #define _F1BP_2 0x40 1617 #define _F1BP_3 0x80 1618 1619 //============================================================================== 1620 1621 1622 //============================================================================== 1623 // RXFBCON1 Bits 1624 1625 extern __at(0x0DE1) __sfr RXFBCON1; 1626 1627 typedef union 1628 { 1629 struct 1630 { 1631 unsigned F2BP_0 : 1; 1632 unsigned F2BP_1 : 1; 1633 unsigned F2BP_2 : 1; 1634 unsigned F2BP_3 : 1; 1635 unsigned F3BP_0 : 1; 1636 unsigned F3BP_1 : 1; 1637 unsigned F3BP_2 : 1; 1638 unsigned F3BP_3 : 1; 1639 }; 1640 1641 struct 1642 { 1643 unsigned F2BP_ : 4; 1644 unsigned : 4; 1645 }; 1646 1647 struct 1648 { 1649 unsigned : 4; 1650 unsigned F3BP_ : 4; 1651 }; 1652 } __RXFBCON1bits_t; 1653 1654 extern __at(0x0DE1) volatile __RXFBCON1bits_t RXFBCON1bits; 1655 1656 #define _F2BP_0 0x01 1657 #define _F2BP_1 0x02 1658 #define _F2BP_2 0x04 1659 #define _F2BP_3 0x08 1660 #define _F3BP_0 0x10 1661 #define _F3BP_1 0x20 1662 #define _F3BP_2 0x40 1663 #define _F3BP_3 0x80 1664 1665 //============================================================================== 1666 1667 1668 //============================================================================== 1669 // RXFBCON2 Bits 1670 1671 extern __at(0x0DE2) __sfr RXFBCON2; 1672 1673 typedef union 1674 { 1675 struct 1676 { 1677 unsigned F4BP_0 : 1; 1678 unsigned F4BP_1 : 1; 1679 unsigned F4BP_2 : 1; 1680 unsigned F4BP_3 : 1; 1681 unsigned F5BP_0 : 1; 1682 unsigned F5BP_1 : 1; 1683 unsigned F5BP_2 : 1; 1684 unsigned F5BP_3 : 1; 1685 }; 1686 1687 struct 1688 { 1689 unsigned F4BP_ : 4; 1690 unsigned : 4; 1691 }; 1692 1693 struct 1694 { 1695 unsigned : 4; 1696 unsigned F5BP_ : 4; 1697 }; 1698 } __RXFBCON2bits_t; 1699 1700 extern __at(0x0DE2) volatile __RXFBCON2bits_t RXFBCON2bits; 1701 1702 #define _F4BP_0 0x01 1703 #define _F4BP_1 0x02 1704 #define _F4BP_2 0x04 1705 #define _F4BP_3 0x08 1706 #define _F5BP_0 0x10 1707 #define _F5BP_1 0x20 1708 #define _F5BP_2 0x40 1709 #define _F5BP_3 0x80 1710 1711 //============================================================================== 1712 1713 1714 //============================================================================== 1715 // RXFBCON3 Bits 1716 1717 extern __at(0x0DE3) __sfr RXFBCON3; 1718 1719 typedef union 1720 { 1721 struct 1722 { 1723 unsigned F6BP_0 : 1; 1724 unsigned F6BP_1 : 1; 1725 unsigned F6BP_2 : 1; 1726 unsigned F6BP_3 : 1; 1727 unsigned F7BP_0 : 1; 1728 unsigned F7BP_1 : 1; 1729 unsigned F7BP_2 : 1; 1730 unsigned F7BP_3 : 1; 1731 }; 1732 1733 struct 1734 { 1735 unsigned F6BP_ : 4; 1736 unsigned : 4; 1737 }; 1738 1739 struct 1740 { 1741 unsigned : 4; 1742 unsigned F7BP_ : 4; 1743 }; 1744 } __RXFBCON3bits_t; 1745 1746 extern __at(0x0DE3) volatile __RXFBCON3bits_t RXFBCON3bits; 1747 1748 #define _F6BP_0 0x01 1749 #define _F6BP_1 0x02 1750 #define _F6BP_2 0x04 1751 #define _F6BP_3 0x08 1752 #define _F7BP_0 0x10 1753 #define _F7BP_1 0x20 1754 #define _F7BP_2 0x40 1755 #define _F7BP_3 0x80 1756 1757 //============================================================================== 1758 1759 1760 //============================================================================== 1761 // RXFBCON4 Bits 1762 1763 extern __at(0x0DE4) __sfr RXFBCON4; 1764 1765 typedef union 1766 { 1767 struct 1768 { 1769 unsigned F8BP_0 : 1; 1770 unsigned F8BP_1 : 1; 1771 unsigned F8BP_2 : 1; 1772 unsigned F8BP_3 : 1; 1773 unsigned F9BP_0 : 1; 1774 unsigned F9BP_1 : 1; 1775 unsigned F9BP_2 : 1; 1776 unsigned F9BP_3 : 1; 1777 }; 1778 1779 struct 1780 { 1781 unsigned F8BP_ : 4; 1782 unsigned : 4; 1783 }; 1784 1785 struct 1786 { 1787 unsigned : 4; 1788 unsigned F9BP_ : 4; 1789 }; 1790 } __RXFBCON4bits_t; 1791 1792 extern __at(0x0DE4) volatile __RXFBCON4bits_t RXFBCON4bits; 1793 1794 #define _F8BP_0 0x01 1795 #define _F8BP_1 0x02 1796 #define _F8BP_2 0x04 1797 #define _F8BP_3 0x08 1798 #define _F9BP_0 0x10 1799 #define _F9BP_1 0x20 1800 #define _F9BP_2 0x40 1801 #define _F9BP_3 0x80 1802 1803 //============================================================================== 1804 1805 1806 //============================================================================== 1807 // RXFBCON5 Bits 1808 1809 extern __at(0x0DE5) __sfr RXFBCON5; 1810 1811 typedef union 1812 { 1813 struct 1814 { 1815 unsigned F10BP_0 : 1; 1816 unsigned F10BP_1 : 1; 1817 unsigned F10BP_2 : 1; 1818 unsigned F10BP_3 : 1; 1819 unsigned F11BP_0 : 1; 1820 unsigned F11BP_1 : 1; 1821 unsigned F11BP_2 : 1; 1822 unsigned F11BP_3 : 1; 1823 }; 1824 1825 struct 1826 { 1827 unsigned F10BP_ : 4; 1828 unsigned : 4; 1829 }; 1830 1831 struct 1832 { 1833 unsigned : 4; 1834 unsigned F11BP_ : 4; 1835 }; 1836 } __RXFBCON5bits_t; 1837 1838 extern __at(0x0DE5) volatile __RXFBCON5bits_t RXFBCON5bits; 1839 1840 #define _F10BP_0 0x01 1841 #define _F10BP_1 0x02 1842 #define _F10BP_2 0x04 1843 #define _F10BP_3 0x08 1844 #define _F11BP_0 0x10 1845 #define _F11BP_1 0x20 1846 #define _F11BP_2 0x40 1847 #define _F11BP_3 0x80 1848 1849 //============================================================================== 1850 1851 1852 //============================================================================== 1853 // RXFBCON6 Bits 1854 1855 extern __at(0x0DE6) __sfr RXFBCON6; 1856 1857 typedef union 1858 { 1859 struct 1860 { 1861 unsigned F12BP_0 : 1; 1862 unsigned F12BP_1 : 1; 1863 unsigned F12BP_2 : 1; 1864 unsigned F12BP_3 : 1; 1865 unsigned F13BP_0 : 1; 1866 unsigned F13BP_1 : 1; 1867 unsigned F13BP_2 : 1; 1868 unsigned F13BP_3 : 1; 1869 }; 1870 1871 struct 1872 { 1873 unsigned F12BP_ : 4; 1874 unsigned : 4; 1875 }; 1876 1877 struct 1878 { 1879 unsigned : 4; 1880 unsigned F13BP_ : 4; 1881 }; 1882 } __RXFBCON6bits_t; 1883 1884 extern __at(0x0DE6) volatile __RXFBCON6bits_t RXFBCON6bits; 1885 1886 #define _F12BP_0 0x01 1887 #define _F12BP_1 0x02 1888 #define _F12BP_2 0x04 1889 #define _F12BP_3 0x08 1890 #define _F13BP_0 0x10 1891 #define _F13BP_1 0x20 1892 #define _F13BP_2 0x40 1893 #define _F13BP_3 0x80 1894 1895 //============================================================================== 1896 1897 1898 //============================================================================== 1899 // RXFBCON7 Bits 1900 1901 extern __at(0x0DE7) __sfr RXFBCON7; 1902 1903 typedef union 1904 { 1905 struct 1906 { 1907 unsigned F14BP_0 : 1; 1908 unsigned F14BP_1 : 1; 1909 unsigned F14BP_2 : 1; 1910 unsigned F14BP_3 : 1; 1911 unsigned F15BP_0 : 1; 1912 unsigned F15BP_1 : 1; 1913 unsigned F15BP_2 : 1; 1914 unsigned F15BP_3 : 1; 1915 }; 1916 1917 struct 1918 { 1919 unsigned F14BP_ : 4; 1920 unsigned : 4; 1921 }; 1922 1923 struct 1924 { 1925 unsigned : 4; 1926 unsigned F15BP_ : 4; 1927 }; 1928 } __RXFBCON7bits_t; 1929 1930 extern __at(0x0DE7) volatile __RXFBCON7bits_t RXFBCON7bits; 1931 1932 #define _F14BP_0 0x01 1933 #define _F14BP_1 0x02 1934 #define _F14BP_2 0x04 1935 #define _F14BP_3 0x08 1936 #define _F15BP_0 0x10 1937 #define _F15BP_1 0x20 1938 #define _F15BP_2 0x40 1939 #define _F15BP_3 0x80 1940 1941 //============================================================================== 1942 1943 1944 //============================================================================== 1945 // MSEL0 Bits 1946 1947 extern __at(0x0DF0) __sfr MSEL0; 1948 1949 typedef union 1950 { 1951 struct 1952 { 1953 unsigned FIL0_0 : 1; 1954 unsigned FIL0_1 : 1; 1955 unsigned FIL1_0 : 1; 1956 unsigned FIL1_1 : 1; 1957 unsigned FIL2_0 : 1; 1958 unsigned FIL2_1 : 1; 1959 unsigned FIL3_0 : 1; 1960 unsigned FIL3_1 : 1; 1961 }; 1962 1963 struct 1964 { 1965 unsigned FIL0_ : 2; 1966 unsigned : 6; 1967 }; 1968 1969 struct 1970 { 1971 unsigned : 2; 1972 unsigned FIL1_ : 2; 1973 unsigned : 4; 1974 }; 1975 1976 struct 1977 { 1978 unsigned : 4; 1979 unsigned FIL2_ : 2; 1980 unsigned : 2; 1981 }; 1982 1983 struct 1984 { 1985 unsigned : 6; 1986 unsigned FIL3_ : 2; 1987 }; 1988 } __MSEL0bits_t; 1989 1990 extern __at(0x0DF0) volatile __MSEL0bits_t MSEL0bits; 1991 1992 #define _FIL0_0 0x01 1993 #define _FIL0_1 0x02 1994 #define _FIL1_0 0x04 1995 #define _FIL1_1 0x08 1996 #define _FIL2_0 0x10 1997 #define _FIL2_1 0x20 1998 #define _FIL3_0 0x40 1999 #define _FIL3_1 0x80 2000 2001 //============================================================================== 2002 2003 2004 //============================================================================== 2005 // MSEL1 Bits 2006 2007 extern __at(0x0DF1) __sfr MSEL1; 2008 2009 typedef union 2010 { 2011 struct 2012 { 2013 unsigned FIL4_0 : 1; 2014 unsigned FIL4_1 : 1; 2015 unsigned FIL5_0 : 1; 2016 unsigned FIL5_1 : 1; 2017 unsigned FIL6_0 : 1; 2018 unsigned FIL6_1 : 1; 2019 unsigned FIL7_0 : 1; 2020 unsigned FIL7_1 : 1; 2021 }; 2022 2023 struct 2024 { 2025 unsigned FIL4_ : 2; 2026 unsigned : 6; 2027 }; 2028 2029 struct 2030 { 2031 unsigned : 2; 2032 unsigned FIL5_ : 2; 2033 unsigned : 4; 2034 }; 2035 2036 struct 2037 { 2038 unsigned : 4; 2039 unsigned FIL6_ : 2; 2040 unsigned : 2; 2041 }; 2042 2043 struct 2044 { 2045 unsigned : 6; 2046 unsigned FIL7_ : 2; 2047 }; 2048 } __MSEL1bits_t; 2049 2050 extern __at(0x0DF1) volatile __MSEL1bits_t MSEL1bits; 2051 2052 #define _FIL4_0 0x01 2053 #define _FIL4_1 0x02 2054 #define _FIL5_0 0x04 2055 #define _FIL5_1 0x08 2056 #define _FIL6_0 0x10 2057 #define _FIL6_1 0x20 2058 #define _FIL7_0 0x40 2059 #define _FIL7_1 0x80 2060 2061 //============================================================================== 2062 2063 2064 //============================================================================== 2065 // MSEL2 Bits 2066 2067 extern __at(0x0DF2) __sfr MSEL2; 2068 2069 typedef union 2070 { 2071 struct 2072 { 2073 unsigned FIL8_0 : 1; 2074 unsigned FIL8_1 : 1; 2075 unsigned FIL9_0 : 1; 2076 unsigned FIL9_1 : 1; 2077 unsigned FIL10_0 : 1; 2078 unsigned FIL10_1 : 1; 2079 unsigned FIL11_0 : 1; 2080 unsigned FIL11_1 : 1; 2081 }; 2082 2083 struct 2084 { 2085 unsigned FIL8_ : 2; 2086 unsigned : 6; 2087 }; 2088 2089 struct 2090 { 2091 unsigned : 2; 2092 unsigned FIL9_ : 2; 2093 unsigned : 4; 2094 }; 2095 2096 struct 2097 { 2098 unsigned : 4; 2099 unsigned FIL10_ : 2; 2100 unsigned : 2; 2101 }; 2102 2103 struct 2104 { 2105 unsigned : 6; 2106 unsigned FIL11_ : 2; 2107 }; 2108 } __MSEL2bits_t; 2109 2110 extern __at(0x0DF2) volatile __MSEL2bits_t MSEL2bits; 2111 2112 #define _FIL8_0 0x01 2113 #define _FIL8_1 0x02 2114 #define _FIL9_0 0x04 2115 #define _FIL9_1 0x08 2116 #define _FIL10_0 0x10 2117 #define _FIL10_1 0x20 2118 #define _FIL11_0 0x40 2119 #define _FIL11_1 0x80 2120 2121 //============================================================================== 2122 2123 2124 //============================================================================== 2125 // MSEL3 Bits 2126 2127 extern __at(0x0DF3) __sfr MSEL3; 2128 2129 typedef union 2130 { 2131 struct 2132 { 2133 unsigned FIL12_0 : 1; 2134 unsigned FIL12_1 : 1; 2135 unsigned FIL13_0 : 1; 2136 unsigned FIL13_1 : 1; 2137 unsigned FIL14_0 : 1; 2138 unsigned FIL14_1 : 1; 2139 unsigned FIL15_0 : 1; 2140 unsigned FIL15_1 : 1; 2141 }; 2142 2143 struct 2144 { 2145 unsigned FIL12_ : 2; 2146 unsigned : 6; 2147 }; 2148 2149 struct 2150 { 2151 unsigned : 2; 2152 unsigned FIL13_ : 2; 2153 unsigned : 4; 2154 }; 2155 2156 struct 2157 { 2158 unsigned : 4; 2159 unsigned FIL14_ : 2; 2160 unsigned : 2; 2161 }; 2162 2163 struct 2164 { 2165 unsigned : 6; 2166 unsigned FIL15_ : 2; 2167 }; 2168 } __MSEL3bits_t; 2169 2170 extern __at(0x0DF3) volatile __MSEL3bits_t MSEL3bits; 2171 2172 #define _FIL12_0 0x01 2173 #define _FIL12_1 0x02 2174 #define _FIL13_0 0x04 2175 #define _FIL13_1 0x08 2176 #define _FIL14_0 0x10 2177 #define _FIL14_1 0x20 2178 #define _FIL15_0 0x40 2179 #define _FIL15_1 0x80 2180 2181 //============================================================================== 2182 2183 2184 //============================================================================== 2185 // BSEL0 Bits 2186 2187 extern __at(0x0DF8) __sfr BSEL0; 2188 2189 typedef struct 2190 { 2191 unsigned : 1; 2192 unsigned : 1; 2193 unsigned B0TXEN : 1; 2194 unsigned B1TXEN : 1; 2195 unsigned B2TXEN : 1; 2196 unsigned B3TXEN : 1; 2197 unsigned B4TXEN : 1; 2198 unsigned B5TXEN : 1; 2199 } __BSEL0bits_t; 2200 2201 extern __at(0x0DF8) volatile __BSEL0bits_t BSEL0bits; 2202 2203 #define _B0TXEN 0x04 2204 #define _B1TXEN 0x08 2205 #define _B2TXEN 0x10 2206 #define _B3TXEN 0x20 2207 #define _B4TXEN 0x40 2208 #define _B5TXEN 0x80 2209 2210 //============================================================================== 2211 2212 2213 //============================================================================== 2214 // BIE0 Bits 2215 2216 extern __at(0x0DFA) __sfr BIE0; 2217 2218 typedef struct 2219 { 2220 unsigned RXB0IE : 1; 2221 unsigned RXB1IE : 1; 2222 unsigned B0IE : 1; 2223 unsigned B1IE : 1; 2224 unsigned B2IE : 1; 2225 unsigned B3IE : 1; 2226 unsigned B4IE : 1; 2227 unsigned B5IE : 1; 2228 } __BIE0bits_t; 2229 2230 extern __at(0x0DFA) volatile __BIE0bits_t BIE0bits; 2231 2232 #define _RXB0IE 0x01 2233 #define _RXB1IE 0x02 2234 #define _B0IE 0x04 2235 #define _B1IE 0x08 2236 #define _B2IE 0x10 2237 #define _B3IE 0x20 2238 #define _B4IE 0x40 2239 #define _B5IE 0x80 2240 2241 //============================================================================== 2242 2243 2244 //============================================================================== 2245 // TXBIE Bits 2246 2247 extern __at(0x0DFC) __sfr TXBIE; 2248 2249 typedef struct 2250 { 2251 unsigned : 1; 2252 unsigned : 1; 2253 unsigned TXB0IE : 1; 2254 unsigned TXB1IE : 1; 2255 unsigned TXB2IE : 1; 2256 unsigned : 1; 2257 unsigned : 1; 2258 unsigned : 1; 2259 } __TXBIEbits_t; 2260 2261 extern __at(0x0DFC) volatile __TXBIEbits_t TXBIEbits; 2262 2263 #define _TXBIE_TXB0IE 0x04 2264 #define _TXBIE_TXB1IE 0x08 2265 #define _TXBIE_TXB2IE 0x10 2266 2267 //============================================================================== 2268 2269 2270 //============================================================================== 2271 // B0CON Bits 2272 2273 extern __at(0x0E20) __sfr B0CON; 2274 2275 typedef union 2276 { 2277 struct 2278 { 2279 unsigned FILHIT0_TXPRI0 : 1; 2280 unsigned FILHIT1_TXPRI1 : 1; 2281 unsigned FILHIT2_RTREN : 1; 2282 unsigned FILHIT3_TXREQ : 1; 2283 unsigned FILHIT4_TXERR : 1; 2284 unsigned RXRTRRO_TXLARB : 1; 2285 unsigned RXM1_TXABT : 1; 2286 unsigned RXFUL_TXBIF : 1; 2287 }; 2288 2289 struct 2290 { 2291 unsigned FILHIT0 : 1; 2292 unsigned FILHIT1 : 1; 2293 unsigned FILHIT2 : 1; 2294 unsigned FILHIT3 : 1; 2295 unsigned FILHIT4 : 1; 2296 unsigned RTRRO : 1; 2297 unsigned RXM1 : 1; 2298 unsigned RXFUL : 1; 2299 }; 2300 2301 struct 2302 { 2303 unsigned TXPRI0 : 1; 2304 unsigned TXPRI1 : 1; 2305 unsigned RTREN : 1; 2306 unsigned TXREQ : 1; 2307 unsigned TXERR : 1; 2308 unsigned TXLARB : 1; 2309 unsigned TXABT : 1; 2310 unsigned TXBIF : 1; 2311 }; 2312 2313 struct 2314 { 2315 unsigned : 1; 2316 unsigned : 1; 2317 unsigned : 1; 2318 unsigned : 1; 2319 unsigned : 1; 2320 unsigned RTRRO_TXLARB : 1; 2321 unsigned : 1; 2322 unsigned : 1; 2323 }; 2324 2325 struct 2326 { 2327 unsigned TXPRI : 2; 2328 unsigned : 6; 2329 }; 2330 2331 struct 2332 { 2333 unsigned FILHIT : 5; 2334 unsigned : 3; 2335 }; 2336 } __B0CONbits_t; 2337 2338 extern __at(0x0E20) volatile __B0CONbits_t B0CONbits; 2339 2340 #define _FILHIT0_TXPRI0 0x01 2341 #define _FILHIT0 0x01 2342 #define _TXPRI0 0x01 2343 #define _FILHIT1_TXPRI1 0x02 2344 #define _FILHIT1 0x02 2345 #define _TXPRI1 0x02 2346 #define _FILHIT2_RTREN 0x04 2347 #define _FILHIT2 0x04 2348 #define _RTREN 0x04 2349 #define _FILHIT3_TXREQ 0x08 2350 #define _FILHIT3 0x08 2351 #define _TXREQ 0x08 2352 #define _FILHIT4_TXERR 0x10 2353 #define _FILHIT4 0x10 2354 #define _TXERR 0x10 2355 #define _RXRTRRO_TXLARB 0x20 2356 #define _RTRRO 0x20 2357 #define _TXLARB 0x20 2358 #define _RTRRO_TXLARB 0x20 2359 #define _RXM1_TXABT 0x40 2360 #define _RXM1 0x40 2361 #define _TXABT 0x40 2362 #define _RXFUL_TXBIF 0x80 2363 #define _RXFUL 0x80 2364 #define _TXBIF 0x80 2365 2366 //============================================================================== 2367 2368 2369 //============================================================================== 2370 // B0SIDH Bits 2371 2372 extern __at(0x0E21) __sfr B0SIDH; 2373 2374 typedef struct 2375 { 2376 unsigned SID3 : 1; 2377 unsigned SID4 : 1; 2378 unsigned SID5 : 1; 2379 unsigned SID6 : 1; 2380 unsigned SID7 : 1; 2381 unsigned SID8 : 1; 2382 unsigned SID9 : 1; 2383 unsigned SID10 : 1; 2384 } __B0SIDHbits_t; 2385 2386 extern __at(0x0E21) volatile __B0SIDHbits_t B0SIDHbits; 2387 2388 #define _SID3 0x01 2389 #define _SID4 0x02 2390 #define _SID5 0x04 2391 #define _SID6 0x08 2392 #define _SID7 0x10 2393 #define _SID8 0x20 2394 #define _SID9 0x40 2395 #define _SID10 0x80 2396 2397 //============================================================================== 2398 2399 2400 //============================================================================== 2401 // B0SIDL Bits 2402 2403 extern __at(0x0E22) __sfr B0SIDL; 2404 2405 typedef union 2406 { 2407 struct 2408 { 2409 unsigned EID16 : 1; 2410 unsigned EID17 : 1; 2411 unsigned : 1; 2412 unsigned EXID : 1; 2413 unsigned SRR : 1; 2414 unsigned SID0 : 1; 2415 unsigned SID1 : 1; 2416 unsigned SID2 : 1; 2417 }; 2418 2419 struct 2420 { 2421 unsigned : 1; 2422 unsigned : 1; 2423 unsigned : 1; 2424 unsigned EXIDE : 1; 2425 unsigned : 1; 2426 unsigned : 1; 2427 unsigned : 1; 2428 unsigned : 1; 2429 }; 2430 2431 struct 2432 { 2433 unsigned : 5; 2434 unsigned SID : 3; 2435 }; 2436 } __B0SIDLbits_t; 2437 2438 extern __at(0x0E22) volatile __B0SIDLbits_t B0SIDLbits; 2439 2440 #define _EID16 0x01 2441 #define _EID17 0x02 2442 #define _EXID 0x08 2443 #define _EXIDE 0x08 2444 #define _SRR 0x10 2445 #define _SID0 0x20 2446 #define _SID1 0x40 2447 #define _SID2 0x80 2448 2449 //============================================================================== 2450 2451 2452 //============================================================================== 2453 // B0EIDH Bits 2454 2455 extern __at(0x0E23) __sfr B0EIDH; 2456 2457 typedef struct 2458 { 2459 unsigned EID8 : 1; 2460 unsigned EID9 : 1; 2461 unsigned EID10 : 1; 2462 unsigned EID11 : 1; 2463 unsigned EID12 : 1; 2464 unsigned EID13 : 1; 2465 unsigned EID14 : 1; 2466 unsigned EID15 : 1; 2467 } __B0EIDHbits_t; 2468 2469 extern __at(0x0E23) volatile __B0EIDHbits_t B0EIDHbits; 2470 2471 #define _EID8 0x01 2472 #define _EID9 0x02 2473 #define _EID10 0x04 2474 #define _EID11 0x08 2475 #define _EID12 0x10 2476 #define _EID13 0x20 2477 #define _EID14 0x40 2478 #define _EID15 0x80 2479 2480 //============================================================================== 2481 2482 2483 //============================================================================== 2484 // B0EIDL Bits 2485 2486 extern __at(0x0E24) __sfr B0EIDL; 2487 2488 typedef struct 2489 { 2490 unsigned EID0 : 1; 2491 unsigned EID1 : 1; 2492 unsigned EID2 : 1; 2493 unsigned EID3 : 1; 2494 unsigned EID4 : 1; 2495 unsigned EID5 : 1; 2496 unsigned EID6 : 1; 2497 unsigned EID7 : 1; 2498 } __B0EIDLbits_t; 2499 2500 extern __at(0x0E24) volatile __B0EIDLbits_t B0EIDLbits; 2501 2502 #define _EID0 0x01 2503 #define _EID1 0x02 2504 #define _EID2 0x04 2505 #define _EID3 0x08 2506 #define _EID4 0x10 2507 #define _EID5 0x20 2508 #define _EID6 0x40 2509 #define _EID7 0x80 2510 2511 //============================================================================== 2512 2513 2514 //============================================================================== 2515 // B0DLC Bits 2516 2517 extern __at(0x0E25) __sfr B0DLC; 2518 2519 typedef union 2520 { 2521 struct 2522 { 2523 unsigned DLC0 : 1; 2524 unsigned DLC1 : 1; 2525 unsigned DLC2 : 1; 2526 unsigned DLC3 : 1; 2527 unsigned RB0 : 1; 2528 unsigned RB1 : 1; 2529 unsigned RXRTR : 1; 2530 unsigned : 1; 2531 }; 2532 2533 struct 2534 { 2535 unsigned : 1; 2536 unsigned : 1; 2537 unsigned : 1; 2538 unsigned : 1; 2539 unsigned RESRB0 : 1; 2540 unsigned RESRB1 : 1; 2541 unsigned TXRTR : 1; 2542 unsigned : 1; 2543 }; 2544 2545 struct 2546 { 2547 unsigned DLC : 4; 2548 unsigned : 4; 2549 }; 2550 2551 struct 2552 { 2553 unsigned : 4; 2554 unsigned RB : 2; 2555 unsigned : 2; 2556 }; 2557 2558 struct 2559 { 2560 unsigned : 4; 2561 unsigned RESRB : 2; 2562 unsigned : 2; 2563 }; 2564 } __B0DLCbits_t; 2565 2566 extern __at(0x0E25) volatile __B0DLCbits_t B0DLCbits; 2567 2568 #define _DLC0 0x01 2569 #define _DLC1 0x02 2570 #define _DLC2 0x04 2571 #define _DLC3 0x08 2572 #define _RB0 0x10 2573 #define _RESRB0 0x10 2574 #define _RB1 0x20 2575 #define _RESRB1 0x20 2576 #define _RXRTR 0x40 2577 #define _TXRTR 0x40 2578 2579 //============================================================================== 2580 2581 2582 //============================================================================== 2583 // B0D0 Bits 2584 2585 extern __at(0x0E26) __sfr B0D0; 2586 2587 typedef struct 2588 { 2589 unsigned B0D00 : 1; 2590 unsigned B0D01 : 1; 2591 unsigned B0D02 : 1; 2592 unsigned B0D03 : 1; 2593 unsigned B0D04 : 1; 2594 unsigned B0D05 : 1; 2595 unsigned B0D06 : 1; 2596 unsigned B0D07 : 1; 2597 } __B0D0bits_t; 2598 2599 extern __at(0x0E26) volatile __B0D0bits_t B0D0bits; 2600 2601 #define _B0D00 0x01 2602 #define _B0D01 0x02 2603 #define _B0D02 0x04 2604 #define _B0D03 0x08 2605 #define _B0D04 0x10 2606 #define _B0D05 0x20 2607 #define _B0D06 0x40 2608 #define _B0D07 0x80 2609 2610 //============================================================================== 2611 2612 2613 //============================================================================== 2614 // B0D1 Bits 2615 2616 extern __at(0x0E27) __sfr B0D1; 2617 2618 typedef struct 2619 { 2620 unsigned B0D10 : 1; 2621 unsigned B0D11 : 1; 2622 unsigned B0D12 : 1; 2623 unsigned B0D13 : 1; 2624 unsigned B0D14 : 1; 2625 unsigned B0D15 : 1; 2626 unsigned B0D16 : 1; 2627 unsigned B0D17 : 1; 2628 } __B0D1bits_t; 2629 2630 extern __at(0x0E27) volatile __B0D1bits_t B0D1bits; 2631 2632 #define _B0D10 0x01 2633 #define _B0D11 0x02 2634 #define _B0D12 0x04 2635 #define _B0D13 0x08 2636 #define _B0D14 0x10 2637 #define _B0D15 0x20 2638 #define _B0D16 0x40 2639 #define _B0D17 0x80 2640 2641 //============================================================================== 2642 2643 2644 //============================================================================== 2645 // B0D2 Bits 2646 2647 extern __at(0x0E28) __sfr B0D2; 2648 2649 typedef struct 2650 { 2651 unsigned B0D20 : 1; 2652 unsigned B0D21 : 1; 2653 unsigned B0D22 : 1; 2654 unsigned B0D23 : 1; 2655 unsigned B0D24 : 1; 2656 unsigned B0D25 : 1; 2657 unsigned B0D26 : 1; 2658 unsigned B0D27 : 1; 2659 } __B0D2bits_t; 2660 2661 extern __at(0x0E28) volatile __B0D2bits_t B0D2bits; 2662 2663 #define _B0D20 0x01 2664 #define _B0D21 0x02 2665 #define _B0D22 0x04 2666 #define _B0D23 0x08 2667 #define _B0D24 0x10 2668 #define _B0D25 0x20 2669 #define _B0D26 0x40 2670 #define _B0D27 0x80 2671 2672 //============================================================================== 2673 2674 2675 //============================================================================== 2676 // B0D3 Bits 2677 2678 extern __at(0x0E29) __sfr B0D3; 2679 2680 typedef struct 2681 { 2682 unsigned B0D30 : 1; 2683 unsigned B0D31 : 1; 2684 unsigned B0D32 : 1; 2685 unsigned B0D33 : 1; 2686 unsigned B0D34 : 1; 2687 unsigned B0D35 : 1; 2688 unsigned B0D36 : 1; 2689 unsigned B0D37 : 1; 2690 } __B0D3bits_t; 2691 2692 extern __at(0x0E29) volatile __B0D3bits_t B0D3bits; 2693 2694 #define _B0D30 0x01 2695 #define _B0D31 0x02 2696 #define _B0D32 0x04 2697 #define _B0D33 0x08 2698 #define _B0D34 0x10 2699 #define _B0D35 0x20 2700 #define _B0D36 0x40 2701 #define _B0D37 0x80 2702 2703 //============================================================================== 2704 2705 2706 //============================================================================== 2707 // B0D4 Bits 2708 2709 extern __at(0x0E2A) __sfr B0D4; 2710 2711 typedef struct 2712 { 2713 unsigned B0D40 : 1; 2714 unsigned B0D41 : 1; 2715 unsigned B0D42 : 1; 2716 unsigned B0D43 : 1; 2717 unsigned B0D44 : 1; 2718 unsigned B0D45 : 1; 2719 unsigned B0D46 : 1; 2720 unsigned B0D47 : 1; 2721 } __B0D4bits_t; 2722 2723 extern __at(0x0E2A) volatile __B0D4bits_t B0D4bits; 2724 2725 #define _B0D40 0x01 2726 #define _B0D41 0x02 2727 #define _B0D42 0x04 2728 #define _B0D43 0x08 2729 #define _B0D44 0x10 2730 #define _B0D45 0x20 2731 #define _B0D46 0x40 2732 #define _B0D47 0x80 2733 2734 //============================================================================== 2735 2736 2737 //============================================================================== 2738 // B0D5 Bits 2739 2740 extern __at(0x0E2B) __sfr B0D5; 2741 2742 typedef struct 2743 { 2744 unsigned B0D50 : 1; 2745 unsigned B0D51 : 1; 2746 unsigned B0D52 : 1; 2747 unsigned B0D53 : 1; 2748 unsigned B0D54 : 1; 2749 unsigned B0D55 : 1; 2750 unsigned B0D56 : 1; 2751 unsigned B0D57 : 1; 2752 } __B0D5bits_t; 2753 2754 extern __at(0x0E2B) volatile __B0D5bits_t B0D5bits; 2755 2756 #define _B0D50 0x01 2757 #define _B0D51 0x02 2758 #define _B0D52 0x04 2759 #define _B0D53 0x08 2760 #define _B0D54 0x10 2761 #define _B0D55 0x20 2762 #define _B0D56 0x40 2763 #define _B0D57 0x80 2764 2765 //============================================================================== 2766 2767 2768 //============================================================================== 2769 // B0D6 Bits 2770 2771 extern __at(0x0E2C) __sfr B0D6; 2772 2773 typedef struct 2774 { 2775 unsigned B0D60 : 1; 2776 unsigned B0D61 : 1; 2777 unsigned B0D62 : 1; 2778 unsigned B0D63 : 1; 2779 unsigned B0D64 : 1; 2780 unsigned B0D65 : 1; 2781 unsigned B0D66 : 1; 2782 unsigned B0D67 : 1; 2783 } __B0D6bits_t; 2784 2785 extern __at(0x0E2C) volatile __B0D6bits_t B0D6bits; 2786 2787 #define _B0D60 0x01 2788 #define _B0D61 0x02 2789 #define _B0D62 0x04 2790 #define _B0D63 0x08 2791 #define _B0D64 0x10 2792 #define _B0D65 0x20 2793 #define _B0D66 0x40 2794 #define _B0D67 0x80 2795 2796 //============================================================================== 2797 2798 2799 //============================================================================== 2800 // B0D7 Bits 2801 2802 extern __at(0x0E2D) __sfr B0D7; 2803 2804 typedef struct 2805 { 2806 unsigned B0D70 : 1; 2807 unsigned B0D71 : 1; 2808 unsigned B0D72 : 1; 2809 unsigned B0D73 : 1; 2810 unsigned B0D74 : 1; 2811 unsigned B0D75 : 1; 2812 unsigned B0D76 : 1; 2813 unsigned B0D77 : 1; 2814 } __B0D7bits_t; 2815 2816 extern __at(0x0E2D) volatile __B0D7bits_t B0D7bits; 2817 2818 #define _B0D70 0x01 2819 #define _B0D71 0x02 2820 #define _B0D72 0x04 2821 #define _B0D73 0x08 2822 #define _B0D74 0x10 2823 #define _B0D75 0x20 2824 #define _B0D76 0x40 2825 #define _B0D77 0x80 2826 2827 //============================================================================== 2828 2829 2830 //============================================================================== 2831 // CANSTAT_RO9 Bits 2832 2833 extern __at(0x0E2E) __sfr CANSTAT_RO9; 2834 2835 typedef union 2836 { 2837 struct 2838 { 2839 unsigned EICODE0 : 1; 2840 unsigned EICODE1_ICODE0 : 1; 2841 unsigned EICODE2_ICODE1 : 1; 2842 unsigned EICODE3_ICODE2 : 1; 2843 unsigned EICODE4 : 1; 2844 unsigned OPMODE0 : 1; 2845 unsigned OPMODE1 : 1; 2846 unsigned OPMODE2 : 1; 2847 }; 2848 2849 struct 2850 { 2851 unsigned : 5; 2852 unsigned OPMODE : 3; 2853 }; 2854 } __CANSTAT_RO9bits_t; 2855 2856 extern __at(0x0E2E) volatile __CANSTAT_RO9bits_t CANSTAT_RO9bits; 2857 2858 #define _CANSTAT_RO9_EICODE0 0x01 2859 #define _CANSTAT_RO9_EICODE1_ICODE0 0x02 2860 #define _CANSTAT_RO9_EICODE2_ICODE1 0x04 2861 #define _CANSTAT_RO9_EICODE3_ICODE2 0x08 2862 #define _CANSTAT_RO9_EICODE4 0x10 2863 #define _CANSTAT_RO9_OPMODE0 0x20 2864 #define _CANSTAT_RO9_OPMODE1 0x40 2865 #define _CANSTAT_RO9_OPMODE2 0x80 2866 2867 //============================================================================== 2868 2869 2870 //============================================================================== 2871 // CANCON_RO9 Bits 2872 2873 extern __at(0x0E2F) __sfr CANCON_RO9; 2874 2875 typedef union 2876 { 2877 struct 2878 { 2879 unsigned FP0 : 1; 2880 unsigned WIN0_FP1 : 1; 2881 unsigned WIN1_FP2 : 1; 2882 unsigned WIN2_FP3 : 1; 2883 unsigned ABAT : 1; 2884 unsigned REQOP0 : 1; 2885 unsigned REQOP1 : 1; 2886 unsigned REQOP2 : 1; 2887 }; 2888 2889 struct 2890 { 2891 unsigned : 5; 2892 unsigned REQOP : 3; 2893 }; 2894 } __CANCON_RO9bits_t; 2895 2896 extern __at(0x0E2F) volatile __CANCON_RO9bits_t CANCON_RO9bits; 2897 2898 #define _CANCON_RO9_FP0 0x01 2899 #define _CANCON_RO9_WIN0_FP1 0x02 2900 #define _CANCON_RO9_WIN1_FP2 0x04 2901 #define _CANCON_RO9_WIN2_FP3 0x08 2902 #define _CANCON_RO9_ABAT 0x10 2903 #define _CANCON_RO9_REQOP0 0x20 2904 #define _CANCON_RO9_REQOP1 0x40 2905 #define _CANCON_RO9_REQOP2 0x80 2906 2907 //============================================================================== 2908 2909 2910 //============================================================================== 2911 // B1CON Bits 2912 2913 extern __at(0x0E30) __sfr B1CON; 2914 2915 typedef union 2916 { 2917 struct 2918 { 2919 unsigned FILHIT0_TXPRI0 : 1; 2920 unsigned FILHIT1_TXPRI1 : 1; 2921 unsigned FILHIT2_RTREN : 1; 2922 unsigned FILHIT3_TXREQ : 1; 2923 unsigned FILHIT4_TXERR : 1; 2924 unsigned RTRRO_TXLARB : 1; 2925 unsigned RXM1_TXABT : 1; 2926 unsigned RXFUL_TXBIF : 1; 2927 }; 2928 2929 struct 2930 { 2931 unsigned FILHIT0 : 1; 2932 unsigned FILHIT1 : 1; 2933 unsigned FILHIT2 : 1; 2934 unsigned FILHIT3 : 1; 2935 unsigned FILHIT4 : 1; 2936 unsigned RTRRO : 1; 2937 unsigned RXM1 : 1; 2938 unsigned RXFUL : 1; 2939 }; 2940 2941 struct 2942 { 2943 unsigned TXPRI0 : 1; 2944 unsigned TXPRI1 : 1; 2945 unsigned RTREN : 1; 2946 unsigned TXREQ : 1; 2947 unsigned TXERR : 1; 2948 unsigned TXLARB : 1; 2949 unsigned TXABT : 1; 2950 unsigned TXBIF : 1; 2951 }; 2952 2953 struct 2954 { 2955 unsigned FILHIT : 5; 2956 unsigned : 3; 2957 }; 2958 2959 struct 2960 { 2961 unsigned TXPRI : 2; 2962 unsigned : 6; 2963 }; 2964 } __B1CONbits_t; 2965 2966 extern __at(0x0E30) volatile __B1CONbits_t B1CONbits; 2967 2968 #define _B1CON_FILHIT0_TXPRI0 0x01 2969 #define _B1CON_FILHIT0 0x01 2970 #define _B1CON_TXPRI0 0x01 2971 #define _B1CON_FILHIT1_TXPRI1 0x02 2972 #define _B1CON_FILHIT1 0x02 2973 #define _B1CON_TXPRI1 0x02 2974 #define _B1CON_FILHIT2_RTREN 0x04 2975 #define _B1CON_FILHIT2 0x04 2976 #define _B1CON_RTREN 0x04 2977 #define _B1CON_FILHIT3_TXREQ 0x08 2978 #define _B1CON_FILHIT3 0x08 2979 #define _B1CON_TXREQ 0x08 2980 #define _B1CON_FILHIT4_TXERR 0x10 2981 #define _B1CON_FILHIT4 0x10 2982 #define _B1CON_TXERR 0x10 2983 #define _B1CON_RTRRO_TXLARB 0x20 2984 #define _B1CON_RTRRO 0x20 2985 #define _B1CON_TXLARB 0x20 2986 #define _B1CON_RXM1_TXABT 0x40 2987 #define _B1CON_RXM1 0x40 2988 #define _B1CON_TXABT 0x40 2989 #define _B1CON_RXFUL_TXBIF 0x80 2990 #define _B1CON_RXFUL 0x80 2991 #define _B1CON_TXBIF 0x80 2992 2993 //============================================================================== 2994 2995 2996 //============================================================================== 2997 // B1SIDH Bits 2998 2999 extern __at(0x0E31) __sfr B1SIDH; 3000 3001 typedef struct 3002 { 3003 unsigned SID3 : 1; 3004 unsigned SID4 : 1; 3005 unsigned SID5 : 1; 3006 unsigned SID6 : 1; 3007 unsigned SID7 : 1; 3008 unsigned SID8 : 1; 3009 unsigned SID9 : 1; 3010 unsigned SID10 : 1; 3011 } __B1SIDHbits_t; 3012 3013 extern __at(0x0E31) volatile __B1SIDHbits_t B1SIDHbits; 3014 3015 #define _B1SIDH_SID3 0x01 3016 #define _B1SIDH_SID4 0x02 3017 #define _B1SIDH_SID5 0x04 3018 #define _B1SIDH_SID6 0x08 3019 #define _B1SIDH_SID7 0x10 3020 #define _B1SIDH_SID8 0x20 3021 #define _B1SIDH_SID9 0x40 3022 #define _B1SIDH_SID10 0x80 3023 3024 //============================================================================== 3025 3026 3027 //============================================================================== 3028 // B1SIDL Bits 3029 3030 extern __at(0x0E32) __sfr B1SIDL; 3031 3032 typedef union 3033 { 3034 struct 3035 { 3036 unsigned EID16 : 1; 3037 unsigned EID17 : 1; 3038 unsigned : 1; 3039 unsigned EXID : 1; 3040 unsigned SRR : 1; 3041 unsigned SID0 : 1; 3042 unsigned SID1 : 1; 3043 unsigned SID2 : 1; 3044 }; 3045 3046 struct 3047 { 3048 unsigned : 1; 3049 unsigned : 1; 3050 unsigned : 1; 3051 unsigned EXIDE : 1; 3052 unsigned : 1; 3053 unsigned : 1; 3054 unsigned : 1; 3055 unsigned : 1; 3056 }; 3057 3058 struct 3059 { 3060 unsigned : 5; 3061 unsigned SID : 3; 3062 }; 3063 } __B1SIDLbits_t; 3064 3065 extern __at(0x0E32) volatile __B1SIDLbits_t B1SIDLbits; 3066 3067 #define _B1SIDL_EID16 0x01 3068 #define _B1SIDL_EID17 0x02 3069 #define _B1SIDL_EXID 0x08 3070 #define _B1SIDL_EXIDE 0x08 3071 #define _B1SIDL_SRR 0x10 3072 #define _B1SIDL_SID0 0x20 3073 #define _B1SIDL_SID1 0x40 3074 #define _B1SIDL_SID2 0x80 3075 3076 //============================================================================== 3077 3078 3079 //============================================================================== 3080 // B1EIDH Bits 3081 3082 extern __at(0x0E33) __sfr B1EIDH; 3083 3084 typedef struct 3085 { 3086 unsigned EID8 : 1; 3087 unsigned EID9 : 1; 3088 unsigned EID10 : 1; 3089 unsigned EID11 : 1; 3090 unsigned EID12 : 1; 3091 unsigned EID13 : 1; 3092 unsigned EID14 : 1; 3093 unsigned EID15 : 1; 3094 } __B1EIDHbits_t; 3095 3096 extern __at(0x0E33) volatile __B1EIDHbits_t B1EIDHbits; 3097 3098 #define _B1EIDH_EID8 0x01 3099 #define _B1EIDH_EID9 0x02 3100 #define _B1EIDH_EID10 0x04 3101 #define _B1EIDH_EID11 0x08 3102 #define _B1EIDH_EID12 0x10 3103 #define _B1EIDH_EID13 0x20 3104 #define _B1EIDH_EID14 0x40 3105 #define _B1EIDH_EID15 0x80 3106 3107 //============================================================================== 3108 3109 3110 //============================================================================== 3111 // B1EIDL Bits 3112 3113 extern __at(0x0E34) __sfr B1EIDL; 3114 3115 typedef struct 3116 { 3117 unsigned EID0 : 1; 3118 unsigned EID1 : 1; 3119 unsigned EID2 : 1; 3120 unsigned EID3 : 1; 3121 unsigned EID4 : 1; 3122 unsigned EID5 : 1; 3123 unsigned EID6 : 1; 3124 unsigned EID7 : 1; 3125 } __B1EIDLbits_t; 3126 3127 extern __at(0x0E34) volatile __B1EIDLbits_t B1EIDLbits; 3128 3129 #define _B1EIDL_EID0 0x01 3130 #define _B1EIDL_EID1 0x02 3131 #define _B1EIDL_EID2 0x04 3132 #define _B1EIDL_EID3 0x08 3133 #define _B1EIDL_EID4 0x10 3134 #define _B1EIDL_EID5 0x20 3135 #define _B1EIDL_EID6 0x40 3136 #define _B1EIDL_EID7 0x80 3137 3138 //============================================================================== 3139 3140 3141 //============================================================================== 3142 // B1DLC Bits 3143 3144 extern __at(0x0E35) __sfr B1DLC; 3145 3146 typedef union 3147 { 3148 struct 3149 { 3150 unsigned DLC0 : 1; 3151 unsigned DLC1 : 1; 3152 unsigned DLC2 : 1; 3153 unsigned DLC3 : 1; 3154 unsigned RB0 : 1; 3155 unsigned RB1 : 1; 3156 unsigned RXRTR : 1; 3157 unsigned : 1; 3158 }; 3159 3160 struct 3161 { 3162 unsigned : 1; 3163 unsigned : 1; 3164 unsigned : 1; 3165 unsigned : 1; 3166 unsigned RESRB0 : 1; 3167 unsigned RESRB1 : 1; 3168 unsigned TXRTR : 1; 3169 unsigned : 1; 3170 }; 3171 3172 struct 3173 { 3174 unsigned DLC : 4; 3175 unsigned : 4; 3176 }; 3177 3178 struct 3179 { 3180 unsigned : 4; 3181 unsigned RESRB : 2; 3182 unsigned : 2; 3183 }; 3184 3185 struct 3186 { 3187 unsigned : 4; 3188 unsigned RB : 2; 3189 unsigned : 2; 3190 }; 3191 } __B1DLCbits_t; 3192 3193 extern __at(0x0E35) volatile __B1DLCbits_t B1DLCbits; 3194 3195 #define _B1DLC_DLC0 0x01 3196 #define _B1DLC_DLC1 0x02 3197 #define _B1DLC_DLC2 0x04 3198 #define _B1DLC_DLC3 0x08 3199 #define _B1DLC_RB0 0x10 3200 #define _B1DLC_RESRB0 0x10 3201 #define _B1DLC_RB1 0x20 3202 #define _B1DLC_RESRB1 0x20 3203 #define _B1DLC_RXRTR 0x40 3204 #define _B1DLC_TXRTR 0x40 3205 3206 //============================================================================== 3207 3208 3209 //============================================================================== 3210 // B1D0 Bits 3211 3212 extern __at(0x0E36) __sfr B1D0; 3213 3214 typedef struct 3215 { 3216 unsigned B1D00 : 1; 3217 unsigned B1D01 : 1; 3218 unsigned B1D02 : 1; 3219 unsigned B1D03 : 1; 3220 unsigned B1D04 : 1; 3221 unsigned B1D05 : 1; 3222 unsigned B1D06 : 1; 3223 unsigned B1D07 : 1; 3224 } __B1D0bits_t; 3225 3226 extern __at(0x0E36) volatile __B1D0bits_t B1D0bits; 3227 3228 #define _B1D00 0x01 3229 #define _B1D01 0x02 3230 #define _B1D02 0x04 3231 #define _B1D03 0x08 3232 #define _B1D04 0x10 3233 #define _B1D05 0x20 3234 #define _B1D06 0x40 3235 #define _B1D07 0x80 3236 3237 //============================================================================== 3238 3239 3240 //============================================================================== 3241 // B1D1 Bits 3242 3243 extern __at(0x0E37) __sfr B1D1; 3244 3245 typedef struct 3246 { 3247 unsigned B1D10 : 1; 3248 unsigned B1D11 : 1; 3249 unsigned B1D12 : 1; 3250 unsigned B1D13 : 1; 3251 unsigned B1D14 : 1; 3252 unsigned B1D15 : 1; 3253 unsigned B1D16 : 1; 3254 unsigned B1D17 : 1; 3255 } __B1D1bits_t; 3256 3257 extern __at(0x0E37) volatile __B1D1bits_t B1D1bits; 3258 3259 #define _B1D10 0x01 3260 #define _B1D11 0x02 3261 #define _B1D12 0x04 3262 #define _B1D13 0x08 3263 #define _B1D14 0x10 3264 #define _B1D15 0x20 3265 #define _B1D16 0x40 3266 #define _B1D17 0x80 3267 3268 //============================================================================== 3269 3270 3271 //============================================================================== 3272 // B1D2 Bits 3273 3274 extern __at(0x0E38) __sfr B1D2; 3275 3276 typedef struct 3277 { 3278 unsigned B1D20 : 1; 3279 unsigned B1D21 : 1; 3280 unsigned B1D22 : 1; 3281 unsigned B1D23 : 1; 3282 unsigned B1D24 : 1; 3283 unsigned B1D25 : 1; 3284 unsigned B1D26 : 1; 3285 unsigned B1D27 : 1; 3286 } __B1D2bits_t; 3287 3288 extern __at(0x0E38) volatile __B1D2bits_t B1D2bits; 3289 3290 #define _B1D20 0x01 3291 #define _B1D21 0x02 3292 #define _B1D22 0x04 3293 #define _B1D23 0x08 3294 #define _B1D24 0x10 3295 #define _B1D25 0x20 3296 #define _B1D26 0x40 3297 #define _B1D27 0x80 3298 3299 //============================================================================== 3300 3301 3302 //============================================================================== 3303 // B1D3 Bits 3304 3305 extern __at(0x0E39) __sfr B1D3; 3306 3307 typedef struct 3308 { 3309 unsigned B1D30 : 1; 3310 unsigned B1D31 : 1; 3311 unsigned B1D32 : 1; 3312 unsigned B1D33 : 1; 3313 unsigned B1D34 : 1; 3314 unsigned B1D35 : 1; 3315 unsigned B1D36 : 1; 3316 unsigned B1D37 : 1; 3317 } __B1D3bits_t; 3318 3319 extern __at(0x0E39) volatile __B1D3bits_t B1D3bits; 3320 3321 #define _B1D30 0x01 3322 #define _B1D31 0x02 3323 #define _B1D32 0x04 3324 #define _B1D33 0x08 3325 #define _B1D34 0x10 3326 #define _B1D35 0x20 3327 #define _B1D36 0x40 3328 #define _B1D37 0x80 3329 3330 //============================================================================== 3331 3332 3333 //============================================================================== 3334 // B1D4 Bits 3335 3336 extern __at(0x0E3A) __sfr B1D4; 3337 3338 typedef struct 3339 { 3340 unsigned B1D40 : 1; 3341 unsigned B1D41 : 1; 3342 unsigned B1D42 : 1; 3343 unsigned B1D43 : 1; 3344 unsigned B1D44 : 1; 3345 unsigned B1D45 : 1; 3346 unsigned B1D46 : 1; 3347 unsigned B1D47 : 1; 3348 } __B1D4bits_t; 3349 3350 extern __at(0x0E3A) volatile __B1D4bits_t B1D4bits; 3351 3352 #define _B1D40 0x01 3353 #define _B1D41 0x02 3354 #define _B1D42 0x04 3355 #define _B1D43 0x08 3356 #define _B1D44 0x10 3357 #define _B1D45 0x20 3358 #define _B1D46 0x40 3359 #define _B1D47 0x80 3360 3361 //============================================================================== 3362 3363 3364 //============================================================================== 3365 // B1D5 Bits 3366 3367 extern __at(0x0E3B) __sfr B1D5; 3368 3369 typedef struct 3370 { 3371 unsigned B1D50 : 1; 3372 unsigned B1D51 : 1; 3373 unsigned B1D52 : 1; 3374 unsigned B1D53 : 1; 3375 unsigned B1D54 : 1; 3376 unsigned B1D55 : 1; 3377 unsigned B1D56 : 1; 3378 unsigned B1D57 : 1; 3379 } __B1D5bits_t; 3380 3381 extern __at(0x0E3B) volatile __B1D5bits_t B1D5bits; 3382 3383 #define _B1D50 0x01 3384 #define _B1D51 0x02 3385 #define _B1D52 0x04 3386 #define _B1D53 0x08 3387 #define _B1D54 0x10 3388 #define _B1D55 0x20 3389 #define _B1D56 0x40 3390 #define _B1D57 0x80 3391 3392 //============================================================================== 3393 3394 3395 //============================================================================== 3396 // B1D6 Bits 3397 3398 extern __at(0x0E3C) __sfr B1D6; 3399 3400 typedef struct 3401 { 3402 unsigned B1D60 : 1; 3403 unsigned B1D61 : 1; 3404 unsigned B1D62 : 1; 3405 unsigned B1D63 : 1; 3406 unsigned B1D64 : 1; 3407 unsigned B1D65 : 1; 3408 unsigned B1D66 : 1; 3409 unsigned B1D67 : 1; 3410 } __B1D6bits_t; 3411 3412 extern __at(0x0E3C) volatile __B1D6bits_t B1D6bits; 3413 3414 #define _B1D60 0x01 3415 #define _B1D61 0x02 3416 #define _B1D62 0x04 3417 #define _B1D63 0x08 3418 #define _B1D64 0x10 3419 #define _B1D65 0x20 3420 #define _B1D66 0x40 3421 #define _B1D67 0x80 3422 3423 //============================================================================== 3424 3425 3426 //============================================================================== 3427 // B1D7 Bits 3428 3429 extern __at(0x0E3D) __sfr B1D7; 3430 3431 typedef struct 3432 { 3433 unsigned B1D70 : 1; 3434 unsigned B1D71 : 1; 3435 unsigned B1D72 : 1; 3436 unsigned B1D73 : 1; 3437 unsigned B1D74 : 1; 3438 unsigned B1D75 : 1; 3439 unsigned B1D76 : 1; 3440 unsigned B1D77 : 1; 3441 } __B1D7bits_t; 3442 3443 extern __at(0x0E3D) volatile __B1D7bits_t B1D7bits; 3444 3445 #define _B1D70 0x01 3446 #define _B1D71 0x02 3447 #define _B1D72 0x04 3448 #define _B1D73 0x08 3449 #define _B1D74 0x10 3450 #define _B1D75 0x20 3451 #define _B1D76 0x40 3452 #define _B1D77 0x80 3453 3454 //============================================================================== 3455 3456 3457 //============================================================================== 3458 // CANSTAT_RO8 Bits 3459 3460 extern __at(0x0E3E) __sfr CANSTAT_RO8; 3461 3462 typedef union 3463 { 3464 struct 3465 { 3466 unsigned EICODE0 : 1; 3467 unsigned EICODE1_ICODE0 : 1; 3468 unsigned EICODE2_ICODE1 : 1; 3469 unsigned EICODE3_ICODE2 : 1; 3470 unsigned EICODE4 : 1; 3471 unsigned OPMODE0 : 1; 3472 unsigned OPMODE1 : 1; 3473 unsigned OPMODE2 : 1; 3474 }; 3475 3476 struct 3477 { 3478 unsigned : 5; 3479 unsigned OPMODE : 3; 3480 }; 3481 } __CANSTAT_RO8bits_t; 3482 3483 extern __at(0x0E3E) volatile __CANSTAT_RO8bits_t CANSTAT_RO8bits; 3484 3485 #define _CANSTAT_RO8_EICODE0 0x01 3486 #define _CANSTAT_RO8_EICODE1_ICODE0 0x02 3487 #define _CANSTAT_RO8_EICODE2_ICODE1 0x04 3488 #define _CANSTAT_RO8_EICODE3_ICODE2 0x08 3489 #define _CANSTAT_RO8_EICODE4 0x10 3490 #define _CANSTAT_RO8_OPMODE0 0x20 3491 #define _CANSTAT_RO8_OPMODE1 0x40 3492 #define _CANSTAT_RO8_OPMODE2 0x80 3493 3494 //============================================================================== 3495 3496 3497 //============================================================================== 3498 // CANCON_RO8 Bits 3499 3500 extern __at(0x0E3F) __sfr CANCON_RO8; 3501 3502 typedef union 3503 { 3504 struct 3505 { 3506 unsigned FP0 : 1; 3507 unsigned WIN0_FP1 : 1; 3508 unsigned WIN1_FP2 : 1; 3509 unsigned WIN2_FP3 : 1; 3510 unsigned ABAT : 1; 3511 unsigned REQOP0 : 1; 3512 unsigned REQOP1 : 1; 3513 unsigned REQOP2 : 1; 3514 }; 3515 3516 struct 3517 { 3518 unsigned : 5; 3519 unsigned REQOP : 3; 3520 }; 3521 } __CANCON_RO8bits_t; 3522 3523 extern __at(0x0E3F) volatile __CANCON_RO8bits_t CANCON_RO8bits; 3524 3525 #define _CANCON_RO8_FP0 0x01 3526 #define _CANCON_RO8_WIN0_FP1 0x02 3527 #define _CANCON_RO8_WIN1_FP2 0x04 3528 #define _CANCON_RO8_WIN2_FP3 0x08 3529 #define _CANCON_RO8_ABAT 0x10 3530 #define _CANCON_RO8_REQOP0 0x20 3531 #define _CANCON_RO8_REQOP1 0x40 3532 #define _CANCON_RO8_REQOP2 0x80 3533 3534 //============================================================================== 3535 3536 3537 //============================================================================== 3538 // B2CON Bits 3539 3540 extern __at(0x0E40) __sfr B2CON; 3541 3542 typedef union 3543 { 3544 struct 3545 { 3546 unsigned FILHIT0_TXPRI0 : 1; 3547 unsigned FILHIT1_TXPRI1 : 1; 3548 unsigned FILHIT2_RTREN : 1; 3549 unsigned FILHIT3_TXREQ : 1; 3550 unsigned FILHIT4_TXERR : 1; 3551 unsigned RTRRO_TXLARB : 1; 3552 unsigned RXM1_TXABT : 1; 3553 unsigned RXFUL_TXBIF : 1; 3554 }; 3555 3556 struct 3557 { 3558 unsigned FILHIT0 : 1; 3559 unsigned FILHIT1 : 1; 3560 unsigned FILHIT2 : 1; 3561 unsigned FILHIT3 : 1; 3562 unsigned FILHIT4 : 1; 3563 unsigned RTRRO : 1; 3564 unsigned RXM1 : 1; 3565 unsigned RXFUL : 1; 3566 }; 3567 3568 struct 3569 { 3570 unsigned TXPRI0 : 1; 3571 unsigned TXPRI1 : 1; 3572 unsigned RTREN : 1; 3573 unsigned TXREQ : 1; 3574 unsigned TXERR : 1; 3575 unsigned TXLARB : 1; 3576 unsigned TXABT : 1; 3577 unsigned TXBIF : 1; 3578 }; 3579 3580 struct 3581 { 3582 unsigned TXPRI : 2; 3583 unsigned : 6; 3584 }; 3585 3586 struct 3587 { 3588 unsigned FILHIT : 5; 3589 unsigned : 3; 3590 }; 3591 } __B2CONbits_t; 3592 3593 extern __at(0x0E40) volatile __B2CONbits_t B2CONbits; 3594 3595 #define _B2CON_FILHIT0_TXPRI0 0x01 3596 #define _B2CON_FILHIT0 0x01 3597 #define _B2CON_TXPRI0 0x01 3598 #define _B2CON_FILHIT1_TXPRI1 0x02 3599 #define _B2CON_FILHIT1 0x02 3600 #define _B2CON_TXPRI1 0x02 3601 #define _B2CON_FILHIT2_RTREN 0x04 3602 #define _B2CON_FILHIT2 0x04 3603 #define _B2CON_RTREN 0x04 3604 #define _B2CON_FILHIT3_TXREQ 0x08 3605 #define _B2CON_FILHIT3 0x08 3606 #define _B2CON_TXREQ 0x08 3607 #define _B2CON_FILHIT4_TXERR 0x10 3608 #define _B2CON_FILHIT4 0x10 3609 #define _B2CON_TXERR 0x10 3610 #define _B2CON_RTRRO_TXLARB 0x20 3611 #define _B2CON_RTRRO 0x20 3612 #define _B2CON_TXLARB 0x20 3613 #define _B2CON_RXM1_TXABT 0x40 3614 #define _B2CON_RXM1 0x40 3615 #define _B2CON_TXABT 0x40 3616 #define _B2CON_RXFUL_TXBIF 0x80 3617 #define _B2CON_RXFUL 0x80 3618 #define _B2CON_TXBIF 0x80 3619 3620 //============================================================================== 3621 3622 3623 //============================================================================== 3624 // B2SIDH Bits 3625 3626 extern __at(0x0E41) __sfr B2SIDH; 3627 3628 typedef struct 3629 { 3630 unsigned SID3 : 1; 3631 unsigned SID4 : 1; 3632 unsigned SID5 : 1; 3633 unsigned SID6 : 1; 3634 unsigned SID7 : 1; 3635 unsigned SID8 : 1; 3636 unsigned SID9 : 1; 3637 unsigned SID10 : 1; 3638 } __B2SIDHbits_t; 3639 3640 extern __at(0x0E41) volatile __B2SIDHbits_t B2SIDHbits; 3641 3642 #define _B2SIDH_SID3 0x01 3643 #define _B2SIDH_SID4 0x02 3644 #define _B2SIDH_SID5 0x04 3645 #define _B2SIDH_SID6 0x08 3646 #define _B2SIDH_SID7 0x10 3647 #define _B2SIDH_SID8 0x20 3648 #define _B2SIDH_SID9 0x40 3649 #define _B2SIDH_SID10 0x80 3650 3651 //============================================================================== 3652 3653 3654 //============================================================================== 3655 // B2SIDL Bits 3656 3657 extern __at(0x0E42) __sfr B2SIDL; 3658 3659 typedef union 3660 { 3661 struct 3662 { 3663 unsigned EID16 : 1; 3664 unsigned EID17 : 1; 3665 unsigned : 1; 3666 unsigned EXID : 1; 3667 unsigned SRR : 1; 3668 unsigned SID0 : 1; 3669 unsigned SID1 : 1; 3670 unsigned SID2 : 1; 3671 }; 3672 3673 struct 3674 { 3675 unsigned : 1; 3676 unsigned : 1; 3677 unsigned : 1; 3678 unsigned EXIDE : 1; 3679 unsigned : 1; 3680 unsigned : 1; 3681 unsigned : 1; 3682 unsigned : 1; 3683 }; 3684 3685 struct 3686 { 3687 unsigned : 5; 3688 unsigned SID : 3; 3689 }; 3690 } __B2SIDLbits_t; 3691 3692 extern __at(0x0E42) volatile __B2SIDLbits_t B2SIDLbits; 3693 3694 #define _B2SIDL_EID16 0x01 3695 #define _B2SIDL_EID17 0x02 3696 #define _B2SIDL_EXID 0x08 3697 #define _B2SIDL_EXIDE 0x08 3698 #define _B2SIDL_SRR 0x10 3699 #define _B2SIDL_SID0 0x20 3700 #define _B2SIDL_SID1 0x40 3701 #define _B2SIDL_SID2 0x80 3702 3703 //============================================================================== 3704 3705 3706 //============================================================================== 3707 // B2EIDH Bits 3708 3709 extern __at(0x0E43) __sfr B2EIDH; 3710 3711 typedef struct 3712 { 3713 unsigned EID8 : 1; 3714 unsigned EID9 : 1; 3715 unsigned EID10 : 1; 3716 unsigned EID11 : 1; 3717 unsigned EID12 : 1; 3718 unsigned EID13 : 1; 3719 unsigned EID14 : 1; 3720 unsigned EID15 : 1; 3721 } __B2EIDHbits_t; 3722 3723 extern __at(0x0E43) volatile __B2EIDHbits_t B2EIDHbits; 3724 3725 #define _B2EIDH_EID8 0x01 3726 #define _B2EIDH_EID9 0x02 3727 #define _B2EIDH_EID10 0x04 3728 #define _B2EIDH_EID11 0x08 3729 #define _B2EIDH_EID12 0x10 3730 #define _B2EIDH_EID13 0x20 3731 #define _B2EIDH_EID14 0x40 3732 #define _B2EIDH_EID15 0x80 3733 3734 //============================================================================== 3735 3736 3737 //============================================================================== 3738 // B2EIDL Bits 3739 3740 extern __at(0x0E44) __sfr B2EIDL; 3741 3742 typedef struct 3743 { 3744 unsigned EID0 : 1; 3745 unsigned EID1 : 1; 3746 unsigned EID2 : 1; 3747 unsigned EID3 : 1; 3748 unsigned EID4 : 1; 3749 unsigned EID5 : 1; 3750 unsigned EID6 : 1; 3751 unsigned EID7 : 1; 3752 } __B2EIDLbits_t; 3753 3754 extern __at(0x0E44) volatile __B2EIDLbits_t B2EIDLbits; 3755 3756 #define _B2EIDL_EID0 0x01 3757 #define _B2EIDL_EID1 0x02 3758 #define _B2EIDL_EID2 0x04 3759 #define _B2EIDL_EID3 0x08 3760 #define _B2EIDL_EID4 0x10 3761 #define _B2EIDL_EID5 0x20 3762 #define _B2EIDL_EID6 0x40 3763 #define _B2EIDL_EID7 0x80 3764 3765 //============================================================================== 3766 3767 3768 //============================================================================== 3769 // B2DLC Bits 3770 3771 extern __at(0x0E45) __sfr B2DLC; 3772 3773 typedef union 3774 { 3775 struct 3776 { 3777 unsigned DLC0 : 1; 3778 unsigned DLC1 : 1; 3779 unsigned DLC2 : 1; 3780 unsigned DLC3 : 1; 3781 unsigned RB0 : 1; 3782 unsigned RB1 : 1; 3783 unsigned RXRTR : 1; 3784 unsigned : 1; 3785 }; 3786 3787 struct 3788 { 3789 unsigned : 1; 3790 unsigned : 1; 3791 unsigned : 1; 3792 unsigned : 1; 3793 unsigned RESRB0 : 1; 3794 unsigned RESRB1 : 1; 3795 unsigned TXRTR : 1; 3796 unsigned : 1; 3797 }; 3798 3799 struct 3800 { 3801 unsigned DLC : 4; 3802 unsigned : 4; 3803 }; 3804 3805 struct 3806 { 3807 unsigned : 4; 3808 unsigned RESRB : 2; 3809 unsigned : 2; 3810 }; 3811 3812 struct 3813 { 3814 unsigned : 4; 3815 unsigned RB : 2; 3816 unsigned : 2; 3817 }; 3818 } __B2DLCbits_t; 3819 3820 extern __at(0x0E45) volatile __B2DLCbits_t B2DLCbits; 3821 3822 #define _B2DLC_DLC0 0x01 3823 #define _B2DLC_DLC1 0x02 3824 #define _B2DLC_DLC2 0x04 3825 #define _B2DLC_DLC3 0x08 3826 #define _B2DLC_RB0 0x10 3827 #define _B2DLC_RESRB0 0x10 3828 #define _B2DLC_RB1 0x20 3829 #define _B2DLC_RESRB1 0x20 3830 #define _B2DLC_RXRTR 0x40 3831 #define _B2DLC_TXRTR 0x40 3832 3833 //============================================================================== 3834 3835 3836 //============================================================================== 3837 // B2D0 Bits 3838 3839 extern __at(0x0E46) __sfr B2D0; 3840 3841 typedef struct 3842 { 3843 unsigned B2D00 : 1; 3844 unsigned B2D01 : 1; 3845 unsigned B2D02 : 1; 3846 unsigned B2D03 : 1; 3847 unsigned B2D04 : 1; 3848 unsigned B2D05 : 1; 3849 unsigned B2D06 : 1; 3850 unsigned B2D07 : 1; 3851 } __B2D0bits_t; 3852 3853 extern __at(0x0E46) volatile __B2D0bits_t B2D0bits; 3854 3855 #define _B2D00 0x01 3856 #define _B2D01 0x02 3857 #define _B2D02 0x04 3858 #define _B2D03 0x08 3859 #define _B2D04 0x10 3860 #define _B2D05 0x20 3861 #define _B2D06 0x40 3862 #define _B2D07 0x80 3863 3864 //============================================================================== 3865 3866 3867 //============================================================================== 3868 // B2D1 Bits 3869 3870 extern __at(0x0E47) __sfr B2D1; 3871 3872 typedef struct 3873 { 3874 unsigned B2D10 : 1; 3875 unsigned B2D11 : 1; 3876 unsigned B2D12 : 1; 3877 unsigned B2D13 : 1; 3878 unsigned B2D14 : 1; 3879 unsigned B2D15 : 1; 3880 unsigned B2D16 : 1; 3881 unsigned B2D17 : 1; 3882 } __B2D1bits_t; 3883 3884 extern __at(0x0E47) volatile __B2D1bits_t B2D1bits; 3885 3886 #define _B2D10 0x01 3887 #define _B2D11 0x02 3888 #define _B2D12 0x04 3889 #define _B2D13 0x08 3890 #define _B2D14 0x10 3891 #define _B2D15 0x20 3892 #define _B2D16 0x40 3893 #define _B2D17 0x80 3894 3895 //============================================================================== 3896 3897 3898 //============================================================================== 3899 // B2D2 Bits 3900 3901 extern __at(0x0E48) __sfr B2D2; 3902 3903 typedef struct 3904 { 3905 unsigned B2D20 : 1; 3906 unsigned B2D21 : 1; 3907 unsigned B2D22 : 1; 3908 unsigned B2D23 : 1; 3909 unsigned B2D24 : 1; 3910 unsigned B2D25 : 1; 3911 unsigned B2D26 : 1; 3912 unsigned B2D27 : 1; 3913 } __B2D2bits_t; 3914 3915 extern __at(0x0E48) volatile __B2D2bits_t B2D2bits; 3916 3917 #define _B2D20 0x01 3918 #define _B2D21 0x02 3919 #define _B2D22 0x04 3920 #define _B2D23 0x08 3921 #define _B2D24 0x10 3922 #define _B2D25 0x20 3923 #define _B2D26 0x40 3924 #define _B2D27 0x80 3925 3926 //============================================================================== 3927 3928 3929 //============================================================================== 3930 // B2D3 Bits 3931 3932 extern __at(0x0E49) __sfr B2D3; 3933 3934 typedef struct 3935 { 3936 unsigned B2D30 : 1; 3937 unsigned B2D31 : 1; 3938 unsigned B2D32 : 1; 3939 unsigned B2D33 : 1; 3940 unsigned B2D34 : 1; 3941 unsigned B2D35 : 1; 3942 unsigned B2D36 : 1; 3943 unsigned B2D37 : 1; 3944 } __B2D3bits_t; 3945 3946 extern __at(0x0E49) volatile __B2D3bits_t B2D3bits; 3947 3948 #define _B2D30 0x01 3949 #define _B2D31 0x02 3950 #define _B2D32 0x04 3951 #define _B2D33 0x08 3952 #define _B2D34 0x10 3953 #define _B2D35 0x20 3954 #define _B2D36 0x40 3955 #define _B2D37 0x80 3956 3957 //============================================================================== 3958 3959 3960 //============================================================================== 3961 // B2D4 Bits 3962 3963 extern __at(0x0E4A) __sfr B2D4; 3964 3965 typedef struct 3966 { 3967 unsigned B2D40 : 1; 3968 unsigned B2D41 : 1; 3969 unsigned B2D42 : 1; 3970 unsigned B2D43 : 1; 3971 unsigned B2D44 : 1; 3972 unsigned B2D45 : 1; 3973 unsigned B2D46 : 1; 3974 unsigned B2D47 : 1; 3975 } __B2D4bits_t; 3976 3977 extern __at(0x0E4A) volatile __B2D4bits_t B2D4bits; 3978 3979 #define _B2D40 0x01 3980 #define _B2D41 0x02 3981 #define _B2D42 0x04 3982 #define _B2D43 0x08 3983 #define _B2D44 0x10 3984 #define _B2D45 0x20 3985 #define _B2D46 0x40 3986 #define _B2D47 0x80 3987 3988 //============================================================================== 3989 3990 3991 //============================================================================== 3992 // B2D5 Bits 3993 3994 extern __at(0x0E4B) __sfr B2D5; 3995 3996 typedef struct 3997 { 3998 unsigned B2D50 : 1; 3999 unsigned B2D51 : 1; 4000 unsigned B2D52 : 1; 4001 unsigned B2D53 : 1; 4002 unsigned B2D54 : 1; 4003 unsigned B2D55 : 1; 4004 unsigned B2D56 : 1; 4005 unsigned B2D57 : 1; 4006 } __B2D5bits_t; 4007 4008 extern __at(0x0E4B) volatile __B2D5bits_t B2D5bits; 4009 4010 #define _B2D50 0x01 4011 #define _B2D51 0x02 4012 #define _B2D52 0x04 4013 #define _B2D53 0x08 4014 #define _B2D54 0x10 4015 #define _B2D55 0x20 4016 #define _B2D56 0x40 4017 #define _B2D57 0x80 4018 4019 //============================================================================== 4020 4021 4022 //============================================================================== 4023 // B2D6 Bits 4024 4025 extern __at(0x0E4C) __sfr B2D6; 4026 4027 typedef struct 4028 { 4029 unsigned B2D60 : 1; 4030 unsigned B2D61 : 1; 4031 unsigned B2D62 : 1; 4032 unsigned B2D63 : 1; 4033 unsigned B2D64 : 1; 4034 unsigned B2D65 : 1; 4035 unsigned B2D66 : 1; 4036 unsigned B2D67 : 1; 4037 } __B2D6bits_t; 4038 4039 extern __at(0x0E4C) volatile __B2D6bits_t B2D6bits; 4040 4041 #define _B2D60 0x01 4042 #define _B2D61 0x02 4043 #define _B2D62 0x04 4044 #define _B2D63 0x08 4045 #define _B2D64 0x10 4046 #define _B2D65 0x20 4047 #define _B2D66 0x40 4048 #define _B2D67 0x80 4049 4050 //============================================================================== 4051 4052 4053 //============================================================================== 4054 // B2D7 Bits 4055 4056 extern __at(0x0E4D) __sfr B2D7; 4057 4058 typedef struct 4059 { 4060 unsigned B2D70 : 1; 4061 unsigned B2D71 : 1; 4062 unsigned B2D72 : 1; 4063 unsigned B2D73 : 1; 4064 unsigned B2D74 : 1; 4065 unsigned B2D75 : 1; 4066 unsigned B2D76 : 1; 4067 unsigned B2D77 : 1; 4068 } __B2D7bits_t; 4069 4070 extern __at(0x0E4D) volatile __B2D7bits_t B2D7bits; 4071 4072 #define _B2D70 0x01 4073 #define _B2D71 0x02 4074 #define _B2D72 0x04 4075 #define _B2D73 0x08 4076 #define _B2D74 0x10 4077 #define _B2D75 0x20 4078 #define _B2D76 0x40 4079 #define _B2D77 0x80 4080 4081 //============================================================================== 4082 4083 4084 //============================================================================== 4085 // CANSTAT_RO7 Bits 4086 4087 extern __at(0x0E4E) __sfr CANSTAT_RO7; 4088 4089 typedef union 4090 { 4091 struct 4092 { 4093 unsigned EICODE0 : 1; 4094 unsigned EICODE1_ICODE0 : 1; 4095 unsigned EICODE2_ICODE1 : 1; 4096 unsigned EICODE3_ICODE2 : 1; 4097 unsigned EICODE4 : 1; 4098 unsigned OPMODE0 : 1; 4099 unsigned OPMODE1 : 1; 4100 unsigned OPMODE2 : 1; 4101 }; 4102 4103 struct 4104 { 4105 unsigned : 5; 4106 unsigned OPMODE : 3; 4107 }; 4108 } __CANSTAT_RO7bits_t; 4109 4110 extern __at(0x0E4E) volatile __CANSTAT_RO7bits_t CANSTAT_RO7bits; 4111 4112 #define _CANSTAT_RO7_EICODE0 0x01 4113 #define _CANSTAT_RO7_EICODE1_ICODE0 0x02 4114 #define _CANSTAT_RO7_EICODE2_ICODE1 0x04 4115 #define _CANSTAT_RO7_EICODE3_ICODE2 0x08 4116 #define _CANSTAT_RO7_EICODE4 0x10 4117 #define _CANSTAT_RO7_OPMODE0 0x20 4118 #define _CANSTAT_RO7_OPMODE1 0x40 4119 #define _CANSTAT_RO7_OPMODE2 0x80 4120 4121 //============================================================================== 4122 4123 4124 //============================================================================== 4125 // CANCON_RO7 Bits 4126 4127 extern __at(0x0E4F) __sfr CANCON_RO7; 4128 4129 typedef union 4130 { 4131 struct 4132 { 4133 unsigned FP0 : 1; 4134 unsigned WIN0_FP1 : 1; 4135 unsigned WIN1_FP2 : 1; 4136 unsigned WIN2_FP3 : 1; 4137 unsigned ABAT : 1; 4138 unsigned REQOP0 : 1; 4139 unsigned REQOP1 : 1; 4140 unsigned REQOP2 : 1; 4141 }; 4142 4143 struct 4144 { 4145 unsigned : 5; 4146 unsigned REQOP : 3; 4147 }; 4148 } __CANCON_RO7bits_t; 4149 4150 extern __at(0x0E4F) volatile __CANCON_RO7bits_t CANCON_RO7bits; 4151 4152 #define _CANCON_RO7_FP0 0x01 4153 #define _CANCON_RO7_WIN0_FP1 0x02 4154 #define _CANCON_RO7_WIN1_FP2 0x04 4155 #define _CANCON_RO7_WIN2_FP3 0x08 4156 #define _CANCON_RO7_ABAT 0x10 4157 #define _CANCON_RO7_REQOP0 0x20 4158 #define _CANCON_RO7_REQOP1 0x40 4159 #define _CANCON_RO7_REQOP2 0x80 4160 4161 //============================================================================== 4162 4163 4164 //============================================================================== 4165 // B3CON Bits 4166 4167 extern __at(0x0E50) __sfr B3CON; 4168 4169 typedef union 4170 { 4171 struct 4172 { 4173 unsigned FILHIT0_TXPRI0 : 1; 4174 unsigned FILHIT1_TXPRI1 : 1; 4175 unsigned FILHIT2_RTREN : 1; 4176 unsigned FILHIT3_TXREQ : 1; 4177 unsigned FILHIT4_TXERR : 1; 4178 unsigned RTRRO_TXLARB : 1; 4179 unsigned RXM1_TXABT : 1; 4180 unsigned RXFUL_TXBIF : 1; 4181 }; 4182 4183 struct 4184 { 4185 unsigned FILHIT0 : 1; 4186 unsigned FILHIT1 : 1; 4187 unsigned FILHIT2 : 1; 4188 unsigned FILHIT3 : 1; 4189 unsigned FILHIT4 : 1; 4190 unsigned RTRRO : 1; 4191 unsigned RXM1 : 1; 4192 unsigned RXFUL : 1; 4193 }; 4194 4195 struct 4196 { 4197 unsigned TXPRI0 : 1; 4198 unsigned TXPRI1 : 1; 4199 unsigned RTREN : 1; 4200 unsigned TXREQ : 1; 4201 unsigned TXERR : 1; 4202 unsigned TXLARB : 1; 4203 unsigned TXABT : 1; 4204 unsigned TXBIF : 1; 4205 }; 4206 4207 struct 4208 { 4209 unsigned FILHIT : 5; 4210 unsigned : 3; 4211 }; 4212 4213 struct 4214 { 4215 unsigned TXPRI : 2; 4216 unsigned : 6; 4217 }; 4218 } __B3CONbits_t; 4219 4220 extern __at(0x0E50) volatile __B3CONbits_t B3CONbits; 4221 4222 #define _B3CON_FILHIT0_TXPRI0 0x01 4223 #define _B3CON_FILHIT0 0x01 4224 #define _B3CON_TXPRI0 0x01 4225 #define _B3CON_FILHIT1_TXPRI1 0x02 4226 #define _B3CON_FILHIT1 0x02 4227 #define _B3CON_TXPRI1 0x02 4228 #define _B3CON_FILHIT2_RTREN 0x04 4229 #define _B3CON_FILHIT2 0x04 4230 #define _B3CON_RTREN 0x04 4231 #define _B3CON_FILHIT3_TXREQ 0x08 4232 #define _B3CON_FILHIT3 0x08 4233 #define _B3CON_TXREQ 0x08 4234 #define _B3CON_FILHIT4_TXERR 0x10 4235 #define _B3CON_FILHIT4 0x10 4236 #define _B3CON_TXERR 0x10 4237 #define _B3CON_RTRRO_TXLARB 0x20 4238 #define _B3CON_RTRRO 0x20 4239 #define _B3CON_TXLARB 0x20 4240 #define _B3CON_RXM1_TXABT 0x40 4241 #define _B3CON_RXM1 0x40 4242 #define _B3CON_TXABT 0x40 4243 #define _B3CON_RXFUL_TXBIF 0x80 4244 #define _B3CON_RXFUL 0x80 4245 #define _B3CON_TXBIF 0x80 4246 4247 //============================================================================== 4248 4249 4250 //============================================================================== 4251 // B3SIDH Bits 4252 4253 extern __at(0x0E51) __sfr B3SIDH; 4254 4255 typedef struct 4256 { 4257 unsigned SID3 : 1; 4258 unsigned SID4 : 1; 4259 unsigned SID5 : 1; 4260 unsigned SID6 : 1; 4261 unsigned SID7 : 1; 4262 unsigned SID8 : 1; 4263 unsigned SID9 : 1; 4264 unsigned SID10 : 1; 4265 } __B3SIDHbits_t; 4266 4267 extern __at(0x0E51) volatile __B3SIDHbits_t B3SIDHbits; 4268 4269 #define _B3SIDH_SID3 0x01 4270 #define _B3SIDH_SID4 0x02 4271 #define _B3SIDH_SID5 0x04 4272 #define _B3SIDH_SID6 0x08 4273 #define _B3SIDH_SID7 0x10 4274 #define _B3SIDH_SID8 0x20 4275 #define _B3SIDH_SID9 0x40 4276 #define _B3SIDH_SID10 0x80 4277 4278 //============================================================================== 4279 4280 4281 //============================================================================== 4282 // B3SIDL Bits 4283 4284 extern __at(0x0E52) __sfr B3SIDL; 4285 4286 typedef union 4287 { 4288 struct 4289 { 4290 unsigned EID16 : 1; 4291 unsigned EID17 : 1; 4292 unsigned : 1; 4293 unsigned EXID : 1; 4294 unsigned SRR : 1; 4295 unsigned SID0 : 1; 4296 unsigned SID1 : 1; 4297 unsigned SID2 : 1; 4298 }; 4299 4300 struct 4301 { 4302 unsigned : 1; 4303 unsigned : 1; 4304 unsigned : 1; 4305 unsigned EXIDE : 1; 4306 unsigned : 1; 4307 unsigned : 1; 4308 unsigned : 1; 4309 unsigned : 1; 4310 }; 4311 4312 struct 4313 { 4314 unsigned : 5; 4315 unsigned SID : 3; 4316 }; 4317 } __B3SIDLbits_t; 4318 4319 extern __at(0x0E52) volatile __B3SIDLbits_t B3SIDLbits; 4320 4321 #define _B3SIDL_EID16 0x01 4322 #define _B3SIDL_EID17 0x02 4323 #define _B3SIDL_EXID 0x08 4324 #define _B3SIDL_EXIDE 0x08 4325 #define _B3SIDL_SRR 0x10 4326 #define _B3SIDL_SID0 0x20 4327 #define _B3SIDL_SID1 0x40 4328 #define _B3SIDL_SID2 0x80 4329 4330 //============================================================================== 4331 4332 4333 //============================================================================== 4334 // B3EIDH Bits 4335 4336 extern __at(0x0E53) __sfr B3EIDH; 4337 4338 typedef struct 4339 { 4340 unsigned EID8 : 1; 4341 unsigned EID9 : 1; 4342 unsigned EID10 : 1; 4343 unsigned EID11 : 1; 4344 unsigned EID12 : 1; 4345 unsigned EID13 : 1; 4346 unsigned EID14 : 1; 4347 unsigned EID15 : 1; 4348 } __B3EIDHbits_t; 4349 4350 extern __at(0x0E53) volatile __B3EIDHbits_t B3EIDHbits; 4351 4352 #define _B3EIDH_EID8 0x01 4353 #define _B3EIDH_EID9 0x02 4354 #define _B3EIDH_EID10 0x04 4355 #define _B3EIDH_EID11 0x08 4356 #define _B3EIDH_EID12 0x10 4357 #define _B3EIDH_EID13 0x20 4358 #define _B3EIDH_EID14 0x40 4359 #define _B3EIDH_EID15 0x80 4360 4361 //============================================================================== 4362 4363 4364 //============================================================================== 4365 // B3EIDL Bits 4366 4367 extern __at(0x0E54) __sfr B3EIDL; 4368 4369 typedef struct 4370 { 4371 unsigned EID0 : 1; 4372 unsigned EID1 : 1; 4373 unsigned EID2 : 1; 4374 unsigned EID3 : 1; 4375 unsigned EID4 : 1; 4376 unsigned EID5 : 1; 4377 unsigned EID6 : 1; 4378 unsigned EID7 : 1; 4379 } __B3EIDLbits_t; 4380 4381 extern __at(0x0E54) volatile __B3EIDLbits_t B3EIDLbits; 4382 4383 #define _B3EIDL_EID0 0x01 4384 #define _B3EIDL_EID1 0x02 4385 #define _B3EIDL_EID2 0x04 4386 #define _B3EIDL_EID3 0x08 4387 #define _B3EIDL_EID4 0x10 4388 #define _B3EIDL_EID5 0x20 4389 #define _B3EIDL_EID6 0x40 4390 #define _B3EIDL_EID7 0x80 4391 4392 //============================================================================== 4393 4394 4395 //============================================================================== 4396 // B3DLC Bits 4397 4398 extern __at(0x0E55) __sfr B3DLC; 4399 4400 typedef union 4401 { 4402 struct 4403 { 4404 unsigned DLC0 : 1; 4405 unsigned DLC1 : 1; 4406 unsigned DLC2 : 1; 4407 unsigned DLC3 : 1; 4408 unsigned RB0 : 1; 4409 unsigned RB1 : 1; 4410 unsigned RXRTR : 1; 4411 unsigned : 1; 4412 }; 4413 4414 struct 4415 { 4416 unsigned : 1; 4417 unsigned : 1; 4418 unsigned : 1; 4419 unsigned : 1; 4420 unsigned RESRB0 : 1; 4421 unsigned RESRB1 : 1; 4422 unsigned TXRTR : 1; 4423 unsigned : 1; 4424 }; 4425 4426 struct 4427 { 4428 unsigned DLC : 4; 4429 unsigned : 4; 4430 }; 4431 4432 struct 4433 { 4434 unsigned : 4; 4435 unsigned RESRB : 2; 4436 unsigned : 2; 4437 }; 4438 4439 struct 4440 { 4441 unsigned : 4; 4442 unsigned RB : 2; 4443 unsigned : 2; 4444 }; 4445 } __B3DLCbits_t; 4446 4447 extern __at(0x0E55) volatile __B3DLCbits_t B3DLCbits; 4448 4449 #define _B3DLC_DLC0 0x01 4450 #define _B3DLC_DLC1 0x02 4451 #define _B3DLC_DLC2 0x04 4452 #define _B3DLC_DLC3 0x08 4453 #define _B3DLC_RB0 0x10 4454 #define _B3DLC_RESRB0 0x10 4455 #define _B3DLC_RB1 0x20 4456 #define _B3DLC_RESRB1 0x20 4457 #define _B3DLC_RXRTR 0x40 4458 #define _B3DLC_TXRTR 0x40 4459 4460 //============================================================================== 4461 4462 4463 //============================================================================== 4464 // B3D0 Bits 4465 4466 extern __at(0x0E56) __sfr B3D0; 4467 4468 typedef struct 4469 { 4470 unsigned B3D00 : 1; 4471 unsigned B3D01 : 1; 4472 unsigned B3D02 : 1; 4473 unsigned B3D03 : 1; 4474 unsigned B3D04 : 1; 4475 unsigned B3D05 : 1; 4476 unsigned B3D06 : 1; 4477 unsigned B3D07 : 1; 4478 } __B3D0bits_t; 4479 4480 extern __at(0x0E56) volatile __B3D0bits_t B3D0bits; 4481 4482 #define _B3D00 0x01 4483 #define _B3D01 0x02 4484 #define _B3D02 0x04 4485 #define _B3D03 0x08 4486 #define _B3D04 0x10 4487 #define _B3D05 0x20 4488 #define _B3D06 0x40 4489 #define _B3D07 0x80 4490 4491 //============================================================================== 4492 4493 4494 //============================================================================== 4495 // B3D1 Bits 4496 4497 extern __at(0x0E57) __sfr B3D1; 4498 4499 typedef struct 4500 { 4501 unsigned B3D10 : 1; 4502 unsigned B3D11 : 1; 4503 unsigned B3D12 : 1; 4504 unsigned B3D13 : 1; 4505 unsigned B3D14 : 1; 4506 unsigned B3D15 : 1; 4507 unsigned B3D16 : 1; 4508 unsigned B3D17 : 1; 4509 } __B3D1bits_t; 4510 4511 extern __at(0x0E57) volatile __B3D1bits_t B3D1bits; 4512 4513 #define _B3D10 0x01 4514 #define _B3D11 0x02 4515 #define _B3D12 0x04 4516 #define _B3D13 0x08 4517 #define _B3D14 0x10 4518 #define _B3D15 0x20 4519 #define _B3D16 0x40 4520 #define _B3D17 0x80 4521 4522 //============================================================================== 4523 4524 4525 //============================================================================== 4526 // B3D2 Bits 4527 4528 extern __at(0x0E58) __sfr B3D2; 4529 4530 typedef struct 4531 { 4532 unsigned B3D20 : 1; 4533 unsigned B3D21 : 1; 4534 unsigned B3D22 : 1; 4535 unsigned B3D23 : 1; 4536 unsigned B3D24 : 1; 4537 unsigned B3D25 : 1; 4538 unsigned B3D26 : 1; 4539 unsigned B3D27 : 1; 4540 } __B3D2bits_t; 4541 4542 extern __at(0x0E58) volatile __B3D2bits_t B3D2bits; 4543 4544 #define _B3D20 0x01 4545 #define _B3D21 0x02 4546 #define _B3D22 0x04 4547 #define _B3D23 0x08 4548 #define _B3D24 0x10 4549 #define _B3D25 0x20 4550 #define _B3D26 0x40 4551 #define _B3D27 0x80 4552 4553 //============================================================================== 4554 4555 4556 //============================================================================== 4557 // B3D3 Bits 4558 4559 extern __at(0x0E59) __sfr B3D3; 4560 4561 typedef struct 4562 { 4563 unsigned B3D30 : 1; 4564 unsigned B3D31 : 1; 4565 unsigned B3D32 : 1; 4566 unsigned B3D33 : 1; 4567 unsigned B3D34 : 1; 4568 unsigned B3D35 : 1; 4569 unsigned B3D36 : 1; 4570 unsigned B3D37 : 1; 4571 } __B3D3bits_t; 4572 4573 extern __at(0x0E59) volatile __B3D3bits_t B3D3bits; 4574 4575 #define _B3D30 0x01 4576 #define _B3D31 0x02 4577 #define _B3D32 0x04 4578 #define _B3D33 0x08 4579 #define _B3D34 0x10 4580 #define _B3D35 0x20 4581 #define _B3D36 0x40 4582 #define _B3D37 0x80 4583 4584 //============================================================================== 4585 4586 4587 //============================================================================== 4588 // B3D4 Bits 4589 4590 extern __at(0x0E5A) __sfr B3D4; 4591 4592 typedef struct 4593 { 4594 unsigned B3D40 : 1; 4595 unsigned B3D41 : 1; 4596 unsigned B3D42 : 1; 4597 unsigned B3D43 : 1; 4598 unsigned B3D44 : 1; 4599 unsigned B3D45 : 1; 4600 unsigned B3D46 : 1; 4601 unsigned B3D47 : 1; 4602 } __B3D4bits_t; 4603 4604 extern __at(0x0E5A) volatile __B3D4bits_t B3D4bits; 4605 4606 #define _B3D40 0x01 4607 #define _B3D41 0x02 4608 #define _B3D42 0x04 4609 #define _B3D43 0x08 4610 #define _B3D44 0x10 4611 #define _B3D45 0x20 4612 #define _B3D46 0x40 4613 #define _B3D47 0x80 4614 4615 //============================================================================== 4616 4617 4618 //============================================================================== 4619 // B3D5 Bits 4620 4621 extern __at(0x0E5B) __sfr B3D5; 4622 4623 typedef struct 4624 { 4625 unsigned B3D50 : 1; 4626 unsigned B3D51 : 1; 4627 unsigned B3D52 : 1; 4628 unsigned B3D53 : 1; 4629 unsigned B3D54 : 1; 4630 unsigned B3D55 : 1; 4631 unsigned B3D56 : 1; 4632 unsigned B3D57 : 1; 4633 } __B3D5bits_t; 4634 4635 extern __at(0x0E5B) volatile __B3D5bits_t B3D5bits; 4636 4637 #define _B3D50 0x01 4638 #define _B3D51 0x02 4639 #define _B3D52 0x04 4640 #define _B3D53 0x08 4641 #define _B3D54 0x10 4642 #define _B3D55 0x20 4643 #define _B3D56 0x40 4644 #define _B3D57 0x80 4645 4646 //============================================================================== 4647 4648 4649 //============================================================================== 4650 // B3D6 Bits 4651 4652 extern __at(0x0E5C) __sfr B3D6; 4653 4654 typedef struct 4655 { 4656 unsigned B3D60 : 1; 4657 unsigned B3D61 : 1; 4658 unsigned B3D62 : 1; 4659 unsigned B3D63 : 1; 4660 unsigned B3D64 : 1; 4661 unsigned B3D65 : 1; 4662 unsigned B3D66 : 1; 4663 unsigned B3D67 : 1; 4664 } __B3D6bits_t; 4665 4666 extern __at(0x0E5C) volatile __B3D6bits_t B3D6bits; 4667 4668 #define _B3D60 0x01 4669 #define _B3D61 0x02 4670 #define _B3D62 0x04 4671 #define _B3D63 0x08 4672 #define _B3D64 0x10 4673 #define _B3D65 0x20 4674 #define _B3D66 0x40 4675 #define _B3D67 0x80 4676 4677 //============================================================================== 4678 4679 4680 //============================================================================== 4681 // B3D7 Bits 4682 4683 extern __at(0x0E5D) __sfr B3D7; 4684 4685 typedef struct 4686 { 4687 unsigned B3D70 : 1; 4688 unsigned B3D71 : 1; 4689 unsigned B3D72 : 1; 4690 unsigned B3D73 : 1; 4691 unsigned B3D74 : 1; 4692 unsigned B3D75 : 1; 4693 unsigned B3D76 : 1; 4694 unsigned B3D77 : 1; 4695 } __B3D7bits_t; 4696 4697 extern __at(0x0E5D) volatile __B3D7bits_t B3D7bits; 4698 4699 #define _B3D70 0x01 4700 #define _B3D71 0x02 4701 #define _B3D72 0x04 4702 #define _B3D73 0x08 4703 #define _B3D74 0x10 4704 #define _B3D75 0x20 4705 #define _B3D76 0x40 4706 #define _B3D77 0x80 4707 4708 //============================================================================== 4709 4710 4711 //============================================================================== 4712 // CANSTAT_RO6 Bits 4713 4714 extern __at(0x0E5E) __sfr CANSTAT_RO6; 4715 4716 typedef union 4717 { 4718 struct 4719 { 4720 unsigned EICODE0 : 1; 4721 unsigned EICODE1_ICODE0 : 1; 4722 unsigned EICODE2_ICODE1 : 1; 4723 unsigned EICODE3_ICODE2 : 1; 4724 unsigned EICODE4 : 1; 4725 unsigned OPMODE0 : 1; 4726 unsigned OPMODE1 : 1; 4727 unsigned OPMODE2 : 1; 4728 }; 4729 4730 struct 4731 { 4732 unsigned : 5; 4733 unsigned OPMODE : 3; 4734 }; 4735 } __CANSTAT_RO6bits_t; 4736 4737 extern __at(0x0E5E) volatile __CANSTAT_RO6bits_t CANSTAT_RO6bits; 4738 4739 #define _CANSTAT_RO6_EICODE0 0x01 4740 #define _CANSTAT_RO6_EICODE1_ICODE0 0x02 4741 #define _CANSTAT_RO6_EICODE2_ICODE1 0x04 4742 #define _CANSTAT_RO6_EICODE3_ICODE2 0x08 4743 #define _CANSTAT_RO6_EICODE4 0x10 4744 #define _CANSTAT_RO6_OPMODE0 0x20 4745 #define _CANSTAT_RO6_OPMODE1 0x40 4746 #define _CANSTAT_RO6_OPMODE2 0x80 4747 4748 //============================================================================== 4749 4750 4751 //============================================================================== 4752 // CANCON_RO6 Bits 4753 4754 extern __at(0x0E5F) __sfr CANCON_RO6; 4755 4756 typedef union 4757 { 4758 struct 4759 { 4760 unsigned FP0 : 1; 4761 unsigned WIN0_FP1 : 1; 4762 unsigned WIN1_FP2 : 1; 4763 unsigned WIN2_FP3 : 1; 4764 unsigned ABAT : 1; 4765 unsigned REQOP0 : 1; 4766 unsigned REQOP1 : 1; 4767 unsigned REQOP2 : 1; 4768 }; 4769 4770 struct 4771 { 4772 unsigned : 5; 4773 unsigned REQOP : 3; 4774 }; 4775 } __CANCON_RO6bits_t; 4776 4777 extern __at(0x0E5F) volatile __CANCON_RO6bits_t CANCON_RO6bits; 4778 4779 #define _CANCON_RO6_FP0 0x01 4780 #define _CANCON_RO6_WIN0_FP1 0x02 4781 #define _CANCON_RO6_WIN1_FP2 0x04 4782 #define _CANCON_RO6_WIN2_FP3 0x08 4783 #define _CANCON_RO6_ABAT 0x10 4784 #define _CANCON_RO6_REQOP0 0x20 4785 #define _CANCON_RO6_REQOP1 0x40 4786 #define _CANCON_RO6_REQOP2 0x80 4787 4788 //============================================================================== 4789 4790 4791 //============================================================================== 4792 // B4CON Bits 4793 4794 extern __at(0x0E60) __sfr B4CON; 4795 4796 typedef union 4797 { 4798 struct 4799 { 4800 unsigned FILHIT0_TXPRI0 : 1; 4801 unsigned FILHIT1_TXPRI1 : 1; 4802 unsigned FILHIT2_RTREN : 1; 4803 unsigned FILHIT3_TXREQ : 1; 4804 unsigned FILHIT4_TXERR : 1; 4805 unsigned RTRRO_TXLARB : 1; 4806 unsigned RXM1_TXABT : 1; 4807 unsigned RXFUL_TXBIF : 1; 4808 }; 4809 4810 struct 4811 { 4812 unsigned FILHIT0 : 1; 4813 unsigned FILHIT1 : 1; 4814 unsigned FILHIT2 : 1; 4815 unsigned FILHIT3 : 1; 4816 unsigned FILHIT4 : 1; 4817 unsigned RTRRO : 1; 4818 unsigned RXM1 : 1; 4819 unsigned RXFUL : 1; 4820 }; 4821 4822 struct 4823 { 4824 unsigned TXPRI0 : 1; 4825 unsigned TXPRI1 : 1; 4826 unsigned RTREN : 1; 4827 unsigned TXREQ : 1; 4828 unsigned TXERR : 1; 4829 unsigned TXLARB : 1; 4830 unsigned TXABT : 1; 4831 unsigned TXBIF : 1; 4832 }; 4833 4834 struct 4835 { 4836 unsigned TXPRI : 2; 4837 unsigned : 6; 4838 }; 4839 4840 struct 4841 { 4842 unsigned FILHIT : 5; 4843 unsigned : 3; 4844 }; 4845 } __B4CONbits_t; 4846 4847 extern __at(0x0E60) volatile __B4CONbits_t B4CONbits; 4848 4849 #define _B4CON_FILHIT0_TXPRI0 0x01 4850 #define _B4CON_FILHIT0 0x01 4851 #define _B4CON_TXPRI0 0x01 4852 #define _B4CON_FILHIT1_TXPRI1 0x02 4853 #define _B4CON_FILHIT1 0x02 4854 #define _B4CON_TXPRI1 0x02 4855 #define _B4CON_FILHIT2_RTREN 0x04 4856 #define _B4CON_FILHIT2 0x04 4857 #define _B4CON_RTREN 0x04 4858 #define _B4CON_FILHIT3_TXREQ 0x08 4859 #define _B4CON_FILHIT3 0x08 4860 #define _B4CON_TXREQ 0x08 4861 #define _B4CON_FILHIT4_TXERR 0x10 4862 #define _B4CON_FILHIT4 0x10 4863 #define _B4CON_TXERR 0x10 4864 #define _B4CON_RTRRO_TXLARB 0x20 4865 #define _B4CON_RTRRO 0x20 4866 #define _B4CON_TXLARB 0x20 4867 #define _B4CON_RXM1_TXABT 0x40 4868 #define _B4CON_RXM1 0x40 4869 #define _B4CON_TXABT 0x40 4870 #define _B4CON_RXFUL_TXBIF 0x80 4871 #define _B4CON_RXFUL 0x80 4872 #define _B4CON_TXBIF 0x80 4873 4874 //============================================================================== 4875 4876 4877 //============================================================================== 4878 // B4SIDH Bits 4879 4880 extern __at(0x0E61) __sfr B4SIDH; 4881 4882 typedef struct 4883 { 4884 unsigned SID3 : 1; 4885 unsigned SID4 : 1; 4886 unsigned SID5 : 1; 4887 unsigned SID6 : 1; 4888 unsigned SID7 : 1; 4889 unsigned SID8 : 1; 4890 unsigned SID9 : 1; 4891 unsigned SID10 : 1; 4892 } __B4SIDHbits_t; 4893 4894 extern __at(0x0E61) volatile __B4SIDHbits_t B4SIDHbits; 4895 4896 #define _B4SIDH_SID3 0x01 4897 #define _B4SIDH_SID4 0x02 4898 #define _B4SIDH_SID5 0x04 4899 #define _B4SIDH_SID6 0x08 4900 #define _B4SIDH_SID7 0x10 4901 #define _B4SIDH_SID8 0x20 4902 #define _B4SIDH_SID9 0x40 4903 #define _B4SIDH_SID10 0x80 4904 4905 //============================================================================== 4906 4907 4908 //============================================================================== 4909 // B4SIDL Bits 4910 4911 extern __at(0x0E62) __sfr B4SIDL; 4912 4913 typedef union 4914 { 4915 struct 4916 { 4917 unsigned EID16 : 1; 4918 unsigned EID17 : 1; 4919 unsigned : 1; 4920 unsigned EXID : 1; 4921 unsigned SRR : 1; 4922 unsigned SID0 : 1; 4923 unsigned SID1 : 1; 4924 unsigned SID2 : 1; 4925 }; 4926 4927 struct 4928 { 4929 unsigned : 1; 4930 unsigned : 1; 4931 unsigned : 1; 4932 unsigned EXIDE : 1; 4933 unsigned : 1; 4934 unsigned : 1; 4935 unsigned : 1; 4936 unsigned : 1; 4937 }; 4938 4939 struct 4940 { 4941 unsigned : 5; 4942 unsigned SID : 3; 4943 }; 4944 } __B4SIDLbits_t; 4945 4946 extern __at(0x0E62) volatile __B4SIDLbits_t B4SIDLbits; 4947 4948 #define _B4SIDL_EID16 0x01 4949 #define _B4SIDL_EID17 0x02 4950 #define _B4SIDL_EXID 0x08 4951 #define _B4SIDL_EXIDE 0x08 4952 #define _B4SIDL_SRR 0x10 4953 #define _B4SIDL_SID0 0x20 4954 #define _B4SIDL_SID1 0x40 4955 #define _B4SIDL_SID2 0x80 4956 4957 //============================================================================== 4958 4959 4960 //============================================================================== 4961 // B4EIDH Bits 4962 4963 extern __at(0x0E63) __sfr B4EIDH; 4964 4965 typedef struct 4966 { 4967 unsigned EID8 : 1; 4968 unsigned EID9 : 1; 4969 unsigned EID10 : 1; 4970 unsigned EID11 : 1; 4971 unsigned EID12 : 1; 4972 unsigned EID13 : 1; 4973 unsigned EID14 : 1; 4974 unsigned EID15 : 1; 4975 } __B4EIDHbits_t; 4976 4977 extern __at(0x0E63) volatile __B4EIDHbits_t B4EIDHbits; 4978 4979 #define _B4EIDH_EID8 0x01 4980 #define _B4EIDH_EID9 0x02 4981 #define _B4EIDH_EID10 0x04 4982 #define _B4EIDH_EID11 0x08 4983 #define _B4EIDH_EID12 0x10 4984 #define _B4EIDH_EID13 0x20 4985 #define _B4EIDH_EID14 0x40 4986 #define _B4EIDH_EID15 0x80 4987 4988 //============================================================================== 4989 4990 4991 //============================================================================== 4992 // B4EIDL Bits 4993 4994 extern __at(0x0E64) __sfr B4EIDL; 4995 4996 typedef struct 4997 { 4998 unsigned EID0 : 1; 4999 unsigned EID1 : 1; 5000 unsigned EID2 : 1; 5001 unsigned EID3 : 1; 5002 unsigned EID4 : 1; 5003 unsigned EID5 : 1; 5004 unsigned EID6 : 1; 5005 unsigned EID7 : 1; 5006 } __B4EIDLbits_t; 5007 5008 extern __at(0x0E64) volatile __B4EIDLbits_t B4EIDLbits; 5009 5010 #define _B4EIDL_EID0 0x01 5011 #define _B4EIDL_EID1 0x02 5012 #define _B4EIDL_EID2 0x04 5013 #define _B4EIDL_EID3 0x08 5014 #define _B4EIDL_EID4 0x10 5015 #define _B4EIDL_EID5 0x20 5016 #define _B4EIDL_EID6 0x40 5017 #define _B4EIDL_EID7 0x80 5018 5019 //============================================================================== 5020 5021 5022 //============================================================================== 5023 // B4DLC Bits 5024 5025 extern __at(0x0E65) __sfr B4DLC; 5026 5027 typedef union 5028 { 5029 struct 5030 { 5031 unsigned DLC0 : 1; 5032 unsigned DLC1 : 1; 5033 unsigned DLC2 : 1; 5034 unsigned DLC3 : 1; 5035 unsigned RB0 : 1; 5036 unsigned RB1 : 1; 5037 unsigned RXRTR : 1; 5038 unsigned : 1; 5039 }; 5040 5041 struct 5042 { 5043 unsigned : 1; 5044 unsigned : 1; 5045 unsigned : 1; 5046 unsigned : 1; 5047 unsigned RESRB0 : 1; 5048 unsigned RESRB1 : 1; 5049 unsigned TXRTR : 1; 5050 unsigned : 1; 5051 }; 5052 5053 struct 5054 { 5055 unsigned DLC : 4; 5056 unsigned : 4; 5057 }; 5058 5059 struct 5060 { 5061 unsigned : 4; 5062 unsigned RB : 2; 5063 unsigned : 2; 5064 }; 5065 5066 struct 5067 { 5068 unsigned : 4; 5069 unsigned RESRB : 2; 5070 unsigned : 2; 5071 }; 5072 } __B4DLCbits_t; 5073 5074 extern __at(0x0E65) volatile __B4DLCbits_t B4DLCbits; 5075 5076 #define _B4DLC_DLC0 0x01 5077 #define _B4DLC_DLC1 0x02 5078 #define _B4DLC_DLC2 0x04 5079 #define _B4DLC_DLC3 0x08 5080 #define _B4DLC_RB0 0x10 5081 #define _B4DLC_RESRB0 0x10 5082 #define _B4DLC_RB1 0x20 5083 #define _B4DLC_RESRB1 0x20 5084 #define _B4DLC_RXRTR 0x40 5085 #define _B4DLC_TXRTR 0x40 5086 5087 //============================================================================== 5088 5089 5090 //============================================================================== 5091 // B4D0 Bits 5092 5093 extern __at(0x0E66) __sfr B4D0; 5094 5095 typedef struct 5096 { 5097 unsigned B4D00 : 1; 5098 unsigned B4D01 : 1; 5099 unsigned B4D02 : 1; 5100 unsigned B4D03 : 1; 5101 unsigned B4D04 : 1; 5102 unsigned B4D05 : 1; 5103 unsigned B4D06 : 1; 5104 unsigned B4D07 : 1; 5105 } __B4D0bits_t; 5106 5107 extern __at(0x0E66) volatile __B4D0bits_t B4D0bits; 5108 5109 #define _B4D00 0x01 5110 #define _B4D01 0x02 5111 #define _B4D02 0x04 5112 #define _B4D03 0x08 5113 #define _B4D04 0x10 5114 #define _B4D05 0x20 5115 #define _B4D06 0x40 5116 #define _B4D07 0x80 5117 5118 //============================================================================== 5119 5120 5121 //============================================================================== 5122 // B4D1 Bits 5123 5124 extern __at(0x0E67) __sfr B4D1; 5125 5126 typedef struct 5127 { 5128 unsigned B4D10 : 1; 5129 unsigned B4D11 : 1; 5130 unsigned B4D12 : 1; 5131 unsigned B4D13 : 1; 5132 unsigned B4D14 : 1; 5133 unsigned B4D15 : 1; 5134 unsigned B4D16 : 1; 5135 unsigned B4D17 : 1; 5136 } __B4D1bits_t; 5137 5138 extern __at(0x0E67) volatile __B4D1bits_t B4D1bits; 5139 5140 #define _B4D10 0x01 5141 #define _B4D11 0x02 5142 #define _B4D12 0x04 5143 #define _B4D13 0x08 5144 #define _B4D14 0x10 5145 #define _B4D15 0x20 5146 #define _B4D16 0x40 5147 #define _B4D17 0x80 5148 5149 //============================================================================== 5150 5151 5152 //============================================================================== 5153 // B4D2 Bits 5154 5155 extern __at(0x0E68) __sfr B4D2; 5156 5157 typedef struct 5158 { 5159 unsigned B4D20 : 1; 5160 unsigned B4D21 : 1; 5161 unsigned B4D22 : 1; 5162 unsigned B4D23 : 1; 5163 unsigned B4D24 : 1; 5164 unsigned B4D25 : 1; 5165 unsigned B4D26 : 1; 5166 unsigned B4D27 : 1; 5167 } __B4D2bits_t; 5168 5169 extern __at(0x0E68) volatile __B4D2bits_t B4D2bits; 5170 5171 #define _B4D20 0x01 5172 #define _B4D21 0x02 5173 #define _B4D22 0x04 5174 #define _B4D23 0x08 5175 #define _B4D24 0x10 5176 #define _B4D25 0x20 5177 #define _B4D26 0x40 5178 #define _B4D27 0x80 5179 5180 //============================================================================== 5181 5182 5183 //============================================================================== 5184 // B4D3 Bits 5185 5186 extern __at(0x0E69) __sfr B4D3; 5187 5188 typedef struct 5189 { 5190 unsigned B4D30 : 1; 5191 unsigned B4D31 : 1; 5192 unsigned B4D32 : 1; 5193 unsigned B4D33 : 1; 5194 unsigned B4D34 : 1; 5195 unsigned B4D35 : 1; 5196 unsigned B4D36 : 1; 5197 unsigned B4D37 : 1; 5198 } __B4D3bits_t; 5199 5200 extern __at(0x0E69) volatile __B4D3bits_t B4D3bits; 5201 5202 #define _B4D30 0x01 5203 #define _B4D31 0x02 5204 #define _B4D32 0x04 5205 #define _B4D33 0x08 5206 #define _B4D34 0x10 5207 #define _B4D35 0x20 5208 #define _B4D36 0x40 5209 #define _B4D37 0x80 5210 5211 //============================================================================== 5212 5213 5214 //============================================================================== 5215 // B4D4 Bits 5216 5217 extern __at(0x0E6A) __sfr B4D4; 5218 5219 typedef struct 5220 { 5221 unsigned B4D40 : 1; 5222 unsigned B4D41 : 1; 5223 unsigned B4D42 : 1; 5224 unsigned B4D43 : 1; 5225 unsigned B4D44 : 1; 5226 unsigned B4D45 : 1; 5227 unsigned B4D46 : 1; 5228 unsigned B4D47 : 1; 5229 } __B4D4bits_t; 5230 5231 extern __at(0x0E6A) volatile __B4D4bits_t B4D4bits; 5232 5233 #define _B4D40 0x01 5234 #define _B4D41 0x02 5235 #define _B4D42 0x04 5236 #define _B4D43 0x08 5237 #define _B4D44 0x10 5238 #define _B4D45 0x20 5239 #define _B4D46 0x40 5240 #define _B4D47 0x80 5241 5242 //============================================================================== 5243 5244 5245 //============================================================================== 5246 // B4D5 Bits 5247 5248 extern __at(0x0E6B) __sfr B4D5; 5249 5250 typedef struct 5251 { 5252 unsigned B4D50 : 1; 5253 unsigned B4D51 : 1; 5254 unsigned B4D52 : 1; 5255 unsigned B4D53 : 1; 5256 unsigned B4D54 : 1; 5257 unsigned B4D55 : 1; 5258 unsigned B4D56 : 1; 5259 unsigned B4D57 : 1; 5260 } __B4D5bits_t; 5261 5262 extern __at(0x0E6B) volatile __B4D5bits_t B4D5bits; 5263 5264 #define _B4D50 0x01 5265 #define _B4D51 0x02 5266 #define _B4D52 0x04 5267 #define _B4D53 0x08 5268 #define _B4D54 0x10 5269 #define _B4D55 0x20 5270 #define _B4D56 0x40 5271 #define _B4D57 0x80 5272 5273 //============================================================================== 5274 5275 5276 //============================================================================== 5277 // B4D6 Bits 5278 5279 extern __at(0x0E6C) __sfr B4D6; 5280 5281 typedef struct 5282 { 5283 unsigned B4D60 : 1; 5284 unsigned B4D61 : 1; 5285 unsigned B4D62 : 1; 5286 unsigned B4D63 : 1; 5287 unsigned B4D64 : 1; 5288 unsigned B4D65 : 1; 5289 unsigned B4D66 : 1; 5290 unsigned B4D67 : 1; 5291 } __B4D6bits_t; 5292 5293 extern __at(0x0E6C) volatile __B4D6bits_t B4D6bits; 5294 5295 #define _B4D60 0x01 5296 #define _B4D61 0x02 5297 #define _B4D62 0x04 5298 #define _B4D63 0x08 5299 #define _B4D64 0x10 5300 #define _B4D65 0x20 5301 #define _B4D66 0x40 5302 #define _B4D67 0x80 5303 5304 //============================================================================== 5305 5306 5307 //============================================================================== 5308 // B4D7 Bits 5309 5310 extern __at(0x0E6D) __sfr B4D7; 5311 5312 typedef union 5313 { 5314 struct 5315 { 5316 unsigned B4D70 : 1; 5317 unsigned B4D71 : 1; 5318 unsigned B4D72 : 1; 5319 unsigned B4D73 : 1; 5320 unsigned B4D74 : 1; 5321 unsigned B4D75 : 1; 5322 unsigned B4D76 : 1; 5323 unsigned B4D77 : 1; 5324 }; 5325 5326 struct 5327 { 5328 unsigned : 1; 5329 unsigned : 1; 5330 unsigned : 1; 5331 unsigned : 1; 5332 unsigned : 1; 5333 unsigned : 1; 5334 unsigned : 1; 5335 unsigned B46D77 : 1; 5336 }; 5337 } __B4D7bits_t; 5338 5339 extern __at(0x0E6D) volatile __B4D7bits_t B4D7bits; 5340 5341 #define _B4D70 0x01 5342 #define _B4D71 0x02 5343 #define _B4D72 0x04 5344 #define _B4D73 0x08 5345 #define _B4D74 0x10 5346 #define _B4D75 0x20 5347 #define _B4D76 0x40 5348 #define _B4D77 0x80 5349 #define _B46D77 0x80 5350 5351 //============================================================================== 5352 5353 5354 //============================================================================== 5355 // CANSTAT_RO5 Bits 5356 5357 extern __at(0x0E6E) __sfr CANSTAT_RO5; 5358 5359 typedef union 5360 { 5361 struct 5362 { 5363 unsigned EICODE0 : 1; 5364 unsigned EICODE1_ICODE0 : 1; 5365 unsigned EICODE2_ICODE1 : 1; 5366 unsigned EICODE3_ICODE2 : 1; 5367 unsigned EICODE4 : 1; 5368 unsigned OPMODE0 : 1; 5369 unsigned OPMODE1 : 1; 5370 unsigned OPMODE2 : 1; 5371 }; 5372 5373 struct 5374 { 5375 unsigned : 5; 5376 unsigned OPMODE : 3; 5377 }; 5378 } __CANSTAT_RO5bits_t; 5379 5380 extern __at(0x0E6E) volatile __CANSTAT_RO5bits_t CANSTAT_RO5bits; 5381 5382 #define _CANSTAT_RO5_EICODE0 0x01 5383 #define _CANSTAT_RO5_EICODE1_ICODE0 0x02 5384 #define _CANSTAT_RO5_EICODE2_ICODE1 0x04 5385 #define _CANSTAT_RO5_EICODE3_ICODE2 0x08 5386 #define _CANSTAT_RO5_EICODE4 0x10 5387 #define _CANSTAT_RO5_OPMODE0 0x20 5388 #define _CANSTAT_RO5_OPMODE1 0x40 5389 #define _CANSTAT_RO5_OPMODE2 0x80 5390 5391 //============================================================================== 5392 5393 5394 //============================================================================== 5395 // CANCON_RO5 Bits 5396 5397 extern __at(0x0E6F) __sfr CANCON_RO5; 5398 5399 typedef union 5400 { 5401 struct 5402 { 5403 unsigned FP0 : 1; 5404 unsigned WIN0_FP1 : 1; 5405 unsigned WIN1_FP2 : 1; 5406 unsigned WIN2_FP3 : 1; 5407 unsigned ABAT : 1; 5408 unsigned REQOP0 : 1; 5409 unsigned REQOP1 : 1; 5410 unsigned REQOP2 : 1; 5411 }; 5412 5413 struct 5414 { 5415 unsigned : 5; 5416 unsigned REQOP : 3; 5417 }; 5418 } __CANCON_RO5bits_t; 5419 5420 extern __at(0x0E6F) volatile __CANCON_RO5bits_t CANCON_RO5bits; 5421 5422 #define _CANCON_RO5_FP0 0x01 5423 #define _CANCON_RO5_WIN0_FP1 0x02 5424 #define _CANCON_RO5_WIN1_FP2 0x04 5425 #define _CANCON_RO5_WIN2_FP3 0x08 5426 #define _CANCON_RO5_ABAT 0x10 5427 #define _CANCON_RO5_REQOP0 0x20 5428 #define _CANCON_RO5_REQOP1 0x40 5429 #define _CANCON_RO5_REQOP2 0x80 5430 5431 //============================================================================== 5432 5433 5434 //============================================================================== 5435 // B5CON Bits 5436 5437 extern __at(0x0E70) __sfr B5CON; 5438 5439 typedef union 5440 { 5441 struct 5442 { 5443 unsigned FILHIT0_TXPRI0 : 1; 5444 unsigned FILHIT1_TXPRI1 : 1; 5445 unsigned FILHIT2_RTREN : 1; 5446 unsigned FILHIT3_TXREQ : 1; 5447 unsigned FILHIT4_TXERR : 1; 5448 unsigned RTRRO_TXLARB : 1; 5449 unsigned RXM1_TXABT : 1; 5450 unsigned RXFUL_TXBIF : 1; 5451 }; 5452 5453 struct 5454 { 5455 unsigned FILHIT0 : 1; 5456 unsigned FILHIT1 : 1; 5457 unsigned FILHIT2 : 1; 5458 unsigned FILHIT3 : 1; 5459 unsigned FILHIT4 : 1; 5460 unsigned RTRRO : 1; 5461 unsigned RXM1 : 1; 5462 unsigned RXFUL : 1; 5463 }; 5464 5465 struct 5466 { 5467 unsigned TXPRI0 : 1; 5468 unsigned TXPRI1 : 1; 5469 unsigned RTREN : 1; 5470 unsigned TXREQ : 1; 5471 unsigned TXERR : 1; 5472 unsigned TXLARB : 1; 5473 unsigned TXABT : 1; 5474 unsigned TXBIF : 1; 5475 }; 5476 5477 struct 5478 { 5479 unsigned TXPRI : 2; 5480 unsigned : 6; 5481 }; 5482 5483 struct 5484 { 5485 unsigned FILHIT : 5; 5486 unsigned : 3; 5487 }; 5488 } __B5CONbits_t; 5489 5490 extern __at(0x0E70) volatile __B5CONbits_t B5CONbits; 5491 5492 #define _B5CON_FILHIT0_TXPRI0 0x01 5493 #define _B5CON_FILHIT0 0x01 5494 #define _B5CON_TXPRI0 0x01 5495 #define _B5CON_FILHIT1_TXPRI1 0x02 5496 #define _B5CON_FILHIT1 0x02 5497 #define _B5CON_TXPRI1 0x02 5498 #define _B5CON_FILHIT2_RTREN 0x04 5499 #define _B5CON_FILHIT2 0x04 5500 #define _B5CON_RTREN 0x04 5501 #define _B5CON_FILHIT3_TXREQ 0x08 5502 #define _B5CON_FILHIT3 0x08 5503 #define _B5CON_TXREQ 0x08 5504 #define _B5CON_FILHIT4_TXERR 0x10 5505 #define _B5CON_FILHIT4 0x10 5506 #define _B5CON_TXERR 0x10 5507 #define _B5CON_RTRRO_TXLARB 0x20 5508 #define _B5CON_RTRRO 0x20 5509 #define _B5CON_TXLARB 0x20 5510 #define _B5CON_RXM1_TXABT 0x40 5511 #define _B5CON_RXM1 0x40 5512 #define _B5CON_TXABT 0x40 5513 #define _B5CON_RXFUL_TXBIF 0x80 5514 #define _B5CON_RXFUL 0x80 5515 #define _B5CON_TXBIF 0x80 5516 5517 //============================================================================== 5518 5519 5520 //============================================================================== 5521 // B5SIDH Bits 5522 5523 extern __at(0x0E71) __sfr B5SIDH; 5524 5525 typedef struct 5526 { 5527 unsigned SID3 : 1; 5528 unsigned SID4 : 1; 5529 unsigned SID5 : 1; 5530 unsigned SID6 : 1; 5531 unsigned SID7 : 1; 5532 unsigned SID8 : 1; 5533 unsigned SID9 : 1; 5534 unsigned SID10 : 1; 5535 } __B5SIDHbits_t; 5536 5537 extern __at(0x0E71) volatile __B5SIDHbits_t B5SIDHbits; 5538 5539 #define _B5SIDH_SID3 0x01 5540 #define _B5SIDH_SID4 0x02 5541 #define _B5SIDH_SID5 0x04 5542 #define _B5SIDH_SID6 0x08 5543 #define _B5SIDH_SID7 0x10 5544 #define _B5SIDH_SID8 0x20 5545 #define _B5SIDH_SID9 0x40 5546 #define _B5SIDH_SID10 0x80 5547 5548 //============================================================================== 5549 5550 5551 //============================================================================== 5552 // B5SIDL Bits 5553 5554 extern __at(0x0E72) __sfr B5SIDL; 5555 5556 typedef union 5557 { 5558 struct 5559 { 5560 unsigned EID16 : 1; 5561 unsigned EID17 : 1; 5562 unsigned : 1; 5563 unsigned EXID : 1; 5564 unsigned SRR : 1; 5565 unsigned SID0 : 1; 5566 unsigned SID1 : 1; 5567 unsigned SID2 : 1; 5568 }; 5569 5570 struct 5571 { 5572 unsigned : 1; 5573 unsigned : 1; 5574 unsigned : 1; 5575 unsigned EXIDE : 1; 5576 unsigned : 1; 5577 unsigned : 1; 5578 unsigned : 1; 5579 unsigned : 1; 5580 }; 5581 5582 struct 5583 { 5584 unsigned : 5; 5585 unsigned SID : 3; 5586 }; 5587 } __B5SIDLbits_t; 5588 5589 extern __at(0x0E72) volatile __B5SIDLbits_t B5SIDLbits; 5590 5591 #define _B5SIDL_EID16 0x01 5592 #define _B5SIDL_EID17 0x02 5593 #define _B5SIDL_EXID 0x08 5594 #define _B5SIDL_EXIDE 0x08 5595 #define _B5SIDL_SRR 0x10 5596 #define _B5SIDL_SID0 0x20 5597 #define _B5SIDL_SID1 0x40 5598 #define _B5SIDL_SID2 0x80 5599 5600 //============================================================================== 5601 5602 5603 //============================================================================== 5604 // B5EIDH Bits 5605 5606 extern __at(0x0E73) __sfr B5EIDH; 5607 5608 typedef struct 5609 { 5610 unsigned EID8 : 1; 5611 unsigned EID9 : 1; 5612 unsigned EID10 : 1; 5613 unsigned EID11 : 1; 5614 unsigned EID12 : 1; 5615 unsigned EID13 : 1; 5616 unsigned EID14 : 1; 5617 unsigned EID15 : 1; 5618 } __B5EIDHbits_t; 5619 5620 extern __at(0x0E73) volatile __B5EIDHbits_t B5EIDHbits; 5621 5622 #define _B5EIDH_EID8 0x01 5623 #define _B5EIDH_EID9 0x02 5624 #define _B5EIDH_EID10 0x04 5625 #define _B5EIDH_EID11 0x08 5626 #define _B5EIDH_EID12 0x10 5627 #define _B5EIDH_EID13 0x20 5628 #define _B5EIDH_EID14 0x40 5629 #define _B5EIDH_EID15 0x80 5630 5631 //============================================================================== 5632 5633 5634 //============================================================================== 5635 // B5EIDL Bits 5636 5637 extern __at(0x0E74) __sfr B5EIDL; 5638 5639 typedef struct 5640 { 5641 unsigned EID0 : 1; 5642 unsigned EID1 : 1; 5643 unsigned EID2 : 1; 5644 unsigned EID3 : 1; 5645 unsigned EID4 : 1; 5646 unsigned EID5 : 1; 5647 unsigned EID6 : 1; 5648 unsigned EID7 : 1; 5649 } __B5EIDLbits_t; 5650 5651 extern __at(0x0E74) volatile __B5EIDLbits_t B5EIDLbits; 5652 5653 #define _B5EIDL_EID0 0x01 5654 #define _B5EIDL_EID1 0x02 5655 #define _B5EIDL_EID2 0x04 5656 #define _B5EIDL_EID3 0x08 5657 #define _B5EIDL_EID4 0x10 5658 #define _B5EIDL_EID5 0x20 5659 #define _B5EIDL_EID6 0x40 5660 #define _B5EIDL_EID7 0x80 5661 5662 //============================================================================== 5663 5664 5665 //============================================================================== 5666 // B5DLC Bits 5667 5668 extern __at(0x0E75) __sfr B5DLC; 5669 5670 typedef union 5671 { 5672 struct 5673 { 5674 unsigned DLC0 : 1; 5675 unsigned DLC1 : 1; 5676 unsigned DLC2 : 1; 5677 unsigned DLC3 : 1; 5678 unsigned RB0 : 1; 5679 unsigned RB1 : 1; 5680 unsigned RXRTR : 1; 5681 unsigned : 1; 5682 }; 5683 5684 struct 5685 { 5686 unsigned : 1; 5687 unsigned : 1; 5688 unsigned : 1; 5689 unsigned : 1; 5690 unsigned RESRB0 : 1; 5691 unsigned RESRB1 : 1; 5692 unsigned : 1; 5693 unsigned : 1; 5694 }; 5695 5696 struct 5697 { 5698 unsigned DLC : 4; 5699 unsigned : 4; 5700 }; 5701 5702 struct 5703 { 5704 unsigned : 4; 5705 unsigned RB : 2; 5706 unsigned : 2; 5707 }; 5708 5709 struct 5710 { 5711 unsigned : 4; 5712 unsigned RESRB : 2; 5713 unsigned : 2; 5714 }; 5715 } __B5DLCbits_t; 5716 5717 extern __at(0x0E75) volatile __B5DLCbits_t B5DLCbits; 5718 5719 #define _B5DLC_DLC0 0x01 5720 #define _B5DLC_DLC1 0x02 5721 #define _B5DLC_DLC2 0x04 5722 #define _B5DLC_DLC3 0x08 5723 #define _B5DLC_RB0 0x10 5724 #define _B5DLC_RESRB0 0x10 5725 #define _B5DLC_RB1 0x20 5726 #define _B5DLC_RESRB1 0x20 5727 #define _B5DLC_RXRTR 0x40 5728 5729 //============================================================================== 5730 5731 5732 //============================================================================== 5733 // B5D0 Bits 5734 5735 extern __at(0x0E76) __sfr B5D0; 5736 5737 typedef union 5738 { 5739 struct 5740 { 5741 unsigned B5D00 : 1; 5742 unsigned B5D01 : 1; 5743 unsigned B5D02 : 1; 5744 unsigned B5D03 : 1; 5745 unsigned B5D04 : 1; 5746 unsigned B5D05 : 1; 5747 unsigned B5D06 : 1; 5748 unsigned B5D07 : 1; 5749 }; 5750 5751 struct 5752 { 5753 unsigned : 1; 5754 unsigned : 1; 5755 unsigned : 1; 5756 unsigned : 1; 5757 unsigned : 1; 5758 unsigned : 1; 5759 unsigned : 1; 5760 unsigned B57D07 : 1; 5761 }; 5762 } __B5D0bits_t; 5763 5764 extern __at(0x0E76) volatile __B5D0bits_t B5D0bits; 5765 5766 #define _B5D00 0x01 5767 #define _B5D01 0x02 5768 #define _B5D02 0x04 5769 #define _B5D03 0x08 5770 #define _B5D04 0x10 5771 #define _B5D05 0x20 5772 #define _B5D06 0x40 5773 #define _B5D07 0x80 5774 #define _B57D07 0x80 5775 5776 //============================================================================== 5777 5778 5779 //============================================================================== 5780 // B5D1 Bits 5781 5782 extern __at(0x0E77) __sfr B5D1; 5783 5784 typedef struct 5785 { 5786 unsigned B5D10 : 1; 5787 unsigned B5D11 : 1; 5788 unsigned B5D12 : 1; 5789 unsigned B5D13 : 1; 5790 unsigned B5D14 : 1; 5791 unsigned B5D15 : 1; 5792 unsigned B5D16 : 1; 5793 unsigned B5D17 : 1; 5794 } __B5D1bits_t; 5795 5796 extern __at(0x0E77) volatile __B5D1bits_t B5D1bits; 5797 5798 #define _B5D10 0x01 5799 #define _B5D11 0x02 5800 #define _B5D12 0x04 5801 #define _B5D13 0x08 5802 #define _B5D14 0x10 5803 #define _B5D15 0x20 5804 #define _B5D16 0x40 5805 #define _B5D17 0x80 5806 5807 //============================================================================== 5808 5809 5810 //============================================================================== 5811 // B5D2 Bits 5812 5813 extern __at(0x0E78) __sfr B5D2; 5814 5815 typedef union 5816 { 5817 struct 5818 { 5819 unsigned B5D20 : 1; 5820 unsigned B5D21 : 1; 5821 unsigned B5D22 : 1; 5822 unsigned B5D23 : 1; 5823 unsigned B5D24 : 1; 5824 unsigned B5D25 : 1; 5825 unsigned B5D26 : 1; 5826 unsigned B5D27 : 1; 5827 }; 5828 5829 struct 5830 { 5831 unsigned : 1; 5832 unsigned : 1; 5833 unsigned : 1; 5834 unsigned B57D23 : 1; 5835 unsigned : 1; 5836 unsigned : 1; 5837 unsigned : 1; 5838 unsigned : 1; 5839 }; 5840 } __B5D2bits_t; 5841 5842 extern __at(0x0E78) volatile __B5D2bits_t B5D2bits; 5843 5844 #define _B5D20 0x01 5845 #define _B5D21 0x02 5846 #define _B5D22 0x04 5847 #define _B5D23 0x08 5848 #define _B57D23 0x08 5849 #define _B5D24 0x10 5850 #define _B5D25 0x20 5851 #define _B5D26 0x40 5852 #define _B5D27 0x80 5853 5854 //============================================================================== 5855 5856 5857 //============================================================================== 5858 // B5D3 Bits 5859 5860 extern __at(0x0E79) __sfr B5D3; 5861 5862 typedef struct 5863 { 5864 unsigned B5D30 : 1; 5865 unsigned B5D31 : 1; 5866 unsigned B5D32 : 1; 5867 unsigned B5D33 : 1; 5868 unsigned B5D34 : 1; 5869 unsigned B5D35 : 1; 5870 unsigned B5D36 : 1; 5871 unsigned B5D37 : 1; 5872 } __B5D3bits_t; 5873 5874 extern __at(0x0E79) volatile __B5D3bits_t B5D3bits; 5875 5876 #define _B5D30 0x01 5877 #define _B5D31 0x02 5878 #define _B5D32 0x04 5879 #define _B5D33 0x08 5880 #define _B5D34 0x10 5881 #define _B5D35 0x20 5882 #define _B5D36 0x40 5883 #define _B5D37 0x80 5884 5885 //============================================================================== 5886 5887 5888 //============================================================================== 5889 // B5D4 Bits 5890 5891 extern __at(0x0E7A) __sfr B5D4; 5892 5893 typedef struct 5894 { 5895 unsigned B5D40 : 1; 5896 unsigned B5D41 : 1; 5897 unsigned B5D42 : 1; 5898 unsigned B5D43 : 1; 5899 unsigned B5D44 : 1; 5900 unsigned B5D45 : 1; 5901 unsigned B5D46 : 1; 5902 unsigned B5D47 : 1; 5903 } __B5D4bits_t; 5904 5905 extern __at(0x0E7A) volatile __B5D4bits_t B5D4bits; 5906 5907 #define _B5D40 0x01 5908 #define _B5D41 0x02 5909 #define _B5D42 0x04 5910 #define _B5D43 0x08 5911 #define _B5D44 0x10 5912 #define _B5D45 0x20 5913 #define _B5D46 0x40 5914 #define _B5D47 0x80 5915 5916 //============================================================================== 5917 5918 5919 //============================================================================== 5920 // B5D5 Bits 5921 5922 extern __at(0x0E7B) __sfr B5D5; 5923 5924 typedef struct 5925 { 5926 unsigned B5D50 : 1; 5927 unsigned B5D51 : 1; 5928 unsigned B5D52 : 1; 5929 unsigned B5D53 : 1; 5930 unsigned B5D54 : 1; 5931 unsigned B5D55 : 1; 5932 unsigned B5D56 : 1; 5933 unsigned B5D57 : 1; 5934 } __B5D5bits_t; 5935 5936 extern __at(0x0E7B) volatile __B5D5bits_t B5D5bits; 5937 5938 #define _B5D50 0x01 5939 #define _B5D51 0x02 5940 #define _B5D52 0x04 5941 #define _B5D53 0x08 5942 #define _B5D54 0x10 5943 #define _B5D55 0x20 5944 #define _B5D56 0x40 5945 #define _B5D57 0x80 5946 5947 //============================================================================== 5948 5949 5950 //============================================================================== 5951 // B5D6 Bits 5952 5953 extern __at(0x0E7C) __sfr B5D6; 5954 5955 typedef struct 5956 { 5957 unsigned B5D60 : 1; 5958 unsigned B5D61 : 1; 5959 unsigned B5D62 : 1; 5960 unsigned B5D63 : 1; 5961 unsigned B5D64 : 1; 5962 unsigned B5D65 : 1; 5963 unsigned B5D66 : 1; 5964 unsigned B5D67 : 1; 5965 } __B5D6bits_t; 5966 5967 extern __at(0x0E7C) volatile __B5D6bits_t B5D6bits; 5968 5969 #define _B5D60 0x01 5970 #define _B5D61 0x02 5971 #define _B5D62 0x04 5972 #define _B5D63 0x08 5973 #define _B5D64 0x10 5974 #define _B5D65 0x20 5975 #define _B5D66 0x40 5976 #define _B5D67 0x80 5977 5978 //============================================================================== 5979 5980 5981 //============================================================================== 5982 // B5D7 Bits 5983 5984 extern __at(0x0E7D) __sfr B5D7; 5985 5986 typedef struct 5987 { 5988 unsigned B5D70 : 1; 5989 unsigned B5D71 : 1; 5990 unsigned B5D72 : 1; 5991 unsigned B5D73 : 1; 5992 unsigned B5D74 : 1; 5993 unsigned B5D75 : 1; 5994 unsigned B5D76 : 1; 5995 unsigned B5D77 : 1; 5996 } __B5D7bits_t; 5997 5998 extern __at(0x0E7D) volatile __B5D7bits_t B5D7bits; 5999 6000 #define _B5D70 0x01 6001 #define _B5D71 0x02 6002 #define _B5D72 0x04 6003 #define _B5D73 0x08 6004 #define _B5D74 0x10 6005 #define _B5D75 0x20 6006 #define _B5D76 0x40 6007 #define _B5D77 0x80 6008 6009 //============================================================================== 6010 6011 6012 //============================================================================== 6013 // CANSTAT_RO4 Bits 6014 6015 extern __at(0x0E7E) __sfr CANSTAT_RO4; 6016 6017 typedef union 6018 { 6019 struct 6020 { 6021 unsigned EICODE0 : 1; 6022 unsigned EICODE1_ICODE0 : 1; 6023 unsigned EICODE2_ICODE1 : 1; 6024 unsigned EICODE3_ICODE2 : 1; 6025 unsigned EICODE4 : 1; 6026 unsigned OPMODE0 : 1; 6027 unsigned OPMODE1 : 1; 6028 unsigned OPMODE2 : 1; 6029 }; 6030 6031 struct 6032 { 6033 unsigned : 5; 6034 unsigned OPMODE : 3; 6035 }; 6036 } __CANSTAT_RO4bits_t; 6037 6038 extern __at(0x0E7E) volatile __CANSTAT_RO4bits_t CANSTAT_RO4bits; 6039 6040 #define _CANSTAT_RO4_EICODE0 0x01 6041 #define _CANSTAT_RO4_EICODE1_ICODE0 0x02 6042 #define _CANSTAT_RO4_EICODE2_ICODE1 0x04 6043 #define _CANSTAT_RO4_EICODE3_ICODE2 0x08 6044 #define _CANSTAT_RO4_EICODE4 0x10 6045 #define _CANSTAT_RO4_OPMODE0 0x20 6046 #define _CANSTAT_RO4_OPMODE1 0x40 6047 #define _CANSTAT_RO4_OPMODE2 0x80 6048 6049 //============================================================================== 6050 6051 6052 //============================================================================== 6053 // CANCON_RO4 Bits 6054 6055 extern __at(0x0E7F) __sfr CANCON_RO4; 6056 6057 typedef union 6058 { 6059 struct 6060 { 6061 unsigned FP0 : 1; 6062 unsigned WIN0_FP1 : 1; 6063 unsigned WIN1_FP2 : 1; 6064 unsigned WIN2_FP3 : 1; 6065 unsigned ABAT : 1; 6066 unsigned REQOP0 : 1; 6067 unsigned REQOP1 : 1; 6068 unsigned REQOP2 : 1; 6069 }; 6070 6071 struct 6072 { 6073 unsigned : 5; 6074 unsigned REQOP : 3; 6075 }; 6076 } __CANCON_RO4bits_t; 6077 6078 extern __at(0x0E7F) volatile __CANCON_RO4bits_t CANCON_RO4bits; 6079 6080 #define _CANCON_RO4_FP0 0x01 6081 #define _CANCON_RO4_WIN0_FP1 0x02 6082 #define _CANCON_RO4_WIN1_FP2 0x04 6083 #define _CANCON_RO4_WIN2_FP3 0x08 6084 #define _CANCON_RO4_ABAT 0x10 6085 #define _CANCON_RO4_REQOP0 0x20 6086 #define _CANCON_RO4_REQOP1 0x40 6087 #define _CANCON_RO4_REQOP2 0x80 6088 6089 //============================================================================== 6090 6091 6092 //============================================================================== 6093 // RXF0SIDH Bits 6094 6095 extern __at(0x0F00) __sfr RXF0SIDH; 6096 6097 typedef struct 6098 { 6099 unsigned SID3 : 1; 6100 unsigned SID4 : 1; 6101 unsigned SID5 : 1; 6102 unsigned SID6 : 1; 6103 unsigned SID7 : 1; 6104 unsigned SID8 : 1; 6105 unsigned SID9 : 1; 6106 unsigned SID10 : 1; 6107 } __RXF0SIDHbits_t; 6108 6109 extern __at(0x0F00) volatile __RXF0SIDHbits_t RXF0SIDHbits; 6110 6111 #define _RXF0SIDH_SID3 0x01 6112 #define _RXF0SIDH_SID4 0x02 6113 #define _RXF0SIDH_SID5 0x04 6114 #define _RXF0SIDH_SID6 0x08 6115 #define _RXF0SIDH_SID7 0x10 6116 #define _RXF0SIDH_SID8 0x20 6117 #define _RXF0SIDH_SID9 0x40 6118 #define _RXF0SIDH_SID10 0x80 6119 6120 //============================================================================== 6121 6122 6123 //============================================================================== 6124 // RXF0SIDL Bits 6125 6126 extern __at(0x0F01) __sfr RXF0SIDL; 6127 6128 typedef union 6129 { 6130 struct 6131 { 6132 unsigned EID16 : 1; 6133 unsigned EID17 : 1; 6134 unsigned : 1; 6135 unsigned EXIDEN : 1; 6136 unsigned : 1; 6137 unsigned SID0 : 1; 6138 unsigned SID1 : 1; 6139 unsigned SID2 : 1; 6140 }; 6141 6142 struct 6143 { 6144 unsigned : 1; 6145 unsigned : 1; 6146 unsigned : 1; 6147 unsigned EXIDE : 1; 6148 unsigned : 1; 6149 unsigned : 1; 6150 unsigned : 1; 6151 unsigned : 1; 6152 }; 6153 6154 struct 6155 { 6156 unsigned : 5; 6157 unsigned SID : 3; 6158 }; 6159 } __RXF0SIDLbits_t; 6160 6161 extern __at(0x0F01) volatile __RXF0SIDLbits_t RXF0SIDLbits; 6162 6163 #define _RXF0SIDL_EID16 0x01 6164 #define _RXF0SIDL_EID17 0x02 6165 #define _RXF0SIDL_EXIDEN 0x08 6166 #define _RXF0SIDL_EXIDE 0x08 6167 #define _RXF0SIDL_SID0 0x20 6168 #define _RXF0SIDL_SID1 0x40 6169 #define _RXF0SIDL_SID2 0x80 6170 6171 //============================================================================== 6172 6173 6174 //============================================================================== 6175 // RXF0EIDH Bits 6176 6177 extern __at(0x0F02) __sfr RXF0EIDH; 6178 6179 typedef struct 6180 { 6181 unsigned EID8 : 1; 6182 unsigned EID9 : 1; 6183 unsigned EID10 : 1; 6184 unsigned EID11 : 1; 6185 unsigned EID12 : 1; 6186 unsigned EID13 : 1; 6187 unsigned EID14 : 1; 6188 unsigned EID15 : 1; 6189 } __RXF0EIDHbits_t; 6190 6191 extern __at(0x0F02) volatile __RXF0EIDHbits_t RXF0EIDHbits; 6192 6193 #define _RXF0EIDH_EID8 0x01 6194 #define _RXF0EIDH_EID9 0x02 6195 #define _RXF0EIDH_EID10 0x04 6196 #define _RXF0EIDH_EID11 0x08 6197 #define _RXF0EIDH_EID12 0x10 6198 #define _RXF0EIDH_EID13 0x20 6199 #define _RXF0EIDH_EID14 0x40 6200 #define _RXF0EIDH_EID15 0x80 6201 6202 //============================================================================== 6203 6204 6205 //============================================================================== 6206 // RXF0EIDL Bits 6207 6208 extern __at(0x0F03) __sfr RXF0EIDL; 6209 6210 typedef struct 6211 { 6212 unsigned EID0 : 1; 6213 unsigned EID1 : 1; 6214 unsigned EID2 : 1; 6215 unsigned EID3 : 1; 6216 unsigned EID4 : 1; 6217 unsigned EID5 : 1; 6218 unsigned EID6 : 1; 6219 unsigned EID7 : 1; 6220 } __RXF0EIDLbits_t; 6221 6222 extern __at(0x0F03) volatile __RXF0EIDLbits_t RXF0EIDLbits; 6223 6224 #define _RXF0EIDL_EID0 0x01 6225 #define _RXF0EIDL_EID1 0x02 6226 #define _RXF0EIDL_EID2 0x04 6227 #define _RXF0EIDL_EID3 0x08 6228 #define _RXF0EIDL_EID4 0x10 6229 #define _RXF0EIDL_EID5 0x20 6230 #define _RXF0EIDL_EID6 0x40 6231 #define _RXF0EIDL_EID7 0x80 6232 6233 //============================================================================== 6234 6235 6236 //============================================================================== 6237 // RXF1SIDH Bits 6238 6239 extern __at(0x0F04) __sfr RXF1SIDH; 6240 6241 typedef struct 6242 { 6243 unsigned SID3 : 1; 6244 unsigned SID4 : 1; 6245 unsigned SID5 : 1; 6246 unsigned SID6 : 1; 6247 unsigned SID7 : 1; 6248 unsigned SID8 : 1; 6249 unsigned SID9 : 1; 6250 unsigned SID10 : 1; 6251 } __RXF1SIDHbits_t; 6252 6253 extern __at(0x0F04) volatile __RXF1SIDHbits_t RXF1SIDHbits; 6254 6255 #define _RXF1SIDH_SID3 0x01 6256 #define _RXF1SIDH_SID4 0x02 6257 #define _RXF1SIDH_SID5 0x04 6258 #define _RXF1SIDH_SID6 0x08 6259 #define _RXF1SIDH_SID7 0x10 6260 #define _RXF1SIDH_SID8 0x20 6261 #define _RXF1SIDH_SID9 0x40 6262 #define _RXF1SIDH_SID10 0x80 6263 6264 //============================================================================== 6265 6266 6267 //============================================================================== 6268 // RXF1SIDL Bits 6269 6270 extern __at(0x0F05) __sfr RXF1SIDL; 6271 6272 typedef union 6273 { 6274 struct 6275 { 6276 unsigned EID16 : 1; 6277 unsigned EID17 : 1; 6278 unsigned : 1; 6279 unsigned EXIDEN : 1; 6280 unsigned : 1; 6281 unsigned SID0 : 1; 6282 unsigned SID1 : 1; 6283 unsigned SID2 : 1; 6284 }; 6285 6286 struct 6287 { 6288 unsigned : 1; 6289 unsigned : 1; 6290 unsigned : 1; 6291 unsigned EXIDE : 1; 6292 unsigned : 1; 6293 unsigned : 1; 6294 unsigned : 1; 6295 unsigned : 1; 6296 }; 6297 6298 struct 6299 { 6300 unsigned : 5; 6301 unsigned SID : 3; 6302 }; 6303 } __RXF1SIDLbits_t; 6304 6305 extern __at(0x0F05) volatile __RXF1SIDLbits_t RXF1SIDLbits; 6306 6307 #define _RXF1SIDL_EID16 0x01 6308 #define _RXF1SIDL_EID17 0x02 6309 #define _RXF1SIDL_EXIDEN 0x08 6310 #define _RXF1SIDL_EXIDE 0x08 6311 #define _RXF1SIDL_SID0 0x20 6312 #define _RXF1SIDL_SID1 0x40 6313 #define _RXF1SIDL_SID2 0x80 6314 6315 //============================================================================== 6316 6317 6318 //============================================================================== 6319 // RXF1EIDH Bits 6320 6321 extern __at(0x0F06) __sfr RXF1EIDH; 6322 6323 typedef struct 6324 { 6325 unsigned EID8 : 1; 6326 unsigned EID9 : 1; 6327 unsigned EID10 : 1; 6328 unsigned EID11 : 1; 6329 unsigned EID12 : 1; 6330 unsigned EID13 : 1; 6331 unsigned EID14 : 1; 6332 unsigned EID15 : 1; 6333 } __RXF1EIDHbits_t; 6334 6335 extern __at(0x0F06) volatile __RXF1EIDHbits_t RXF1EIDHbits; 6336 6337 #define _RXF1EIDH_EID8 0x01 6338 #define _RXF1EIDH_EID9 0x02 6339 #define _RXF1EIDH_EID10 0x04 6340 #define _RXF1EIDH_EID11 0x08 6341 #define _RXF1EIDH_EID12 0x10 6342 #define _RXF1EIDH_EID13 0x20 6343 #define _RXF1EIDH_EID14 0x40 6344 #define _RXF1EIDH_EID15 0x80 6345 6346 //============================================================================== 6347 6348 6349 //============================================================================== 6350 // RXF1EIDL Bits 6351 6352 extern __at(0x0F07) __sfr RXF1EIDL; 6353 6354 typedef struct 6355 { 6356 unsigned EID0 : 1; 6357 unsigned EID1 : 1; 6358 unsigned EID2 : 1; 6359 unsigned EID3 : 1; 6360 unsigned EID4 : 1; 6361 unsigned EID5 : 1; 6362 unsigned EID6 : 1; 6363 unsigned EID7 : 1; 6364 } __RXF1EIDLbits_t; 6365 6366 extern __at(0x0F07) volatile __RXF1EIDLbits_t RXF1EIDLbits; 6367 6368 #define _RXF1EIDL_EID0 0x01 6369 #define _RXF1EIDL_EID1 0x02 6370 #define _RXF1EIDL_EID2 0x04 6371 #define _RXF1EIDL_EID3 0x08 6372 #define _RXF1EIDL_EID4 0x10 6373 #define _RXF1EIDL_EID5 0x20 6374 #define _RXF1EIDL_EID6 0x40 6375 #define _RXF1EIDL_EID7 0x80 6376 6377 //============================================================================== 6378 6379 6380 //============================================================================== 6381 // RXF2SIDH Bits 6382 6383 extern __at(0x0F08) __sfr RXF2SIDH; 6384 6385 typedef struct 6386 { 6387 unsigned SID3 : 1; 6388 unsigned SID4 : 1; 6389 unsigned SID5 : 1; 6390 unsigned SID6 : 1; 6391 unsigned SID7 : 1; 6392 unsigned SID8 : 1; 6393 unsigned SID9 : 1; 6394 unsigned SID10 : 1; 6395 } __RXF2SIDHbits_t; 6396 6397 extern __at(0x0F08) volatile __RXF2SIDHbits_t RXF2SIDHbits; 6398 6399 #define _RXF2SIDH_SID3 0x01 6400 #define _RXF2SIDH_SID4 0x02 6401 #define _RXF2SIDH_SID5 0x04 6402 #define _RXF2SIDH_SID6 0x08 6403 #define _RXF2SIDH_SID7 0x10 6404 #define _RXF2SIDH_SID8 0x20 6405 #define _RXF2SIDH_SID9 0x40 6406 #define _RXF2SIDH_SID10 0x80 6407 6408 //============================================================================== 6409 6410 6411 //============================================================================== 6412 // RXF2SIDL Bits 6413 6414 extern __at(0x0F09) __sfr RXF2SIDL; 6415 6416 typedef union 6417 { 6418 struct 6419 { 6420 unsigned EID16 : 1; 6421 unsigned EID17 : 1; 6422 unsigned : 1; 6423 unsigned EXIDEN : 1; 6424 unsigned : 1; 6425 unsigned SID0 : 1; 6426 unsigned SID1 : 1; 6427 unsigned SID2 : 1; 6428 }; 6429 6430 struct 6431 { 6432 unsigned : 1; 6433 unsigned : 1; 6434 unsigned : 1; 6435 unsigned EXIDE : 1; 6436 unsigned : 1; 6437 unsigned : 1; 6438 unsigned : 1; 6439 unsigned : 1; 6440 }; 6441 6442 struct 6443 { 6444 unsigned : 5; 6445 unsigned SID : 3; 6446 }; 6447 } __RXF2SIDLbits_t; 6448 6449 extern __at(0x0F09) volatile __RXF2SIDLbits_t RXF2SIDLbits; 6450 6451 #define _RXF2SIDL_EID16 0x01 6452 #define _RXF2SIDL_EID17 0x02 6453 #define _RXF2SIDL_EXIDEN 0x08 6454 #define _RXF2SIDL_EXIDE 0x08 6455 #define _RXF2SIDL_SID0 0x20 6456 #define _RXF2SIDL_SID1 0x40 6457 #define _RXF2SIDL_SID2 0x80 6458 6459 //============================================================================== 6460 6461 6462 //============================================================================== 6463 // RXF2EIDH Bits 6464 6465 extern __at(0x0F0A) __sfr RXF2EIDH; 6466 6467 typedef struct 6468 { 6469 unsigned EID8 : 1; 6470 unsigned EID9 : 1; 6471 unsigned EID10 : 1; 6472 unsigned EID11 : 1; 6473 unsigned EID12 : 1; 6474 unsigned EID13 : 1; 6475 unsigned EID14 : 1; 6476 unsigned EID15 : 1; 6477 } __RXF2EIDHbits_t; 6478 6479 extern __at(0x0F0A) volatile __RXF2EIDHbits_t RXF2EIDHbits; 6480 6481 #define _RXF2EIDH_EID8 0x01 6482 #define _RXF2EIDH_EID9 0x02 6483 #define _RXF2EIDH_EID10 0x04 6484 #define _RXF2EIDH_EID11 0x08 6485 #define _RXF2EIDH_EID12 0x10 6486 #define _RXF2EIDH_EID13 0x20 6487 #define _RXF2EIDH_EID14 0x40 6488 #define _RXF2EIDH_EID15 0x80 6489 6490 //============================================================================== 6491 6492 6493 //============================================================================== 6494 // RXF2EIDL Bits 6495 6496 extern __at(0x0F0B) __sfr RXF2EIDL; 6497 6498 typedef struct 6499 { 6500 unsigned EID0 : 1; 6501 unsigned EID1 : 1; 6502 unsigned EID2 : 1; 6503 unsigned EID3 : 1; 6504 unsigned EID4 : 1; 6505 unsigned EID5 : 1; 6506 unsigned EID6 : 1; 6507 unsigned EID7 : 1; 6508 } __RXF2EIDLbits_t; 6509 6510 extern __at(0x0F0B) volatile __RXF2EIDLbits_t RXF2EIDLbits; 6511 6512 #define _RXF2EIDL_EID0 0x01 6513 #define _RXF2EIDL_EID1 0x02 6514 #define _RXF2EIDL_EID2 0x04 6515 #define _RXF2EIDL_EID3 0x08 6516 #define _RXF2EIDL_EID4 0x10 6517 #define _RXF2EIDL_EID5 0x20 6518 #define _RXF2EIDL_EID6 0x40 6519 #define _RXF2EIDL_EID7 0x80 6520 6521 //============================================================================== 6522 6523 6524 //============================================================================== 6525 // RXF3SIDH Bits 6526 6527 extern __at(0x0F0C) __sfr RXF3SIDH; 6528 6529 typedef struct 6530 { 6531 unsigned SID3 : 1; 6532 unsigned SID4 : 1; 6533 unsigned SID5 : 1; 6534 unsigned SID6 : 1; 6535 unsigned SID7 : 1; 6536 unsigned SID8 : 1; 6537 unsigned SID9 : 1; 6538 unsigned SID10 : 1; 6539 } __RXF3SIDHbits_t; 6540 6541 extern __at(0x0F0C) volatile __RXF3SIDHbits_t RXF3SIDHbits; 6542 6543 #define _RXF3SIDH_SID3 0x01 6544 #define _RXF3SIDH_SID4 0x02 6545 #define _RXF3SIDH_SID5 0x04 6546 #define _RXF3SIDH_SID6 0x08 6547 #define _RXF3SIDH_SID7 0x10 6548 #define _RXF3SIDH_SID8 0x20 6549 #define _RXF3SIDH_SID9 0x40 6550 #define _RXF3SIDH_SID10 0x80 6551 6552 //============================================================================== 6553 6554 6555 //============================================================================== 6556 // RXF3SIDL Bits 6557 6558 extern __at(0x0F0D) __sfr RXF3SIDL; 6559 6560 typedef union 6561 { 6562 struct 6563 { 6564 unsigned EID16 : 1; 6565 unsigned EID17 : 1; 6566 unsigned : 1; 6567 unsigned EXIDEN : 1; 6568 unsigned : 1; 6569 unsigned SID0 : 1; 6570 unsigned SID1 : 1; 6571 unsigned SID2 : 1; 6572 }; 6573 6574 struct 6575 { 6576 unsigned : 1; 6577 unsigned : 1; 6578 unsigned : 1; 6579 unsigned EXIDE : 1; 6580 unsigned : 1; 6581 unsigned : 1; 6582 unsigned : 1; 6583 unsigned : 1; 6584 }; 6585 6586 struct 6587 { 6588 unsigned : 5; 6589 unsigned SID : 3; 6590 }; 6591 } __RXF3SIDLbits_t; 6592 6593 extern __at(0x0F0D) volatile __RXF3SIDLbits_t RXF3SIDLbits; 6594 6595 #define _RXF3SIDL_EID16 0x01 6596 #define _RXF3SIDL_EID17 0x02 6597 #define _RXF3SIDL_EXIDEN 0x08 6598 #define _RXF3SIDL_EXIDE 0x08 6599 #define _RXF3SIDL_SID0 0x20 6600 #define _RXF3SIDL_SID1 0x40 6601 #define _RXF3SIDL_SID2 0x80 6602 6603 //============================================================================== 6604 6605 6606 //============================================================================== 6607 // RXF3EIDH Bits 6608 6609 extern __at(0x0F0E) __sfr RXF3EIDH; 6610 6611 typedef struct 6612 { 6613 unsigned EID8 : 1; 6614 unsigned EID9 : 1; 6615 unsigned EID10 : 1; 6616 unsigned EID11 : 1; 6617 unsigned EID12 : 1; 6618 unsigned EID13 : 1; 6619 unsigned EID14 : 1; 6620 unsigned EID15 : 1; 6621 } __RXF3EIDHbits_t; 6622 6623 extern __at(0x0F0E) volatile __RXF3EIDHbits_t RXF3EIDHbits; 6624 6625 #define _RXF3EIDH_EID8 0x01 6626 #define _RXF3EIDH_EID9 0x02 6627 #define _RXF3EIDH_EID10 0x04 6628 #define _RXF3EIDH_EID11 0x08 6629 #define _RXF3EIDH_EID12 0x10 6630 #define _RXF3EIDH_EID13 0x20 6631 #define _RXF3EIDH_EID14 0x40 6632 #define _RXF3EIDH_EID15 0x80 6633 6634 //============================================================================== 6635 6636 6637 //============================================================================== 6638 // RXF3EIDL Bits 6639 6640 extern __at(0x0F0F) __sfr RXF3EIDL; 6641 6642 typedef struct 6643 { 6644 unsigned EID0 : 1; 6645 unsigned EID1 : 1; 6646 unsigned EID2 : 1; 6647 unsigned EID3 : 1; 6648 unsigned EID4 : 1; 6649 unsigned EID5 : 1; 6650 unsigned EID6 : 1; 6651 unsigned EID7 : 1; 6652 } __RXF3EIDLbits_t; 6653 6654 extern __at(0x0F0F) volatile __RXF3EIDLbits_t RXF3EIDLbits; 6655 6656 #define _RXF3EIDL_EID0 0x01 6657 #define _RXF3EIDL_EID1 0x02 6658 #define _RXF3EIDL_EID2 0x04 6659 #define _RXF3EIDL_EID3 0x08 6660 #define _RXF3EIDL_EID4 0x10 6661 #define _RXF3EIDL_EID5 0x20 6662 #define _RXF3EIDL_EID6 0x40 6663 #define _RXF3EIDL_EID7 0x80 6664 6665 //============================================================================== 6666 6667 6668 //============================================================================== 6669 // RXF4SIDH Bits 6670 6671 extern __at(0x0F10) __sfr RXF4SIDH; 6672 6673 typedef struct 6674 { 6675 unsigned SID3 : 1; 6676 unsigned SID4 : 1; 6677 unsigned SID5 : 1; 6678 unsigned SID6 : 1; 6679 unsigned SID7 : 1; 6680 unsigned SID8 : 1; 6681 unsigned SID9 : 1; 6682 unsigned SID10 : 1; 6683 } __RXF4SIDHbits_t; 6684 6685 extern __at(0x0F10) volatile __RXF4SIDHbits_t RXF4SIDHbits; 6686 6687 #define _RXF4SIDH_SID3 0x01 6688 #define _RXF4SIDH_SID4 0x02 6689 #define _RXF4SIDH_SID5 0x04 6690 #define _RXF4SIDH_SID6 0x08 6691 #define _RXF4SIDH_SID7 0x10 6692 #define _RXF4SIDH_SID8 0x20 6693 #define _RXF4SIDH_SID9 0x40 6694 #define _RXF4SIDH_SID10 0x80 6695 6696 //============================================================================== 6697 6698 6699 //============================================================================== 6700 // RXF4SIDL Bits 6701 6702 extern __at(0x0F11) __sfr RXF4SIDL; 6703 6704 typedef union 6705 { 6706 struct 6707 { 6708 unsigned EID16 : 1; 6709 unsigned EID17 : 1; 6710 unsigned : 1; 6711 unsigned EXIDEN : 1; 6712 unsigned : 1; 6713 unsigned SID0 : 1; 6714 unsigned SID1 : 1; 6715 unsigned SID2 : 1; 6716 }; 6717 6718 struct 6719 { 6720 unsigned : 1; 6721 unsigned : 1; 6722 unsigned : 1; 6723 unsigned EXIDE : 1; 6724 unsigned : 1; 6725 unsigned : 1; 6726 unsigned : 1; 6727 unsigned : 1; 6728 }; 6729 6730 struct 6731 { 6732 unsigned : 5; 6733 unsigned SID : 3; 6734 }; 6735 } __RXF4SIDLbits_t; 6736 6737 extern __at(0x0F11) volatile __RXF4SIDLbits_t RXF4SIDLbits; 6738 6739 #define _RXF4SIDL_EID16 0x01 6740 #define _RXF4SIDL_EID17 0x02 6741 #define _RXF4SIDL_EXIDEN 0x08 6742 #define _RXF4SIDL_EXIDE 0x08 6743 #define _RXF4SIDL_SID0 0x20 6744 #define _RXF4SIDL_SID1 0x40 6745 #define _RXF4SIDL_SID2 0x80 6746 6747 //============================================================================== 6748 6749 6750 //============================================================================== 6751 // RXF4EIDH Bits 6752 6753 extern __at(0x0F12) __sfr RXF4EIDH; 6754 6755 typedef struct 6756 { 6757 unsigned EID8 : 1; 6758 unsigned EID9 : 1; 6759 unsigned EID10 : 1; 6760 unsigned EID11 : 1; 6761 unsigned EID12 : 1; 6762 unsigned EID13 : 1; 6763 unsigned EID14 : 1; 6764 unsigned EID15 : 1; 6765 } __RXF4EIDHbits_t; 6766 6767 extern __at(0x0F12) volatile __RXF4EIDHbits_t RXF4EIDHbits; 6768 6769 #define _RXF4EIDH_EID8 0x01 6770 #define _RXF4EIDH_EID9 0x02 6771 #define _RXF4EIDH_EID10 0x04 6772 #define _RXF4EIDH_EID11 0x08 6773 #define _RXF4EIDH_EID12 0x10 6774 #define _RXF4EIDH_EID13 0x20 6775 #define _RXF4EIDH_EID14 0x40 6776 #define _RXF4EIDH_EID15 0x80 6777 6778 //============================================================================== 6779 6780 6781 //============================================================================== 6782 // RXF4EIDL Bits 6783 6784 extern __at(0x0F13) __sfr RXF4EIDL; 6785 6786 typedef struct 6787 { 6788 unsigned EID0 : 1; 6789 unsigned EID1 : 1; 6790 unsigned EID2 : 1; 6791 unsigned EID3 : 1; 6792 unsigned EID4 : 1; 6793 unsigned EID5 : 1; 6794 unsigned EID6 : 1; 6795 unsigned EID7 : 1; 6796 } __RXF4EIDLbits_t; 6797 6798 extern __at(0x0F13) volatile __RXF4EIDLbits_t RXF4EIDLbits; 6799 6800 #define _RXF4EIDL_EID0 0x01 6801 #define _RXF4EIDL_EID1 0x02 6802 #define _RXF4EIDL_EID2 0x04 6803 #define _RXF4EIDL_EID3 0x08 6804 #define _RXF4EIDL_EID4 0x10 6805 #define _RXF4EIDL_EID5 0x20 6806 #define _RXF4EIDL_EID6 0x40 6807 #define _RXF4EIDL_EID7 0x80 6808 6809 //============================================================================== 6810 6811 6812 //============================================================================== 6813 // RXF5SIDH Bits 6814 6815 extern __at(0x0F14) __sfr RXF5SIDH; 6816 6817 typedef struct 6818 { 6819 unsigned SID3 : 1; 6820 unsigned SID4 : 1; 6821 unsigned SID5 : 1; 6822 unsigned SID6 : 1; 6823 unsigned SID7 : 1; 6824 unsigned SID8 : 1; 6825 unsigned SID9 : 1; 6826 unsigned SID10 : 1; 6827 } __RXF5SIDHbits_t; 6828 6829 extern __at(0x0F14) volatile __RXF5SIDHbits_t RXF5SIDHbits; 6830 6831 #define _RXF5SIDH_SID3 0x01 6832 #define _RXF5SIDH_SID4 0x02 6833 #define _RXF5SIDH_SID5 0x04 6834 #define _RXF5SIDH_SID6 0x08 6835 #define _RXF5SIDH_SID7 0x10 6836 #define _RXF5SIDH_SID8 0x20 6837 #define _RXF5SIDH_SID9 0x40 6838 #define _RXF5SIDH_SID10 0x80 6839 6840 //============================================================================== 6841 6842 6843 //============================================================================== 6844 // RXF5SIDL Bits 6845 6846 extern __at(0x0F15) __sfr RXF5SIDL; 6847 6848 typedef union 6849 { 6850 struct 6851 { 6852 unsigned EID16 : 1; 6853 unsigned EID17 : 1; 6854 unsigned : 1; 6855 unsigned EXIDEN : 1; 6856 unsigned : 1; 6857 unsigned SID0 : 1; 6858 unsigned SID1 : 1; 6859 unsigned SID2 : 1; 6860 }; 6861 6862 struct 6863 { 6864 unsigned : 1; 6865 unsigned : 1; 6866 unsigned : 1; 6867 unsigned EXIDE : 1; 6868 unsigned : 1; 6869 unsigned : 1; 6870 unsigned : 1; 6871 unsigned : 1; 6872 }; 6873 6874 struct 6875 { 6876 unsigned : 5; 6877 unsigned SID : 3; 6878 }; 6879 } __RXF5SIDLbits_t; 6880 6881 extern __at(0x0F15) volatile __RXF5SIDLbits_t RXF5SIDLbits; 6882 6883 #define _RXF5SIDL_EID16 0x01 6884 #define _RXF5SIDL_EID17 0x02 6885 #define _RXF5SIDL_EXIDEN 0x08 6886 #define _RXF5SIDL_EXIDE 0x08 6887 #define _RXF5SIDL_SID0 0x20 6888 #define _RXF5SIDL_SID1 0x40 6889 #define _RXF5SIDL_SID2 0x80 6890 6891 //============================================================================== 6892 6893 6894 //============================================================================== 6895 // RXF5EIDH Bits 6896 6897 extern __at(0x0F16) __sfr RXF5EIDH; 6898 6899 typedef struct 6900 { 6901 unsigned EID8 : 1; 6902 unsigned EID9 : 1; 6903 unsigned EID10 : 1; 6904 unsigned EID11 : 1; 6905 unsigned EID12 : 1; 6906 unsigned EID13 : 1; 6907 unsigned EID14 : 1; 6908 unsigned EID15 : 1; 6909 } __RXF5EIDHbits_t; 6910 6911 extern __at(0x0F16) volatile __RXF5EIDHbits_t RXF5EIDHbits; 6912 6913 #define _RXF5EIDH_EID8 0x01 6914 #define _RXF5EIDH_EID9 0x02 6915 #define _RXF5EIDH_EID10 0x04 6916 #define _RXF5EIDH_EID11 0x08 6917 #define _RXF5EIDH_EID12 0x10 6918 #define _RXF5EIDH_EID13 0x20 6919 #define _RXF5EIDH_EID14 0x40 6920 #define _RXF5EIDH_EID15 0x80 6921 6922 //============================================================================== 6923 6924 6925 //============================================================================== 6926 // RXF5EIDL Bits 6927 6928 extern __at(0x0F17) __sfr RXF5EIDL; 6929 6930 typedef struct 6931 { 6932 unsigned EID0 : 1; 6933 unsigned EID1 : 1; 6934 unsigned EID2 : 1; 6935 unsigned EID3 : 1; 6936 unsigned EID4 : 1; 6937 unsigned EID5 : 1; 6938 unsigned EID6 : 1; 6939 unsigned EID7 : 1; 6940 } __RXF5EIDLbits_t; 6941 6942 extern __at(0x0F17) volatile __RXF5EIDLbits_t RXF5EIDLbits; 6943 6944 #define _RXF5EIDL_EID0 0x01 6945 #define _RXF5EIDL_EID1 0x02 6946 #define _RXF5EIDL_EID2 0x04 6947 #define _RXF5EIDL_EID3 0x08 6948 #define _RXF5EIDL_EID4 0x10 6949 #define _RXF5EIDL_EID5 0x20 6950 #define _RXF5EIDL_EID6 0x40 6951 #define _RXF5EIDL_EID7 0x80 6952 6953 //============================================================================== 6954 6955 6956 //============================================================================== 6957 // RXM0SIDH Bits 6958 6959 extern __at(0x0F18) __sfr RXM0SIDH; 6960 6961 typedef struct 6962 { 6963 unsigned SID3 : 1; 6964 unsigned SID4 : 1; 6965 unsigned SID5 : 1; 6966 unsigned SID6 : 1; 6967 unsigned SID7 : 1; 6968 unsigned SID8 : 1; 6969 unsigned SID9 : 1; 6970 unsigned SID10 : 1; 6971 } __RXM0SIDHbits_t; 6972 6973 extern __at(0x0F18) volatile __RXM0SIDHbits_t RXM0SIDHbits; 6974 6975 #define _RXM0SIDH_SID3 0x01 6976 #define _RXM0SIDH_SID4 0x02 6977 #define _RXM0SIDH_SID5 0x04 6978 #define _RXM0SIDH_SID6 0x08 6979 #define _RXM0SIDH_SID7 0x10 6980 #define _RXM0SIDH_SID8 0x20 6981 #define _RXM0SIDH_SID9 0x40 6982 #define _RXM0SIDH_SID10 0x80 6983 6984 //============================================================================== 6985 6986 6987 //============================================================================== 6988 // RXM0SIDL Bits 6989 6990 extern __at(0x0F19) __sfr RXM0SIDL; 6991 6992 typedef union 6993 { 6994 struct 6995 { 6996 unsigned EID16 : 1; 6997 unsigned EID17 : 1; 6998 unsigned : 1; 6999 unsigned EXIDM : 1; 7000 unsigned : 1; 7001 unsigned SID0 : 1; 7002 unsigned SID1 : 1; 7003 unsigned SID2 : 1; 7004 }; 7005 7006 struct 7007 { 7008 unsigned : 1; 7009 unsigned : 1; 7010 unsigned : 1; 7011 unsigned EXIDEN : 1; 7012 unsigned : 1; 7013 unsigned : 1; 7014 unsigned : 1; 7015 unsigned : 1; 7016 }; 7017 7018 struct 7019 { 7020 unsigned : 5; 7021 unsigned SID : 3; 7022 }; 7023 } __RXM0SIDLbits_t; 7024 7025 extern __at(0x0F19) volatile __RXM0SIDLbits_t RXM0SIDLbits; 7026 7027 #define _RXM0SIDL_EID16 0x01 7028 #define _RXM0SIDL_EID17 0x02 7029 #define _RXM0SIDL_EXIDM 0x08 7030 #define _RXM0SIDL_EXIDEN 0x08 7031 #define _RXM0SIDL_SID0 0x20 7032 #define _RXM0SIDL_SID1 0x40 7033 #define _RXM0SIDL_SID2 0x80 7034 7035 //============================================================================== 7036 7037 7038 //============================================================================== 7039 // RXM0EIDH Bits 7040 7041 extern __at(0x0F1A) __sfr RXM0EIDH; 7042 7043 typedef struct 7044 { 7045 unsigned EID8 : 1; 7046 unsigned EID9 : 1; 7047 unsigned EID10 : 1; 7048 unsigned EID11 : 1; 7049 unsigned EID12 : 1; 7050 unsigned EID13 : 1; 7051 unsigned EID14 : 1; 7052 unsigned EID15 : 1; 7053 } __RXM0EIDHbits_t; 7054 7055 extern __at(0x0F1A) volatile __RXM0EIDHbits_t RXM0EIDHbits; 7056 7057 #define _RXM0EIDH_EID8 0x01 7058 #define _RXM0EIDH_EID9 0x02 7059 #define _RXM0EIDH_EID10 0x04 7060 #define _RXM0EIDH_EID11 0x08 7061 #define _RXM0EIDH_EID12 0x10 7062 #define _RXM0EIDH_EID13 0x20 7063 #define _RXM0EIDH_EID14 0x40 7064 #define _RXM0EIDH_EID15 0x80 7065 7066 //============================================================================== 7067 7068 7069 //============================================================================== 7070 // RXM0EIDL Bits 7071 7072 extern __at(0x0F1B) __sfr RXM0EIDL; 7073 7074 typedef struct 7075 { 7076 unsigned EID0 : 1; 7077 unsigned EID1 : 1; 7078 unsigned EID2 : 1; 7079 unsigned EID3 : 1; 7080 unsigned EID4 : 1; 7081 unsigned EID5 : 1; 7082 unsigned EID6 : 1; 7083 unsigned EID7 : 1; 7084 } __RXM0EIDLbits_t; 7085 7086 extern __at(0x0F1B) volatile __RXM0EIDLbits_t RXM0EIDLbits; 7087 7088 #define _RXM0EIDL_EID0 0x01 7089 #define _RXM0EIDL_EID1 0x02 7090 #define _RXM0EIDL_EID2 0x04 7091 #define _RXM0EIDL_EID3 0x08 7092 #define _RXM0EIDL_EID4 0x10 7093 #define _RXM0EIDL_EID5 0x20 7094 #define _RXM0EIDL_EID6 0x40 7095 #define _RXM0EIDL_EID7 0x80 7096 7097 //============================================================================== 7098 7099 7100 //============================================================================== 7101 // RXM1SIDH Bits 7102 7103 extern __at(0x0F1C) __sfr RXM1SIDH; 7104 7105 typedef struct 7106 { 7107 unsigned SID3 : 1; 7108 unsigned SID4 : 1; 7109 unsigned SID5 : 1; 7110 unsigned SID6 : 1; 7111 unsigned SID7 : 1; 7112 unsigned SID8 : 1; 7113 unsigned SID9 : 1; 7114 unsigned SID10 : 1; 7115 } __RXM1SIDHbits_t; 7116 7117 extern __at(0x0F1C) volatile __RXM1SIDHbits_t RXM1SIDHbits; 7118 7119 #define _RXM1SIDH_SID3 0x01 7120 #define _RXM1SIDH_SID4 0x02 7121 #define _RXM1SIDH_SID5 0x04 7122 #define _RXM1SIDH_SID6 0x08 7123 #define _RXM1SIDH_SID7 0x10 7124 #define _RXM1SIDH_SID8 0x20 7125 #define _RXM1SIDH_SID9 0x40 7126 #define _RXM1SIDH_SID10 0x80 7127 7128 //============================================================================== 7129 7130 7131 //============================================================================== 7132 // RXM1SIDL Bits 7133 7134 extern __at(0x0F1D) __sfr RXM1SIDL; 7135 7136 typedef union 7137 { 7138 struct 7139 { 7140 unsigned EID16 : 1; 7141 unsigned EID17 : 1; 7142 unsigned : 1; 7143 unsigned EXIDEN : 1; 7144 unsigned : 1; 7145 unsigned SID0 : 1; 7146 unsigned SID1 : 1; 7147 unsigned SID2 : 1; 7148 }; 7149 7150 struct 7151 { 7152 unsigned : 5; 7153 unsigned SID : 3; 7154 }; 7155 } __RXM1SIDLbits_t; 7156 7157 extern __at(0x0F1D) volatile __RXM1SIDLbits_t RXM1SIDLbits; 7158 7159 #define _RXM1SIDL_EID16 0x01 7160 #define _RXM1SIDL_EID17 0x02 7161 #define _RXM1SIDL_EXIDEN 0x08 7162 #define _RXM1SIDL_SID0 0x20 7163 #define _RXM1SIDL_SID1 0x40 7164 #define _RXM1SIDL_SID2 0x80 7165 7166 //============================================================================== 7167 7168 7169 //============================================================================== 7170 // RXM1EIDH Bits 7171 7172 extern __at(0x0F1E) __sfr RXM1EIDH; 7173 7174 typedef struct 7175 { 7176 unsigned EID8 : 1; 7177 unsigned EID9 : 1; 7178 unsigned EID10 : 1; 7179 unsigned EID11 : 1; 7180 unsigned EID12 : 1; 7181 unsigned EID13 : 1; 7182 unsigned EID14 : 1; 7183 unsigned EID15 : 1; 7184 } __RXM1EIDHbits_t; 7185 7186 extern __at(0x0F1E) volatile __RXM1EIDHbits_t RXM1EIDHbits; 7187 7188 #define _RXM1EIDH_EID8 0x01 7189 #define _RXM1EIDH_EID9 0x02 7190 #define _RXM1EIDH_EID10 0x04 7191 #define _RXM1EIDH_EID11 0x08 7192 #define _RXM1EIDH_EID12 0x10 7193 #define _RXM1EIDH_EID13 0x20 7194 #define _RXM1EIDH_EID14 0x40 7195 #define _RXM1EIDH_EID15 0x80 7196 7197 //============================================================================== 7198 7199 7200 //============================================================================== 7201 // RXM1EIDL Bits 7202 7203 extern __at(0x0F1F) __sfr RXM1EIDL; 7204 7205 typedef struct 7206 { 7207 unsigned EID0 : 1; 7208 unsigned EID1 : 1; 7209 unsigned EID2 : 1; 7210 unsigned EID3 : 1; 7211 unsigned EID4 : 1; 7212 unsigned EID5 : 1; 7213 unsigned EID6 : 1; 7214 unsigned EID7 : 1; 7215 } __RXM1EIDLbits_t; 7216 7217 extern __at(0x0F1F) volatile __RXM1EIDLbits_t RXM1EIDLbits; 7218 7219 #define _RXM1EIDL_EID0 0x01 7220 #define _RXM1EIDL_EID1 0x02 7221 #define _RXM1EIDL_EID2 0x04 7222 #define _RXM1EIDL_EID3 0x08 7223 #define _RXM1EIDL_EID4 0x10 7224 #define _RXM1EIDL_EID5 0x20 7225 #define _RXM1EIDL_EID6 0x40 7226 #define _RXM1EIDL_EID7 0x80 7227 7228 //============================================================================== 7229 7230 7231 //============================================================================== 7232 // TXB2CON Bits 7233 7234 extern __at(0x0F20) __sfr TXB2CON; 7235 7236 typedef union 7237 { 7238 struct 7239 { 7240 unsigned TXPRI0 : 1; 7241 unsigned TXPRI1 : 1; 7242 unsigned : 1; 7243 unsigned TXREQ : 1; 7244 unsigned TXERR : 1; 7245 unsigned TXLARB : 1; 7246 unsigned TXABT : 1; 7247 unsigned TXBIF : 1; 7248 }; 7249 7250 struct 7251 { 7252 unsigned : 1; 7253 unsigned : 1; 7254 unsigned : 1; 7255 unsigned : 1; 7256 unsigned : 1; 7257 unsigned : 1; 7258 unsigned : 1; 7259 unsigned TXBIFBXB2CON : 1; 7260 }; 7261 7262 struct 7263 { 7264 unsigned TXPRI : 2; 7265 unsigned : 6; 7266 }; 7267 } __TXB2CONbits_t; 7268 7269 extern __at(0x0F20) volatile __TXB2CONbits_t TXB2CONbits; 7270 7271 #define _TXB2CON_TXPRI0 0x01 7272 #define _TXB2CON_TXPRI1 0x02 7273 #define _TXB2CON_TXREQ 0x08 7274 #define _TXB2CON_TXERR 0x10 7275 #define _TXB2CON_TXLARB 0x20 7276 #define _TXB2CON_TXABT 0x40 7277 #define _TXB2CON_TXBIF 0x80 7278 #define _TXB2CON_TXBIFBXB2CON 0x80 7279 7280 //============================================================================== 7281 7282 7283 //============================================================================== 7284 // TXB2SIDH Bits 7285 7286 extern __at(0x0F21) __sfr TXB2SIDH; 7287 7288 typedef struct 7289 { 7290 unsigned SID3 : 1; 7291 unsigned SID4 : 1; 7292 unsigned SID5 : 1; 7293 unsigned SID6 : 1; 7294 unsigned SID7 : 1; 7295 unsigned SID8 : 1; 7296 unsigned SID9 : 1; 7297 unsigned SID10 : 1; 7298 } __TXB2SIDHbits_t; 7299 7300 extern __at(0x0F21) volatile __TXB2SIDHbits_t TXB2SIDHbits; 7301 7302 #define _TXB2SIDH_SID3 0x01 7303 #define _TXB2SIDH_SID4 0x02 7304 #define _TXB2SIDH_SID5 0x04 7305 #define _TXB2SIDH_SID6 0x08 7306 #define _TXB2SIDH_SID7 0x10 7307 #define _TXB2SIDH_SID8 0x20 7308 #define _TXB2SIDH_SID9 0x40 7309 #define _TXB2SIDH_SID10 0x80 7310 7311 //============================================================================== 7312 7313 7314 //============================================================================== 7315 // TXB2SIDL Bits 7316 7317 extern __at(0x0F22) __sfr TXB2SIDL; 7318 7319 typedef union 7320 { 7321 struct 7322 { 7323 unsigned EID16 : 1; 7324 unsigned EID17 : 1; 7325 unsigned : 1; 7326 unsigned EXIDE : 1; 7327 unsigned : 1; 7328 unsigned SID0 : 1; 7329 unsigned SID1 : 1; 7330 unsigned SID2 : 1; 7331 }; 7332 7333 struct 7334 { 7335 unsigned : 5; 7336 unsigned SID : 3; 7337 }; 7338 } __TXB2SIDLbits_t; 7339 7340 extern __at(0x0F22) volatile __TXB2SIDLbits_t TXB2SIDLbits; 7341 7342 #define _TXB2SIDL_EID16 0x01 7343 #define _TXB2SIDL_EID17 0x02 7344 #define _TXB2SIDL_EXIDE 0x08 7345 #define _TXB2SIDL_SID0 0x20 7346 #define _TXB2SIDL_SID1 0x40 7347 #define _TXB2SIDL_SID2 0x80 7348 7349 //============================================================================== 7350 7351 7352 //============================================================================== 7353 // TXB2EIDH Bits 7354 7355 extern __at(0x0F23) __sfr TXB2EIDH; 7356 7357 typedef struct 7358 { 7359 unsigned EID8 : 1; 7360 unsigned EID9 : 1; 7361 unsigned EID10 : 1; 7362 unsigned EID11 : 1; 7363 unsigned EID12 : 1; 7364 unsigned EID13 : 1; 7365 unsigned EID14 : 1; 7366 unsigned EID15 : 1; 7367 } __TXB2EIDHbits_t; 7368 7369 extern __at(0x0F23) volatile __TXB2EIDHbits_t TXB2EIDHbits; 7370 7371 #define _TXB2EIDH_EID8 0x01 7372 #define _TXB2EIDH_EID9 0x02 7373 #define _TXB2EIDH_EID10 0x04 7374 #define _TXB2EIDH_EID11 0x08 7375 #define _TXB2EIDH_EID12 0x10 7376 #define _TXB2EIDH_EID13 0x20 7377 #define _TXB2EIDH_EID14 0x40 7378 #define _TXB2EIDH_EID15 0x80 7379 7380 //============================================================================== 7381 7382 7383 //============================================================================== 7384 // TXB2EIDL Bits 7385 7386 extern __at(0x0F24) __sfr TXB2EIDL; 7387 7388 typedef struct 7389 { 7390 unsigned EID0 : 1; 7391 unsigned EID1 : 1; 7392 unsigned EID2 : 1; 7393 unsigned EID3 : 1; 7394 unsigned EID4 : 1; 7395 unsigned EID5 : 1; 7396 unsigned EID6 : 1; 7397 unsigned EID7 : 1; 7398 } __TXB2EIDLbits_t; 7399 7400 extern __at(0x0F24) volatile __TXB2EIDLbits_t TXB2EIDLbits; 7401 7402 #define _TXB2EIDL_EID0 0x01 7403 #define _TXB2EIDL_EID1 0x02 7404 #define _TXB2EIDL_EID2 0x04 7405 #define _TXB2EIDL_EID3 0x08 7406 #define _TXB2EIDL_EID4 0x10 7407 #define _TXB2EIDL_EID5 0x20 7408 #define _TXB2EIDL_EID6 0x40 7409 #define _TXB2EIDL_EID7 0x80 7410 7411 //============================================================================== 7412 7413 7414 //============================================================================== 7415 // TXB2DLC Bits 7416 7417 extern __at(0x0F25) __sfr TXB2DLC; 7418 7419 typedef union 7420 { 7421 struct 7422 { 7423 unsigned DLC0 : 1; 7424 unsigned DLC1 : 1; 7425 unsigned DLC2 : 1; 7426 unsigned DLC3 : 1; 7427 unsigned : 1; 7428 unsigned : 1; 7429 unsigned TXRTR : 1; 7430 unsigned : 1; 7431 }; 7432 7433 struct 7434 { 7435 unsigned DLC : 4; 7436 unsigned : 4; 7437 }; 7438 } __TXB2DLCbits_t; 7439 7440 extern __at(0x0F25) volatile __TXB2DLCbits_t TXB2DLCbits; 7441 7442 #define _TXB2DLC_DLC0 0x01 7443 #define _TXB2DLC_DLC1 0x02 7444 #define _TXB2DLC_DLC2 0x04 7445 #define _TXB2DLC_DLC3 0x08 7446 #define _TXB2DLC_TXRTR 0x40 7447 7448 //============================================================================== 7449 7450 7451 //============================================================================== 7452 // TXB2D0 Bits 7453 7454 extern __at(0x0F26) __sfr TXB2D0; 7455 7456 typedef struct 7457 { 7458 unsigned TXB2D00 : 1; 7459 unsigned TXB2D01 : 1; 7460 unsigned TXB2D02 : 1; 7461 unsigned TXB2D03 : 1; 7462 unsigned TXB2D04 : 1; 7463 unsigned TXB2D05 : 1; 7464 unsigned TXB2D06 : 1; 7465 unsigned TXB2D07 : 1; 7466 } __TXB2D0bits_t; 7467 7468 extern __at(0x0F26) volatile __TXB2D0bits_t TXB2D0bits; 7469 7470 #define _TXB2D00 0x01 7471 #define _TXB2D01 0x02 7472 #define _TXB2D02 0x04 7473 #define _TXB2D03 0x08 7474 #define _TXB2D04 0x10 7475 #define _TXB2D05 0x20 7476 #define _TXB2D06 0x40 7477 #define _TXB2D07 0x80 7478 7479 //============================================================================== 7480 7481 7482 //============================================================================== 7483 // TXB2D1 Bits 7484 7485 extern __at(0x0F27) __sfr TXB2D1; 7486 7487 typedef struct 7488 { 7489 unsigned TXB2D10 : 1; 7490 unsigned TXB2D11 : 1; 7491 unsigned TXB2D12 : 1; 7492 unsigned TXB2D13 : 1; 7493 unsigned TXB2D14 : 1; 7494 unsigned TXB2D15 : 1; 7495 unsigned TXB2D16 : 1; 7496 unsigned TXB2D17 : 1; 7497 } __TXB2D1bits_t; 7498 7499 extern __at(0x0F27) volatile __TXB2D1bits_t TXB2D1bits; 7500 7501 #define _TXB2D10 0x01 7502 #define _TXB2D11 0x02 7503 #define _TXB2D12 0x04 7504 #define _TXB2D13 0x08 7505 #define _TXB2D14 0x10 7506 #define _TXB2D15 0x20 7507 #define _TXB2D16 0x40 7508 #define _TXB2D17 0x80 7509 7510 //============================================================================== 7511 7512 7513 //============================================================================== 7514 // TXB2D2 Bits 7515 7516 extern __at(0x0F28) __sfr TXB2D2; 7517 7518 typedef struct 7519 { 7520 unsigned TXB2D20 : 1; 7521 unsigned TXB2D21 : 1; 7522 unsigned TXB2D22 : 1; 7523 unsigned TXB2D23 : 1; 7524 unsigned TXB2D24 : 1; 7525 unsigned TXB2D25 : 1; 7526 unsigned TXB2D26 : 1; 7527 unsigned TXB2D27 : 1; 7528 } __TXB2D2bits_t; 7529 7530 extern __at(0x0F28) volatile __TXB2D2bits_t TXB2D2bits; 7531 7532 #define _TXB2D20 0x01 7533 #define _TXB2D21 0x02 7534 #define _TXB2D22 0x04 7535 #define _TXB2D23 0x08 7536 #define _TXB2D24 0x10 7537 #define _TXB2D25 0x20 7538 #define _TXB2D26 0x40 7539 #define _TXB2D27 0x80 7540 7541 //============================================================================== 7542 7543 7544 //============================================================================== 7545 // TXB2D3 Bits 7546 7547 extern __at(0x0F29) __sfr TXB2D3; 7548 7549 typedef struct 7550 { 7551 unsigned TXB2D30 : 1; 7552 unsigned TXB2D31 : 1; 7553 unsigned TXB2D32 : 1; 7554 unsigned TXB2D33 : 1; 7555 unsigned TXB2D34 : 1; 7556 unsigned TXB2D35 : 1; 7557 unsigned TXB2D36 : 1; 7558 unsigned TXB2D37 : 1; 7559 } __TXB2D3bits_t; 7560 7561 extern __at(0x0F29) volatile __TXB2D3bits_t TXB2D3bits; 7562 7563 #define _TXB2D30 0x01 7564 #define _TXB2D31 0x02 7565 #define _TXB2D32 0x04 7566 #define _TXB2D33 0x08 7567 #define _TXB2D34 0x10 7568 #define _TXB2D35 0x20 7569 #define _TXB2D36 0x40 7570 #define _TXB2D37 0x80 7571 7572 //============================================================================== 7573 7574 7575 //============================================================================== 7576 // TXB2D4 Bits 7577 7578 extern __at(0x0F2A) __sfr TXB2D4; 7579 7580 typedef struct 7581 { 7582 unsigned TXB2D40 : 1; 7583 unsigned TXB2D41 : 1; 7584 unsigned TXB2D42 : 1; 7585 unsigned TXB2D43 : 1; 7586 unsigned TXB2D44 : 1; 7587 unsigned TXB2D45 : 1; 7588 unsigned TXB2D46 : 1; 7589 unsigned TXB2D47 : 1; 7590 } __TXB2D4bits_t; 7591 7592 extern __at(0x0F2A) volatile __TXB2D4bits_t TXB2D4bits; 7593 7594 #define _TXB2D40 0x01 7595 #define _TXB2D41 0x02 7596 #define _TXB2D42 0x04 7597 #define _TXB2D43 0x08 7598 #define _TXB2D44 0x10 7599 #define _TXB2D45 0x20 7600 #define _TXB2D46 0x40 7601 #define _TXB2D47 0x80 7602 7603 //============================================================================== 7604 7605 7606 //============================================================================== 7607 // TXB2D5 Bits 7608 7609 extern __at(0x0F2B) __sfr TXB2D5; 7610 7611 typedef struct 7612 { 7613 unsigned TXB2D50 : 1; 7614 unsigned TXB2D51 : 1; 7615 unsigned TXB2D52 : 1; 7616 unsigned TXB2D53 : 1; 7617 unsigned TXB2D54 : 1; 7618 unsigned TXB2D55 : 1; 7619 unsigned TXB2D56 : 1; 7620 unsigned TXB2D57 : 1; 7621 } __TXB2D5bits_t; 7622 7623 extern __at(0x0F2B) volatile __TXB2D5bits_t TXB2D5bits; 7624 7625 #define _TXB2D50 0x01 7626 #define _TXB2D51 0x02 7627 #define _TXB2D52 0x04 7628 #define _TXB2D53 0x08 7629 #define _TXB2D54 0x10 7630 #define _TXB2D55 0x20 7631 #define _TXB2D56 0x40 7632 #define _TXB2D57 0x80 7633 7634 //============================================================================== 7635 7636 7637 //============================================================================== 7638 // TXB2D6 Bits 7639 7640 extern __at(0x0F2C) __sfr TXB2D6; 7641 7642 typedef struct 7643 { 7644 unsigned TXB2D60 : 1; 7645 unsigned TXB2D61 : 1; 7646 unsigned TXB2D62 : 1; 7647 unsigned TXB2D63 : 1; 7648 unsigned TXB2D64 : 1; 7649 unsigned TXB2D65 : 1; 7650 unsigned TXB2D66 : 1; 7651 unsigned TXB2D67 : 1; 7652 } __TXB2D6bits_t; 7653 7654 extern __at(0x0F2C) volatile __TXB2D6bits_t TXB2D6bits; 7655 7656 #define _TXB2D60 0x01 7657 #define _TXB2D61 0x02 7658 #define _TXB2D62 0x04 7659 #define _TXB2D63 0x08 7660 #define _TXB2D64 0x10 7661 #define _TXB2D65 0x20 7662 #define _TXB2D66 0x40 7663 #define _TXB2D67 0x80 7664 7665 //============================================================================== 7666 7667 7668 //============================================================================== 7669 // TXB2D7 Bits 7670 7671 extern __at(0x0F2D) __sfr TXB2D7; 7672 7673 typedef struct 7674 { 7675 unsigned TXB2D70 : 1; 7676 unsigned TXB2D71 : 1; 7677 unsigned TXB2D72 : 1; 7678 unsigned TXB2D73 : 1; 7679 unsigned TXB2D74 : 1; 7680 unsigned TXB2D75 : 1; 7681 unsigned TXB2D76 : 1; 7682 unsigned TXB2D77 : 1; 7683 } __TXB2D7bits_t; 7684 7685 extern __at(0x0F2D) volatile __TXB2D7bits_t TXB2D7bits; 7686 7687 #define _TXB2D70 0x01 7688 #define _TXB2D71 0x02 7689 #define _TXB2D72 0x04 7690 #define _TXB2D73 0x08 7691 #define _TXB2D74 0x10 7692 #define _TXB2D75 0x20 7693 #define _TXB2D76 0x40 7694 #define _TXB2D77 0x80 7695 7696 //============================================================================== 7697 7698 7699 //============================================================================== 7700 // CANSTAT_RO3 Bits 7701 7702 extern __at(0x0F2E) __sfr CANSTAT_RO3; 7703 7704 typedef union 7705 { 7706 struct 7707 { 7708 unsigned EICODE0 : 1; 7709 unsigned EICODE1_ICODE0 : 1; 7710 unsigned EICODE2_ICODE1 : 1; 7711 unsigned EICODE3_ICODE2 : 1; 7712 unsigned EICODE4 : 1; 7713 unsigned OPMODE0 : 1; 7714 unsigned OPMODE1 : 1; 7715 unsigned OPMODE2 : 1; 7716 }; 7717 7718 struct 7719 { 7720 unsigned : 5; 7721 unsigned OPMODE : 3; 7722 }; 7723 } __CANSTAT_RO3bits_t; 7724 7725 extern __at(0x0F2E) volatile __CANSTAT_RO3bits_t CANSTAT_RO3bits; 7726 7727 #define _CANSTAT_RO3_EICODE0 0x01 7728 #define _CANSTAT_RO3_EICODE1_ICODE0 0x02 7729 #define _CANSTAT_RO3_EICODE2_ICODE1 0x04 7730 #define _CANSTAT_RO3_EICODE3_ICODE2 0x08 7731 #define _CANSTAT_RO3_EICODE4 0x10 7732 #define _CANSTAT_RO3_OPMODE0 0x20 7733 #define _CANSTAT_RO3_OPMODE1 0x40 7734 #define _CANSTAT_RO3_OPMODE2 0x80 7735 7736 //============================================================================== 7737 7738 7739 //============================================================================== 7740 // CANCON_RO3 Bits 7741 7742 extern __at(0x0F2F) __sfr CANCON_RO3; 7743 7744 typedef union 7745 { 7746 struct 7747 { 7748 unsigned FP0 : 1; 7749 unsigned WIN0_FP1 : 1; 7750 unsigned WIN1_FP2 : 1; 7751 unsigned WIN2_FP3 : 1; 7752 unsigned ABAT : 1; 7753 unsigned REQOP0 : 1; 7754 unsigned REQOP1 : 1; 7755 unsigned REQOP2 : 1; 7756 }; 7757 7758 struct 7759 { 7760 unsigned : 5; 7761 unsigned REQOP : 3; 7762 }; 7763 } __CANCON_RO3bits_t; 7764 7765 extern __at(0x0F2F) volatile __CANCON_RO3bits_t CANCON_RO3bits; 7766 7767 #define _CANCON_RO3_FP0 0x01 7768 #define _CANCON_RO3_WIN0_FP1 0x02 7769 #define _CANCON_RO3_WIN1_FP2 0x04 7770 #define _CANCON_RO3_WIN2_FP3 0x08 7771 #define _CANCON_RO3_ABAT 0x10 7772 #define _CANCON_RO3_REQOP0 0x20 7773 #define _CANCON_RO3_REQOP1 0x40 7774 #define _CANCON_RO3_REQOP2 0x80 7775 7776 //============================================================================== 7777 7778 7779 //============================================================================== 7780 // TXB1CON Bits 7781 7782 extern __at(0x0F30) __sfr TXB1CON; 7783 7784 typedef union 7785 { 7786 struct 7787 { 7788 unsigned TXPRI0 : 1; 7789 unsigned TXPRI1 : 1; 7790 unsigned : 1; 7791 unsigned TXREQ : 1; 7792 unsigned TXERR : 1; 7793 unsigned TXLARB : 1; 7794 unsigned TXABT : 1; 7795 unsigned TXBIF : 1; 7796 }; 7797 7798 struct 7799 { 7800 unsigned : 1; 7801 unsigned : 1; 7802 unsigned : 1; 7803 unsigned : 1; 7804 unsigned : 1; 7805 unsigned : 1; 7806 unsigned : 1; 7807 unsigned TXBIFTXB1CON : 1; 7808 }; 7809 7810 struct 7811 { 7812 unsigned TXPRI : 2; 7813 unsigned : 6; 7814 }; 7815 } __TXB1CONbits_t; 7816 7817 extern __at(0x0F30) volatile __TXB1CONbits_t TXB1CONbits; 7818 7819 #define _TXB1CON_TXPRI0 0x01 7820 #define _TXB1CON_TXPRI1 0x02 7821 #define _TXB1CON_TXREQ 0x08 7822 #define _TXB1CON_TXERR 0x10 7823 #define _TXB1CON_TXLARB 0x20 7824 #define _TXB1CON_TXABT 0x40 7825 #define _TXB1CON_TXBIF 0x80 7826 #define _TXB1CON_TXBIFTXB1CON 0x80 7827 7828 //============================================================================== 7829 7830 7831 //============================================================================== 7832 // TXB1SIDH Bits 7833 7834 extern __at(0x0F31) __sfr TXB1SIDH; 7835 7836 typedef struct 7837 { 7838 unsigned SID3 : 1; 7839 unsigned SID4 : 1; 7840 unsigned SID5 : 1; 7841 unsigned SID6 : 1; 7842 unsigned SID7 : 1; 7843 unsigned SID8 : 1; 7844 unsigned SID9 : 1; 7845 unsigned SID10 : 1; 7846 } __TXB1SIDHbits_t; 7847 7848 extern __at(0x0F31) volatile __TXB1SIDHbits_t TXB1SIDHbits; 7849 7850 #define _TXB1SIDH_SID3 0x01 7851 #define _TXB1SIDH_SID4 0x02 7852 #define _TXB1SIDH_SID5 0x04 7853 #define _TXB1SIDH_SID6 0x08 7854 #define _TXB1SIDH_SID7 0x10 7855 #define _TXB1SIDH_SID8 0x20 7856 #define _TXB1SIDH_SID9 0x40 7857 #define _TXB1SIDH_SID10 0x80 7858 7859 //============================================================================== 7860 7861 7862 //============================================================================== 7863 // TXB1SIDL Bits 7864 7865 extern __at(0x0F32) __sfr TXB1SIDL; 7866 7867 typedef union 7868 { 7869 struct 7870 { 7871 unsigned EID16 : 1; 7872 unsigned EID17 : 1; 7873 unsigned : 1; 7874 unsigned EXIDE : 1; 7875 unsigned : 1; 7876 unsigned SID0 : 1; 7877 unsigned SID1 : 1; 7878 unsigned SID2 : 1; 7879 }; 7880 7881 struct 7882 { 7883 unsigned : 5; 7884 unsigned SID : 3; 7885 }; 7886 } __TXB1SIDLbits_t; 7887 7888 extern __at(0x0F32) volatile __TXB1SIDLbits_t TXB1SIDLbits; 7889 7890 #define _TXB1SIDL_EID16 0x01 7891 #define _TXB1SIDL_EID17 0x02 7892 #define _TXB1SIDL_EXIDE 0x08 7893 #define _TXB1SIDL_SID0 0x20 7894 #define _TXB1SIDL_SID1 0x40 7895 #define _TXB1SIDL_SID2 0x80 7896 7897 //============================================================================== 7898 7899 7900 //============================================================================== 7901 // TXB1EIDH Bits 7902 7903 extern __at(0x0F33) __sfr TXB1EIDH; 7904 7905 typedef struct 7906 { 7907 unsigned EID8 : 1; 7908 unsigned EID9 : 1; 7909 unsigned EID10 : 1; 7910 unsigned EID11 : 1; 7911 unsigned EID12 : 1; 7912 unsigned EID13 : 1; 7913 unsigned EID14 : 1; 7914 unsigned EID15 : 1; 7915 } __TXB1EIDHbits_t; 7916 7917 extern __at(0x0F33) volatile __TXB1EIDHbits_t TXB1EIDHbits; 7918 7919 #define _TXB1EIDH_EID8 0x01 7920 #define _TXB1EIDH_EID9 0x02 7921 #define _TXB1EIDH_EID10 0x04 7922 #define _TXB1EIDH_EID11 0x08 7923 #define _TXB1EIDH_EID12 0x10 7924 #define _TXB1EIDH_EID13 0x20 7925 #define _TXB1EIDH_EID14 0x40 7926 #define _TXB1EIDH_EID15 0x80 7927 7928 //============================================================================== 7929 7930 7931 //============================================================================== 7932 // TXB1EIDL Bits 7933 7934 extern __at(0x0F34) __sfr TXB1EIDL; 7935 7936 typedef struct 7937 { 7938 unsigned EID0 : 1; 7939 unsigned EID1 : 1; 7940 unsigned EID2 : 1; 7941 unsigned EID3 : 1; 7942 unsigned EID4 : 1; 7943 unsigned EID5 : 1; 7944 unsigned EID6 : 1; 7945 unsigned EID7 : 1; 7946 } __TXB1EIDLbits_t; 7947 7948 extern __at(0x0F34) volatile __TXB1EIDLbits_t TXB1EIDLbits; 7949 7950 #define _TXB1EIDL_EID0 0x01 7951 #define _TXB1EIDL_EID1 0x02 7952 #define _TXB1EIDL_EID2 0x04 7953 #define _TXB1EIDL_EID3 0x08 7954 #define _TXB1EIDL_EID4 0x10 7955 #define _TXB1EIDL_EID5 0x20 7956 #define _TXB1EIDL_EID6 0x40 7957 #define _TXB1EIDL_EID7 0x80 7958 7959 //============================================================================== 7960 7961 7962 //============================================================================== 7963 // TXB1DLC Bits 7964 7965 extern __at(0x0F35) __sfr TXB1DLC; 7966 7967 typedef union 7968 { 7969 struct 7970 { 7971 unsigned DLC0 : 1; 7972 unsigned DLC1 : 1; 7973 unsigned DLC2 : 1; 7974 unsigned DLC3 : 1; 7975 unsigned : 1; 7976 unsigned : 1; 7977 unsigned TXRTR : 1; 7978 unsigned : 1; 7979 }; 7980 7981 struct 7982 { 7983 unsigned DLC : 4; 7984 unsigned : 4; 7985 }; 7986 } __TXB1DLCbits_t; 7987 7988 extern __at(0x0F35) volatile __TXB1DLCbits_t TXB1DLCbits; 7989 7990 #define _TXB1DLC_DLC0 0x01 7991 #define _TXB1DLC_DLC1 0x02 7992 #define _TXB1DLC_DLC2 0x04 7993 #define _TXB1DLC_DLC3 0x08 7994 #define _TXB1DLC_TXRTR 0x40 7995 7996 //============================================================================== 7997 7998 7999 //============================================================================== 8000 // TXB1D0 Bits 8001 8002 extern __at(0x0F36) __sfr TXB1D0; 8003 8004 typedef struct 8005 { 8006 unsigned TXB1D00 : 1; 8007 unsigned TXB1D01 : 1; 8008 unsigned TXB1D02 : 1; 8009 unsigned TXB1D03 : 1; 8010 unsigned TXB1D04 : 1; 8011 unsigned TXB1D05 : 1; 8012 unsigned TXB1D06 : 1; 8013 unsigned TXB1D07 : 1; 8014 } __TXB1D0bits_t; 8015 8016 extern __at(0x0F36) volatile __TXB1D0bits_t TXB1D0bits; 8017 8018 #define _TXB1D00 0x01 8019 #define _TXB1D01 0x02 8020 #define _TXB1D02 0x04 8021 #define _TXB1D03 0x08 8022 #define _TXB1D04 0x10 8023 #define _TXB1D05 0x20 8024 #define _TXB1D06 0x40 8025 #define _TXB1D07 0x80 8026 8027 //============================================================================== 8028 8029 8030 //============================================================================== 8031 // TXB1D1 Bits 8032 8033 extern __at(0x0F37) __sfr TXB1D1; 8034 8035 typedef struct 8036 { 8037 unsigned TXB1D10 : 1; 8038 unsigned TXB1D11 : 1; 8039 unsigned TXB1D12 : 1; 8040 unsigned TXB1D13 : 1; 8041 unsigned TXB1D14 : 1; 8042 unsigned TXB1D15 : 1; 8043 unsigned TXB1D16 : 1; 8044 unsigned TXB1D17 : 1; 8045 } __TXB1D1bits_t; 8046 8047 extern __at(0x0F37) volatile __TXB1D1bits_t TXB1D1bits; 8048 8049 #define _TXB1D10 0x01 8050 #define _TXB1D11 0x02 8051 #define _TXB1D12 0x04 8052 #define _TXB1D13 0x08 8053 #define _TXB1D14 0x10 8054 #define _TXB1D15 0x20 8055 #define _TXB1D16 0x40 8056 #define _TXB1D17 0x80 8057 8058 //============================================================================== 8059 8060 8061 //============================================================================== 8062 // TXB1D2 Bits 8063 8064 extern __at(0x0F38) __sfr TXB1D2; 8065 8066 typedef struct 8067 { 8068 unsigned TXB1D20 : 1; 8069 unsigned TXB1D21 : 1; 8070 unsigned TXB1D22 : 1; 8071 unsigned TXB1D23 : 1; 8072 unsigned TXB1D24 : 1; 8073 unsigned TXB1D25 : 1; 8074 unsigned TXB1D26 : 1; 8075 unsigned TXB1D27 : 1; 8076 } __TXB1D2bits_t; 8077 8078 extern __at(0x0F38) volatile __TXB1D2bits_t TXB1D2bits; 8079 8080 #define _TXB1D20 0x01 8081 #define _TXB1D21 0x02 8082 #define _TXB1D22 0x04 8083 #define _TXB1D23 0x08 8084 #define _TXB1D24 0x10 8085 #define _TXB1D25 0x20 8086 #define _TXB1D26 0x40 8087 #define _TXB1D27 0x80 8088 8089 //============================================================================== 8090 8091 8092 //============================================================================== 8093 // TXB1D3 Bits 8094 8095 extern __at(0x0F39) __sfr TXB1D3; 8096 8097 typedef struct 8098 { 8099 unsigned TXB1D30 : 1; 8100 unsigned TXB1D31 : 1; 8101 unsigned TXB1D32 : 1; 8102 unsigned TXB1D33 : 1; 8103 unsigned TXB1D34 : 1; 8104 unsigned TXB1D35 : 1; 8105 unsigned TXB1D36 : 1; 8106 unsigned TXB1D37 : 1; 8107 } __TXB1D3bits_t; 8108 8109 extern __at(0x0F39) volatile __TXB1D3bits_t TXB1D3bits; 8110 8111 #define _TXB1D30 0x01 8112 #define _TXB1D31 0x02 8113 #define _TXB1D32 0x04 8114 #define _TXB1D33 0x08 8115 #define _TXB1D34 0x10 8116 #define _TXB1D35 0x20 8117 #define _TXB1D36 0x40 8118 #define _TXB1D37 0x80 8119 8120 //============================================================================== 8121 8122 8123 //============================================================================== 8124 // TXB1D4 Bits 8125 8126 extern __at(0x0F3A) __sfr TXB1D4; 8127 8128 typedef struct 8129 { 8130 unsigned TXB1D40 : 1; 8131 unsigned TXB1D41 : 1; 8132 unsigned TXB1D42 : 1; 8133 unsigned TXB1D43 : 1; 8134 unsigned TXB1D44 : 1; 8135 unsigned TXB1D45 : 1; 8136 unsigned TXB1D46 : 1; 8137 unsigned TXB1D47 : 1; 8138 } __TXB1D4bits_t; 8139 8140 extern __at(0x0F3A) volatile __TXB1D4bits_t TXB1D4bits; 8141 8142 #define _TXB1D40 0x01 8143 #define _TXB1D41 0x02 8144 #define _TXB1D42 0x04 8145 #define _TXB1D43 0x08 8146 #define _TXB1D44 0x10 8147 #define _TXB1D45 0x20 8148 #define _TXB1D46 0x40 8149 #define _TXB1D47 0x80 8150 8151 //============================================================================== 8152 8153 8154 //============================================================================== 8155 // TXB1D5 Bits 8156 8157 extern __at(0x0F3B) __sfr TXB1D5; 8158 8159 typedef struct 8160 { 8161 unsigned TXB1D50 : 1; 8162 unsigned TXB1D51 : 1; 8163 unsigned TXB1D52 : 1; 8164 unsigned TXB1D53 : 1; 8165 unsigned TXB1D54 : 1; 8166 unsigned TXB1D55 : 1; 8167 unsigned TXB1D56 : 1; 8168 unsigned TXB1D57 : 1; 8169 } __TXB1D5bits_t; 8170 8171 extern __at(0x0F3B) volatile __TXB1D5bits_t TXB1D5bits; 8172 8173 #define _TXB1D50 0x01 8174 #define _TXB1D51 0x02 8175 #define _TXB1D52 0x04 8176 #define _TXB1D53 0x08 8177 #define _TXB1D54 0x10 8178 #define _TXB1D55 0x20 8179 #define _TXB1D56 0x40 8180 #define _TXB1D57 0x80 8181 8182 //============================================================================== 8183 8184 8185 //============================================================================== 8186 // TXB1D6 Bits 8187 8188 extern __at(0x0F3C) __sfr TXB1D6; 8189 8190 typedef struct 8191 { 8192 unsigned TXB1D60 : 1; 8193 unsigned TXB1D61 : 1; 8194 unsigned TXB1D62 : 1; 8195 unsigned TXB1D63 : 1; 8196 unsigned TXB1D64 : 1; 8197 unsigned TXB1D65 : 1; 8198 unsigned TXB1D66 : 1; 8199 unsigned TXB1D67 : 1; 8200 } __TXB1D6bits_t; 8201 8202 extern __at(0x0F3C) volatile __TXB1D6bits_t TXB1D6bits; 8203 8204 #define _TXB1D60 0x01 8205 #define _TXB1D61 0x02 8206 #define _TXB1D62 0x04 8207 #define _TXB1D63 0x08 8208 #define _TXB1D64 0x10 8209 #define _TXB1D65 0x20 8210 #define _TXB1D66 0x40 8211 #define _TXB1D67 0x80 8212 8213 //============================================================================== 8214 8215 8216 //============================================================================== 8217 // TXB1D7 Bits 8218 8219 extern __at(0x0F3D) __sfr TXB1D7; 8220 8221 typedef struct 8222 { 8223 unsigned TXB1D70 : 1; 8224 unsigned TXB1D71 : 1; 8225 unsigned TXB1D72 : 1; 8226 unsigned TXB1D73 : 1; 8227 unsigned TXB1D74 : 1; 8228 unsigned TXB1D75 : 1; 8229 unsigned TXB1D76 : 1; 8230 unsigned TXB1D77 : 1; 8231 } __TXB1D7bits_t; 8232 8233 extern __at(0x0F3D) volatile __TXB1D7bits_t TXB1D7bits; 8234 8235 #define _TXB1D70 0x01 8236 #define _TXB1D71 0x02 8237 #define _TXB1D72 0x04 8238 #define _TXB1D73 0x08 8239 #define _TXB1D74 0x10 8240 #define _TXB1D75 0x20 8241 #define _TXB1D76 0x40 8242 #define _TXB1D77 0x80 8243 8244 //============================================================================== 8245 8246 8247 //============================================================================== 8248 // CANSTAT_RO2 Bits 8249 8250 extern __at(0x0F3E) __sfr CANSTAT_RO2; 8251 8252 typedef union 8253 { 8254 struct 8255 { 8256 unsigned EICODE0 : 1; 8257 unsigned EICODE1_ICODE0 : 1; 8258 unsigned EICODE2_ICODE1 : 1; 8259 unsigned EICODE3_ICODE2 : 1; 8260 unsigned EICODE4 : 1; 8261 unsigned OPMODE0 : 1; 8262 unsigned OPMODE1 : 1; 8263 unsigned OPMODE2 : 1; 8264 }; 8265 8266 struct 8267 { 8268 unsigned : 5; 8269 unsigned OPMODE : 3; 8270 }; 8271 } __CANSTAT_RO2bits_t; 8272 8273 extern __at(0x0F3E) volatile __CANSTAT_RO2bits_t CANSTAT_RO2bits; 8274 8275 #define _CANSTAT_RO2_EICODE0 0x01 8276 #define _CANSTAT_RO2_EICODE1_ICODE0 0x02 8277 #define _CANSTAT_RO2_EICODE2_ICODE1 0x04 8278 #define _CANSTAT_RO2_EICODE3_ICODE2 0x08 8279 #define _CANSTAT_RO2_EICODE4 0x10 8280 #define _CANSTAT_RO2_OPMODE0 0x20 8281 #define _CANSTAT_RO2_OPMODE1 0x40 8282 #define _CANSTAT_RO2_OPMODE2 0x80 8283 8284 //============================================================================== 8285 8286 8287 //============================================================================== 8288 // CANCON_RO2 Bits 8289 8290 extern __at(0x0F3F) __sfr CANCON_RO2; 8291 8292 typedef union 8293 { 8294 struct 8295 { 8296 unsigned FP0 : 1; 8297 unsigned WIN0_FP1 : 1; 8298 unsigned WIN1_FP2 : 1; 8299 unsigned WIN2_FP3 : 1; 8300 unsigned ABAT : 1; 8301 unsigned REQOP0 : 1; 8302 unsigned REQOP1 : 1; 8303 unsigned REQOP2 : 1; 8304 }; 8305 8306 struct 8307 { 8308 unsigned : 5; 8309 unsigned REQOP : 3; 8310 }; 8311 } __CANCON_RO2bits_t; 8312 8313 extern __at(0x0F3F) volatile __CANCON_RO2bits_t CANCON_RO2bits; 8314 8315 #define _CANCON_RO2_FP0 0x01 8316 #define _CANCON_RO2_WIN0_FP1 0x02 8317 #define _CANCON_RO2_WIN1_FP2 0x04 8318 #define _CANCON_RO2_WIN2_FP3 0x08 8319 #define _CANCON_RO2_ABAT 0x10 8320 #define _CANCON_RO2_REQOP0 0x20 8321 #define _CANCON_RO2_REQOP1 0x40 8322 #define _CANCON_RO2_REQOP2 0x80 8323 8324 //============================================================================== 8325 8326 8327 //============================================================================== 8328 // TXB0CON Bits 8329 8330 extern __at(0x0F40) __sfr TXB0CON; 8331 8332 typedef union 8333 { 8334 struct 8335 { 8336 unsigned TXPRI0 : 1; 8337 unsigned TXPRI1 : 1; 8338 unsigned : 1; 8339 unsigned TXREQ : 1; 8340 unsigned TXERR : 1; 8341 unsigned TXLARB : 1; 8342 unsigned TXABT : 1; 8343 unsigned TXBIF : 1; 8344 }; 8345 8346 struct 8347 { 8348 unsigned TXPRI : 2; 8349 unsigned : 6; 8350 }; 8351 } __TXB0CONbits_t; 8352 8353 extern __at(0x0F40) volatile __TXB0CONbits_t TXB0CONbits; 8354 8355 #define _TXB0CON_TXPRI0 0x01 8356 #define _TXB0CON_TXPRI1 0x02 8357 #define _TXB0CON_TXREQ 0x08 8358 #define _TXB0CON_TXERR 0x10 8359 #define _TXB0CON_TXLARB 0x20 8360 #define _TXB0CON_TXABT 0x40 8361 #define _TXB0CON_TXBIF 0x80 8362 8363 //============================================================================== 8364 8365 8366 //============================================================================== 8367 // TXB0SIDH Bits 8368 8369 extern __at(0x0F41) __sfr TXB0SIDH; 8370 8371 typedef struct 8372 { 8373 unsigned SID3 : 1; 8374 unsigned SID4 : 1; 8375 unsigned SID5 : 1; 8376 unsigned SID6 : 1; 8377 unsigned SID7 : 1; 8378 unsigned SID8 : 1; 8379 unsigned SID9 : 1; 8380 unsigned SID10 : 1; 8381 } __TXB0SIDHbits_t; 8382 8383 extern __at(0x0F41) volatile __TXB0SIDHbits_t TXB0SIDHbits; 8384 8385 #define _TXB0SIDH_SID3 0x01 8386 #define _TXB0SIDH_SID4 0x02 8387 #define _TXB0SIDH_SID5 0x04 8388 #define _TXB0SIDH_SID6 0x08 8389 #define _TXB0SIDH_SID7 0x10 8390 #define _TXB0SIDH_SID8 0x20 8391 #define _TXB0SIDH_SID9 0x40 8392 #define _TXB0SIDH_SID10 0x80 8393 8394 //============================================================================== 8395 8396 8397 //============================================================================== 8398 // TXB0SIDL Bits 8399 8400 extern __at(0x0F42) __sfr TXB0SIDL; 8401 8402 typedef union 8403 { 8404 struct 8405 { 8406 unsigned EID16 : 1; 8407 unsigned EID17 : 1; 8408 unsigned : 1; 8409 unsigned EXIDE : 1; 8410 unsigned : 1; 8411 unsigned SID0 : 1; 8412 unsigned SID1 : 1; 8413 unsigned SID2 : 1; 8414 }; 8415 8416 struct 8417 { 8418 unsigned : 5; 8419 unsigned SID : 3; 8420 }; 8421 } __TXB0SIDLbits_t; 8422 8423 extern __at(0x0F42) volatile __TXB0SIDLbits_t TXB0SIDLbits; 8424 8425 #define _TXB0SIDL_EID16 0x01 8426 #define _TXB0SIDL_EID17 0x02 8427 #define _TXB0SIDL_EXIDE 0x08 8428 #define _TXB0SIDL_SID0 0x20 8429 #define _TXB0SIDL_SID1 0x40 8430 #define _TXB0SIDL_SID2 0x80 8431 8432 //============================================================================== 8433 8434 8435 //============================================================================== 8436 // TXB0EIDH Bits 8437 8438 extern __at(0x0F43) __sfr TXB0EIDH; 8439 8440 typedef struct 8441 { 8442 unsigned EID8 : 1; 8443 unsigned EID9 : 1; 8444 unsigned EID10 : 1; 8445 unsigned EID11 : 1; 8446 unsigned EID12 : 1; 8447 unsigned EID13 : 1; 8448 unsigned EID14 : 1; 8449 unsigned EID15 : 1; 8450 } __TXB0EIDHbits_t; 8451 8452 extern __at(0x0F43) volatile __TXB0EIDHbits_t TXB0EIDHbits; 8453 8454 #define _TXB0EIDH_EID8 0x01 8455 #define _TXB0EIDH_EID9 0x02 8456 #define _TXB0EIDH_EID10 0x04 8457 #define _TXB0EIDH_EID11 0x08 8458 #define _TXB0EIDH_EID12 0x10 8459 #define _TXB0EIDH_EID13 0x20 8460 #define _TXB0EIDH_EID14 0x40 8461 #define _TXB0EIDH_EID15 0x80 8462 8463 //============================================================================== 8464 8465 8466 //============================================================================== 8467 // TXB0EIDL Bits 8468 8469 extern __at(0x0F44) __sfr TXB0EIDL; 8470 8471 typedef struct 8472 { 8473 unsigned EID0 : 1; 8474 unsigned EID1 : 1; 8475 unsigned EID2 : 1; 8476 unsigned EID3 : 1; 8477 unsigned EID4 : 1; 8478 unsigned EID5 : 1; 8479 unsigned EID6 : 1; 8480 unsigned EID7 : 1; 8481 } __TXB0EIDLbits_t; 8482 8483 extern __at(0x0F44) volatile __TXB0EIDLbits_t TXB0EIDLbits; 8484 8485 #define _TXB0EIDL_EID0 0x01 8486 #define _TXB0EIDL_EID1 0x02 8487 #define _TXB0EIDL_EID2 0x04 8488 #define _TXB0EIDL_EID3 0x08 8489 #define _TXB0EIDL_EID4 0x10 8490 #define _TXB0EIDL_EID5 0x20 8491 #define _TXB0EIDL_EID6 0x40 8492 #define _TXB0EIDL_EID7 0x80 8493 8494 //============================================================================== 8495 8496 8497 //============================================================================== 8498 // TXB0DLC Bits 8499 8500 extern __at(0x0F45) __sfr TXB0DLC; 8501 8502 typedef union 8503 { 8504 struct 8505 { 8506 unsigned DLC0 : 1; 8507 unsigned DLC1 : 1; 8508 unsigned DLC2 : 1; 8509 unsigned DLC3 : 1; 8510 unsigned : 1; 8511 unsigned : 1; 8512 unsigned TXRTR : 1; 8513 unsigned : 1; 8514 }; 8515 8516 struct 8517 { 8518 unsigned DLC : 4; 8519 unsigned : 4; 8520 }; 8521 } __TXB0DLCbits_t; 8522 8523 extern __at(0x0F45) volatile __TXB0DLCbits_t TXB0DLCbits; 8524 8525 #define _TXB0DLC_DLC0 0x01 8526 #define _TXB0DLC_DLC1 0x02 8527 #define _TXB0DLC_DLC2 0x04 8528 #define _TXB0DLC_DLC3 0x08 8529 #define _TXB0DLC_TXRTR 0x40 8530 8531 //============================================================================== 8532 8533 8534 //============================================================================== 8535 // TXB0D0 Bits 8536 8537 extern __at(0x0F46) __sfr TXB0D0; 8538 8539 typedef struct 8540 { 8541 unsigned TXB0D00 : 1; 8542 unsigned TXB0D01 : 1; 8543 unsigned TXB0D02 : 1; 8544 unsigned TXB0D03 : 1; 8545 unsigned TXB0D04 : 1; 8546 unsigned TXB0D05 : 1; 8547 unsigned TXB0D06 : 1; 8548 unsigned TXB0D07 : 1; 8549 } __TXB0D0bits_t; 8550 8551 extern __at(0x0F46) volatile __TXB0D0bits_t TXB0D0bits; 8552 8553 #define _TXB0D00 0x01 8554 #define _TXB0D01 0x02 8555 #define _TXB0D02 0x04 8556 #define _TXB0D03 0x08 8557 #define _TXB0D04 0x10 8558 #define _TXB0D05 0x20 8559 #define _TXB0D06 0x40 8560 #define _TXB0D07 0x80 8561 8562 //============================================================================== 8563 8564 8565 //============================================================================== 8566 // TXB0D1 Bits 8567 8568 extern __at(0x0F47) __sfr TXB0D1; 8569 8570 typedef struct 8571 { 8572 unsigned TXB0D10 : 1; 8573 unsigned TXB0D11 : 1; 8574 unsigned TXB0D12 : 1; 8575 unsigned TXB0D13 : 1; 8576 unsigned TXB0D14 : 1; 8577 unsigned TXB0D15 : 1; 8578 unsigned TXB0D16 : 1; 8579 unsigned TXB0D17 : 1; 8580 } __TXB0D1bits_t; 8581 8582 extern __at(0x0F47) volatile __TXB0D1bits_t TXB0D1bits; 8583 8584 #define _TXB0D10 0x01 8585 #define _TXB0D11 0x02 8586 #define _TXB0D12 0x04 8587 #define _TXB0D13 0x08 8588 #define _TXB0D14 0x10 8589 #define _TXB0D15 0x20 8590 #define _TXB0D16 0x40 8591 #define _TXB0D17 0x80 8592 8593 //============================================================================== 8594 8595 8596 //============================================================================== 8597 // TXB0D2 Bits 8598 8599 extern __at(0x0F48) __sfr TXB0D2; 8600 8601 typedef struct 8602 { 8603 unsigned TXB0D20 : 1; 8604 unsigned TXB0D21 : 1; 8605 unsigned TXB0D22 : 1; 8606 unsigned TXB0D23 : 1; 8607 unsigned TXB0D24 : 1; 8608 unsigned TXB0D25 : 1; 8609 unsigned TXB0D26 : 1; 8610 unsigned TXB0D27 : 1; 8611 } __TXB0D2bits_t; 8612 8613 extern __at(0x0F48) volatile __TXB0D2bits_t TXB0D2bits; 8614 8615 #define _TXB0D20 0x01 8616 #define _TXB0D21 0x02 8617 #define _TXB0D22 0x04 8618 #define _TXB0D23 0x08 8619 #define _TXB0D24 0x10 8620 #define _TXB0D25 0x20 8621 #define _TXB0D26 0x40 8622 #define _TXB0D27 0x80 8623 8624 //============================================================================== 8625 8626 8627 //============================================================================== 8628 // TXB0D3 Bits 8629 8630 extern __at(0x0F49) __sfr TXB0D3; 8631 8632 typedef struct 8633 { 8634 unsigned TXB0D30 : 1; 8635 unsigned TXB0D31 : 1; 8636 unsigned TXB0D32 : 1; 8637 unsigned TXB0D33 : 1; 8638 unsigned TXB0D34 : 1; 8639 unsigned TXB0D35 : 1; 8640 unsigned TXB0D36 : 1; 8641 unsigned TXB0D37 : 1; 8642 } __TXB0D3bits_t; 8643 8644 extern __at(0x0F49) volatile __TXB0D3bits_t TXB0D3bits; 8645 8646 #define _TXB0D30 0x01 8647 #define _TXB0D31 0x02 8648 #define _TXB0D32 0x04 8649 #define _TXB0D33 0x08 8650 #define _TXB0D34 0x10 8651 #define _TXB0D35 0x20 8652 #define _TXB0D36 0x40 8653 #define _TXB0D37 0x80 8654 8655 //============================================================================== 8656 8657 8658 //============================================================================== 8659 // TXB0D4 Bits 8660 8661 extern __at(0x0F4A) __sfr TXB0D4; 8662 8663 typedef struct 8664 { 8665 unsigned TXB0D40 : 1; 8666 unsigned TXB0D41 : 1; 8667 unsigned TXB0D42 : 1; 8668 unsigned TXB0D43 : 1; 8669 unsigned TXB0D44 : 1; 8670 unsigned TXB0D45 : 1; 8671 unsigned TXB0D46 : 1; 8672 unsigned TXB0D47 : 1; 8673 } __TXB0D4bits_t; 8674 8675 extern __at(0x0F4A) volatile __TXB0D4bits_t TXB0D4bits; 8676 8677 #define _TXB0D40 0x01 8678 #define _TXB0D41 0x02 8679 #define _TXB0D42 0x04 8680 #define _TXB0D43 0x08 8681 #define _TXB0D44 0x10 8682 #define _TXB0D45 0x20 8683 #define _TXB0D46 0x40 8684 #define _TXB0D47 0x80 8685 8686 //============================================================================== 8687 8688 8689 //============================================================================== 8690 // TXB0D5 Bits 8691 8692 extern __at(0x0F4B) __sfr TXB0D5; 8693 8694 typedef struct 8695 { 8696 unsigned TXB0D50 : 1; 8697 unsigned TXB0D51 : 1; 8698 unsigned TXB0D52 : 1; 8699 unsigned TXB0D53 : 1; 8700 unsigned TXB0D54 : 1; 8701 unsigned TXB0D55 : 1; 8702 unsigned TXB0D56 : 1; 8703 unsigned TXB0D57 : 1; 8704 } __TXB0D5bits_t; 8705 8706 extern __at(0x0F4B) volatile __TXB0D5bits_t TXB0D5bits; 8707 8708 #define _TXB0D50 0x01 8709 #define _TXB0D51 0x02 8710 #define _TXB0D52 0x04 8711 #define _TXB0D53 0x08 8712 #define _TXB0D54 0x10 8713 #define _TXB0D55 0x20 8714 #define _TXB0D56 0x40 8715 #define _TXB0D57 0x80 8716 8717 //============================================================================== 8718 8719 8720 //============================================================================== 8721 // TXB0D6 Bits 8722 8723 extern __at(0x0F4C) __sfr TXB0D6; 8724 8725 typedef struct 8726 { 8727 unsigned TXB0D60 : 1; 8728 unsigned TXB0D61 : 1; 8729 unsigned TXB0D62 : 1; 8730 unsigned TXB0D63 : 1; 8731 unsigned TXB0D64 : 1; 8732 unsigned TXB0D65 : 1; 8733 unsigned TXB0D66 : 1; 8734 unsigned TXB0D67 : 1; 8735 } __TXB0D6bits_t; 8736 8737 extern __at(0x0F4C) volatile __TXB0D6bits_t TXB0D6bits; 8738 8739 #define _TXB0D60 0x01 8740 #define _TXB0D61 0x02 8741 #define _TXB0D62 0x04 8742 #define _TXB0D63 0x08 8743 #define _TXB0D64 0x10 8744 #define _TXB0D65 0x20 8745 #define _TXB0D66 0x40 8746 #define _TXB0D67 0x80 8747 8748 //============================================================================== 8749 8750 8751 //============================================================================== 8752 // TXB0D7 Bits 8753 8754 extern __at(0x0F4D) __sfr TXB0D7; 8755 8756 typedef struct 8757 { 8758 unsigned TXB0D70 : 1; 8759 unsigned TXB0D71 : 1; 8760 unsigned TXB0D72 : 1; 8761 unsigned TXB0D73 : 1; 8762 unsigned TXB0D74 : 1; 8763 unsigned TXB0D75 : 1; 8764 unsigned TXB0D76 : 1; 8765 unsigned TXB0D77 : 1; 8766 } __TXB0D7bits_t; 8767 8768 extern __at(0x0F4D) volatile __TXB0D7bits_t TXB0D7bits; 8769 8770 #define _TXB0D70 0x01 8771 #define _TXB0D71 0x02 8772 #define _TXB0D72 0x04 8773 #define _TXB0D73 0x08 8774 #define _TXB0D74 0x10 8775 #define _TXB0D75 0x20 8776 #define _TXB0D76 0x40 8777 #define _TXB0D77 0x80 8778 8779 //============================================================================== 8780 8781 8782 //============================================================================== 8783 // CANSTAT_RO1 Bits 8784 8785 extern __at(0x0F4E) __sfr CANSTAT_RO1; 8786 8787 typedef union 8788 { 8789 struct 8790 { 8791 unsigned EICODE0 : 1; 8792 unsigned EICODE1_ICODE0 : 1; 8793 unsigned EICODE2_ICODE1 : 1; 8794 unsigned EICODE3_ICODE2 : 1; 8795 unsigned EICODE4 : 1; 8796 unsigned OPMODE0 : 1; 8797 unsigned OPMODE1 : 1; 8798 unsigned OPMODE2 : 1; 8799 }; 8800 8801 struct 8802 { 8803 unsigned : 5; 8804 unsigned OPMODE : 3; 8805 }; 8806 } __CANSTAT_RO1bits_t; 8807 8808 extern __at(0x0F4E) volatile __CANSTAT_RO1bits_t CANSTAT_RO1bits; 8809 8810 #define _CANSTAT_RO1_EICODE0 0x01 8811 #define _CANSTAT_RO1_EICODE1_ICODE0 0x02 8812 #define _CANSTAT_RO1_EICODE2_ICODE1 0x04 8813 #define _CANSTAT_RO1_EICODE3_ICODE2 0x08 8814 #define _CANSTAT_RO1_EICODE4 0x10 8815 #define _CANSTAT_RO1_OPMODE0 0x20 8816 #define _CANSTAT_RO1_OPMODE1 0x40 8817 #define _CANSTAT_RO1_OPMODE2 0x80 8818 8819 //============================================================================== 8820 8821 8822 //============================================================================== 8823 // CANCON_RO1 Bits 8824 8825 extern __at(0x0F4F) __sfr CANCON_RO1; 8826 8827 typedef union 8828 { 8829 struct 8830 { 8831 unsigned FP0 : 1; 8832 unsigned WIN0_FP1 : 1; 8833 unsigned WIN1_FP2 : 1; 8834 unsigned WIN2_FP3 : 1; 8835 unsigned ABAT : 1; 8836 unsigned REQOP0 : 1; 8837 unsigned REQOP1 : 1; 8838 unsigned REQOP2 : 1; 8839 }; 8840 8841 struct 8842 { 8843 unsigned : 5; 8844 unsigned REQOP : 3; 8845 }; 8846 } __CANCON_RO1bits_t; 8847 8848 extern __at(0x0F4F) volatile __CANCON_RO1bits_t CANCON_RO1bits; 8849 8850 #define _CANCON_RO1_FP0 0x01 8851 #define _CANCON_RO1_WIN0_FP1 0x02 8852 #define _CANCON_RO1_WIN1_FP2 0x04 8853 #define _CANCON_RO1_WIN2_FP3 0x08 8854 #define _CANCON_RO1_ABAT 0x10 8855 #define _CANCON_RO1_REQOP0 0x20 8856 #define _CANCON_RO1_REQOP1 0x40 8857 #define _CANCON_RO1_REQOP2 0x80 8858 8859 //============================================================================== 8860 8861 8862 //============================================================================== 8863 // RXB1CON Bits 8864 8865 extern __at(0x0F50) __sfr RXB1CON; 8866 8867 typedef union 8868 { 8869 struct 8870 { 8871 unsigned FILHIT0 : 1; 8872 unsigned FILHIT1 : 1; 8873 unsigned FILHIT2 : 1; 8874 unsigned RXRTRRO_FILHIT3 : 1; 8875 unsigned FILHIT4 : 1; 8876 unsigned RXM0_RTRRO : 1; 8877 unsigned RXM1 : 1; 8878 unsigned RXFUL : 1; 8879 }; 8880 8881 struct 8882 { 8883 unsigned : 1; 8884 unsigned : 1; 8885 unsigned : 1; 8886 unsigned RXRTRRO : 1; 8887 unsigned : 1; 8888 unsigned RXM0 : 1; 8889 unsigned : 1; 8890 unsigned : 1; 8891 }; 8892 8893 struct 8894 { 8895 unsigned : 1; 8896 unsigned : 1; 8897 unsigned : 1; 8898 unsigned FILHIT3 : 1; 8899 unsigned : 1; 8900 unsigned RTRRO : 1; 8901 unsigned : 1; 8902 unsigned : 1; 8903 }; 8904 8905 struct 8906 { 8907 unsigned : 1; 8908 unsigned : 1; 8909 unsigned : 1; 8910 unsigned RXRTRR0 : 1; 8911 unsigned : 1; 8912 unsigned : 1; 8913 unsigned : 1; 8914 unsigned : 1; 8915 }; 8916 8917 struct 8918 { 8919 unsigned : 1; 8920 unsigned : 1; 8921 unsigned : 1; 8922 unsigned RTRRO_FILHIT3 : 1; 8923 unsigned : 1; 8924 unsigned : 1; 8925 unsigned : 1; 8926 unsigned : 1; 8927 }; 8928 8929 struct 8930 { 8931 unsigned FILHIT : 5; 8932 unsigned : 3; 8933 }; 8934 8935 struct 8936 { 8937 unsigned : 5; 8938 unsigned RXM : 2; 8939 unsigned : 1; 8940 }; 8941 } __RXB1CONbits_t; 8942 8943 extern __at(0x0F50) volatile __RXB1CONbits_t RXB1CONbits; 8944 8945 #define _RXB1CON_FILHIT0 0x01 8946 #define _RXB1CON_FILHIT1 0x02 8947 #define _RXB1CON_FILHIT2 0x04 8948 #define _RXB1CON_RXRTRRO_FILHIT3 0x08 8949 #define _RXB1CON_RXRTRRO 0x08 8950 #define _RXB1CON_FILHIT3 0x08 8951 #define _RXB1CON_RXRTRR0 0x08 8952 #define _RXB1CON_RTRRO_FILHIT3 0x08 8953 #define _RXB1CON_FILHIT4 0x10 8954 #define _RXB1CON_RXM0_RTRRO 0x20 8955 #define _RXB1CON_RXM0 0x20 8956 #define _RXB1CON_RTRRO 0x20 8957 #define _RXB1CON_RXM1 0x40 8958 #define _RXB1CON_RXFUL 0x80 8959 8960 //============================================================================== 8961 8962 8963 //============================================================================== 8964 // RXB1SIDH Bits 8965 8966 extern __at(0x0F51) __sfr RXB1SIDH; 8967 8968 typedef struct 8969 { 8970 unsigned SID3 : 1; 8971 unsigned SID4 : 1; 8972 unsigned SID5 : 1; 8973 unsigned SID6 : 1; 8974 unsigned SID7 : 1; 8975 unsigned SID8 : 1; 8976 unsigned SID9 : 1; 8977 unsigned SID10 : 1; 8978 } __RXB1SIDHbits_t; 8979 8980 extern __at(0x0F51) volatile __RXB1SIDHbits_t RXB1SIDHbits; 8981 8982 #define _RXB1SIDH_SID3 0x01 8983 #define _RXB1SIDH_SID4 0x02 8984 #define _RXB1SIDH_SID5 0x04 8985 #define _RXB1SIDH_SID6 0x08 8986 #define _RXB1SIDH_SID7 0x10 8987 #define _RXB1SIDH_SID8 0x20 8988 #define _RXB1SIDH_SID9 0x40 8989 #define _RXB1SIDH_SID10 0x80 8990 8991 //============================================================================== 8992 8993 8994 //============================================================================== 8995 // RXB1SIDL Bits 8996 8997 extern __at(0x0F52) __sfr RXB1SIDL; 8998 8999 typedef union 9000 { 9001 struct 9002 { 9003 unsigned EID16 : 1; 9004 unsigned EID17 : 1; 9005 unsigned : 1; 9006 unsigned EXID : 1; 9007 unsigned SRR : 1; 9008 unsigned SID0 : 1; 9009 unsigned SID1 : 1; 9010 unsigned SID2 : 1; 9011 }; 9012 9013 struct 9014 { 9015 unsigned : 5; 9016 unsigned SID : 3; 9017 }; 9018 } __RXB1SIDLbits_t; 9019 9020 extern __at(0x0F52) volatile __RXB1SIDLbits_t RXB1SIDLbits; 9021 9022 #define _RXB1SIDL_EID16 0x01 9023 #define _RXB1SIDL_EID17 0x02 9024 #define _RXB1SIDL_EXID 0x08 9025 #define _RXB1SIDL_SRR 0x10 9026 #define _RXB1SIDL_SID0 0x20 9027 #define _RXB1SIDL_SID1 0x40 9028 #define _RXB1SIDL_SID2 0x80 9029 9030 //============================================================================== 9031 9032 9033 //============================================================================== 9034 // RXB1EIDH Bits 9035 9036 extern __at(0x0F53) __sfr RXB1EIDH; 9037 9038 typedef struct 9039 { 9040 unsigned EID8 : 1; 9041 unsigned EID9 : 1; 9042 unsigned EID10 : 1; 9043 unsigned EID11 : 1; 9044 unsigned EID12 : 1; 9045 unsigned EID13 : 1; 9046 unsigned EID14 : 1; 9047 unsigned EID15 : 1; 9048 } __RXB1EIDHbits_t; 9049 9050 extern __at(0x0F53) volatile __RXB1EIDHbits_t RXB1EIDHbits; 9051 9052 #define _RXB1EIDH_EID8 0x01 9053 #define _RXB1EIDH_EID9 0x02 9054 #define _RXB1EIDH_EID10 0x04 9055 #define _RXB1EIDH_EID11 0x08 9056 #define _RXB1EIDH_EID12 0x10 9057 #define _RXB1EIDH_EID13 0x20 9058 #define _RXB1EIDH_EID14 0x40 9059 #define _RXB1EIDH_EID15 0x80 9060 9061 //============================================================================== 9062 9063 9064 //============================================================================== 9065 // RXB1EIDL Bits 9066 9067 extern __at(0x0F54) __sfr RXB1EIDL; 9068 9069 typedef struct 9070 { 9071 unsigned EID0 : 1; 9072 unsigned EID1 : 1; 9073 unsigned EID2 : 1; 9074 unsigned EID3 : 1; 9075 unsigned EID4 : 1; 9076 unsigned EID5 : 1; 9077 unsigned EID6 : 1; 9078 unsigned EID7 : 1; 9079 } __RXB1EIDLbits_t; 9080 9081 extern __at(0x0F54) volatile __RXB1EIDLbits_t RXB1EIDLbits; 9082 9083 #define _RXB1EIDL_EID0 0x01 9084 #define _RXB1EIDL_EID1 0x02 9085 #define _RXB1EIDL_EID2 0x04 9086 #define _RXB1EIDL_EID3 0x08 9087 #define _RXB1EIDL_EID4 0x10 9088 #define _RXB1EIDL_EID5 0x20 9089 #define _RXB1EIDL_EID6 0x40 9090 #define _RXB1EIDL_EID7 0x80 9091 9092 //============================================================================== 9093 9094 9095 //============================================================================== 9096 // RXB1DLC Bits 9097 9098 extern __at(0x0F55) __sfr RXB1DLC; 9099 9100 typedef union 9101 { 9102 struct 9103 { 9104 unsigned DLC0 : 1; 9105 unsigned DLC1 : 1; 9106 unsigned DLC2 : 1; 9107 unsigned DLC3 : 1; 9108 unsigned RB0 : 1; 9109 unsigned RB1 : 1; 9110 unsigned RXRTR : 1; 9111 unsigned : 1; 9112 }; 9113 9114 struct 9115 { 9116 unsigned : 1; 9117 unsigned : 1; 9118 unsigned : 1; 9119 unsigned : 1; 9120 unsigned RESRB0 : 1; 9121 unsigned RESRB1 : 1; 9122 unsigned : 1; 9123 unsigned : 1; 9124 }; 9125 9126 struct 9127 { 9128 unsigned DLC : 4; 9129 unsigned : 4; 9130 }; 9131 9132 struct 9133 { 9134 unsigned : 4; 9135 unsigned RESRB : 2; 9136 unsigned : 2; 9137 }; 9138 9139 struct 9140 { 9141 unsigned : 4; 9142 unsigned RB : 2; 9143 unsigned : 2; 9144 }; 9145 } __RXB1DLCbits_t; 9146 9147 extern __at(0x0F55) volatile __RXB1DLCbits_t RXB1DLCbits; 9148 9149 #define _RXB1DLC_DLC0 0x01 9150 #define _RXB1DLC_DLC1 0x02 9151 #define _RXB1DLC_DLC2 0x04 9152 #define _RXB1DLC_DLC3 0x08 9153 #define _RXB1DLC_RB0 0x10 9154 #define _RXB1DLC_RESRB0 0x10 9155 #define _RXB1DLC_RB1 0x20 9156 #define _RXB1DLC_RESRB1 0x20 9157 #define _RXB1DLC_RXRTR 0x40 9158 9159 //============================================================================== 9160 9161 9162 //============================================================================== 9163 // RXB1D0 Bits 9164 9165 extern __at(0x0F56) __sfr RXB1D0; 9166 9167 typedef struct 9168 { 9169 unsigned RXB1D00 : 1; 9170 unsigned RXB1D01 : 1; 9171 unsigned RXB1D02 : 1; 9172 unsigned RXB1D03 : 1; 9173 unsigned RXB1D04 : 1; 9174 unsigned RXB1D05 : 1; 9175 unsigned RXB1D06 : 1; 9176 unsigned RXB1D07 : 1; 9177 } __RXB1D0bits_t; 9178 9179 extern __at(0x0F56) volatile __RXB1D0bits_t RXB1D0bits; 9180 9181 #define _RXB1D00 0x01 9182 #define _RXB1D01 0x02 9183 #define _RXB1D02 0x04 9184 #define _RXB1D03 0x08 9185 #define _RXB1D04 0x10 9186 #define _RXB1D05 0x20 9187 #define _RXB1D06 0x40 9188 #define _RXB1D07 0x80 9189 9190 //============================================================================== 9191 9192 9193 //============================================================================== 9194 // RXB1D1 Bits 9195 9196 extern __at(0x0F57) __sfr RXB1D1; 9197 9198 typedef struct 9199 { 9200 unsigned RXB1D10 : 1; 9201 unsigned RXB1D11 : 1; 9202 unsigned RXB1D12 : 1; 9203 unsigned RXB1D13 : 1; 9204 unsigned RXB1D14 : 1; 9205 unsigned RXB1D15 : 1; 9206 unsigned RXB1D16 : 1; 9207 unsigned RXB1D17 : 1; 9208 } __RXB1D1bits_t; 9209 9210 extern __at(0x0F57) volatile __RXB1D1bits_t RXB1D1bits; 9211 9212 #define _RXB1D10 0x01 9213 #define _RXB1D11 0x02 9214 #define _RXB1D12 0x04 9215 #define _RXB1D13 0x08 9216 #define _RXB1D14 0x10 9217 #define _RXB1D15 0x20 9218 #define _RXB1D16 0x40 9219 #define _RXB1D17 0x80 9220 9221 //============================================================================== 9222 9223 9224 //============================================================================== 9225 // RXB1D2 Bits 9226 9227 extern __at(0x0F58) __sfr RXB1D2; 9228 9229 typedef struct 9230 { 9231 unsigned RXB1D20 : 1; 9232 unsigned RXB1D21 : 1; 9233 unsigned RXB1D22 : 1; 9234 unsigned RXB1D23 : 1; 9235 unsigned RXB1D24 : 1; 9236 unsigned RXB1D25 : 1; 9237 unsigned RXB1D26 : 1; 9238 unsigned RXB1D27 : 1; 9239 } __RXB1D2bits_t; 9240 9241 extern __at(0x0F58) volatile __RXB1D2bits_t RXB1D2bits; 9242 9243 #define _RXB1D20 0x01 9244 #define _RXB1D21 0x02 9245 #define _RXB1D22 0x04 9246 #define _RXB1D23 0x08 9247 #define _RXB1D24 0x10 9248 #define _RXB1D25 0x20 9249 #define _RXB1D26 0x40 9250 #define _RXB1D27 0x80 9251 9252 //============================================================================== 9253 9254 9255 //============================================================================== 9256 // RXB1D3 Bits 9257 9258 extern __at(0x0F59) __sfr RXB1D3; 9259 9260 typedef struct 9261 { 9262 unsigned RXB1D30 : 1; 9263 unsigned RXB1D31 : 1; 9264 unsigned RXB1D32 : 1; 9265 unsigned RXB1D33 : 1; 9266 unsigned RXB1D34 : 1; 9267 unsigned RXB1D35 : 1; 9268 unsigned RXB1D36 : 1; 9269 unsigned RXB1D37 : 1; 9270 } __RXB1D3bits_t; 9271 9272 extern __at(0x0F59) volatile __RXB1D3bits_t RXB1D3bits; 9273 9274 #define _RXB1D30 0x01 9275 #define _RXB1D31 0x02 9276 #define _RXB1D32 0x04 9277 #define _RXB1D33 0x08 9278 #define _RXB1D34 0x10 9279 #define _RXB1D35 0x20 9280 #define _RXB1D36 0x40 9281 #define _RXB1D37 0x80 9282 9283 //============================================================================== 9284 9285 9286 //============================================================================== 9287 // RXB1D4 Bits 9288 9289 extern __at(0x0F5A) __sfr RXB1D4; 9290 9291 typedef struct 9292 { 9293 unsigned RXB1D40 : 1; 9294 unsigned RXB1D41 : 1; 9295 unsigned RXB1D42 : 1; 9296 unsigned RXB1D43 : 1; 9297 unsigned RXB1D44 : 1; 9298 unsigned RXB1D45 : 1; 9299 unsigned RXB1D46 : 1; 9300 unsigned RXB1D47 : 1; 9301 } __RXB1D4bits_t; 9302 9303 extern __at(0x0F5A) volatile __RXB1D4bits_t RXB1D4bits; 9304 9305 #define _RXB1D40 0x01 9306 #define _RXB1D41 0x02 9307 #define _RXB1D42 0x04 9308 #define _RXB1D43 0x08 9309 #define _RXB1D44 0x10 9310 #define _RXB1D45 0x20 9311 #define _RXB1D46 0x40 9312 #define _RXB1D47 0x80 9313 9314 //============================================================================== 9315 9316 9317 //============================================================================== 9318 // RXB1D5 Bits 9319 9320 extern __at(0x0F5B) __sfr RXB1D5; 9321 9322 typedef struct 9323 { 9324 unsigned RXB1D50 : 1; 9325 unsigned RXB1D51 : 1; 9326 unsigned RXB1D52 : 1; 9327 unsigned RXB1D53 : 1; 9328 unsigned RXB1D54 : 1; 9329 unsigned RXB1D55 : 1; 9330 unsigned RXB1D56 : 1; 9331 unsigned RXB1D57 : 1; 9332 } __RXB1D5bits_t; 9333 9334 extern __at(0x0F5B) volatile __RXB1D5bits_t RXB1D5bits; 9335 9336 #define _RXB1D50 0x01 9337 #define _RXB1D51 0x02 9338 #define _RXB1D52 0x04 9339 #define _RXB1D53 0x08 9340 #define _RXB1D54 0x10 9341 #define _RXB1D55 0x20 9342 #define _RXB1D56 0x40 9343 #define _RXB1D57 0x80 9344 9345 //============================================================================== 9346 9347 9348 //============================================================================== 9349 // RXB1D6 Bits 9350 9351 extern __at(0x0F5C) __sfr RXB1D6; 9352 9353 typedef struct 9354 { 9355 unsigned RXB1D60 : 1; 9356 unsigned RXB1D61 : 1; 9357 unsigned RXB1D62 : 1; 9358 unsigned RXB1D63 : 1; 9359 unsigned RXB1D64 : 1; 9360 unsigned RXB1D65 : 1; 9361 unsigned RXB1D66 : 1; 9362 unsigned RXB1D67 : 1; 9363 } __RXB1D6bits_t; 9364 9365 extern __at(0x0F5C) volatile __RXB1D6bits_t RXB1D6bits; 9366 9367 #define _RXB1D60 0x01 9368 #define _RXB1D61 0x02 9369 #define _RXB1D62 0x04 9370 #define _RXB1D63 0x08 9371 #define _RXB1D64 0x10 9372 #define _RXB1D65 0x20 9373 #define _RXB1D66 0x40 9374 #define _RXB1D67 0x80 9375 9376 //============================================================================== 9377 9378 9379 //============================================================================== 9380 // RXB1D7 Bits 9381 9382 extern __at(0x0F5D) __sfr RXB1D7; 9383 9384 typedef struct 9385 { 9386 unsigned RXB1D70 : 1; 9387 unsigned RXB1D71 : 1; 9388 unsigned RXB1D72 : 1; 9389 unsigned RXB1D73 : 1; 9390 unsigned RXB1D74 : 1; 9391 unsigned RXB1D75 : 1; 9392 unsigned RXB1D76 : 1; 9393 unsigned RXB1D77 : 1; 9394 } __RXB1D7bits_t; 9395 9396 extern __at(0x0F5D) volatile __RXB1D7bits_t RXB1D7bits; 9397 9398 #define _RXB1D70 0x01 9399 #define _RXB1D71 0x02 9400 #define _RXB1D72 0x04 9401 #define _RXB1D73 0x08 9402 #define _RXB1D74 0x10 9403 #define _RXB1D75 0x20 9404 #define _RXB1D76 0x40 9405 #define _RXB1D77 0x80 9406 9407 //============================================================================== 9408 9409 9410 //============================================================================== 9411 // CANSTAT_RO0 Bits 9412 9413 extern __at(0x0F5E) __sfr CANSTAT_RO0; 9414 9415 typedef union 9416 { 9417 struct 9418 { 9419 unsigned EICODE0 : 1; 9420 unsigned EICODE1_ICODE0 : 1; 9421 unsigned EICODE2_ICODE1 : 1; 9422 unsigned EICODE3_ICODE2 : 1; 9423 unsigned EICODE4 : 1; 9424 unsigned OPMODE0 : 1; 9425 unsigned OPMODE1 : 1; 9426 unsigned OPMODE2 : 1; 9427 }; 9428 9429 struct 9430 { 9431 unsigned : 5; 9432 unsigned OPMODE : 3; 9433 }; 9434 } __CANSTAT_RO0bits_t; 9435 9436 extern __at(0x0F5E) volatile __CANSTAT_RO0bits_t CANSTAT_RO0bits; 9437 9438 #define _CANSTAT_RO0_EICODE0 0x01 9439 #define _CANSTAT_RO0_EICODE1_ICODE0 0x02 9440 #define _CANSTAT_RO0_EICODE2_ICODE1 0x04 9441 #define _CANSTAT_RO0_EICODE3_ICODE2 0x08 9442 #define _CANSTAT_RO0_EICODE4 0x10 9443 #define _CANSTAT_RO0_OPMODE0 0x20 9444 #define _CANSTAT_RO0_OPMODE1 0x40 9445 #define _CANSTAT_RO0_OPMODE2 0x80 9446 9447 //============================================================================== 9448 9449 9450 //============================================================================== 9451 // CANCON_RO0 Bits 9452 9453 extern __at(0x0F5F) __sfr CANCON_RO0; 9454 9455 typedef union 9456 { 9457 struct 9458 { 9459 unsigned FP0 : 1; 9460 unsigned WIN0_FP1 : 1; 9461 unsigned WIN1_FP2 : 1; 9462 unsigned WIN2_FP3 : 1; 9463 unsigned ABAT : 1; 9464 unsigned REQOP0 : 1; 9465 unsigned REQOP1 : 1; 9466 unsigned REQOP2 : 1; 9467 }; 9468 9469 struct 9470 { 9471 unsigned : 5; 9472 unsigned REQOP : 3; 9473 }; 9474 } __CANCON_RO0bits_t; 9475 9476 extern __at(0x0F5F) volatile __CANCON_RO0bits_t CANCON_RO0bits; 9477 9478 #define _CANCON_RO0_FP0 0x01 9479 #define _CANCON_RO0_WIN0_FP1 0x02 9480 #define _CANCON_RO0_WIN1_FP2 0x04 9481 #define _CANCON_RO0_WIN2_FP3 0x08 9482 #define _CANCON_RO0_ABAT 0x10 9483 #define _CANCON_RO0_REQOP0 0x20 9484 #define _CANCON_RO0_REQOP1 0x40 9485 #define _CANCON_RO0_REQOP2 0x80 9486 9487 //============================================================================== 9488 9489 9490 //============================================================================== 9491 // RXB0CON Bits 9492 9493 extern __at(0x0F60) __sfr RXB0CON; 9494 9495 typedef union 9496 { 9497 struct 9498 { 9499 unsigned FILHIT0 : 1; 9500 unsigned JTOFF_FILHIT1 : 1; 9501 unsigned RXB0DBEN_FILHIT2 : 1; 9502 unsigned RXRTRRO_FILHIT3 : 1; 9503 unsigned FILHIT4 : 1; 9504 unsigned RXM0_RTRRO : 1; 9505 unsigned RXM1 : 1; 9506 unsigned RXFUL : 1; 9507 }; 9508 9509 struct 9510 { 9511 unsigned : 1; 9512 unsigned JTOFF : 1; 9513 unsigned RXB0DBEN : 1; 9514 unsigned RXRTRRO : 1; 9515 unsigned : 1; 9516 unsigned RXM0 : 1; 9517 unsigned : 1; 9518 unsigned : 1; 9519 }; 9520 9521 struct 9522 { 9523 unsigned : 1; 9524 unsigned FILHIT1 : 1; 9525 unsigned FILHIT2 : 1; 9526 unsigned FILHIT3 : 1; 9527 unsigned : 1; 9528 unsigned RTRRO : 1; 9529 unsigned : 1; 9530 unsigned : 1; 9531 }; 9532 9533 struct 9534 { 9535 unsigned : 1; 9536 unsigned : 1; 9537 unsigned : 1; 9538 unsigned RTRRO_FILHIT3 : 1; 9539 unsigned : 1; 9540 unsigned RTRR0 : 1; 9541 unsigned : 1; 9542 unsigned : 1; 9543 }; 9544 9545 struct 9546 { 9547 unsigned FILHIT : 5; 9548 unsigned : 3; 9549 }; 9550 9551 struct 9552 { 9553 unsigned : 5; 9554 unsigned RXM : 2; 9555 unsigned : 1; 9556 }; 9557 } __RXB0CONbits_t; 9558 9559 extern __at(0x0F60) volatile __RXB0CONbits_t RXB0CONbits; 9560 9561 #define _RXB0CON_FILHIT0 0x01 9562 #define _RXB0CON_JTOFF_FILHIT1 0x02 9563 #define _RXB0CON_JTOFF 0x02 9564 #define _RXB0CON_FILHIT1 0x02 9565 #define _RXB0CON_RXB0DBEN_FILHIT2 0x04 9566 #define _RXB0CON_RXB0DBEN 0x04 9567 #define _RXB0CON_FILHIT2 0x04 9568 #define _RXB0CON_RXRTRRO_FILHIT3 0x08 9569 #define _RXB0CON_RXRTRRO 0x08 9570 #define _RXB0CON_FILHIT3 0x08 9571 #define _RXB0CON_RTRRO_FILHIT3 0x08 9572 #define _RXB0CON_FILHIT4 0x10 9573 #define _RXB0CON_RXM0_RTRRO 0x20 9574 #define _RXB0CON_RXM0 0x20 9575 #define _RXB0CON_RTRRO 0x20 9576 #define _RXB0CON_RTRR0 0x20 9577 #define _RXB0CON_RXM1 0x40 9578 #define _RXB0CON_RXFUL 0x80 9579 9580 //============================================================================== 9581 9582 9583 //============================================================================== 9584 // RXB0SIDH Bits 9585 9586 extern __at(0x0F61) __sfr RXB0SIDH; 9587 9588 typedef struct 9589 { 9590 unsigned SID3 : 1; 9591 unsigned SID4 : 1; 9592 unsigned SID5 : 1; 9593 unsigned SID6 : 1; 9594 unsigned SID7 : 1; 9595 unsigned SID8 : 1; 9596 unsigned SID9 : 1; 9597 unsigned SID10 : 1; 9598 } __RXB0SIDHbits_t; 9599 9600 extern __at(0x0F61) volatile __RXB0SIDHbits_t RXB0SIDHbits; 9601 9602 #define _RXB0SIDH_SID3 0x01 9603 #define _RXB0SIDH_SID4 0x02 9604 #define _RXB0SIDH_SID5 0x04 9605 #define _RXB0SIDH_SID6 0x08 9606 #define _RXB0SIDH_SID7 0x10 9607 #define _RXB0SIDH_SID8 0x20 9608 #define _RXB0SIDH_SID9 0x40 9609 #define _RXB0SIDH_SID10 0x80 9610 9611 //============================================================================== 9612 9613 9614 //============================================================================== 9615 // RXB0SIDL Bits 9616 9617 extern __at(0x0F62) __sfr RXB0SIDL; 9618 9619 typedef union 9620 { 9621 struct 9622 { 9623 unsigned EID16 : 1; 9624 unsigned EID17 : 1; 9625 unsigned : 1; 9626 unsigned EXID : 1; 9627 unsigned SRR : 1; 9628 unsigned SID0 : 1; 9629 unsigned SID1 : 1; 9630 unsigned SID2 : 1; 9631 }; 9632 9633 struct 9634 { 9635 unsigned : 5; 9636 unsigned SID : 3; 9637 }; 9638 } __RXB0SIDLbits_t; 9639 9640 extern __at(0x0F62) volatile __RXB0SIDLbits_t RXB0SIDLbits; 9641 9642 #define _RXB0SIDL_EID16 0x01 9643 #define _RXB0SIDL_EID17 0x02 9644 #define _RXB0SIDL_EXID 0x08 9645 #define _RXB0SIDL_SRR 0x10 9646 #define _RXB0SIDL_SID0 0x20 9647 #define _RXB0SIDL_SID1 0x40 9648 #define _RXB0SIDL_SID2 0x80 9649 9650 //============================================================================== 9651 9652 9653 //============================================================================== 9654 // RXB0EIDH Bits 9655 9656 extern __at(0x0F63) __sfr RXB0EIDH; 9657 9658 typedef struct 9659 { 9660 unsigned EID8 : 1; 9661 unsigned EID9 : 1; 9662 unsigned EID10 : 1; 9663 unsigned EID11 : 1; 9664 unsigned EID12 : 1; 9665 unsigned EID13 : 1; 9666 unsigned EID14 : 1; 9667 unsigned EID15 : 1; 9668 } __RXB0EIDHbits_t; 9669 9670 extern __at(0x0F63) volatile __RXB0EIDHbits_t RXB0EIDHbits; 9671 9672 #define _RXB0EIDH_EID8 0x01 9673 #define _RXB0EIDH_EID9 0x02 9674 #define _RXB0EIDH_EID10 0x04 9675 #define _RXB0EIDH_EID11 0x08 9676 #define _RXB0EIDH_EID12 0x10 9677 #define _RXB0EIDH_EID13 0x20 9678 #define _RXB0EIDH_EID14 0x40 9679 #define _RXB0EIDH_EID15 0x80 9680 9681 //============================================================================== 9682 9683 9684 //============================================================================== 9685 // RXB0EIDL Bits 9686 9687 extern __at(0x0F64) __sfr RXB0EIDL; 9688 9689 typedef struct 9690 { 9691 unsigned EID0 : 1; 9692 unsigned EID1 : 1; 9693 unsigned EID2 : 1; 9694 unsigned EID3 : 1; 9695 unsigned EID4 : 1; 9696 unsigned EID5 : 1; 9697 unsigned EID6 : 1; 9698 unsigned EID7 : 1; 9699 } __RXB0EIDLbits_t; 9700 9701 extern __at(0x0F64) volatile __RXB0EIDLbits_t RXB0EIDLbits; 9702 9703 #define _RXB0EIDL_EID0 0x01 9704 #define _RXB0EIDL_EID1 0x02 9705 #define _RXB0EIDL_EID2 0x04 9706 #define _RXB0EIDL_EID3 0x08 9707 #define _RXB0EIDL_EID4 0x10 9708 #define _RXB0EIDL_EID5 0x20 9709 #define _RXB0EIDL_EID6 0x40 9710 #define _RXB0EIDL_EID7 0x80 9711 9712 //============================================================================== 9713 9714 9715 //============================================================================== 9716 // RXB0DLC Bits 9717 9718 extern __at(0x0F65) __sfr RXB0DLC; 9719 9720 typedef union 9721 { 9722 struct 9723 { 9724 unsigned DLC0 : 1; 9725 unsigned DLC1 : 1; 9726 unsigned DLC2 : 1; 9727 unsigned DLC3 : 1; 9728 unsigned RB0 : 1; 9729 unsigned RB1 : 1; 9730 unsigned RXRTR : 1; 9731 unsigned : 1; 9732 }; 9733 9734 struct 9735 { 9736 unsigned : 1; 9737 unsigned : 1; 9738 unsigned : 1; 9739 unsigned : 1; 9740 unsigned RESRB0 : 1; 9741 unsigned RESRB1 : 1; 9742 unsigned : 1; 9743 unsigned : 1; 9744 }; 9745 9746 struct 9747 { 9748 unsigned DLC : 4; 9749 unsigned : 4; 9750 }; 9751 9752 struct 9753 { 9754 unsigned : 4; 9755 unsigned RB : 2; 9756 unsigned : 2; 9757 }; 9758 9759 struct 9760 { 9761 unsigned : 4; 9762 unsigned RESRB : 2; 9763 unsigned : 2; 9764 }; 9765 } __RXB0DLCbits_t; 9766 9767 extern __at(0x0F65) volatile __RXB0DLCbits_t RXB0DLCbits; 9768 9769 #define _RXB0DLC_DLC0 0x01 9770 #define _RXB0DLC_DLC1 0x02 9771 #define _RXB0DLC_DLC2 0x04 9772 #define _RXB0DLC_DLC3 0x08 9773 #define _RXB0DLC_RB0 0x10 9774 #define _RXB0DLC_RESRB0 0x10 9775 #define _RXB0DLC_RB1 0x20 9776 #define _RXB0DLC_RESRB1 0x20 9777 #define _RXB0DLC_RXRTR 0x40 9778 9779 //============================================================================== 9780 9781 9782 //============================================================================== 9783 // RXB0D0 Bits 9784 9785 extern __at(0x0F66) __sfr RXB0D0; 9786 9787 typedef struct 9788 { 9789 unsigned RXB0D00 : 1; 9790 unsigned RXB0D01 : 1; 9791 unsigned RXB0D02 : 1; 9792 unsigned RXB0D03 : 1; 9793 unsigned RXB0D04 : 1; 9794 unsigned RXB0D05 : 1; 9795 unsigned RXB0D06 : 1; 9796 unsigned RXB0D07 : 1; 9797 } __RXB0D0bits_t; 9798 9799 extern __at(0x0F66) volatile __RXB0D0bits_t RXB0D0bits; 9800 9801 #define _RXB0D00 0x01 9802 #define _RXB0D01 0x02 9803 #define _RXB0D02 0x04 9804 #define _RXB0D03 0x08 9805 #define _RXB0D04 0x10 9806 #define _RXB0D05 0x20 9807 #define _RXB0D06 0x40 9808 #define _RXB0D07 0x80 9809 9810 //============================================================================== 9811 9812 9813 //============================================================================== 9814 // RXB0D1 Bits 9815 9816 extern __at(0x0F67) __sfr RXB0D1; 9817 9818 typedef struct 9819 { 9820 unsigned RXB0D10 : 1; 9821 unsigned RXB0D11 : 1; 9822 unsigned RXB0D12 : 1; 9823 unsigned RXB0D13 : 1; 9824 unsigned RXB0D14 : 1; 9825 unsigned RXB0D15 : 1; 9826 unsigned RXB0D16 : 1; 9827 unsigned RXB0D17 : 1; 9828 } __RXB0D1bits_t; 9829 9830 extern __at(0x0F67) volatile __RXB0D1bits_t RXB0D1bits; 9831 9832 #define _RXB0D10 0x01 9833 #define _RXB0D11 0x02 9834 #define _RXB0D12 0x04 9835 #define _RXB0D13 0x08 9836 #define _RXB0D14 0x10 9837 #define _RXB0D15 0x20 9838 #define _RXB0D16 0x40 9839 #define _RXB0D17 0x80 9840 9841 //============================================================================== 9842 9843 9844 //============================================================================== 9845 // RXB0D2 Bits 9846 9847 extern __at(0x0F68) __sfr RXB0D2; 9848 9849 typedef struct 9850 { 9851 unsigned RXB0D20 : 1; 9852 unsigned RXB0D21 : 1; 9853 unsigned RXB0D22 : 1; 9854 unsigned RXB0D23 : 1; 9855 unsigned RXB0D24 : 1; 9856 unsigned RXB0D25 : 1; 9857 unsigned RXB0D26 : 1; 9858 unsigned RXB0D27 : 1; 9859 } __RXB0D2bits_t; 9860 9861 extern __at(0x0F68) volatile __RXB0D2bits_t RXB0D2bits; 9862 9863 #define _RXB0D20 0x01 9864 #define _RXB0D21 0x02 9865 #define _RXB0D22 0x04 9866 #define _RXB0D23 0x08 9867 #define _RXB0D24 0x10 9868 #define _RXB0D25 0x20 9869 #define _RXB0D26 0x40 9870 #define _RXB0D27 0x80 9871 9872 //============================================================================== 9873 9874 9875 //============================================================================== 9876 // RXB0D3 Bits 9877 9878 extern __at(0x0F69) __sfr RXB0D3; 9879 9880 typedef struct 9881 { 9882 unsigned RXB0D30 : 1; 9883 unsigned RXB0D31 : 1; 9884 unsigned RXB0D32 : 1; 9885 unsigned RXB0D33 : 1; 9886 unsigned RXB0D34 : 1; 9887 unsigned RXB0D35 : 1; 9888 unsigned RXB0D36 : 1; 9889 unsigned RXB0D37 : 1; 9890 } __RXB0D3bits_t; 9891 9892 extern __at(0x0F69) volatile __RXB0D3bits_t RXB0D3bits; 9893 9894 #define _RXB0D30 0x01 9895 #define _RXB0D31 0x02 9896 #define _RXB0D32 0x04 9897 #define _RXB0D33 0x08 9898 #define _RXB0D34 0x10 9899 #define _RXB0D35 0x20 9900 #define _RXB0D36 0x40 9901 #define _RXB0D37 0x80 9902 9903 //============================================================================== 9904 9905 9906 //============================================================================== 9907 // RXB0D4 Bits 9908 9909 extern __at(0x0F6A) __sfr RXB0D4; 9910 9911 typedef struct 9912 { 9913 unsigned RXB0D40 : 1; 9914 unsigned RXB0D41 : 1; 9915 unsigned RXB0D42 : 1; 9916 unsigned RXB0D43 : 1; 9917 unsigned RXB0D44 : 1; 9918 unsigned RXB0D45 : 1; 9919 unsigned RXB0D46 : 1; 9920 unsigned RXB0D47 : 1; 9921 } __RXB0D4bits_t; 9922 9923 extern __at(0x0F6A) volatile __RXB0D4bits_t RXB0D4bits; 9924 9925 #define _RXB0D40 0x01 9926 #define _RXB0D41 0x02 9927 #define _RXB0D42 0x04 9928 #define _RXB0D43 0x08 9929 #define _RXB0D44 0x10 9930 #define _RXB0D45 0x20 9931 #define _RXB0D46 0x40 9932 #define _RXB0D47 0x80 9933 9934 //============================================================================== 9935 9936 9937 //============================================================================== 9938 // RXB0D5 Bits 9939 9940 extern __at(0x0F6B) __sfr RXB0D5; 9941 9942 typedef struct 9943 { 9944 unsigned RXB0D50 : 1; 9945 unsigned RXB0D51 : 1; 9946 unsigned RXB0D52 : 1; 9947 unsigned RXB0D53 : 1; 9948 unsigned RXB0D54 : 1; 9949 unsigned RXB0D55 : 1; 9950 unsigned RXB0D56 : 1; 9951 unsigned RXB0D57 : 1; 9952 } __RXB0D5bits_t; 9953 9954 extern __at(0x0F6B) volatile __RXB0D5bits_t RXB0D5bits; 9955 9956 #define _RXB0D50 0x01 9957 #define _RXB0D51 0x02 9958 #define _RXB0D52 0x04 9959 #define _RXB0D53 0x08 9960 #define _RXB0D54 0x10 9961 #define _RXB0D55 0x20 9962 #define _RXB0D56 0x40 9963 #define _RXB0D57 0x80 9964 9965 //============================================================================== 9966 9967 9968 //============================================================================== 9969 // RXB0D6 Bits 9970 9971 extern __at(0x0F6C) __sfr RXB0D6; 9972 9973 typedef struct 9974 { 9975 unsigned RXB0D60 : 1; 9976 unsigned RXB0D61 : 1; 9977 unsigned RXB0D62 : 1; 9978 unsigned RXB0D63 : 1; 9979 unsigned RXB0D64 : 1; 9980 unsigned RXB0D65 : 1; 9981 unsigned RXB0D66 : 1; 9982 unsigned RXB0D67 : 1; 9983 } __RXB0D6bits_t; 9984 9985 extern __at(0x0F6C) volatile __RXB0D6bits_t RXB0D6bits; 9986 9987 #define _RXB0D60 0x01 9988 #define _RXB0D61 0x02 9989 #define _RXB0D62 0x04 9990 #define _RXB0D63 0x08 9991 #define _RXB0D64 0x10 9992 #define _RXB0D65 0x20 9993 #define _RXB0D66 0x40 9994 #define _RXB0D67 0x80 9995 9996 //============================================================================== 9997 9998 9999 //============================================================================== 10000 // RXB0D7 Bits 10001 10002 extern __at(0x0F6D) __sfr RXB0D7; 10003 10004 typedef struct 10005 { 10006 unsigned RXB0D70 : 1; 10007 unsigned RXB0D71 : 1; 10008 unsigned RXB0D72 : 1; 10009 unsigned RXB0D73 : 1; 10010 unsigned RXB0D74 : 1; 10011 unsigned RXB0D75 : 1; 10012 unsigned RXB0D76 : 1; 10013 unsigned RXB0D77 : 1; 10014 } __RXB0D7bits_t; 10015 10016 extern __at(0x0F6D) volatile __RXB0D7bits_t RXB0D7bits; 10017 10018 #define _RXB0D70 0x01 10019 #define _RXB0D71 0x02 10020 #define _RXB0D72 0x04 10021 #define _RXB0D73 0x08 10022 #define _RXB0D74 0x10 10023 #define _RXB0D75 0x20 10024 #define _RXB0D76 0x40 10025 #define _RXB0D77 0x80 10026 10027 //============================================================================== 10028 10029 10030 //============================================================================== 10031 // CANSTAT Bits 10032 10033 extern __at(0x0F6E) __sfr CANSTAT; 10034 10035 typedef union 10036 { 10037 struct 10038 { 10039 unsigned EICODE0 : 1; 10040 unsigned EICODE1_ICODE0 : 1; 10041 unsigned EICODE2_ICODE1 : 1; 10042 unsigned EICODE3_ICODE2 : 1; 10043 unsigned EICODE4 : 1; 10044 unsigned OPMODE0 : 1; 10045 unsigned OPMODE1 : 1; 10046 unsigned OPMODE2 : 1; 10047 }; 10048 10049 struct 10050 { 10051 unsigned : 1; 10052 unsigned ICODE0 : 1; 10053 unsigned ICODE1 : 1; 10054 unsigned ICODE2 : 1; 10055 unsigned : 1; 10056 unsigned : 1; 10057 unsigned : 1; 10058 unsigned : 1; 10059 }; 10060 10061 struct 10062 { 10063 unsigned : 1; 10064 unsigned EICODE1 : 1; 10065 unsigned EICODE2 : 1; 10066 unsigned EICODE3 : 1; 10067 unsigned : 1; 10068 unsigned : 1; 10069 unsigned : 1; 10070 unsigned : 1; 10071 }; 10072 10073 struct 10074 { 10075 unsigned EICODE : 5; 10076 unsigned : 3; 10077 }; 10078 10079 struct 10080 { 10081 unsigned : 1; 10082 unsigned ICODE : 3; 10083 unsigned : 4; 10084 }; 10085 10086 struct 10087 { 10088 unsigned : 5; 10089 unsigned OPMODE : 3; 10090 }; 10091 } __CANSTATbits_t; 10092 10093 extern __at(0x0F6E) volatile __CANSTATbits_t CANSTATbits; 10094 10095 #define _EICODE0 0x01 10096 #define _EICODE1_ICODE0 0x02 10097 #define _ICODE0 0x02 10098 #define _EICODE1 0x02 10099 #define _EICODE2_ICODE1 0x04 10100 #define _ICODE1 0x04 10101 #define _EICODE2 0x04 10102 #define _EICODE3_ICODE2 0x08 10103 #define _ICODE2 0x08 10104 #define _EICODE3 0x08 10105 #define _EICODE4 0x10 10106 #define _OPMODE0 0x20 10107 #define _OPMODE1 0x40 10108 #define _OPMODE2 0x80 10109 10110 //============================================================================== 10111 10112 10113 //============================================================================== 10114 // CANCON Bits 10115 10116 extern __at(0x0F6F) __sfr CANCON; 10117 10118 typedef union 10119 { 10120 struct 10121 { 10122 unsigned FP0 : 1; 10123 unsigned WIN0_FP1 : 1; 10124 unsigned WIN1_FP2 : 1; 10125 unsigned WIN2_FP3 : 1; 10126 unsigned ABAT : 1; 10127 unsigned REQOP0 : 1; 10128 unsigned REQOP1 : 1; 10129 unsigned REQOP2 : 1; 10130 }; 10131 10132 struct 10133 { 10134 unsigned : 1; 10135 unsigned WIN0 : 1; 10136 unsigned WIN1 : 1; 10137 unsigned WIN2 : 1; 10138 unsigned : 1; 10139 unsigned : 1; 10140 unsigned : 1; 10141 unsigned : 1; 10142 }; 10143 10144 struct 10145 { 10146 unsigned : 1; 10147 unsigned FP1 : 1; 10148 unsigned FP2 : 1; 10149 unsigned FP3 : 1; 10150 unsigned : 1; 10151 unsigned : 1; 10152 unsigned : 1; 10153 unsigned : 1; 10154 }; 10155 10156 struct 10157 { 10158 unsigned FP : 4; 10159 unsigned : 4; 10160 }; 10161 10162 struct 10163 { 10164 unsigned : 1; 10165 unsigned WIN : 3; 10166 unsigned : 4; 10167 }; 10168 10169 struct 10170 { 10171 unsigned : 5; 10172 unsigned REQOP : 3; 10173 }; 10174 } __CANCONbits_t; 10175 10176 extern __at(0x0F6F) volatile __CANCONbits_t CANCONbits; 10177 10178 #define _FP0 0x01 10179 #define _WIN0_FP1 0x02 10180 #define _WIN0 0x02 10181 #define _FP1 0x02 10182 #define _WIN1_FP2 0x04 10183 #define _WIN1 0x04 10184 #define _FP2 0x04 10185 #define _WIN2_FP3 0x08 10186 #define _WIN2 0x08 10187 #define _FP3 0x08 10188 #define _ABAT 0x10 10189 #define _REQOP0 0x20 10190 #define _REQOP1 0x40 10191 #define _REQOP2 0x80 10192 10193 //============================================================================== 10194 10195 10196 //============================================================================== 10197 // BRGCON1 Bits 10198 10199 extern __at(0x0F70) __sfr BRGCON1; 10200 10201 typedef union 10202 { 10203 struct 10204 { 10205 unsigned BRP0 : 1; 10206 unsigned BRP1 : 1; 10207 unsigned BRP2 : 1; 10208 unsigned BRP3 : 1; 10209 unsigned BRP4 : 1; 10210 unsigned BRP5 : 1; 10211 unsigned SJW0 : 1; 10212 unsigned SJW1 : 1; 10213 }; 10214 10215 struct 10216 { 10217 unsigned BRP : 6; 10218 unsigned : 2; 10219 }; 10220 10221 struct 10222 { 10223 unsigned : 6; 10224 unsigned SJW : 2; 10225 }; 10226 } __BRGCON1bits_t; 10227 10228 extern __at(0x0F70) volatile __BRGCON1bits_t BRGCON1bits; 10229 10230 #define _BRP0 0x01 10231 #define _BRP1 0x02 10232 #define _BRP2 0x04 10233 #define _BRP3 0x08 10234 #define _BRP4 0x10 10235 #define _BRP5 0x20 10236 #define _SJW0 0x40 10237 #define _SJW1 0x80 10238 10239 //============================================================================== 10240 10241 10242 //============================================================================== 10243 // BRGCON2 Bits 10244 10245 extern __at(0x0F71) __sfr BRGCON2; 10246 10247 typedef union 10248 { 10249 struct 10250 { 10251 unsigned PRSEG0 : 1; 10252 unsigned PRSEG1 : 1; 10253 unsigned PRSEG2 : 1; 10254 unsigned SEG1PH0 : 1; 10255 unsigned SEG1PH1 : 1; 10256 unsigned SEG1PH2 : 1; 10257 unsigned SAM : 1; 10258 unsigned SEG2PHT : 1; 10259 }; 10260 10261 struct 10262 { 10263 unsigned : 1; 10264 unsigned : 1; 10265 unsigned : 1; 10266 unsigned : 1; 10267 unsigned : 1; 10268 unsigned : 1; 10269 unsigned : 1; 10270 unsigned SEG2PHTS : 1; 10271 }; 10272 10273 struct 10274 { 10275 unsigned PRSEG : 3; 10276 unsigned : 5; 10277 }; 10278 10279 struct 10280 { 10281 unsigned : 3; 10282 unsigned SEG1PH : 3; 10283 unsigned : 2; 10284 }; 10285 } __BRGCON2bits_t; 10286 10287 extern __at(0x0F71) volatile __BRGCON2bits_t BRGCON2bits; 10288 10289 #define _PRSEG0 0x01 10290 #define _PRSEG1 0x02 10291 #define _PRSEG2 0x04 10292 #define _SEG1PH0 0x08 10293 #define _SEG1PH1 0x10 10294 #define _SEG1PH2 0x20 10295 #define _SAM 0x40 10296 #define _SEG2PHT 0x80 10297 #define _SEG2PHTS 0x80 10298 10299 //============================================================================== 10300 10301 10302 //============================================================================== 10303 // BRGCON3 Bits 10304 10305 extern __at(0x0F72) __sfr BRGCON3; 10306 10307 typedef union 10308 { 10309 struct 10310 { 10311 unsigned SEG2PH0 : 1; 10312 unsigned SEG2PH1 : 1; 10313 unsigned SEG2PH2 : 1; 10314 unsigned : 1; 10315 unsigned : 1; 10316 unsigned : 1; 10317 unsigned WAKFIL : 1; 10318 unsigned WAKDIS : 1; 10319 }; 10320 10321 struct 10322 { 10323 unsigned SEG2PH : 3; 10324 unsigned : 5; 10325 }; 10326 } __BRGCON3bits_t; 10327 10328 extern __at(0x0F72) volatile __BRGCON3bits_t BRGCON3bits; 10329 10330 #define _SEG2PH0 0x01 10331 #define _SEG2PH1 0x02 10332 #define _SEG2PH2 0x04 10333 #define _WAKFIL 0x40 10334 #define _WAKDIS 0x80 10335 10336 //============================================================================== 10337 10338 10339 //============================================================================== 10340 // CIOCON Bits 10341 10342 extern __at(0x0F73) __sfr CIOCON; 10343 10344 typedef struct 10345 { 10346 unsigned : 1; 10347 unsigned : 1; 10348 unsigned : 1; 10349 unsigned : 1; 10350 unsigned CANCAP : 1; 10351 unsigned ENDRHI : 1; 10352 unsigned TX2EN : 1; 10353 unsigned TX2SRC : 1; 10354 } __CIOCONbits_t; 10355 10356 extern __at(0x0F73) volatile __CIOCONbits_t CIOCONbits; 10357 10358 #define _CANCAP 0x10 10359 #define _ENDRHI 0x20 10360 #define _TX2EN 0x40 10361 #define _TX2SRC 0x80 10362 10363 //============================================================================== 10364 10365 10366 //============================================================================== 10367 // COMSTAT Bits 10368 10369 extern __at(0x0F74) __sfr COMSTAT; 10370 10371 typedef union 10372 { 10373 struct 10374 { 10375 unsigned EWARN : 1; 10376 unsigned RXWARN : 1; 10377 unsigned TXWARN : 1; 10378 unsigned RXBP : 1; 10379 unsigned TXBP : 1; 10380 unsigned TXBO : 1; 10381 unsigned RXBnOVFL : 1; 10382 unsigned RXB0OVFL_NOT_FIFOEMPTY : 1; 10383 }; 10384 10385 struct 10386 { 10387 unsigned : 1; 10388 unsigned : 1; 10389 unsigned : 1; 10390 unsigned : 1; 10391 unsigned : 1; 10392 unsigned : 1; 10393 unsigned RXB1OVFL : 1; 10394 unsigned RXB0OVFL : 1; 10395 }; 10396 10397 struct 10398 { 10399 unsigned : 1; 10400 unsigned : 1; 10401 unsigned : 1; 10402 unsigned : 1; 10403 unsigned : 1; 10404 unsigned : 1; 10405 unsigned : 1; 10406 unsigned FIFOEMPTY : 1; 10407 }; 10408 10409 struct 10410 { 10411 unsigned : 1; 10412 unsigned : 1; 10413 unsigned : 1; 10414 unsigned : 1; 10415 unsigned : 1; 10416 unsigned : 1; 10417 unsigned : 1; 10418 unsigned NOT_FIFOEMPTY : 1; 10419 }; 10420 } __COMSTATbits_t; 10421 10422 extern __at(0x0F74) volatile __COMSTATbits_t COMSTATbits; 10423 10424 #define _EWARN 0x01 10425 #define _RXWARN 0x02 10426 #define _TXWARN 0x04 10427 #define _RXBP 0x08 10428 #define _TXBP 0x10 10429 #define _TXBO 0x20 10430 #define _RXBnOVFL 0x40 10431 #define _RXB1OVFL 0x40 10432 #define _RXB0OVFL_NOT_FIFOEMPTY 0x80 10433 #define _RXB0OVFL 0x80 10434 #define _FIFOEMPTY 0x80 10435 #define _NOT_FIFOEMPTY 0x80 10436 10437 //============================================================================== 10438 10439 10440 //============================================================================== 10441 // RXERRCNT Bits 10442 10443 extern __at(0x0F75) __sfr RXERRCNT; 10444 10445 typedef struct 10446 { 10447 unsigned REC0 : 1; 10448 unsigned REC1 : 1; 10449 unsigned REC2 : 1; 10450 unsigned REC3 : 1; 10451 unsigned REC4 : 1; 10452 unsigned REC5 : 1; 10453 unsigned REC6 : 1; 10454 unsigned REC7 : 1; 10455 } __RXERRCNTbits_t; 10456 10457 extern __at(0x0F75) volatile __RXERRCNTbits_t RXERRCNTbits; 10458 10459 #define _REC0 0x01 10460 #define _REC1 0x02 10461 #define _REC2 0x04 10462 #define _REC3 0x08 10463 #define _REC4 0x10 10464 #define _REC5 0x20 10465 #define _REC6 0x40 10466 #define _REC7 0x80 10467 10468 //============================================================================== 10469 10470 10471 //============================================================================== 10472 // TXERRCNT Bits 10473 10474 extern __at(0x0F76) __sfr TXERRCNT; 10475 10476 typedef struct 10477 { 10478 unsigned TEC0 : 1; 10479 unsigned TEC1 : 1; 10480 unsigned TEC2 : 1; 10481 unsigned TEC3 : 1; 10482 unsigned TEC4 : 1; 10483 unsigned TEC5 : 1; 10484 unsigned TEC6 : 1; 10485 unsigned TEC7 : 1; 10486 } __TXERRCNTbits_t; 10487 10488 extern __at(0x0F76) volatile __TXERRCNTbits_t TXERRCNTbits; 10489 10490 #define _TEC0 0x01 10491 #define _TEC1 0x02 10492 #define _TEC2 0x04 10493 #define _TEC3 0x08 10494 #define _TEC4 0x10 10495 #define _TEC5 0x20 10496 #define _TEC6 0x40 10497 #define _TEC7 0x80 10498 10499 //============================================================================== 10500 10501 10502 //============================================================================== 10503 // ECANCON Bits 10504 10505 extern __at(0x0F77) __sfr ECANCON; 10506 10507 typedef union 10508 { 10509 struct 10510 { 10511 unsigned EWIN0 : 1; 10512 unsigned EWIN1 : 1; 10513 unsigned EWIN2 : 1; 10514 unsigned EWIN3 : 1; 10515 unsigned EWIN4 : 1; 10516 unsigned FIFOWM : 1; 10517 unsigned MDSEL0 : 1; 10518 unsigned MDSEL1 : 1; 10519 }; 10520 10521 struct 10522 { 10523 unsigned : 1; 10524 unsigned : 1; 10525 unsigned : 1; 10526 unsigned : 1; 10527 unsigned : 1; 10528 unsigned F : 1; 10529 unsigned : 1; 10530 unsigned : 1; 10531 }; 10532 10533 struct 10534 { 10535 unsigned EWIN : 5; 10536 unsigned : 3; 10537 }; 10538 10539 struct 10540 { 10541 unsigned : 6; 10542 unsigned MDSEL : 2; 10543 }; 10544 } __ECANCONbits_t; 10545 10546 extern __at(0x0F77) volatile __ECANCONbits_t ECANCONbits; 10547 10548 #define _EWIN0 0x01 10549 #define _EWIN1 0x02 10550 #define _EWIN2 0x04 10551 #define _EWIN3 0x08 10552 #define _EWIN4 0x10 10553 #define _FIFOWM 0x20 10554 #define _F 0x20 10555 #define _MDSEL0 0x40 10556 #define _MDSEL1 0x80 10557 10558 //============================================================================== 10559 10560 10561 //============================================================================== 10562 // ECCP1DEL Bits 10563 10564 extern __at(0x0F79) __sfr ECCP1DEL; 10565 10566 typedef union 10567 { 10568 struct 10569 { 10570 unsigned PDC0 : 1; 10571 unsigned PDC1 : 1; 10572 unsigned PDC2 : 1; 10573 unsigned PDC3 : 1; 10574 unsigned PDC4 : 1; 10575 unsigned PDC5 : 1; 10576 unsigned PDC6 : 1; 10577 unsigned PRSEN : 1; 10578 }; 10579 10580 struct 10581 { 10582 unsigned PDC : 7; 10583 unsigned : 1; 10584 }; 10585 } __ECCP1DELbits_t; 10586 10587 extern __at(0x0F79) volatile __ECCP1DELbits_t ECCP1DELbits; 10588 10589 #define _PDC0 0x01 10590 #define _PDC1 0x02 10591 #define _PDC2 0x04 10592 #define _PDC3 0x08 10593 #define _PDC4 0x10 10594 #define _PDC5 0x20 10595 #define _PDC6 0x40 10596 #define _PRSEN 0x80 10597 10598 //============================================================================== 10599 10600 10601 //============================================================================== 10602 // BAUDCON Bits 10603 10604 extern __at(0x0F7E) __sfr BAUDCON; 10605 10606 typedef struct 10607 { 10608 unsigned ABDEN : 1; 10609 unsigned WUE : 1; 10610 unsigned : 1; 10611 unsigned BRG16 : 1; 10612 unsigned SCKP : 1; 10613 unsigned : 1; 10614 unsigned RCIDL : 1; 10615 unsigned : 1; 10616 } __BAUDCONbits_t; 10617 10618 extern __at(0x0F7E) volatile __BAUDCONbits_t BAUDCONbits; 10619 10620 #define _ABDEN 0x01 10621 #define _WUE 0x02 10622 #define _BRG16 0x08 10623 #define _SCKP 0x10 10624 #define _RCIDL 0x40 10625 10626 //============================================================================== 10627 10628 extern __at(0x0F7F) __sfr SPBRGH; 10629 10630 //============================================================================== 10631 // PORTA Bits 10632 10633 extern __at(0x0F80) __sfr PORTA; 10634 10635 typedef union 10636 { 10637 struct 10638 { 10639 unsigned RA0 : 1; 10640 unsigned RA1 : 1; 10641 unsigned RA2 : 1; 10642 unsigned RA3 : 1; 10643 unsigned RA4 : 1; 10644 unsigned RA5 : 1; 10645 unsigned RA6 : 1; 10646 unsigned : 1; 10647 }; 10648 10649 struct 10650 { 10651 unsigned AN0 : 1; 10652 unsigned AN1 : 1; 10653 unsigned AN2 : 1; 10654 unsigned AN3 : 1; 10655 unsigned T0CKI : 1; 10656 unsigned AN4 : 1; 10657 unsigned OSC2 : 1; 10658 unsigned : 1; 10659 }; 10660 10661 struct 10662 { 10663 unsigned : 1; 10664 unsigned : 1; 10665 unsigned VREFM : 1; 10666 unsigned VREFP : 1; 10667 unsigned : 1; 10668 unsigned LVDIN : 1; 10669 unsigned CLKO : 1; 10670 unsigned : 1; 10671 }; 10672 10673 struct 10674 { 10675 unsigned RA : 7; 10676 unsigned : 1; 10677 }; 10678 } __PORTAbits_t; 10679 10680 extern __at(0x0F80) volatile __PORTAbits_t PORTAbits; 10681 10682 #define _PORTA_RA0 0x01 10683 #define _PORTA_AN0 0x01 10684 #define _PORTA_RA1 0x02 10685 #define _PORTA_AN1 0x02 10686 #define _PORTA_RA2 0x04 10687 #define _PORTA_AN2 0x04 10688 #define _PORTA_VREFM 0x04 10689 #define _PORTA_RA3 0x08 10690 #define _PORTA_AN3 0x08 10691 #define _PORTA_VREFP 0x08 10692 #define _PORTA_RA4 0x10 10693 #define _PORTA_T0CKI 0x10 10694 #define _PORTA_RA5 0x20 10695 #define _PORTA_AN4 0x20 10696 #define _PORTA_LVDIN 0x20 10697 #define _PORTA_RA6 0x40 10698 #define _PORTA_OSC2 0x40 10699 #define _PORTA_CLKO 0x40 10700 10701 //============================================================================== 10702 10703 10704 //============================================================================== 10705 // PORTB Bits 10706 10707 extern __at(0x0F81) __sfr PORTB; 10708 10709 typedef union 10710 { 10711 struct 10712 { 10713 unsigned RB0 : 1; 10714 unsigned RB1 : 1; 10715 unsigned RB2 : 1; 10716 unsigned RB3 : 1; 10717 unsigned RB4 : 1; 10718 unsigned RB5 : 1; 10719 unsigned RB6 : 1; 10720 unsigned RB7 : 1; 10721 }; 10722 10723 struct 10724 { 10725 unsigned INT0 : 1; 10726 unsigned INT1 : 1; 10727 unsigned INT2 : 1; 10728 unsigned INT3 : 1; 10729 unsigned KBI0 : 1; 10730 unsigned KBI1 : 1; 10731 unsigned KBI2 : 1; 10732 unsigned KBI3 : 1; 10733 }; 10734 10735 struct 10736 { 10737 unsigned : 1; 10738 unsigned : 1; 10739 unsigned : 1; 10740 unsigned : 1; 10741 unsigned : 1; 10742 unsigned PGM : 1; 10743 unsigned PGC : 1; 10744 unsigned PGD : 1; 10745 }; 10746 10747 struct 10748 { 10749 unsigned INT : 4; 10750 unsigned : 4; 10751 }; 10752 10753 struct 10754 { 10755 unsigned : 4; 10756 unsigned KBI : 4; 10757 }; 10758 } __PORTBbits_t; 10759 10760 extern __at(0x0F81) volatile __PORTBbits_t PORTBbits; 10761 10762 #define _PORTB_RB0 0x01 10763 #define _PORTB_INT0 0x01 10764 #define _PORTB_RB1 0x02 10765 #define _PORTB_INT1 0x02 10766 #define _PORTB_RB2 0x04 10767 #define _PORTB_INT2 0x04 10768 #define _PORTB_RB3 0x08 10769 #define _PORTB_INT3 0x08 10770 #define _PORTB_RB4 0x10 10771 #define _PORTB_KBI0 0x10 10772 #define _PORTB_RB5 0x20 10773 #define _PORTB_KBI1 0x20 10774 #define _PORTB_PGM 0x20 10775 #define _PORTB_RB6 0x40 10776 #define _PORTB_KBI2 0x40 10777 #define _PORTB_PGC 0x40 10778 #define _PORTB_RB7 0x80 10779 #define _PORTB_KBI3 0x80 10780 #define _PORTB_PGD 0x80 10781 10782 //============================================================================== 10783 10784 10785 //============================================================================== 10786 // PORTC Bits 10787 10788 extern __at(0x0F82) __sfr PORTC; 10789 10790 typedef union 10791 { 10792 struct 10793 { 10794 unsigned RC0 : 1; 10795 unsigned RC1 : 1; 10796 unsigned RC2 : 1; 10797 unsigned RC3 : 1; 10798 unsigned RC4 : 1; 10799 unsigned RC5 : 1; 10800 unsigned RC6 : 1; 10801 unsigned RC7 : 1; 10802 }; 10803 10804 struct 10805 { 10806 unsigned T1OSO : 1; 10807 unsigned T1OSI : 1; 10808 unsigned CCP1 : 1; 10809 unsigned SCK : 1; 10810 unsigned SDI : 1; 10811 unsigned SDO : 1; 10812 unsigned TX : 1; 10813 unsigned RX : 1; 10814 }; 10815 10816 struct 10817 { 10818 unsigned T13CKI : 1; 10819 unsigned : 1; 10820 unsigned P1A : 1; 10821 unsigned SCL : 1; 10822 unsigned SDA : 1; 10823 unsigned : 1; 10824 unsigned CK : 1; 10825 unsigned : 1; 10826 }; 10827 } __PORTCbits_t; 10828 10829 extern __at(0x0F82) volatile __PORTCbits_t PORTCbits; 10830 10831 #define _PORTC_RC0 0x01 10832 #define _PORTC_T1OSO 0x01 10833 #define _PORTC_T13CKI 0x01 10834 #define _PORTC_RC1 0x02 10835 #define _PORTC_T1OSI 0x02 10836 #define _PORTC_RC2 0x04 10837 #define _PORTC_CCP1 0x04 10838 #define _PORTC_P1A 0x04 10839 #define _PORTC_RC3 0x08 10840 #define _PORTC_SCK 0x08 10841 #define _PORTC_SCL 0x08 10842 #define _PORTC_RC4 0x10 10843 #define _PORTC_SDI 0x10 10844 #define _PORTC_SDA 0x10 10845 #define _PORTC_RC5 0x20 10846 #define _PORTC_SDO 0x20 10847 #define _PORTC_RC6 0x40 10848 #define _PORTC_TX 0x40 10849 #define _PORTC_CK 0x40 10850 #define _PORTC_RC7 0x80 10851 #define _PORTC_RX 0x80 10852 10853 //============================================================================== 10854 10855 10856 //============================================================================== 10857 // PORTD Bits 10858 10859 extern __at(0x0F83) __sfr PORTD; 10860 10861 typedef union 10862 { 10863 struct 10864 { 10865 unsigned RD0 : 1; 10866 unsigned RD1 : 1; 10867 unsigned RD2 : 1; 10868 unsigned RD3 : 1; 10869 unsigned RD4 : 1; 10870 unsigned RD5 : 1; 10871 unsigned RD6 : 1; 10872 unsigned RD7 : 1; 10873 }; 10874 10875 struct 10876 { 10877 unsigned PSP0 : 1; 10878 unsigned PSP1 : 1; 10879 unsigned PSP2 : 1; 10880 unsigned PSP3 : 1; 10881 unsigned PSP4 : 1; 10882 unsigned PSP5 : 1; 10883 unsigned PSP6 : 1; 10884 unsigned PSP7 : 1; 10885 }; 10886 } __PORTDbits_t; 10887 10888 extern __at(0x0F83) volatile __PORTDbits_t PORTDbits; 10889 10890 #define _PORTD_RD0 0x01 10891 #define _PORTD_PSP0 0x01 10892 #define _PORTD_RD1 0x02 10893 #define _PORTD_PSP1 0x02 10894 #define _PORTD_RD2 0x04 10895 #define _PORTD_PSP2 0x04 10896 #define _PORTD_RD3 0x08 10897 #define _PORTD_PSP3 0x08 10898 #define _PORTD_RD4 0x10 10899 #define _PORTD_PSP4 0x10 10900 #define _PORTD_RD5 0x20 10901 #define _PORTD_PSP5 0x20 10902 #define _PORTD_RD6 0x40 10903 #define _PORTD_PSP6 0x40 10904 #define _PORTD_RD7 0x80 10905 #define _PORTD_PSP7 0x80 10906 10907 //============================================================================== 10908 10909 10910 //============================================================================== 10911 // PORTE Bits 10912 10913 extern __at(0x0F84) __sfr PORTE; 10914 10915 typedef union 10916 { 10917 struct 10918 { 10919 unsigned RE0 : 1; 10920 unsigned RE1 : 1; 10921 unsigned RE2 : 1; 10922 unsigned RE3 : 1; 10923 unsigned RE4 : 1; 10924 unsigned RE5 : 1; 10925 unsigned RE6 : 1; 10926 unsigned RE7 : 1; 10927 }; 10928 10929 struct 10930 { 10931 unsigned RD : 1; 10932 unsigned WR : 1; 10933 unsigned CS : 1; 10934 unsigned : 1; 10935 unsigned : 1; 10936 unsigned P1C : 1; 10937 unsigned P1B : 1; 10938 unsigned : 1; 10939 }; 10940 } __PORTEbits_t; 10941 10942 extern __at(0x0F84) volatile __PORTEbits_t PORTEbits; 10943 10944 #define _PORTE_RE0 0x01 10945 #define _PORTE_RD 0x01 10946 #define _PORTE_RE1 0x02 10947 #define _PORTE_WR 0x02 10948 #define _PORTE_RE2 0x04 10949 #define _PORTE_CS 0x04 10950 #define _PORTE_RE3 0x08 10951 #define _PORTE_RE4 0x10 10952 #define _PORTE_RE5 0x20 10953 #define _PORTE_P1C 0x20 10954 #define _PORTE_RE6 0x40 10955 #define _PORTE_P1B 0x40 10956 #define _PORTE_RE7 0x80 10957 10958 //============================================================================== 10959 10960 10961 //============================================================================== 10962 // PORTF Bits 10963 10964 extern __at(0x0F85) __sfr PORTF; 10965 10966 typedef union 10967 { 10968 struct 10969 { 10970 unsigned RF0 : 1; 10971 unsigned RF1 : 1; 10972 unsigned RF2 : 1; 10973 unsigned RF3 : 1; 10974 unsigned RF4 : 1; 10975 unsigned RF5 : 1; 10976 unsigned RF6 : 1; 10977 unsigned RF7 : 1; 10978 }; 10979 10980 struct 10981 { 10982 unsigned AN5 : 1; 10983 unsigned AN6 : 1; 10984 unsigned AN7 : 1; 10985 unsigned AN8 : 1; 10986 unsigned AN9 : 1; 10987 unsigned AN10 : 1; 10988 unsigned AN11 : 1; 10989 unsigned SS : 1; 10990 }; 10991 10992 struct 10993 { 10994 unsigned : 1; 10995 unsigned C2OUTF : 1; 10996 unsigned C1OUTF : 1; 10997 unsigned : 1; 10998 unsigned : 1; 10999 unsigned CVREFF : 1; 11000 unsigned : 1; 11001 unsigned : 1; 11002 }; 11003 } __PORTFbits_t; 11004 11005 extern __at(0x0F85) volatile __PORTFbits_t PORTFbits; 11006 11007 #define _PORTF_RF0 0x01 11008 #define _PORTF_AN5 0x01 11009 #define _PORTF_RF1 0x02 11010 #define _PORTF_AN6 0x02 11011 #define _PORTF_C2OUTF 0x02 11012 #define _PORTF_RF2 0x04 11013 #define _PORTF_AN7 0x04 11014 #define _PORTF_C1OUTF 0x04 11015 #define _PORTF_RF3 0x08 11016 #define _PORTF_AN8 0x08 11017 #define _PORTF_RF4 0x10 11018 #define _PORTF_AN9 0x10 11019 #define _PORTF_RF5 0x20 11020 #define _PORTF_AN10 0x20 11021 #define _PORTF_CVREFF 0x20 11022 #define _PORTF_RF6 0x40 11023 #define _PORTF_AN11 0x40 11024 #define _PORTF_RF7 0x80 11025 #define _PORTF_SS 0x80 11026 11027 //============================================================================== 11028 11029 11030 //============================================================================== 11031 // PORTG Bits 11032 11033 extern __at(0x0F86) __sfr PORTG; 11034 11035 typedef union 11036 { 11037 struct 11038 { 11039 unsigned RG0 : 1; 11040 unsigned RG1 : 1; 11041 unsigned RG2 : 1; 11042 unsigned RG3 : 1; 11043 unsigned RG4 : 1; 11044 unsigned RG5 : 1; 11045 unsigned : 1; 11046 unsigned : 1; 11047 }; 11048 11049 struct 11050 { 11051 unsigned CANTX1 : 1; 11052 unsigned CANTX2 : 1; 11053 unsigned CANRX : 1; 11054 unsigned : 1; 11055 unsigned P1D : 1; 11056 unsigned MCLR : 1; 11057 unsigned : 1; 11058 unsigned : 1; 11059 }; 11060 11061 struct 11062 { 11063 unsigned RG : 6; 11064 unsigned : 2; 11065 }; 11066 } __PORTGbits_t; 11067 11068 extern __at(0x0F86) volatile __PORTGbits_t PORTGbits; 11069 11070 #define _PORTG_RG0 0x01 11071 #define _PORTG_CANTX1 0x01 11072 #define _PORTG_RG1 0x02 11073 #define _PORTG_CANTX2 0x02 11074 #define _PORTG_RG2 0x04 11075 #define _PORTG_CANRX 0x04 11076 #define _PORTG_RG3 0x08 11077 #define _PORTG_RG4 0x10 11078 #define _PORTG_P1D 0x10 11079 #define _PORTG_RG5 0x20 11080 #define _PORTG_MCLR 0x20 11081 11082 //============================================================================== 11083 11084 11085 //============================================================================== 11086 // LATA Bits 11087 11088 extern __at(0x0F89) __sfr LATA; 11089 11090 typedef union 11091 { 11092 struct 11093 { 11094 unsigned LATA0 : 1; 11095 unsigned LATA1 : 1; 11096 unsigned LATA2 : 1; 11097 unsigned LATA3 : 1; 11098 unsigned LATA4 : 1; 11099 unsigned LATA5 : 1; 11100 unsigned LATA6 : 1; 11101 unsigned : 1; 11102 }; 11103 11104 struct 11105 { 11106 unsigned LATA : 7; 11107 unsigned : 1; 11108 }; 11109 } __LATAbits_t; 11110 11111 extern __at(0x0F89) volatile __LATAbits_t LATAbits; 11112 11113 #define _LATA0 0x01 11114 #define _LATA1 0x02 11115 #define _LATA2 0x04 11116 #define _LATA3 0x08 11117 #define _LATA4 0x10 11118 #define _LATA5 0x20 11119 #define _LATA6 0x40 11120 11121 //============================================================================== 11122 11123 11124 //============================================================================== 11125 // LATB Bits 11126 11127 extern __at(0x0F8A) __sfr LATB; 11128 11129 typedef struct 11130 { 11131 unsigned LATB0 : 1; 11132 unsigned LATB1 : 1; 11133 unsigned LATB2 : 1; 11134 unsigned LATB3 : 1; 11135 unsigned LATB4 : 1; 11136 unsigned LATB5 : 1; 11137 unsigned LATB6 : 1; 11138 unsigned LATB7 : 1; 11139 } __LATBbits_t; 11140 11141 extern __at(0x0F8A) volatile __LATBbits_t LATBbits; 11142 11143 #define _LATB0 0x01 11144 #define _LATB1 0x02 11145 #define _LATB2 0x04 11146 #define _LATB3 0x08 11147 #define _LATB4 0x10 11148 #define _LATB5 0x20 11149 #define _LATB6 0x40 11150 #define _LATB7 0x80 11151 11152 //============================================================================== 11153 11154 11155 //============================================================================== 11156 // LATC Bits 11157 11158 extern __at(0x0F8B) __sfr LATC; 11159 11160 typedef struct 11161 { 11162 unsigned LATC0 : 1; 11163 unsigned LATC1 : 1; 11164 unsigned LATC2 : 1; 11165 unsigned LATC3 : 1; 11166 unsigned LATC4 : 1; 11167 unsigned LATC5 : 1; 11168 unsigned LATC6 : 1; 11169 unsigned LATC7 : 1; 11170 } __LATCbits_t; 11171 11172 extern __at(0x0F8B) volatile __LATCbits_t LATCbits; 11173 11174 #define _LATC0 0x01 11175 #define _LATC1 0x02 11176 #define _LATC2 0x04 11177 #define _LATC3 0x08 11178 #define _LATC4 0x10 11179 #define _LATC5 0x20 11180 #define _LATC6 0x40 11181 #define _LATC7 0x80 11182 11183 //============================================================================== 11184 11185 11186 //============================================================================== 11187 // LATD Bits 11188 11189 extern __at(0x0F8C) __sfr LATD; 11190 11191 typedef struct 11192 { 11193 unsigned LATD0 : 1; 11194 unsigned LATD1 : 1; 11195 unsigned LATD2 : 1; 11196 unsigned LATD3 : 1; 11197 unsigned LATD4 : 1; 11198 unsigned LATD5 : 1; 11199 unsigned LATD6 : 1; 11200 unsigned LATD7 : 1; 11201 } __LATDbits_t; 11202 11203 extern __at(0x0F8C) volatile __LATDbits_t LATDbits; 11204 11205 #define _LATD0 0x01 11206 #define _LATD1 0x02 11207 #define _LATD2 0x04 11208 #define _LATD3 0x08 11209 #define _LATD4 0x10 11210 #define _LATD5 0x20 11211 #define _LATD6 0x40 11212 #define _LATD7 0x80 11213 11214 //============================================================================== 11215 11216 11217 //============================================================================== 11218 // LATE Bits 11219 11220 extern __at(0x0F8D) __sfr LATE; 11221 11222 typedef struct 11223 { 11224 unsigned LATE0 : 1; 11225 unsigned LATE1 : 1; 11226 unsigned LATE2 : 1; 11227 unsigned LATE3 : 1; 11228 unsigned LATE4 : 1; 11229 unsigned LATE5 : 1; 11230 unsigned LATE6 : 1; 11231 unsigned LATE7 : 1; 11232 } __LATEbits_t; 11233 11234 extern __at(0x0F8D) volatile __LATEbits_t LATEbits; 11235 11236 #define _LATE0 0x01 11237 #define _LATE1 0x02 11238 #define _LATE2 0x04 11239 #define _LATE3 0x08 11240 #define _LATE4 0x10 11241 #define _LATE5 0x20 11242 #define _LATE6 0x40 11243 #define _LATE7 0x80 11244 11245 //============================================================================== 11246 11247 11248 //============================================================================== 11249 // LATF Bits 11250 11251 extern __at(0x0F8E) __sfr LATF; 11252 11253 typedef struct 11254 { 11255 unsigned LATF0 : 1; 11256 unsigned LATF1 : 1; 11257 unsigned LATF2 : 1; 11258 unsigned LATF3 : 1; 11259 unsigned LATF4 : 1; 11260 unsigned LATF5 : 1; 11261 unsigned LATF6 : 1; 11262 unsigned LATF7 : 1; 11263 } __LATFbits_t; 11264 11265 extern __at(0x0F8E) volatile __LATFbits_t LATFbits; 11266 11267 #define _LATF0 0x01 11268 #define _LATF1 0x02 11269 #define _LATF2 0x04 11270 #define _LATF3 0x08 11271 #define _LATF4 0x10 11272 #define _LATF5 0x20 11273 #define _LATF6 0x40 11274 #define _LATF7 0x80 11275 11276 //============================================================================== 11277 11278 11279 //============================================================================== 11280 // LATG Bits 11281 11282 extern __at(0x0F8F) __sfr LATG; 11283 11284 typedef union 11285 { 11286 struct 11287 { 11288 unsigned LATG0 : 1; 11289 unsigned LATG1 : 1; 11290 unsigned LATG2 : 1; 11291 unsigned LATG3 : 1; 11292 unsigned LATG4 : 1; 11293 unsigned : 1; 11294 unsigned : 1; 11295 unsigned : 1; 11296 }; 11297 11298 struct 11299 { 11300 unsigned LATG : 5; 11301 unsigned : 3; 11302 }; 11303 } __LATGbits_t; 11304 11305 extern __at(0x0F8F) volatile __LATGbits_t LATGbits; 11306 11307 #define _LATG0 0x01 11308 #define _LATG1 0x02 11309 #define _LATG2 0x04 11310 #define _LATG3 0x08 11311 #define _LATG4 0x10 11312 11313 //============================================================================== 11314 11315 11316 //============================================================================== 11317 // DDRA Bits 11318 11319 extern __at(0x0F92) __sfr DDRA; 11320 11321 typedef union 11322 { 11323 struct 11324 { 11325 unsigned TRISA0 : 1; 11326 unsigned TRISA1 : 1; 11327 unsigned TRISA2 : 1; 11328 unsigned TRISA3 : 1; 11329 unsigned TRISA4 : 1; 11330 unsigned TRISA5 : 1; 11331 unsigned TRISA6 : 1; 11332 unsigned : 1; 11333 }; 11334 11335 struct 11336 { 11337 unsigned RA0 : 1; 11338 unsigned RA1 : 1; 11339 unsigned RA2 : 1; 11340 unsigned RA3 : 1; 11341 unsigned RA4 : 1; 11342 unsigned RA5 : 1; 11343 unsigned RA6 : 1; 11344 unsigned : 1; 11345 }; 11346 11347 struct 11348 { 11349 unsigned TRISA : 7; 11350 unsigned : 1; 11351 }; 11352 11353 struct 11354 { 11355 unsigned RA : 7; 11356 unsigned : 1; 11357 }; 11358 } __DDRAbits_t; 11359 11360 extern __at(0x0F92) volatile __DDRAbits_t DDRAbits; 11361 11362 #define _TRISA0 0x01 11363 #define _RA0 0x01 11364 #define _TRISA1 0x02 11365 #define _RA1 0x02 11366 #define _TRISA2 0x04 11367 #define _RA2 0x04 11368 #define _TRISA3 0x08 11369 #define _RA3 0x08 11370 #define _TRISA4 0x10 11371 #define _RA4 0x10 11372 #define _TRISA5 0x20 11373 #define _RA5 0x20 11374 #define _TRISA6 0x40 11375 #define _RA6 0x40 11376 11377 //============================================================================== 11378 11379 11380 //============================================================================== 11381 // TRISA Bits 11382 11383 extern __at(0x0F92) __sfr TRISA; 11384 11385 typedef union 11386 { 11387 struct 11388 { 11389 unsigned TRISA0 : 1; 11390 unsigned TRISA1 : 1; 11391 unsigned TRISA2 : 1; 11392 unsigned TRISA3 : 1; 11393 unsigned TRISA4 : 1; 11394 unsigned TRISA5 : 1; 11395 unsigned TRISA6 : 1; 11396 unsigned : 1; 11397 }; 11398 11399 struct 11400 { 11401 unsigned RA0 : 1; 11402 unsigned RA1 : 1; 11403 unsigned RA2 : 1; 11404 unsigned RA3 : 1; 11405 unsigned RA4 : 1; 11406 unsigned RA5 : 1; 11407 unsigned RA6 : 1; 11408 unsigned : 1; 11409 }; 11410 11411 struct 11412 { 11413 unsigned RA : 7; 11414 unsigned : 1; 11415 }; 11416 11417 struct 11418 { 11419 unsigned TRISA : 7; 11420 unsigned : 1; 11421 }; 11422 } __TRISAbits_t; 11423 11424 extern __at(0x0F92) volatile __TRISAbits_t TRISAbits; 11425 11426 #define _TRISA_TRISA0 0x01 11427 #define _TRISA_RA0 0x01 11428 #define _TRISA_TRISA1 0x02 11429 #define _TRISA_RA1 0x02 11430 #define _TRISA_TRISA2 0x04 11431 #define _TRISA_RA2 0x04 11432 #define _TRISA_TRISA3 0x08 11433 #define _TRISA_RA3 0x08 11434 #define _TRISA_TRISA4 0x10 11435 #define _TRISA_RA4 0x10 11436 #define _TRISA_TRISA5 0x20 11437 #define _TRISA_RA5 0x20 11438 #define _TRISA_TRISA6 0x40 11439 #define _TRISA_RA6 0x40 11440 11441 //============================================================================== 11442 11443 11444 //============================================================================== 11445 // DDRB Bits 11446 11447 extern __at(0x0F93) __sfr DDRB; 11448 11449 typedef union 11450 { 11451 struct 11452 { 11453 unsigned TRISB0 : 1; 11454 unsigned TRISB1 : 1; 11455 unsigned TRISB2 : 1; 11456 unsigned TRISB3 : 1; 11457 unsigned TRISB4 : 1; 11458 unsigned TRISB5 : 1; 11459 unsigned TRISB6 : 1; 11460 unsigned TRISB7 : 1; 11461 }; 11462 11463 struct 11464 { 11465 unsigned RB0 : 1; 11466 unsigned RB1 : 1; 11467 unsigned RB2 : 1; 11468 unsigned RB3 : 1; 11469 unsigned RB4 : 1; 11470 unsigned RB5 : 1; 11471 unsigned RB6 : 1; 11472 unsigned RB7 : 1; 11473 }; 11474 } __DDRBbits_t; 11475 11476 extern __at(0x0F93) volatile __DDRBbits_t DDRBbits; 11477 11478 #define _DDRB_TRISB0 0x01 11479 #define _DDRB_RB0 0x01 11480 #define _DDRB_TRISB1 0x02 11481 #define _DDRB_RB1 0x02 11482 #define _DDRB_TRISB2 0x04 11483 #define _DDRB_RB2 0x04 11484 #define _DDRB_TRISB3 0x08 11485 #define _DDRB_RB3 0x08 11486 #define _DDRB_TRISB4 0x10 11487 #define _DDRB_RB4 0x10 11488 #define _DDRB_TRISB5 0x20 11489 #define _DDRB_RB5 0x20 11490 #define _DDRB_TRISB6 0x40 11491 #define _DDRB_RB6 0x40 11492 #define _DDRB_TRISB7 0x80 11493 #define _DDRB_RB7 0x80 11494 11495 //============================================================================== 11496 11497 11498 //============================================================================== 11499 // TRISB Bits 11500 11501 extern __at(0x0F93) __sfr TRISB; 11502 11503 typedef union 11504 { 11505 struct 11506 { 11507 unsigned TRISB0 : 1; 11508 unsigned TRISB1 : 1; 11509 unsigned TRISB2 : 1; 11510 unsigned TRISB3 : 1; 11511 unsigned TRISB4 : 1; 11512 unsigned TRISB5 : 1; 11513 unsigned TRISB6 : 1; 11514 unsigned TRISB7 : 1; 11515 }; 11516 11517 struct 11518 { 11519 unsigned RB0 : 1; 11520 unsigned RB1 : 1; 11521 unsigned RB2 : 1; 11522 unsigned RB3 : 1; 11523 unsigned RB4 : 1; 11524 unsigned RB5 : 1; 11525 unsigned RB6 : 1; 11526 unsigned RB7 : 1; 11527 }; 11528 } __TRISBbits_t; 11529 11530 extern __at(0x0F93) volatile __TRISBbits_t TRISBbits; 11531 11532 #define _TRISB_TRISB0 0x01 11533 #define _TRISB_RB0 0x01 11534 #define _TRISB_TRISB1 0x02 11535 #define _TRISB_RB1 0x02 11536 #define _TRISB_TRISB2 0x04 11537 #define _TRISB_RB2 0x04 11538 #define _TRISB_TRISB3 0x08 11539 #define _TRISB_RB3 0x08 11540 #define _TRISB_TRISB4 0x10 11541 #define _TRISB_RB4 0x10 11542 #define _TRISB_TRISB5 0x20 11543 #define _TRISB_RB5 0x20 11544 #define _TRISB_TRISB6 0x40 11545 #define _TRISB_RB6 0x40 11546 #define _TRISB_TRISB7 0x80 11547 #define _TRISB_RB7 0x80 11548 11549 //============================================================================== 11550 11551 11552 //============================================================================== 11553 // DDRC Bits 11554 11555 extern __at(0x0F94) __sfr DDRC; 11556 11557 typedef union 11558 { 11559 struct 11560 { 11561 unsigned TRISC0 : 1; 11562 unsigned TRISC1 : 1; 11563 unsigned TRISC2 : 1; 11564 unsigned TRISC3 : 1; 11565 unsigned TRISC4 : 1; 11566 unsigned TRISC5 : 1; 11567 unsigned TRISC6 : 1; 11568 unsigned TRISC7 : 1; 11569 }; 11570 11571 struct 11572 { 11573 unsigned RC0 : 1; 11574 unsigned RC1 : 1; 11575 unsigned RC2 : 1; 11576 unsigned RC3 : 1; 11577 unsigned RC4 : 1; 11578 unsigned RC5 : 1; 11579 unsigned RC6 : 1; 11580 unsigned RC7 : 1; 11581 }; 11582 } __DDRCbits_t; 11583 11584 extern __at(0x0F94) volatile __DDRCbits_t DDRCbits; 11585 11586 #define _TRISC0 0x01 11587 #define _RC0 0x01 11588 #define _TRISC1 0x02 11589 #define _RC1 0x02 11590 #define _TRISC2 0x04 11591 #define _RC2 0x04 11592 #define _TRISC3 0x08 11593 #define _RC3 0x08 11594 #define _TRISC4 0x10 11595 #define _RC4 0x10 11596 #define _TRISC5 0x20 11597 #define _RC5 0x20 11598 #define _TRISC6 0x40 11599 #define _RC6 0x40 11600 #define _TRISC7 0x80 11601 #define _RC7 0x80 11602 11603 //============================================================================== 11604 11605 11606 //============================================================================== 11607 // TRISC Bits 11608 11609 extern __at(0x0F94) __sfr TRISC; 11610 11611 typedef union 11612 { 11613 struct 11614 { 11615 unsigned TRISC0 : 1; 11616 unsigned TRISC1 : 1; 11617 unsigned TRISC2 : 1; 11618 unsigned TRISC3 : 1; 11619 unsigned TRISC4 : 1; 11620 unsigned TRISC5 : 1; 11621 unsigned TRISC6 : 1; 11622 unsigned TRISC7 : 1; 11623 }; 11624 11625 struct 11626 { 11627 unsigned RC0 : 1; 11628 unsigned RC1 : 1; 11629 unsigned RC2 : 1; 11630 unsigned RC3 : 1; 11631 unsigned RC4 : 1; 11632 unsigned RC5 : 1; 11633 unsigned RC6 : 1; 11634 unsigned RC7 : 1; 11635 }; 11636 } __TRISCbits_t; 11637 11638 extern __at(0x0F94) volatile __TRISCbits_t TRISCbits; 11639 11640 #define _TRISC_TRISC0 0x01 11641 #define _TRISC_RC0 0x01 11642 #define _TRISC_TRISC1 0x02 11643 #define _TRISC_RC1 0x02 11644 #define _TRISC_TRISC2 0x04 11645 #define _TRISC_RC2 0x04 11646 #define _TRISC_TRISC3 0x08 11647 #define _TRISC_RC3 0x08 11648 #define _TRISC_TRISC4 0x10 11649 #define _TRISC_RC4 0x10 11650 #define _TRISC_TRISC5 0x20 11651 #define _TRISC_RC5 0x20 11652 #define _TRISC_TRISC6 0x40 11653 #define _TRISC_RC6 0x40 11654 #define _TRISC_TRISC7 0x80 11655 #define _TRISC_RC7 0x80 11656 11657 //============================================================================== 11658 11659 11660 //============================================================================== 11661 // DDRD Bits 11662 11663 extern __at(0x0F95) __sfr DDRD; 11664 11665 typedef union 11666 { 11667 struct 11668 { 11669 unsigned TRISD0 : 1; 11670 unsigned TRISD1 : 1; 11671 unsigned TRISD2 : 1; 11672 unsigned TRISD3 : 1; 11673 unsigned TRISD4 : 1; 11674 unsigned TRISD5 : 1; 11675 unsigned TRISD6 : 1; 11676 unsigned TRISD7 : 1; 11677 }; 11678 11679 struct 11680 { 11681 unsigned RD0 : 1; 11682 unsigned RD1 : 1; 11683 unsigned RD2 : 1; 11684 unsigned RD3 : 1; 11685 unsigned RD4 : 1; 11686 unsigned RD5 : 1; 11687 unsigned RD6 : 1; 11688 unsigned RD7 : 1; 11689 }; 11690 } __DDRDbits_t; 11691 11692 extern __at(0x0F95) volatile __DDRDbits_t DDRDbits; 11693 11694 #define _TRISD0 0x01 11695 #define _RD0 0x01 11696 #define _TRISD1 0x02 11697 #define _RD1 0x02 11698 #define _TRISD2 0x04 11699 #define _RD2 0x04 11700 #define _TRISD3 0x08 11701 #define _RD3 0x08 11702 #define _TRISD4 0x10 11703 #define _RD4 0x10 11704 #define _TRISD5 0x20 11705 #define _RD5 0x20 11706 #define _TRISD6 0x40 11707 #define _RD6 0x40 11708 #define _TRISD7 0x80 11709 #define _RD7 0x80 11710 11711 //============================================================================== 11712 11713 11714 //============================================================================== 11715 // TRISD Bits 11716 11717 extern __at(0x0F95) __sfr TRISD; 11718 11719 typedef union 11720 { 11721 struct 11722 { 11723 unsigned TRISD0 : 1; 11724 unsigned TRISD1 : 1; 11725 unsigned TRISD2 : 1; 11726 unsigned TRISD3 : 1; 11727 unsigned TRISD4 : 1; 11728 unsigned TRISD5 : 1; 11729 unsigned TRISD6 : 1; 11730 unsigned TRISD7 : 1; 11731 }; 11732 11733 struct 11734 { 11735 unsigned RD0 : 1; 11736 unsigned RD1 : 1; 11737 unsigned RD2 : 1; 11738 unsigned RD3 : 1; 11739 unsigned RD4 : 1; 11740 unsigned RD5 : 1; 11741 unsigned RD6 : 1; 11742 unsigned RD7 : 1; 11743 }; 11744 } __TRISDbits_t; 11745 11746 extern __at(0x0F95) volatile __TRISDbits_t TRISDbits; 11747 11748 #define _TRISD_TRISD0 0x01 11749 #define _TRISD_RD0 0x01 11750 #define _TRISD_TRISD1 0x02 11751 #define _TRISD_RD1 0x02 11752 #define _TRISD_TRISD2 0x04 11753 #define _TRISD_RD2 0x04 11754 #define _TRISD_TRISD3 0x08 11755 #define _TRISD_RD3 0x08 11756 #define _TRISD_TRISD4 0x10 11757 #define _TRISD_RD4 0x10 11758 #define _TRISD_TRISD5 0x20 11759 #define _TRISD_RD5 0x20 11760 #define _TRISD_TRISD6 0x40 11761 #define _TRISD_RD6 0x40 11762 #define _TRISD_TRISD7 0x80 11763 #define _TRISD_RD7 0x80 11764 11765 //============================================================================== 11766 11767 11768 //============================================================================== 11769 // DDRE Bits 11770 11771 extern __at(0x0F96) __sfr DDRE; 11772 11773 typedef union 11774 { 11775 struct 11776 { 11777 unsigned TRISE0 : 1; 11778 unsigned TRISE1 : 1; 11779 unsigned TRISE2 : 1; 11780 unsigned TRISE3 : 1; 11781 unsigned TRISE4 : 1; 11782 unsigned TRISE5 : 1; 11783 unsigned TRISE6 : 1; 11784 unsigned TRISE7 : 1; 11785 }; 11786 11787 struct 11788 { 11789 unsigned RE0 : 1; 11790 unsigned RE1 : 1; 11791 unsigned RE2 : 1; 11792 unsigned RE3 : 1; 11793 unsigned RE4 : 1; 11794 unsigned RE5 : 1; 11795 unsigned RE6 : 1; 11796 unsigned RE7 : 1; 11797 }; 11798 } __DDREbits_t; 11799 11800 extern __at(0x0F96) volatile __DDREbits_t DDREbits; 11801 11802 #define _TRISE0 0x01 11803 #define _RE0 0x01 11804 #define _TRISE1 0x02 11805 #define _RE1 0x02 11806 #define _TRISE2 0x04 11807 #define _RE2 0x04 11808 #define _TRISE3 0x08 11809 #define _RE3 0x08 11810 #define _TRISE4 0x10 11811 #define _RE4 0x10 11812 #define _TRISE5 0x20 11813 #define _RE5 0x20 11814 #define _TRISE6 0x40 11815 #define _RE6 0x40 11816 #define _TRISE7 0x80 11817 #define _RE7 0x80 11818 11819 //============================================================================== 11820 11821 11822 //============================================================================== 11823 // TRISE Bits 11824 11825 extern __at(0x0F96) __sfr TRISE; 11826 11827 typedef union 11828 { 11829 struct 11830 { 11831 unsigned TRISE0 : 1; 11832 unsigned TRISE1 : 1; 11833 unsigned TRISE2 : 1; 11834 unsigned TRISE3 : 1; 11835 unsigned TRISE4 : 1; 11836 unsigned TRISE5 : 1; 11837 unsigned TRISE6 : 1; 11838 unsigned TRISE7 : 1; 11839 }; 11840 11841 struct 11842 { 11843 unsigned RE0 : 1; 11844 unsigned RE1 : 1; 11845 unsigned RE2 : 1; 11846 unsigned RE3 : 1; 11847 unsigned RE4 : 1; 11848 unsigned RE5 : 1; 11849 unsigned RE6 : 1; 11850 unsigned RE7 : 1; 11851 }; 11852 } __TRISEbits_t; 11853 11854 extern __at(0x0F96) volatile __TRISEbits_t TRISEbits; 11855 11856 #define _TRISE_TRISE0 0x01 11857 #define _TRISE_RE0 0x01 11858 #define _TRISE_TRISE1 0x02 11859 #define _TRISE_RE1 0x02 11860 #define _TRISE_TRISE2 0x04 11861 #define _TRISE_RE2 0x04 11862 #define _TRISE_TRISE3 0x08 11863 #define _TRISE_RE3 0x08 11864 #define _TRISE_TRISE4 0x10 11865 #define _TRISE_RE4 0x10 11866 #define _TRISE_TRISE5 0x20 11867 #define _TRISE_RE5 0x20 11868 #define _TRISE_TRISE6 0x40 11869 #define _TRISE_RE6 0x40 11870 #define _TRISE_TRISE7 0x80 11871 #define _TRISE_RE7 0x80 11872 11873 //============================================================================== 11874 11875 11876 //============================================================================== 11877 // DDRF Bits 11878 11879 extern __at(0x0F97) __sfr DDRF; 11880 11881 typedef union 11882 { 11883 struct 11884 { 11885 unsigned TRISF0 : 1; 11886 unsigned TRISF1 : 1; 11887 unsigned TRISF2 : 1; 11888 unsigned TRISF3 : 1; 11889 unsigned TRISF4 : 1; 11890 unsigned TRISF5 : 1; 11891 unsigned TRISF6 : 1; 11892 unsigned TRISF7 : 1; 11893 }; 11894 11895 struct 11896 { 11897 unsigned RF0 : 1; 11898 unsigned RF1 : 1; 11899 unsigned RF2 : 1; 11900 unsigned RF3 : 1; 11901 unsigned RF4 : 1; 11902 unsigned RF5 : 1; 11903 unsigned RF6 : 1; 11904 unsigned RF7 : 1; 11905 }; 11906 } __DDRFbits_t; 11907 11908 extern __at(0x0F97) volatile __DDRFbits_t DDRFbits; 11909 11910 #define _TRISF0 0x01 11911 #define _RF0 0x01 11912 #define _TRISF1 0x02 11913 #define _RF1 0x02 11914 #define _TRISF2 0x04 11915 #define _RF2 0x04 11916 #define _TRISF3 0x08 11917 #define _RF3 0x08 11918 #define _TRISF4 0x10 11919 #define _RF4 0x10 11920 #define _TRISF5 0x20 11921 #define _RF5 0x20 11922 #define _TRISF6 0x40 11923 #define _RF6 0x40 11924 #define _TRISF7 0x80 11925 #define _RF7 0x80 11926 11927 //============================================================================== 11928 11929 11930 //============================================================================== 11931 // TRISF Bits 11932 11933 extern __at(0x0F97) __sfr TRISF; 11934 11935 typedef union 11936 { 11937 struct 11938 { 11939 unsigned TRISF0 : 1; 11940 unsigned TRISF1 : 1; 11941 unsigned TRISF2 : 1; 11942 unsigned TRISF3 : 1; 11943 unsigned TRISF4 : 1; 11944 unsigned TRISF5 : 1; 11945 unsigned TRISF6 : 1; 11946 unsigned TRISF7 : 1; 11947 }; 11948 11949 struct 11950 { 11951 unsigned RF0 : 1; 11952 unsigned RF1 : 1; 11953 unsigned RF2 : 1; 11954 unsigned RF3 : 1; 11955 unsigned RF4 : 1; 11956 unsigned RF5 : 1; 11957 unsigned RF6 : 1; 11958 unsigned RF7 : 1; 11959 }; 11960 } __TRISFbits_t; 11961 11962 extern __at(0x0F97) volatile __TRISFbits_t TRISFbits; 11963 11964 #define _TRISF_TRISF0 0x01 11965 #define _TRISF_RF0 0x01 11966 #define _TRISF_TRISF1 0x02 11967 #define _TRISF_RF1 0x02 11968 #define _TRISF_TRISF2 0x04 11969 #define _TRISF_RF2 0x04 11970 #define _TRISF_TRISF3 0x08 11971 #define _TRISF_RF3 0x08 11972 #define _TRISF_TRISF4 0x10 11973 #define _TRISF_RF4 0x10 11974 #define _TRISF_TRISF5 0x20 11975 #define _TRISF_RF5 0x20 11976 #define _TRISF_TRISF6 0x40 11977 #define _TRISF_RF6 0x40 11978 #define _TRISF_TRISF7 0x80 11979 #define _TRISF_RF7 0x80 11980 11981 //============================================================================== 11982 11983 11984 //============================================================================== 11985 // DDRG Bits 11986 11987 extern __at(0x0F98) __sfr DDRG; 11988 11989 typedef union 11990 { 11991 struct 11992 { 11993 unsigned TRISG0 : 1; 11994 unsigned TRISG1 : 1; 11995 unsigned TRISG2 : 1; 11996 unsigned TRISG3 : 1; 11997 unsigned TRISG4 : 1; 11998 unsigned : 1; 11999 unsigned : 1; 12000 unsigned : 1; 12001 }; 12002 12003 struct 12004 { 12005 unsigned RG0 : 1; 12006 unsigned RG1 : 1; 12007 unsigned RG2 : 1; 12008 unsigned RG3 : 1; 12009 unsigned RG4 : 1; 12010 unsigned : 1; 12011 unsigned : 1; 12012 unsigned : 1; 12013 }; 12014 12015 struct 12016 { 12017 unsigned RG : 5; 12018 unsigned : 3; 12019 }; 12020 12021 struct 12022 { 12023 unsigned TRISG : 5; 12024 unsigned : 3; 12025 }; 12026 } __DDRGbits_t; 12027 12028 extern __at(0x0F98) volatile __DDRGbits_t DDRGbits; 12029 12030 #define _TRISG0 0x01 12031 #define _RG0 0x01 12032 #define _TRISG1 0x02 12033 #define _RG1 0x02 12034 #define _TRISG2 0x04 12035 #define _RG2 0x04 12036 #define _TRISG3 0x08 12037 #define _RG3 0x08 12038 #define _TRISG4 0x10 12039 #define _RG4 0x10 12040 12041 //============================================================================== 12042 12043 12044 //============================================================================== 12045 // TRISG Bits 12046 12047 extern __at(0x0F98) __sfr TRISG; 12048 12049 typedef union 12050 { 12051 struct 12052 { 12053 unsigned TRISG0 : 1; 12054 unsigned TRISG1 : 1; 12055 unsigned TRISG2 : 1; 12056 unsigned TRISG3 : 1; 12057 unsigned TRISG4 : 1; 12058 unsigned : 1; 12059 unsigned : 1; 12060 unsigned : 1; 12061 }; 12062 12063 struct 12064 { 12065 unsigned RG0 : 1; 12066 unsigned RG1 : 1; 12067 unsigned RG2 : 1; 12068 unsigned RG3 : 1; 12069 unsigned RG4 : 1; 12070 unsigned : 1; 12071 unsigned : 1; 12072 unsigned : 1; 12073 }; 12074 12075 struct 12076 { 12077 unsigned RG : 5; 12078 unsigned : 3; 12079 }; 12080 12081 struct 12082 { 12083 unsigned TRISG : 5; 12084 unsigned : 3; 12085 }; 12086 } __TRISGbits_t; 12087 12088 extern __at(0x0F98) volatile __TRISGbits_t TRISGbits; 12089 12090 #define _TRISG_TRISG0 0x01 12091 #define _TRISG_RG0 0x01 12092 #define _TRISG_TRISG1 0x02 12093 #define _TRISG_RG1 0x02 12094 #define _TRISG_TRISG2 0x04 12095 #define _TRISG_RG2 0x04 12096 #define _TRISG_TRISG3 0x08 12097 #define _TRISG_RG3 0x08 12098 #define _TRISG_TRISG4 0x10 12099 #define _TRISG_RG4 0x10 12100 12101 //============================================================================== 12102 12103 12104 //============================================================================== 12105 // PIE1 Bits 12106 12107 extern __at(0x0F9D) __sfr PIE1; 12108 12109 typedef struct 12110 { 12111 unsigned TMR1IE : 1; 12112 unsigned TMR2IE : 1; 12113 unsigned CCP1IE : 1; 12114 unsigned SSPIE : 1; 12115 unsigned TXIE : 1; 12116 unsigned RCIE : 1; 12117 unsigned ADIE : 1; 12118 unsigned PSPIE : 1; 12119 } __PIE1bits_t; 12120 12121 extern __at(0x0F9D) volatile __PIE1bits_t PIE1bits; 12122 12123 #define _TMR1IE 0x01 12124 #define _TMR2IE 0x02 12125 #define _CCP1IE 0x04 12126 #define _SSPIE 0x08 12127 #define _TXIE 0x10 12128 #define _RCIE 0x20 12129 #define _ADIE 0x40 12130 #define _PSPIE 0x80 12131 12132 //============================================================================== 12133 12134 12135 //============================================================================== 12136 // PIR1 Bits 12137 12138 extern __at(0x0F9E) __sfr PIR1; 12139 12140 typedef struct 12141 { 12142 unsigned TMR1IF : 1; 12143 unsigned TMR2IF : 1; 12144 unsigned CCP1IF : 1; 12145 unsigned SSPIF : 1; 12146 unsigned TXIF : 1; 12147 unsigned RCIF : 1; 12148 unsigned ADIF : 1; 12149 unsigned PSPIF : 1; 12150 } __PIR1bits_t; 12151 12152 extern __at(0x0F9E) volatile __PIR1bits_t PIR1bits; 12153 12154 #define _TMR1IF 0x01 12155 #define _TMR2IF 0x02 12156 #define _CCP1IF 0x04 12157 #define _SSPIF 0x08 12158 #define _TXIF 0x10 12159 #define _RCIF 0x20 12160 #define _ADIF 0x40 12161 #define _PSPIF 0x80 12162 12163 //============================================================================== 12164 12165 12166 //============================================================================== 12167 // IPR1 Bits 12168 12169 extern __at(0x0F9F) __sfr IPR1; 12170 12171 typedef struct 12172 { 12173 unsigned TMR1IP : 1; 12174 unsigned TMR2IP : 1; 12175 unsigned CCP1IP : 1; 12176 unsigned SSPIP : 1; 12177 unsigned TXIP : 1; 12178 unsigned RCIP : 1; 12179 unsigned ADIP : 1; 12180 unsigned PSPIP : 1; 12181 } __IPR1bits_t; 12182 12183 extern __at(0x0F9F) volatile __IPR1bits_t IPR1bits; 12184 12185 #define _TMR1IP 0x01 12186 #define _TMR2IP 0x02 12187 #define _CCP1IP 0x04 12188 #define _SSPIP 0x08 12189 #define _TXIP 0x10 12190 #define _RCIP 0x20 12191 #define _ADIP 0x40 12192 #define _PSPIP 0x80 12193 12194 //============================================================================== 12195 12196 12197 //============================================================================== 12198 // PIE2 Bits 12199 12200 extern __at(0x0FA0) __sfr PIE2; 12201 12202 typedef struct 12203 { 12204 unsigned CCP2IE : 1; 12205 unsigned TMR3IE : 1; 12206 unsigned LVDIE : 1; 12207 unsigned BCLIE : 1; 12208 unsigned EEIE : 1; 12209 unsigned : 1; 12210 unsigned CMIE : 1; 12211 unsigned : 1; 12212 } __PIE2bits_t; 12213 12214 extern __at(0x0FA0) volatile __PIE2bits_t PIE2bits; 12215 12216 #define _CCP2IE 0x01 12217 #define _TMR3IE 0x02 12218 #define _LVDIE 0x04 12219 #define _BCLIE 0x08 12220 #define _EEIE 0x10 12221 #define _CMIE 0x40 12222 12223 //============================================================================== 12224 12225 12226 //============================================================================== 12227 // PIR2 Bits 12228 12229 extern __at(0x0FA1) __sfr PIR2; 12230 12231 typedef struct 12232 { 12233 unsigned CCP2IF : 1; 12234 unsigned TMR3IF : 1; 12235 unsigned LVDIF : 1; 12236 unsigned BCLIF : 1; 12237 unsigned EEIF : 1; 12238 unsigned : 1; 12239 unsigned CMIF : 1; 12240 unsigned : 1; 12241 } __PIR2bits_t; 12242 12243 extern __at(0x0FA1) volatile __PIR2bits_t PIR2bits; 12244 12245 #define _CCP2IF 0x01 12246 #define _TMR3IF 0x02 12247 #define _LVDIF 0x04 12248 #define _BCLIF 0x08 12249 #define _EEIF 0x10 12250 #define _CMIF 0x40 12251 12252 //============================================================================== 12253 12254 12255 //============================================================================== 12256 // IPR2 Bits 12257 12258 extern __at(0x0FA2) __sfr IPR2; 12259 12260 typedef struct 12261 { 12262 unsigned CCP2IP : 1; 12263 unsigned TMR3IP : 1; 12264 unsigned LVDIP : 1; 12265 unsigned BCLIP : 1; 12266 unsigned EEIP : 1; 12267 unsigned : 1; 12268 unsigned CMIP : 1; 12269 unsigned : 1; 12270 } __IPR2bits_t; 12271 12272 extern __at(0x0FA2) volatile __IPR2bits_t IPR2bits; 12273 12274 #define _CCP2IP 0x01 12275 #define _TMR3IP 0x02 12276 #define _LVDIP 0x04 12277 #define _BCLIP 0x08 12278 #define _EEIP 0x10 12279 #define _CMIP 0x40 12280 12281 //============================================================================== 12282 12283 12284 //============================================================================== 12285 // PIE3 Bits 12286 12287 extern __at(0x0FA3) __sfr PIE3; 12288 12289 typedef union 12290 { 12291 struct 12292 { 12293 unsigned RXB0IE : 1; 12294 unsigned RXB1IE : 1; 12295 unsigned TXB0IE : 1; 12296 unsigned TXB1IE : 1; 12297 unsigned TXB2IE : 1; 12298 unsigned ERRIE : 1; 12299 unsigned WAKIE : 1; 12300 unsigned IRXIE : 1; 12301 }; 12302 12303 struct 12304 { 12305 unsigned FIFOWMIE : 1; 12306 unsigned RXBnIE : 1; 12307 unsigned : 1; 12308 unsigned : 1; 12309 unsigned TXBnIE : 1; 12310 unsigned : 1; 12311 unsigned : 1; 12312 unsigned : 1; 12313 }; 12314 } __PIE3bits_t; 12315 12316 extern __at(0x0FA3) volatile __PIE3bits_t PIE3bits; 12317 12318 #define _PIE3_RXB0IE 0x01 12319 #define _PIE3_FIFOWMIE 0x01 12320 #define _PIE3_RXB1IE 0x02 12321 #define _PIE3_RXBnIE 0x02 12322 #define _PIE3_TXB0IE 0x04 12323 #define _PIE3_TXB1IE 0x08 12324 #define _PIE3_TXB2IE 0x10 12325 #define _PIE3_TXBnIE 0x10 12326 #define _PIE3_ERRIE 0x20 12327 #define _PIE3_WAKIE 0x40 12328 #define _PIE3_IRXIE 0x80 12329 12330 //============================================================================== 12331 12332 12333 //============================================================================== 12334 // PIR3 Bits 12335 12336 extern __at(0x0FA4) __sfr PIR3; 12337 12338 typedef union 12339 { 12340 struct 12341 { 12342 unsigned RXB0IF : 1; 12343 unsigned RXB1IF : 1; 12344 unsigned TXB0IF : 1; 12345 unsigned TXB1IF : 1; 12346 unsigned TXB2IF : 1; 12347 unsigned ERRIF : 1; 12348 unsigned WAKIF : 1; 12349 unsigned IRXIF : 1; 12350 }; 12351 12352 struct 12353 { 12354 unsigned FIFOWMIF : 1; 12355 unsigned RXBnIF : 1; 12356 unsigned : 1; 12357 unsigned : 1; 12358 unsigned TXBnIF : 1; 12359 unsigned : 1; 12360 unsigned : 1; 12361 unsigned : 1; 12362 }; 12363 } __PIR3bits_t; 12364 12365 extern __at(0x0FA4) volatile __PIR3bits_t PIR3bits; 12366 12367 #define _RXB0IF 0x01 12368 #define _FIFOWMIF 0x01 12369 #define _RXB1IF 0x02 12370 #define _RXBnIF 0x02 12371 #define _TXB0IF 0x04 12372 #define _TXB1IF 0x08 12373 #define _TXB2IF 0x10 12374 #define _TXBnIF 0x10 12375 #define _ERRIF 0x20 12376 #define _WAKIF 0x40 12377 #define _IRXIF 0x80 12378 12379 //============================================================================== 12380 12381 12382 //============================================================================== 12383 // IPR3 Bits 12384 12385 extern __at(0x0FA5) __sfr IPR3; 12386 12387 typedef union 12388 { 12389 struct 12390 { 12391 unsigned RXB0IP : 1; 12392 unsigned RXB1IP : 1; 12393 unsigned TXB0IP : 1; 12394 unsigned TXB1IP : 1; 12395 unsigned TXB2IP : 1; 12396 unsigned ERRIP : 1; 12397 unsigned WAKIP : 1; 12398 unsigned IRXIP : 1; 12399 }; 12400 12401 struct 12402 { 12403 unsigned FIFOWMIP : 1; 12404 unsigned RXBnIP : 1; 12405 unsigned : 1; 12406 unsigned : 1; 12407 unsigned TXBnIP : 1; 12408 unsigned : 1; 12409 unsigned : 1; 12410 unsigned : 1; 12411 }; 12412 } __IPR3bits_t; 12413 12414 extern __at(0x0FA5) volatile __IPR3bits_t IPR3bits; 12415 12416 #define _RXB0IP 0x01 12417 #define _FIFOWMIP 0x01 12418 #define _RXB1IP 0x02 12419 #define _RXBnIP 0x02 12420 #define _TXB0IP 0x04 12421 #define _TXB1IP 0x08 12422 #define _TXB2IP 0x10 12423 #define _TXBnIP 0x10 12424 #define _ERRIP 0x20 12425 #define _WAKIP 0x40 12426 #define _IRXIP 0x80 12427 12428 //============================================================================== 12429 12430 12431 //============================================================================== 12432 // EECON1 Bits 12433 12434 extern __at(0x0FA6) __sfr EECON1; 12435 12436 typedef struct 12437 { 12438 unsigned RD : 1; 12439 unsigned WR : 1; 12440 unsigned WREN : 1; 12441 unsigned WRERR : 1; 12442 unsigned FREE : 1; 12443 unsigned : 1; 12444 unsigned CFGS : 1; 12445 unsigned EEPGD : 1; 12446 } __EECON1bits_t; 12447 12448 extern __at(0x0FA6) volatile __EECON1bits_t EECON1bits; 12449 12450 #define _RD 0x01 12451 #define _WR 0x02 12452 #define _WREN 0x04 12453 #define _WRERR 0x08 12454 #define _FREE 0x10 12455 #define _CFGS 0x40 12456 #define _EEPGD 0x80 12457 12458 //============================================================================== 12459 12460 extern __at(0x0FA7) __sfr EECON2; 12461 extern __at(0x0FA8) __sfr EEDATA; 12462 extern __at(0x0FA9) __sfr EEADR; 12463 extern __at(0x0FAA) __sfr EEADRH; 12464 12465 //============================================================================== 12466 // RCSTA Bits 12467 12468 extern __at(0x0FAB) __sfr RCSTA; 12469 12470 typedef union 12471 { 12472 struct 12473 { 12474 unsigned RX9D : 1; 12475 unsigned OERR : 1; 12476 unsigned FERR : 1; 12477 unsigned ADDEN : 1; 12478 unsigned CREN : 1; 12479 unsigned SREN : 1; 12480 unsigned RX9 : 1; 12481 unsigned SPEN : 1; 12482 }; 12483 12484 struct 12485 { 12486 unsigned RX9D1 : 1; 12487 unsigned OERR1 : 1; 12488 unsigned FERR1 : 1; 12489 unsigned ADEN : 1; 12490 unsigned CREN1 : 1; 12491 unsigned SREN1 : 1; 12492 unsigned RX91 : 1; 12493 unsigned SPEN1 : 1; 12494 }; 12495 12496 struct 12497 { 12498 unsigned : 1; 12499 unsigned : 1; 12500 unsigned : 1; 12501 unsigned ADDEN1 : 1; 12502 unsigned : 1; 12503 unsigned : 1; 12504 unsigned : 1; 12505 unsigned : 1; 12506 }; 12507 } __RCSTAbits_t; 12508 12509 extern __at(0x0FAB) volatile __RCSTAbits_t RCSTAbits; 12510 12511 #define _RX9D 0x01 12512 #define _RX9D1 0x01 12513 #define _OERR 0x02 12514 #define _OERR1 0x02 12515 #define _FERR 0x04 12516 #define _FERR1 0x04 12517 #define _ADDEN 0x08 12518 #define _ADEN 0x08 12519 #define _ADDEN1 0x08 12520 #define _CREN 0x10 12521 #define _CREN1 0x10 12522 #define _SREN 0x20 12523 #define _SREN1 0x20 12524 #define _RX9 0x40 12525 #define _RX91 0x40 12526 #define _SPEN 0x80 12527 #define _SPEN1 0x80 12528 12529 //============================================================================== 12530 12531 12532 //============================================================================== 12533 // RCSTA1 Bits 12534 12535 extern __at(0x0FAB) __sfr RCSTA1; 12536 12537 typedef union 12538 { 12539 struct 12540 { 12541 unsigned RX9D : 1; 12542 unsigned OERR : 1; 12543 unsigned FERR : 1; 12544 unsigned ADDEN : 1; 12545 unsigned CREN : 1; 12546 unsigned SREN : 1; 12547 unsigned RX9 : 1; 12548 unsigned SPEN : 1; 12549 }; 12550 12551 struct 12552 { 12553 unsigned RX9D1 : 1; 12554 unsigned OERR1 : 1; 12555 unsigned FERR1 : 1; 12556 unsigned ADEN : 1; 12557 unsigned CREN1 : 1; 12558 unsigned SREN1 : 1; 12559 unsigned RX91 : 1; 12560 unsigned SPEN1 : 1; 12561 }; 12562 12563 struct 12564 { 12565 unsigned : 1; 12566 unsigned : 1; 12567 unsigned : 1; 12568 unsigned ADDEN1 : 1; 12569 unsigned : 1; 12570 unsigned : 1; 12571 unsigned : 1; 12572 unsigned : 1; 12573 }; 12574 } __RCSTA1bits_t; 12575 12576 extern __at(0x0FAB) volatile __RCSTA1bits_t RCSTA1bits; 12577 12578 #define _RCSTA1_RX9D 0x01 12579 #define _RCSTA1_RX9D1 0x01 12580 #define _RCSTA1_OERR 0x02 12581 #define _RCSTA1_OERR1 0x02 12582 #define _RCSTA1_FERR 0x04 12583 #define _RCSTA1_FERR1 0x04 12584 #define _RCSTA1_ADDEN 0x08 12585 #define _RCSTA1_ADEN 0x08 12586 #define _RCSTA1_ADDEN1 0x08 12587 #define _RCSTA1_CREN 0x10 12588 #define _RCSTA1_CREN1 0x10 12589 #define _RCSTA1_SREN 0x20 12590 #define _RCSTA1_SREN1 0x20 12591 #define _RCSTA1_RX9 0x40 12592 #define _RCSTA1_RX91 0x40 12593 #define _RCSTA1_SPEN 0x80 12594 #define _RCSTA1_SPEN1 0x80 12595 12596 //============================================================================== 12597 12598 12599 //============================================================================== 12600 // TXSTA Bits 12601 12602 extern __at(0x0FAC) __sfr TXSTA; 12603 12604 typedef union 12605 { 12606 struct 12607 { 12608 unsigned TX9D : 1; 12609 unsigned TRMT : 1; 12610 unsigned BRGH : 1; 12611 unsigned SENDB : 1; 12612 unsigned SYNC : 1; 12613 unsigned TXEN : 1; 12614 unsigned TX9 : 1; 12615 unsigned CSRC : 1; 12616 }; 12617 12618 struct 12619 { 12620 unsigned TX9D1 : 1; 12621 unsigned TRMT1 : 1; 12622 unsigned BRGH1 : 1; 12623 unsigned SENDB1 : 1; 12624 unsigned SYNC1 : 1; 12625 unsigned TXEN1 : 1; 12626 unsigned TX91 : 1; 12627 unsigned CSRC1 : 1; 12628 }; 12629 } __TXSTAbits_t; 12630 12631 extern __at(0x0FAC) volatile __TXSTAbits_t TXSTAbits; 12632 12633 #define _TX9D 0x01 12634 #define _TX9D1 0x01 12635 #define _TRMT 0x02 12636 #define _TRMT1 0x02 12637 #define _BRGH 0x04 12638 #define _BRGH1 0x04 12639 #define _SENDB 0x08 12640 #define _SENDB1 0x08 12641 #define _SYNC 0x10 12642 #define _SYNC1 0x10 12643 #define _TXEN 0x20 12644 #define _TXEN1 0x20 12645 #define _TX9 0x40 12646 #define _TX91 0x40 12647 #define _CSRC 0x80 12648 #define _CSRC1 0x80 12649 12650 //============================================================================== 12651 12652 12653 //============================================================================== 12654 // TXSTA1 Bits 12655 12656 extern __at(0x0FAC) __sfr TXSTA1; 12657 12658 typedef union 12659 { 12660 struct 12661 { 12662 unsigned TX9D : 1; 12663 unsigned TRMT : 1; 12664 unsigned BRGH : 1; 12665 unsigned SENDB : 1; 12666 unsigned SYNC : 1; 12667 unsigned TXEN : 1; 12668 unsigned TX9 : 1; 12669 unsigned CSRC : 1; 12670 }; 12671 12672 struct 12673 { 12674 unsigned TX9D1 : 1; 12675 unsigned TRMT1 : 1; 12676 unsigned BRGH1 : 1; 12677 unsigned SENDB1 : 1; 12678 unsigned SYNC1 : 1; 12679 unsigned TXEN1 : 1; 12680 unsigned TX91 : 1; 12681 unsigned CSRC1 : 1; 12682 }; 12683 } __TXSTA1bits_t; 12684 12685 extern __at(0x0FAC) volatile __TXSTA1bits_t TXSTA1bits; 12686 12687 #define _TXSTA1_TX9D 0x01 12688 #define _TXSTA1_TX9D1 0x01 12689 #define _TXSTA1_TRMT 0x02 12690 #define _TXSTA1_TRMT1 0x02 12691 #define _TXSTA1_BRGH 0x04 12692 #define _TXSTA1_BRGH1 0x04 12693 #define _TXSTA1_SENDB 0x08 12694 #define _TXSTA1_SENDB1 0x08 12695 #define _TXSTA1_SYNC 0x10 12696 #define _TXSTA1_SYNC1 0x10 12697 #define _TXSTA1_TXEN 0x20 12698 #define _TXSTA1_TXEN1 0x20 12699 #define _TXSTA1_TX9 0x40 12700 #define _TXSTA1_TX91 0x40 12701 #define _TXSTA1_CSRC 0x80 12702 #define _TXSTA1_CSRC1 0x80 12703 12704 //============================================================================== 12705 12706 extern __at(0x0FAD) __sfr TXREG; 12707 extern __at(0x0FAD) __sfr TXREG1; 12708 extern __at(0x0FAE) __sfr RCREG; 12709 extern __at(0x0FAE) __sfr RCREG1; 12710 extern __at(0x0FAF) __sfr SPBRG; 12711 extern __at(0x0FAF) __sfr SPBRG1; 12712 12713 //============================================================================== 12714 // PSPCON Bits 12715 12716 extern __at(0x0FB0) __sfr PSPCON; 12717 12718 typedef struct 12719 { 12720 unsigned : 1; 12721 unsigned : 1; 12722 unsigned : 1; 12723 unsigned : 1; 12724 unsigned PSPMODE : 1; 12725 unsigned IBOV : 1; 12726 unsigned OBF : 1; 12727 unsigned IBF : 1; 12728 } __PSPCONbits_t; 12729 12730 extern __at(0x0FB0) volatile __PSPCONbits_t PSPCONbits; 12731 12732 #define _PSPMODE 0x10 12733 #define _IBOV 0x20 12734 #define _OBF 0x40 12735 #define _IBF 0x80 12736 12737 //============================================================================== 12738 12739 12740 //============================================================================== 12741 // T3CON Bits 12742 12743 extern __at(0x0FB1) __sfr T3CON; 12744 12745 typedef union 12746 { 12747 struct 12748 { 12749 unsigned TMR3ON : 1; 12750 unsigned TMR3CS : 1; 12751 unsigned NOT_T3SYNC : 1; 12752 unsigned T3CCP1 : 1; 12753 unsigned T3CKPS0 : 1; 12754 unsigned T3CKPS1 : 1; 12755 unsigned T3CCP2 : 1; 12756 unsigned RD16 : 1; 12757 }; 12758 12759 struct 12760 { 12761 unsigned : 1; 12762 unsigned : 1; 12763 unsigned T3SYNC : 1; 12764 unsigned : 1; 12765 unsigned : 1; 12766 unsigned : 1; 12767 unsigned : 1; 12768 unsigned : 1; 12769 }; 12770 12771 struct 12772 { 12773 unsigned : 1; 12774 unsigned : 1; 12775 unsigned T3NSYNC : 1; 12776 unsigned : 1; 12777 unsigned : 1; 12778 unsigned : 1; 12779 unsigned : 1; 12780 unsigned : 1; 12781 }; 12782 12783 struct 12784 { 12785 unsigned : 4; 12786 unsigned T3CKPS : 2; 12787 unsigned : 2; 12788 }; 12789 } __T3CONbits_t; 12790 12791 extern __at(0x0FB1) volatile __T3CONbits_t T3CONbits; 12792 12793 #define _T3CON_TMR3ON 0x01 12794 #define _T3CON_TMR3CS 0x02 12795 #define _T3CON_NOT_T3SYNC 0x04 12796 #define _T3CON_T3SYNC 0x04 12797 #define _T3CON_T3NSYNC 0x04 12798 #define _T3CON_T3CCP1 0x08 12799 #define _T3CON_T3CKPS0 0x10 12800 #define _T3CON_T3CKPS1 0x20 12801 #define _T3CON_T3CCP2 0x40 12802 #define _T3CON_RD16 0x80 12803 12804 //============================================================================== 12805 12806 extern __at(0x0FB2) __sfr TMR3; 12807 extern __at(0x0FB2) __sfr TMR3L; 12808 extern __at(0x0FB3) __sfr TMR3H; 12809 12810 //============================================================================== 12811 // CMCON Bits 12812 12813 extern __at(0x0FB4) __sfr CMCON; 12814 12815 typedef union 12816 { 12817 struct 12818 { 12819 unsigned CM0 : 1; 12820 unsigned CM1 : 1; 12821 unsigned CM2 : 1; 12822 unsigned CIS : 1; 12823 unsigned C1INV : 1; 12824 unsigned C2INV : 1; 12825 unsigned C1OUT : 1; 12826 unsigned C2OUT : 1; 12827 }; 12828 12829 struct 12830 { 12831 unsigned CM : 3; 12832 unsigned : 5; 12833 }; 12834 } __CMCONbits_t; 12835 12836 extern __at(0x0FB4) volatile __CMCONbits_t CMCONbits; 12837 12838 #define _CM0 0x01 12839 #define _CM1 0x02 12840 #define _CM2 0x04 12841 #define _CIS 0x08 12842 #define _C1INV 0x10 12843 #define _C2INV 0x20 12844 #define _C1OUT 0x40 12845 #define _C2OUT 0x80 12846 12847 //============================================================================== 12848 12849 12850 //============================================================================== 12851 // CVRCON Bits 12852 12853 extern __at(0x0FB5) __sfr CVRCON; 12854 12855 typedef union 12856 { 12857 struct 12858 { 12859 unsigned CVR0 : 1; 12860 unsigned CVR1 : 1; 12861 unsigned CVR2 : 1; 12862 unsigned CVR3 : 1; 12863 unsigned CVRSS : 1; 12864 unsigned CVRR : 1; 12865 unsigned CVROE : 1; 12866 unsigned CVREN : 1; 12867 }; 12868 12869 struct 12870 { 12871 unsigned : 1; 12872 unsigned : 1; 12873 unsigned : 1; 12874 unsigned : 1; 12875 unsigned CVREF : 1; 12876 unsigned : 1; 12877 unsigned : 1; 12878 unsigned : 1; 12879 }; 12880 12881 struct 12882 { 12883 unsigned CVR : 4; 12884 unsigned : 4; 12885 }; 12886 } __CVRCONbits_t; 12887 12888 extern __at(0x0FB5) volatile __CVRCONbits_t CVRCONbits; 12889 12890 #define _CVR0 0x01 12891 #define _CVR1 0x02 12892 #define _CVR2 0x04 12893 #define _CVR3 0x08 12894 #define _CVRSS 0x10 12895 #define _CVREF 0x10 12896 #define _CVRR 0x20 12897 #define _CVROE 0x40 12898 #define _CVREN 0x80 12899 12900 //============================================================================== 12901 12902 12903 //============================================================================== 12904 // ECCP1AS Bits 12905 12906 extern __at(0x0FB6) __sfr ECCP1AS; 12907 12908 typedef union 12909 { 12910 struct 12911 { 12912 unsigned PSSBD0 : 1; 12913 unsigned PSSBD1 : 1; 12914 unsigned PSSAC0 : 1; 12915 unsigned PSSAC1 : 1; 12916 unsigned ECCPAS0 : 1; 12917 unsigned ECCPAS1 : 1; 12918 unsigned ECCPAS2 : 1; 12919 unsigned ECCPASE : 1; 12920 }; 12921 12922 struct 12923 { 12924 unsigned PSSBD : 2; 12925 unsigned : 6; 12926 }; 12927 12928 struct 12929 { 12930 unsigned : 2; 12931 unsigned PSSAC : 2; 12932 unsigned : 4; 12933 }; 12934 12935 struct 12936 { 12937 unsigned : 4; 12938 unsigned ECCPAS : 3; 12939 unsigned : 1; 12940 }; 12941 } __ECCP1ASbits_t; 12942 12943 extern __at(0x0FB6) volatile __ECCP1ASbits_t ECCP1ASbits; 12944 12945 #define _PSSBD0 0x01 12946 #define _PSSBD1 0x02 12947 #define _PSSAC0 0x04 12948 #define _PSSAC1 0x08 12949 #define _ECCPAS0 0x10 12950 #define _ECCPAS1 0x20 12951 #define _ECCPAS2 0x40 12952 #define _ECCPASE 0x80 12953 12954 //============================================================================== 12955 12956 12957 //============================================================================== 12958 // CCP2CON Bits 12959 12960 extern __at(0x0FBA) __sfr CCP2CON; 12961 12962 typedef union 12963 { 12964 struct 12965 { 12966 unsigned CCP2M0 : 1; 12967 unsigned CCP2M1 : 1; 12968 unsigned CCP2M2 : 1; 12969 unsigned CCP2M3 : 1; 12970 unsigned DC2B0 : 1; 12971 unsigned DC2B1 : 1; 12972 unsigned : 1; 12973 unsigned : 1; 12974 }; 12975 12976 struct 12977 { 12978 unsigned CCP2M : 4; 12979 unsigned : 4; 12980 }; 12981 12982 struct 12983 { 12984 unsigned : 4; 12985 unsigned DC2B : 2; 12986 unsigned : 2; 12987 }; 12988 } __CCP2CONbits_t; 12989 12990 extern __at(0x0FBA) volatile __CCP2CONbits_t CCP2CONbits; 12991 12992 #define _CCP2M0 0x01 12993 #define _CCP2M1 0x02 12994 #define _CCP2M2 0x04 12995 #define _CCP2M3 0x08 12996 #define _DC2B0 0x10 12997 #define _DC2B1 0x20 12998 12999 //============================================================================== 13000 13001 extern __at(0x0FBB) __sfr CCPR2; 13002 extern __at(0x0FBB) __sfr CCPR2L; 13003 extern __at(0x0FBC) __sfr CCPR2H; 13004 13005 //============================================================================== 13006 // CCP1CON Bits 13007 13008 extern __at(0x0FBD) __sfr CCP1CON; 13009 13010 typedef union 13011 { 13012 struct 13013 { 13014 unsigned CCP1M0 : 1; 13015 unsigned CCP1M1 : 1; 13016 unsigned CCP1M2 : 1; 13017 unsigned CCP1M3 : 1; 13018 unsigned DC1B0 : 1; 13019 unsigned DC1B1 : 1; 13020 unsigned P1M0 : 1; 13021 unsigned P1M1 : 1; 13022 }; 13023 13024 struct 13025 { 13026 unsigned CCP1M : 4; 13027 unsigned : 4; 13028 }; 13029 13030 struct 13031 { 13032 unsigned : 4; 13033 unsigned DC1B : 2; 13034 unsigned : 2; 13035 }; 13036 13037 struct 13038 { 13039 unsigned : 6; 13040 unsigned P1M : 2; 13041 }; 13042 } __CCP1CONbits_t; 13043 13044 extern __at(0x0FBD) volatile __CCP1CONbits_t CCP1CONbits; 13045 13046 #define _CCP1M0 0x01 13047 #define _CCP1M1 0x02 13048 #define _CCP1M2 0x04 13049 #define _CCP1M3 0x08 13050 #define _DC1B0 0x10 13051 #define _DC1B1 0x20 13052 #define _P1M0 0x40 13053 #define _P1M1 0x80 13054 13055 //============================================================================== 13056 13057 extern __at(0x0FBE) __sfr CCPR1; 13058 extern __at(0x0FBE) __sfr CCPR1L; 13059 extern __at(0x0FBF) __sfr CCPR1H; 13060 13061 //============================================================================== 13062 // ADCON2 Bits 13063 13064 extern __at(0x0FC0) __sfr ADCON2; 13065 13066 typedef union 13067 { 13068 struct 13069 { 13070 unsigned ADCS0 : 1; 13071 unsigned ADCS1 : 1; 13072 unsigned ADCS2 : 1; 13073 unsigned ACQT0 : 1; 13074 unsigned ACQT1 : 1; 13075 unsigned ACQT2 : 1; 13076 unsigned : 1; 13077 unsigned ADFM : 1; 13078 }; 13079 13080 struct 13081 { 13082 unsigned ADCS : 3; 13083 unsigned : 5; 13084 }; 13085 13086 struct 13087 { 13088 unsigned : 3; 13089 unsigned ACQT : 3; 13090 unsigned : 2; 13091 }; 13092 } __ADCON2bits_t; 13093 13094 extern __at(0x0FC0) volatile __ADCON2bits_t ADCON2bits; 13095 13096 #define _ADCS0 0x01 13097 #define _ADCS1 0x02 13098 #define _ADCS2 0x04 13099 #define _ACQT0 0x08 13100 #define _ACQT1 0x10 13101 #define _ACQT2 0x20 13102 #define _ADFM 0x80 13103 13104 //============================================================================== 13105 13106 13107 //============================================================================== 13108 // ADCON1 Bits 13109 13110 extern __at(0x0FC1) __sfr ADCON1; 13111 13112 typedef union 13113 { 13114 struct 13115 { 13116 unsigned PCFG0 : 1; 13117 unsigned PCFG1 : 1; 13118 unsigned PCFG2 : 1; 13119 unsigned PCFG3 : 1; 13120 unsigned VCFG0 : 1; 13121 unsigned VCFG1 : 1; 13122 unsigned : 1; 13123 unsigned : 1; 13124 }; 13125 13126 struct 13127 { 13128 unsigned PCFG : 4; 13129 unsigned : 4; 13130 }; 13131 13132 struct 13133 { 13134 unsigned : 4; 13135 unsigned VCFG : 2; 13136 unsigned : 2; 13137 }; 13138 } __ADCON1bits_t; 13139 13140 extern __at(0x0FC1) volatile __ADCON1bits_t ADCON1bits; 13141 13142 #define _PCFG0 0x01 13143 #define _PCFG1 0x02 13144 #define _PCFG2 0x04 13145 #define _PCFG3 0x08 13146 #define _VCFG0 0x10 13147 #define _VCFG1 0x20 13148 13149 //============================================================================== 13150 13151 13152 //============================================================================== 13153 // ADCON0 Bits 13154 13155 extern __at(0x0FC2) __sfr ADCON0; 13156 13157 typedef union 13158 { 13159 struct 13160 { 13161 unsigned ADON : 1; 13162 unsigned GO_NOT_DONE : 1; 13163 unsigned CHS0 : 1; 13164 unsigned CHS1 : 1; 13165 unsigned CHS2 : 1; 13166 unsigned CHS3 : 1; 13167 unsigned : 1; 13168 unsigned : 1; 13169 }; 13170 13171 struct 13172 { 13173 unsigned : 1; 13174 unsigned GO_DONE : 1; 13175 unsigned : 1; 13176 unsigned : 1; 13177 unsigned : 1; 13178 unsigned : 1; 13179 unsigned : 1; 13180 unsigned : 1; 13181 }; 13182 13183 struct 13184 { 13185 unsigned : 1; 13186 unsigned DONE : 1; 13187 unsigned : 1; 13188 unsigned : 1; 13189 unsigned : 1; 13190 unsigned : 1; 13191 unsigned : 1; 13192 unsigned : 1; 13193 }; 13194 13195 struct 13196 { 13197 unsigned : 1; 13198 unsigned GO : 1; 13199 unsigned : 1; 13200 unsigned : 1; 13201 unsigned : 1; 13202 unsigned : 1; 13203 unsigned : 1; 13204 unsigned : 1; 13205 }; 13206 13207 struct 13208 { 13209 unsigned : 1; 13210 unsigned NOT_DONE : 1; 13211 unsigned : 1; 13212 unsigned : 1; 13213 unsigned : 1; 13214 unsigned : 1; 13215 unsigned : 1; 13216 unsigned : 1; 13217 }; 13218 13219 struct 13220 { 13221 unsigned : 2; 13222 unsigned CHS : 4; 13223 unsigned : 2; 13224 }; 13225 } __ADCON0bits_t; 13226 13227 extern __at(0x0FC2) volatile __ADCON0bits_t ADCON0bits; 13228 13229 #define _ADON 0x01 13230 #define _GO_NOT_DONE 0x02 13231 #define _GO_DONE 0x02 13232 #define _DONE 0x02 13233 #define _GO 0x02 13234 #define _NOT_DONE 0x02 13235 #define _CHS0 0x04 13236 #define _CHS1 0x08 13237 #define _CHS2 0x10 13238 #define _CHS3 0x20 13239 13240 //============================================================================== 13241 13242 extern __at(0x0FC3) __sfr ADRES; 13243 extern __at(0x0FC3) __sfr ADRESL; 13244 extern __at(0x0FC4) __sfr ADRESH; 13245 13246 //============================================================================== 13247 // SSPCON2 Bits 13248 13249 extern __at(0x0FC5) __sfr SSPCON2; 13250 13251 typedef struct 13252 { 13253 unsigned SEN : 1; 13254 unsigned RSEN : 1; 13255 unsigned PEN : 1; 13256 unsigned RCEN : 1; 13257 unsigned ACKEN : 1; 13258 unsigned ACKDT : 1; 13259 unsigned ACKSTAT : 1; 13260 unsigned GCEN : 1; 13261 } __SSPCON2bits_t; 13262 13263 extern __at(0x0FC5) volatile __SSPCON2bits_t SSPCON2bits; 13264 13265 #define _SEN 0x01 13266 #define _RSEN 0x02 13267 #define _PEN 0x04 13268 #define _RCEN 0x08 13269 #define _ACKEN 0x10 13270 #define _ACKDT 0x20 13271 #define _ACKSTAT 0x40 13272 #define _GCEN 0x80 13273 13274 //============================================================================== 13275 13276 13277 //============================================================================== 13278 // SSPCON1 Bits 13279 13280 extern __at(0x0FC6) __sfr SSPCON1; 13281 13282 typedef union 13283 { 13284 struct 13285 { 13286 unsigned SSPM0 : 1; 13287 unsigned SSPM1 : 1; 13288 unsigned SSPM2 : 1; 13289 unsigned SSPM3 : 1; 13290 unsigned CKP : 1; 13291 unsigned SSPEN : 1; 13292 unsigned SSPOV : 1; 13293 unsigned WCOL : 1; 13294 }; 13295 13296 struct 13297 { 13298 unsigned SSPM : 4; 13299 unsigned : 4; 13300 }; 13301 } __SSPCON1bits_t; 13302 13303 extern __at(0x0FC6) volatile __SSPCON1bits_t SSPCON1bits; 13304 13305 #define _SSPM0 0x01 13306 #define _SSPM1 0x02 13307 #define _SSPM2 0x04 13308 #define _SSPM3 0x08 13309 #define _CKP 0x10 13310 #define _SSPEN 0x20 13311 #define _SSPOV 0x40 13312 #define _WCOL 0x80 13313 13314 //============================================================================== 13315 13316 13317 //============================================================================== 13318 // SSPSTAT Bits 13319 13320 extern __at(0x0FC7) __sfr SSPSTAT; 13321 13322 typedef union 13323 { 13324 struct 13325 { 13326 unsigned BF : 1; 13327 unsigned UA : 1; 13328 unsigned R_NOT_W : 1; 13329 unsigned S : 1; 13330 unsigned P : 1; 13331 unsigned D_NOT_A : 1; 13332 unsigned CKE : 1; 13333 unsigned SMP : 1; 13334 }; 13335 13336 struct 13337 { 13338 unsigned : 1; 13339 unsigned : 1; 13340 unsigned R_W : 1; 13341 unsigned I2C_START : 1; 13342 unsigned I2C_STOP : 1; 13343 unsigned D_A : 1; 13344 unsigned : 1; 13345 unsigned : 1; 13346 }; 13347 13348 struct 13349 { 13350 unsigned : 1; 13351 unsigned : 1; 13352 unsigned I2C_READ : 1; 13353 unsigned : 1; 13354 unsigned : 1; 13355 unsigned I2C_DAT : 1; 13356 unsigned : 1; 13357 unsigned : 1; 13358 }; 13359 13360 struct 13361 { 13362 unsigned : 1; 13363 unsigned : 1; 13364 unsigned NOT_W : 1; 13365 unsigned : 1; 13366 unsigned : 1; 13367 unsigned NOT_A : 1; 13368 unsigned : 1; 13369 unsigned : 1; 13370 }; 13371 13372 struct 13373 { 13374 unsigned : 1; 13375 unsigned : 1; 13376 unsigned NOT_WRITE : 1; 13377 unsigned : 1; 13378 unsigned : 1; 13379 unsigned NOT_ADDRESS : 1; 13380 unsigned : 1; 13381 unsigned : 1; 13382 }; 13383 13384 struct 13385 { 13386 unsigned : 1; 13387 unsigned : 1; 13388 unsigned READ_WRITE : 1; 13389 unsigned : 1; 13390 unsigned : 1; 13391 unsigned DATA_ADDRESS : 1; 13392 unsigned : 1; 13393 unsigned : 1; 13394 }; 13395 13396 struct 13397 { 13398 unsigned : 1; 13399 unsigned : 1; 13400 unsigned R : 1; 13401 unsigned : 1; 13402 unsigned : 1; 13403 unsigned D : 1; 13404 unsigned : 1; 13405 unsigned : 1; 13406 }; 13407 } __SSPSTATbits_t; 13408 13409 extern __at(0x0FC7) volatile __SSPSTATbits_t SSPSTATbits; 13410 13411 #define _BF 0x01 13412 #define _UA 0x02 13413 #define _R_NOT_W 0x04 13414 #define _R_W 0x04 13415 #define _I2C_READ 0x04 13416 #define _NOT_W 0x04 13417 #define _NOT_WRITE 0x04 13418 #define _READ_WRITE 0x04 13419 #define _R 0x04 13420 #define _S 0x08 13421 #define _I2C_START 0x08 13422 #define _P 0x10 13423 #define _I2C_STOP 0x10 13424 #define _D_NOT_A 0x20 13425 #define _D_A 0x20 13426 #define _I2C_DAT 0x20 13427 #define _NOT_A 0x20 13428 #define _NOT_ADDRESS 0x20 13429 #define _DATA_ADDRESS 0x20 13430 #define _D 0x20 13431 #define _CKE 0x40 13432 #define _SMP 0x80 13433 13434 //============================================================================== 13435 13436 extern __at(0x0FC8) __sfr SSPADD; 13437 extern __at(0x0FC9) __sfr SSPBUF; 13438 13439 //============================================================================== 13440 // T2CON Bits 13441 13442 extern __at(0x0FCA) __sfr T2CON; 13443 13444 typedef union 13445 { 13446 struct 13447 { 13448 unsigned T2CKPS0 : 1; 13449 unsigned T2CKPS1 : 1; 13450 unsigned TMR2ON : 1; 13451 unsigned T2OUTPS0 : 1; 13452 unsigned T2OUTPS1 : 1; 13453 unsigned T2OUTPS2 : 1; 13454 unsigned T2OUTPS3 : 1; 13455 unsigned : 1; 13456 }; 13457 13458 struct 13459 { 13460 unsigned T2CKPS : 2; 13461 unsigned : 6; 13462 }; 13463 13464 struct 13465 { 13466 unsigned : 3; 13467 unsigned T2OUTPS : 4; 13468 unsigned : 1; 13469 }; 13470 } __T2CONbits_t; 13471 13472 extern __at(0x0FCA) volatile __T2CONbits_t T2CONbits; 13473 13474 #define _T2CKPS0 0x01 13475 #define _T2CKPS1 0x02 13476 #define _TMR2ON 0x04 13477 #define _T2OUTPS0 0x08 13478 #define _T2OUTPS1 0x10 13479 #define _T2OUTPS2 0x20 13480 #define _T2OUTPS3 0x40 13481 13482 //============================================================================== 13483 13484 extern __at(0x0FCB) __sfr PR2; 13485 extern __at(0x0FCC) __sfr TMR2; 13486 13487 //============================================================================== 13488 // T1CON Bits 13489 13490 extern __at(0x0FCD) __sfr T1CON; 13491 13492 typedef union 13493 { 13494 struct 13495 { 13496 unsigned TMR1ON : 1; 13497 unsigned TMR1CS : 1; 13498 unsigned NOT_T1SYNC : 1; 13499 unsigned T1OSCEN : 1; 13500 unsigned T1CKPS0 : 1; 13501 unsigned T1CKPS1 : 1; 13502 unsigned : 1; 13503 unsigned RD16 : 1; 13504 }; 13505 13506 struct 13507 { 13508 unsigned : 1; 13509 unsigned : 1; 13510 unsigned T1SYNC : 1; 13511 unsigned : 1; 13512 unsigned : 1; 13513 unsigned : 1; 13514 unsigned : 1; 13515 unsigned : 1; 13516 }; 13517 13518 struct 13519 { 13520 unsigned : 1; 13521 unsigned : 1; 13522 unsigned T1INSYNC : 1; 13523 unsigned : 1; 13524 unsigned : 1; 13525 unsigned : 1; 13526 unsigned : 1; 13527 unsigned : 1; 13528 }; 13529 13530 struct 13531 { 13532 unsigned : 4; 13533 unsigned T1CKPS : 2; 13534 unsigned : 2; 13535 }; 13536 } __T1CONbits_t; 13537 13538 extern __at(0x0FCD) volatile __T1CONbits_t T1CONbits; 13539 13540 #define _TMR1ON 0x01 13541 #define _TMR1CS 0x02 13542 #define _NOT_T1SYNC 0x04 13543 #define _T1SYNC 0x04 13544 #define _T1INSYNC 0x04 13545 #define _T1OSCEN 0x08 13546 #define _T1CKPS0 0x10 13547 #define _T1CKPS1 0x20 13548 #define _RD16 0x80 13549 13550 //============================================================================== 13551 13552 extern __at(0x0FCE) __sfr TMR1; 13553 extern __at(0x0FCE) __sfr TMR1L; 13554 extern __at(0x0FCF) __sfr TMR1H; 13555 13556 //============================================================================== 13557 // RCON Bits 13558 13559 extern __at(0x0FD0) __sfr RCON; 13560 13561 typedef union 13562 { 13563 struct 13564 { 13565 unsigned NOT_BOR : 1; 13566 unsigned NOT_POR : 1; 13567 unsigned NOT_PD : 1; 13568 unsigned NOT_TO : 1; 13569 unsigned NOT_RI : 1; 13570 unsigned : 1; 13571 unsigned : 1; 13572 unsigned IPEN : 1; 13573 }; 13574 13575 struct 13576 { 13577 unsigned BOR : 1; 13578 unsigned POR : 1; 13579 unsigned PD : 1; 13580 unsigned TO : 1; 13581 unsigned RI : 1; 13582 unsigned : 1; 13583 unsigned : 1; 13584 unsigned NOT_IPEN : 1; 13585 }; 13586 } __RCONbits_t; 13587 13588 extern __at(0x0FD0) volatile __RCONbits_t RCONbits; 13589 13590 #define _NOT_BOR 0x01 13591 #define _BOR 0x01 13592 #define _NOT_POR 0x02 13593 #define _POR 0x02 13594 #define _NOT_PD 0x04 13595 #define _PD 0x04 13596 #define _NOT_TO 0x08 13597 #define _TO 0x08 13598 #define _NOT_RI 0x10 13599 #define _RI 0x10 13600 #define _IPEN 0x80 13601 #define _NOT_IPEN 0x80 13602 13603 //============================================================================== 13604 13605 13606 //============================================================================== 13607 // WDTCON Bits 13608 13609 extern __at(0x0FD1) __sfr WDTCON; 13610 13611 typedef union 13612 { 13613 struct 13614 { 13615 unsigned SWDTEN : 1; 13616 unsigned : 1; 13617 unsigned : 1; 13618 unsigned : 1; 13619 unsigned : 1; 13620 unsigned : 1; 13621 unsigned : 1; 13622 unsigned : 1; 13623 }; 13624 13625 struct 13626 { 13627 unsigned SWDTE : 1; 13628 unsigned : 1; 13629 unsigned : 1; 13630 unsigned : 1; 13631 unsigned : 1; 13632 unsigned : 1; 13633 unsigned : 1; 13634 unsigned : 1; 13635 }; 13636 } __WDTCONbits_t; 13637 13638 extern __at(0x0FD1) volatile __WDTCONbits_t WDTCONbits; 13639 13640 #define _SWDTEN 0x01 13641 #define _SWDTE 0x01 13642 13643 //============================================================================== 13644 13645 13646 //============================================================================== 13647 // LVDCON Bits 13648 13649 extern __at(0x0FD2) __sfr LVDCON; 13650 13651 typedef union 13652 { 13653 struct 13654 { 13655 unsigned LVDL0 : 1; 13656 unsigned LVDL1 : 1; 13657 unsigned LVDL2 : 1; 13658 unsigned LVDL3 : 1; 13659 unsigned LVDEN : 1; 13660 unsigned IRVST : 1; 13661 unsigned : 1; 13662 unsigned : 1; 13663 }; 13664 13665 struct 13666 { 13667 unsigned LVV0 : 1; 13668 unsigned LVV1 : 1; 13669 unsigned LVV2 : 1; 13670 unsigned LVV3 : 1; 13671 unsigned : 1; 13672 unsigned BGST : 1; 13673 unsigned : 1; 13674 unsigned : 1; 13675 }; 13676 13677 struct 13678 { 13679 unsigned LVV : 4; 13680 unsigned : 4; 13681 }; 13682 13683 struct 13684 { 13685 unsigned LVDL : 4; 13686 unsigned : 4; 13687 }; 13688 } __LVDCONbits_t; 13689 13690 extern __at(0x0FD2) volatile __LVDCONbits_t LVDCONbits; 13691 13692 #define _LVDL0 0x01 13693 #define _LVV0 0x01 13694 #define _LVDL1 0x02 13695 #define _LVV1 0x02 13696 #define _LVDL2 0x04 13697 #define _LVV2 0x04 13698 #define _LVDL3 0x08 13699 #define _LVV3 0x08 13700 #define _LVDEN 0x10 13701 #define _IRVST 0x20 13702 #define _BGST 0x20 13703 13704 //============================================================================== 13705 13706 13707 //============================================================================== 13708 // OSCCON Bits 13709 13710 extern __at(0x0FD3) __sfr OSCCON; 13711 13712 typedef union 13713 { 13714 struct 13715 { 13716 unsigned SCS0 : 1; 13717 unsigned SCS1 : 1; 13718 unsigned PLLEN : 1; 13719 unsigned LOCK : 1; 13720 unsigned : 1; 13721 unsigned : 1; 13722 unsigned : 1; 13723 unsigned : 1; 13724 }; 13725 13726 struct 13727 { 13728 unsigned SCS : 1; 13729 unsigned : 1; 13730 unsigned : 1; 13731 unsigned : 1; 13732 unsigned : 1; 13733 unsigned : 1; 13734 unsigned : 1; 13735 unsigned : 1; 13736 }; 13737 } __OSCCONbits_t; 13738 13739 extern __at(0x0FD3) volatile __OSCCONbits_t OSCCONbits; 13740 13741 #define _SCS0 0x01 13742 #define _SCS 0x01 13743 #define _SCS1 0x02 13744 #define _PLLEN 0x04 13745 #define _LOCK 0x08 13746 13747 //============================================================================== 13748 13749 13750 //============================================================================== 13751 // T0CON Bits 13752 13753 extern __at(0x0FD5) __sfr T0CON; 13754 13755 typedef union 13756 { 13757 struct 13758 { 13759 unsigned T0PS0 : 1; 13760 unsigned T0PS1 : 1; 13761 unsigned T0PS2 : 1; 13762 unsigned PSA : 1; 13763 unsigned T0SE : 1; 13764 unsigned T0CS : 1; 13765 unsigned T08BIT : 1; 13766 unsigned TMR0ON : 1; 13767 }; 13768 13769 struct 13770 { 13771 unsigned T0PS : 3; 13772 unsigned : 5; 13773 }; 13774 } __T0CONbits_t; 13775 13776 extern __at(0x0FD5) volatile __T0CONbits_t T0CONbits; 13777 13778 #define _T0PS0 0x01 13779 #define _T0PS1 0x02 13780 #define _T0PS2 0x04 13781 #define _PSA 0x08 13782 #define _T0SE 0x10 13783 #define _T0CS 0x20 13784 #define _T08BIT 0x40 13785 #define _TMR0ON 0x80 13786 13787 //============================================================================== 13788 13789 extern __at(0x0FD6) __sfr TMR0; 13790 extern __at(0x0FD6) __sfr TMR0L; 13791 extern __at(0x0FD7) __sfr TMR0H; 13792 13793 //============================================================================== 13794 // STATUS Bits 13795 13796 extern __at(0x0FD8) __sfr STATUS; 13797 13798 typedef struct 13799 { 13800 unsigned C : 1; 13801 unsigned DC : 1; 13802 unsigned Z : 1; 13803 unsigned OV : 1; 13804 unsigned N : 1; 13805 unsigned : 1; 13806 unsigned : 1; 13807 unsigned : 1; 13808 } __STATUSbits_t; 13809 13810 extern __at(0x0FD8) volatile __STATUSbits_t STATUSbits; 13811 13812 #define _C 0x01 13813 #define _DC 0x02 13814 #define _Z 0x04 13815 #define _OV 0x08 13816 #define _N 0x10 13817 13818 //============================================================================== 13819 13820 extern __at(0x0FD9) __sfr FSR2L; 13821 extern __at(0x0FDA) __sfr FSR2H; 13822 extern __at(0x0FDB) __sfr PLUSW2; 13823 extern __at(0x0FDC) __sfr PREINC2; 13824 extern __at(0x0FDD) __sfr POSTDEC2; 13825 extern __at(0x0FDE) __sfr POSTINC2; 13826 extern __at(0x0FDF) __sfr INDF2; 13827 extern __at(0x0FE0) __sfr BSR; 13828 extern __at(0x0FE1) __sfr FSR1L; 13829 extern __at(0x0FE2) __sfr FSR1H; 13830 extern __at(0x0FE3) __sfr PLUSW1; 13831 extern __at(0x0FE4) __sfr PREINC1; 13832 extern __at(0x0FE5) __sfr POSTDEC1; 13833 extern __at(0x0FE6) __sfr POSTINC1; 13834 extern __at(0x0FE7) __sfr INDF1; 13835 extern __at(0x0FE8) __sfr WREG; 13836 extern __at(0x0FE9) __sfr FSR0L; 13837 extern __at(0x0FEA) __sfr FSR0H; 13838 extern __at(0x0FEB) __sfr PLUSW0; 13839 extern __at(0x0FEC) __sfr PREINC0; 13840 extern __at(0x0FED) __sfr POSTDEC0; 13841 extern __at(0x0FEE) __sfr POSTINC0; 13842 extern __at(0x0FEF) __sfr INDF0; 13843 13844 //============================================================================== 13845 // INTCON3 Bits 13846 13847 extern __at(0x0FF0) __sfr INTCON3; 13848 13849 typedef union 13850 { 13851 struct 13852 { 13853 unsigned INT1IF : 1; 13854 unsigned INT2IF : 1; 13855 unsigned INT3IF : 1; 13856 unsigned INT1IE : 1; 13857 unsigned INT2IE : 1; 13858 unsigned INT3IE : 1; 13859 unsigned INT1IP : 1; 13860 unsigned INT2IP : 1; 13861 }; 13862 13863 struct 13864 { 13865 unsigned INT1F : 1; 13866 unsigned INT2F : 1; 13867 unsigned INT3F : 1; 13868 unsigned INT1E : 1; 13869 unsigned INT2E : 1; 13870 unsigned INT3E : 1; 13871 unsigned INT1P : 1; 13872 unsigned INT2P : 1; 13873 }; 13874 } __INTCON3bits_t; 13875 13876 extern __at(0x0FF0) volatile __INTCON3bits_t INTCON3bits; 13877 13878 #define _INT1IF 0x01 13879 #define _INT1F 0x01 13880 #define _INT2IF 0x02 13881 #define _INT2F 0x02 13882 #define _INT3IF 0x04 13883 #define _INT3F 0x04 13884 #define _INT1IE 0x08 13885 #define _INT1E 0x08 13886 #define _INT2IE 0x10 13887 #define _INT2E 0x10 13888 #define _INT3IE 0x20 13889 #define _INT3E 0x20 13890 #define _INT1IP 0x40 13891 #define _INT1P 0x40 13892 #define _INT2IP 0x80 13893 #define _INT2P 0x80 13894 13895 //============================================================================== 13896 13897 13898 //============================================================================== 13899 // INTCON2 Bits 13900 13901 extern __at(0x0FF1) __sfr INTCON2; 13902 13903 typedef union 13904 { 13905 struct 13906 { 13907 unsigned RBIP : 1; 13908 unsigned INT3IP : 1; 13909 unsigned TMR0IP : 1; 13910 unsigned INTEDG3 : 1; 13911 unsigned INTEDG2 : 1; 13912 unsigned INTEDG1 : 1; 13913 unsigned INTEDG0 : 1; 13914 unsigned NOT_RBPU : 1; 13915 }; 13916 13917 struct 13918 { 13919 unsigned : 1; 13920 unsigned INT3P : 1; 13921 unsigned T0IP : 1; 13922 unsigned : 1; 13923 unsigned : 1; 13924 unsigned : 1; 13925 unsigned : 1; 13926 unsigned RBPU : 1; 13927 }; 13928 } __INTCON2bits_t; 13929 13930 extern __at(0x0FF1) volatile __INTCON2bits_t INTCON2bits; 13931 13932 #define _RBIP 0x01 13933 #define _INT3IP 0x02 13934 #define _INT3P 0x02 13935 #define _TMR0IP 0x04 13936 #define _T0IP 0x04 13937 #define _INTEDG3 0x08 13938 #define _INTEDG2 0x10 13939 #define _INTEDG1 0x20 13940 #define _INTEDG0 0x40 13941 #define _NOT_RBPU 0x80 13942 #define _RBPU 0x80 13943 13944 //============================================================================== 13945 13946 13947 //============================================================================== 13948 // INTCON Bits 13949 13950 extern __at(0x0FF2) __sfr INTCON; 13951 13952 typedef union 13953 { 13954 struct 13955 { 13956 unsigned RBIF : 1; 13957 unsigned INT0IF : 1; 13958 unsigned TMR0IF : 1; 13959 unsigned RBIE : 1; 13960 unsigned INT0IE : 1; 13961 unsigned TMR0IE : 1; 13962 unsigned PEIE_GIEL : 1; 13963 unsigned GIE_GIEH : 1; 13964 }; 13965 13966 struct 13967 { 13968 unsigned : 1; 13969 unsigned INT0F : 1; 13970 unsigned T0IF : 1; 13971 unsigned : 1; 13972 unsigned INT0E : 1; 13973 unsigned T0IE : 1; 13974 unsigned PEIE : 1; 13975 unsigned GIE : 1; 13976 }; 13977 13978 struct 13979 { 13980 unsigned : 1; 13981 unsigned : 1; 13982 unsigned : 1; 13983 unsigned : 1; 13984 unsigned : 1; 13985 unsigned : 1; 13986 unsigned GIEL : 1; 13987 unsigned GIEH : 1; 13988 }; 13989 } __INTCONbits_t; 13990 13991 extern __at(0x0FF2) volatile __INTCONbits_t INTCONbits; 13992 13993 #define _RBIF 0x01 13994 #define _INT0IF 0x02 13995 #define _INT0F 0x02 13996 #define _TMR0IF 0x04 13997 #define _T0IF 0x04 13998 #define _RBIE 0x08 13999 #define _INT0IE 0x10 14000 #define _INT0E 0x10 14001 #define _TMR0IE 0x20 14002 #define _T0IE 0x20 14003 #define _PEIE_GIEL 0x40 14004 #define _PEIE 0x40 14005 #define _GIEL 0x40 14006 #define _GIE_GIEH 0x80 14007 #define _GIE 0x80 14008 #define _GIEH 0x80 14009 14010 //============================================================================== 14011 14012 extern __at(0x0FF3) __sfr PROD; 14013 extern __at(0x0FF3) __sfr PRODL; 14014 extern __at(0x0FF4) __sfr PRODH; 14015 extern __at(0x0FF5) __sfr TABLAT; 14016 extern __at(0x0FF6) __sfr TBLPTR; 14017 extern __at(0x0FF6) __sfr TBLPTRL; 14018 extern __at(0x0FF7) __sfr TBLPTRH; 14019 extern __at(0x0FF8) __sfr TBLPTRU; 14020 extern __at(0x0FF9) __sfr PC; 14021 extern __at(0x0FF9) __sfr PCL; 14022 extern __at(0x0FFA) __sfr PCLATH; 14023 extern __at(0x0FFB) __sfr PCLATU; 14024 14025 //============================================================================== 14026 // STKPTR Bits 14027 14028 extern __at(0x0FFC) __sfr STKPTR; 14029 14030 typedef union 14031 { 14032 struct 14033 { 14034 unsigned STKPTR0 : 1; 14035 unsigned STKPTR1 : 1; 14036 unsigned STKPTR2 : 1; 14037 unsigned STKPTR3 : 1; 14038 unsigned STKPTR4 : 1; 14039 unsigned : 1; 14040 unsigned STKUNF : 1; 14041 unsigned STKFUL : 1; 14042 }; 14043 14044 struct 14045 { 14046 unsigned : 1; 14047 unsigned : 1; 14048 unsigned : 1; 14049 unsigned : 1; 14050 unsigned : 1; 14051 unsigned : 1; 14052 unsigned : 1; 14053 unsigned STKOVF : 1; 14054 }; 14055 14056 struct 14057 { 14058 unsigned STKPTR : 5; 14059 unsigned : 3; 14060 }; 14061 } __STKPTRbits_t; 14062 14063 extern __at(0x0FFC) volatile __STKPTRbits_t STKPTRbits; 14064 14065 #define _STKPTR0 0x01 14066 #define _STKPTR1 0x02 14067 #define _STKPTR2 0x04 14068 #define _STKPTR3 0x08 14069 #define _STKPTR4 0x10 14070 #define _STKUNF 0x40 14071 #define _STKFUL 0x80 14072 #define _STKOVF 0x80 14073 14074 //============================================================================== 14075 14076 extern __at(0x0FFD) __sfr TOS; 14077 extern __at(0x0FFD) __sfr TOSL; 14078 extern __at(0x0FFE) __sfr TOSH; 14079 extern __at(0x0FFF) __sfr TOSU; 14080 14081 //============================================================================== 14082 // 14083 // Configuration Bits 14084 // 14085 //============================================================================== 14086 14087 #define __CONFIG1H 0x300001 14088 #define __CONFIG2L 0x300002 14089 #define __CONFIG2H 0x300003 14090 #define __CONFIG3L 0x300004 14091 #define __CONFIG3H 0x300005 14092 #define __CONFIG4L 0x300006 14093 #define __CONFIG5L 0x300008 14094 #define __CONFIG5H 0x300009 14095 #define __CONFIG6L 0x30000A 14096 #define __CONFIG6H 0x30000B 14097 #define __CONFIG7L 0x30000C 14098 #define __CONFIG7H 0x30000D 14099 14100 //----------------------------- CONFIG1H Options ------------------------------- 14101 14102 #define _OSC_LP_1H 0xF0 // LP oscillator. 14103 #define _OSC_XT_1H 0xF1 // XT oscillator. 14104 #define _OSC_HS_1H 0xF2 // HS oscillator. 14105 #define _OSC_RC_1H 0xF3 // RC oscillator with OSC2 configured as divide by 4 clock output. 14106 #define _OSC_EC_1H 0xF4 // EC oscillator with OSC2 configured as divide by 4 clock output. 14107 #define _OSC_ECIO_1H 0xF5 // EC oscillator with OSC2 configured as RA6. 14108 #define _OSC_HSPLL_1H 0xF6 // HS oscillator with HW enabled 4x PLL. 14109 #define _OSC_RCIO_1H 0xF7 // RC oscillator with OSC2 configured as RA6. 14110 #define _OSC_ECIOPLL_1H 0xFC // EC oscillator with OSC2 configured as RA6 and HW enabled 4x PLL. 14111 #define _OSC_ECIOSWPLL_1H 0xFD // EC oscillator with OSC2 configured as RA6 and SW enabled 4x PLL. 14112 #define _OSC_HSSWPLL_1H 0xFE // HS oscillator with SW enabled 4x PLL. 14113 #define _OSCS_ON_1H 0xDF // Timer1 oscillator system clock switch option is enabled (oscillator switching is enabled). 14114 #define _OSCS_OFF_1H 0xFF // Oscillator system clock switch option is disabled (main oscillator is source). 14115 14116 //----------------------------- CONFIG2L Options ------------------------------- 14117 14118 #define _PWRT_ON_2L 0xFE // PWRT enabled. 14119 #define _PWRT_OFF_2L 0xFF // PWRT disabled. 14120 #define _BOR_OFF_2L 0xFD // Brown-out Reset disabled. 14121 #define _BOR_ON_2L 0xFF // Brown-out Reset enabled. 14122 #define _BORV_45_2L 0xF3 // VBOR set to 4.5V. 14123 #define _BORV_42_2L 0xF7 // VBOR set to 4.2V. 14124 #define _BORV_27_2L 0xFB // VBOR set to 2.7V. 14125 #define _BORV_20_2L 0xFF // VBOR set to 2.0V. 14126 14127 //----------------------------- CONFIG2H Options ------------------------------- 14128 14129 #define _WDT_OFF_2H 0xFE // WDT disabled (control is placed on the SWDTEN bit). 14130 #define _WDT_ON_2H 0xFF // WDT enabled. 14131 #define _WDTPS_1_2H 0xE1 // 1:1. 14132 #define _WDTPS_2_2H 0xE3 // 1:2. 14133 #define _WDTPS_4_2H 0xE5 // 1:4. 14134 #define _WDTPS_8_2H 0xE7 // 1:8. 14135 #define _WDTPS_16_2H 0xE9 // 1:16. 14136 #define _WDTPS_32_2H 0xEB // 1:32. 14137 #define _WDTPS_64_2H 0xED // 1:64. 14138 #define _WDTPS_128_2H 0xEF // 1:128. 14139 #define _WDTPS_256_2H 0xF1 // 1:256. 14140 #define _WDTPS_512_2H 0xF3 // 1:512. 14141 #define _WDTPS_1024_2H 0xF5 // 1:1024. 14142 #define _WDTPS_2048_2H 0xF7 // 1:2048. 14143 #define _WDTPS_4096_2H 0xF9 // 1:4096. 14144 #define _WDTPS_8192_2H 0xFB // 1:8192. 14145 #define _WDTPS_16384_2H 0xFD // 1:16384. 14146 #define _WDTPS_32768_2H 0xFF // 1:32768. 14147 14148 //----------------------------- CONFIG3L Options ------------------------------- 14149 14150 #define _CCP2MX_OFF_3H 0xFE // CCP2 input/output is multiplexed with RE7. 14151 #define _CCP2MX_ON_3H 0xFF // CCP2 input/output is multiplexed with RC1. 14152 #define _MCLRE_OFF_3H 0x7F // RG5 input enabled, MCLR disabled. 14153 #define _MCLRE_ON_3H 0xFF // MCLR pin enabled, RG5 input pin disabled. 14154 14155 //----------------------------- CONFIG3H Options ------------------------------- 14156 14157 #define _CCP2MX_OFF_3H 0xFE // CCP2 input/output is multiplexed with RE7. 14158 #define _CCP2MX_ON_3H 0xFF // CCP2 input/output is multiplexed with RC1. 14159 #define _MCLRE_OFF_3H 0x7F // RG5 input enabled, MCLR disabled. 14160 #define _MCLRE_ON_3H 0xFF // MCLR pin enabled, RG5 input pin disabled. 14161 14162 //----------------------------- CONFIG4L Options ------------------------------- 14163 14164 #define _STVR_OFF_4L 0xFE // Stack full/underflow will not cause Reset. 14165 #define _STVR_ON_4L 0xFF // Stack full/underflow will cause Reset. 14166 #define _LVP_OFF_4L 0xFB // Low-voltage ICSP disabled. 14167 #define _LVP_ON_4L 0xFF // Low-voltage ICSP enabled. 14168 #define _DEBUG_ON_4L 0x7F // Background debugger enabled. RB6 and RB7 are dedicated to in-circuit debug. 14169 #define _DEBUG_OFF_4L 0xFF // Background debugger disabled. RB6 and RB7 configured as general purpose I/O pins. 14170 14171 //----------------------------- CONFIG5L Options ------------------------------- 14172 14173 #define _CP0_ON_5L 0xFE // Block 0 (000800-003FFFh) code-protected. 14174 #define _CP0_OFF_5L 0xFF // Block 0 (000800-003FFFh) not code-protected. 14175 #define _CP1_ON_5L 0xFD // Block 1 (004000-007FFFh) code-protected. 14176 #define _CP1_OFF_5L 0xFF // Block 1 (004000-007FFFh) not code-protected. 14177 #define _CP2_ON_5L 0xFB // Block 2 (008000-00BFFFh) code-protected. 14178 #define _CP2_OFF_5L 0xFF // Block 2 (008000-00BFFFh) not code-protected. 14179 14180 //----------------------------- CONFIG5H Options ------------------------------- 14181 14182 #define _CPB_ON_5H 0xBF // Boot block (000000-0007FFh) code-protected. 14183 #define _CPB_OFF_5H 0xFF // Boot block (000000-0007FFh) not code-protected. 14184 #define _CPD_ON_5H 0x7F // Data EEPROM code-protected. 14185 #define _CPD_OFF_5H 0xFF // Data EEPROM not code-protected. 14186 14187 //----------------------------- CONFIG6L Options ------------------------------- 14188 14189 #define _WRT0_ON_6L 0xFE // Block 0 (000800-003FFFh) write-protected. 14190 #define _WRT0_OFF_6L 0xFF // Block 0 (000800-003FFFh) not write-protected. 14191 #define _WRT1_ON_6L 0xFD // Block 1 (004000-007FFFh) write-protected. 14192 #define _WRT1_OFF_6L 0xFF // Block 1 (004000-007FFFh) not write-protected. 14193 #define _WRT2_ON_6L 0xFB // Block 2 (008000-00BFFFh) write-protected. 14194 #define _WRT2_OFF_6L 0xFF // Block 2 (008000-00BFFFh) not write-protected. 14195 14196 //----------------------------- CONFIG6H Options ------------------------------- 14197 14198 #define _WRTC_ON_6H 0xDF // Configuration registers (300000-3000FFh) write-protected. 14199 #define _WRTC_OFF_6H 0xFF // Configuration registers (300000-3000FFh) not write-protected. 14200 #define _WRTB_ON_6H 0xBF // Boot block (000000-0007FFh) write-protected. 14201 #define _WRTB_OFF_6H 0xFF // Boot block (000000-0007FFh) not write-protected. 14202 #define _WRTD_ON_6H 0x7F // Data EEPROM write-protected. 14203 #define _WRTD_OFF_6H 0xFF // Data EEPROM not write-protected. 14204 14205 //----------------------------- CONFIG7L Options ------------------------------- 14206 14207 #define _EBTR0_ON_7L 0xFE // Block 0 (000800-003FFFh) protected from table reads executed in other blocks. 14208 #define _EBTR0_OFF_7L 0xFF // Block 0 (000800-003FFFh) not protected from table reads executed in other blocks. 14209 #define _EBTR1_ON_7L 0xFD // Block 1 (004000-007FFFh) protected from table reads executed in other blocks. 14210 #define _EBTR1_OFF_7L 0xFF // Block 1 (004000-007FFFh) not protected from table reads executed in other blocks. 14211 #define _EBTR2_ON_7L 0xFB // Block 2 (008000-00BFFFh) protected from table reads executed in other blocks. 14212 #define _EBTR2_OFF_7L 0xFF // Block 2 (008000-00BFFFh) not protected from table reads executed in other blocks. 14213 14214 //----------------------------- CONFIG7H Options ------------------------------- 14215 14216 #define _EBTRB_ON_7H 0xBF // Boot block (000000-0007FFh) protected from table reads executed in other blocks. 14217 #define _EBTRB_OFF_7H 0xFF // Boot block (000000-0007FFh) not protected from table reads executed in other blocks. 14218 14219 //============================================================================== 14220 14221 #define __DEVID1 0x3FFFFE 14222 #define __DEVID2 0x3FFFFF 14223 14224 #define __IDLOC0 0x200000 14225 #define __IDLOC1 0x200001 14226 #define __IDLOC2 0x200002 14227 #define __IDLOC3 0x200003 14228 #define __IDLOC4 0x200004 14229 #define __IDLOC5 0x200005 14230 #define __IDLOC6 0x200006 14231 #define __IDLOC7 0x200007 14232 14233 #endif // #ifndef __PIC18LF6585_H__ 14234