275 #define CANSTATUS_SUCCESS(X) ((X) == canOK) 276 #define CANSTATUS_FAILURE(X) ((X) != canOK) 285 #define canEVENT_RX 32000 286 #define canEVENT_TX 32001 287 #define canEVENT_ERROR 32002 288 #define canEVENT_STATUS 32003 295 #define canEVENT_ENVVAR 32004 296 #define canEVENT_BUSONOFF 32005 297 #define canEVENT_REMOVED 32006 311 #define canNOTIFY_NONE 0 312 #define canNOTIFY_RX 0x0001 313 #define canNOTIFY_TX 0x0002 314 #define canNOTIFY_ERROR 0x0004 315 #define canNOTIFY_STATUS 0x0008 316 #define canNOTIFY_ENVVAR 0x0010 318 #define canNOTIFY_BUSONOFF 0x0020 319 #define canNOTIFY_REMOVED 0x0040 339 #define canSTAT_ERROR_PASSIVE 0x00000001 340 #define canSTAT_BUS_OFF 0x00000002 341 #define canSTAT_ERROR_WARNING 0x00000004 342 #define canSTAT_ERROR_ACTIVE 0x00000008 343 #define canSTAT_TX_PENDING 0x00000010 344 #define canSTAT_RX_PENDING 0x00000020 345 #define canSTAT_RESERVED_1 0x00000040 346 #define canSTAT_TXERR 0x00000080 347 #define canSTAT_RXERR 0x00000100 348 #define canSTAT_HW_OVERRUN 0x00000200 349 #define canSTAT_SW_OVERRUN 0x00000400 350 #define canSTAT_OVERRUN (canSTAT_HW_OVERRUN | canSTAT_SW_OVERRUN) 370 #define canMSG_MASK 0x00ff 371 #define canMSG_RTR 0x0001 378 #define canMSG_STD 0x0002 379 #define canMSG_EXT 0x0004 380 #define canMSG_WAKEUP 0x0008 400 #define canMSG_NERR 0x0010 401 #define canMSG_ERROR_FRAME 0x0020 402 #define canMSG_TXACK 0x0040 403 #define canMSG_TXRQ 0x0080 404 #define canMSG_DELAY_MSG 0x0100 406 #define canMSG_LOCAL_TXACK 0x10000000 409 #define canMSG_SINGLE_SHOT 0x1000000 410 #define canMSG_TXNACK 0x2000000 411 #define canMSG_ABL 0x4000000 423 #define canFDMSG_MASK 0xff0000 424 #define canFDMSG_EDL 0x010000 425 #define canFDMSG_FDF 0x010000 426 #define canFDMSG_BRS 0x020000 427 #define canFDMSG_ESI 0x040000 442 #define canMSGERR_MASK 0xff00 444 #define canMSGERR_HW_OVERRUN 0x0200 445 #define canMSGERR_SW_OVERRUN 0x0400 446 #define canMSGERR_STUFF 0x0800 447 #define canMSGERR_FORM 0x1000 448 #define canMSGERR_CRC 0x2000 449 #define canMSGERR_BIT0 0x4000 450 #define canMSGERR_BIT1 0x8000 453 #define canMSGERR_OVERRUN 0x0600 454 #define canMSGERR_BIT 0xC000 455 #define canMSGERR_BUSERR 0xF800 459 #define CAN_ERR_FLAG 0x20000000U 461 #define ERRORFRAME_TYPE_INDEX 2; 462 #define ERRORFRAME_LOCATION_INDEX 3; 464 #define CAN_ERR_DLC 8 467 #define CAN_ERR_TX_TIMEOUT 0x00000001U 468 #define CAN_ERR_LOSTARB 0x00000002U 469 #define CAN_ERR_CRTL 0x00000004U 470 #define CAN_ERR_PROT 0x00000008U 471 #define CAN_ERR_TRX 0x00000010U 472 #define CAN_ERR_ACK 0x00000020U 473 #define CAN_ERR_BUSOFF 0x00000040U 474 #define CAN_ERR_BUSERROR 0x00000080U 475 #define CAN_ERR_RESTARTED 0x00000100U 476 #define CAN_ERR_CNT 0x00000200U 480 #define CAN_ERR_LOSTARB_UNSPEC 0x00 484 #define CAN_ERR_CRTL_UNSPEC 0x00 485 #define CAN_ERR_CRTL_RX_OVERFLOW 0x01 486 #define CAN_ERR_CRTL_TX_OVERFLOW 0x02 487 #define CAN_ERR_CRTL_RX_WARNING 0x04 488 #define CAN_ERR_CRTL_TX_WARNING 0x08 489 #define CAN_ERR_CRTL_RX_PASSIVE 0x10 490 #define CAN_ERR_CRTL_TX_PASSIVE 0x20 493 #define CAN_ERR_CRTL_ACTIVE 0x40 496 #define CAN_ERR_PROT_UNSPEC 0x00 497 #define CAN_ERR_PROT_BIT 0x01 498 #define CAN_ERR_PROT_FORM 0x02 499 #define CAN_ERR_PROT_STUFF 0x04 500 #define CAN_ERR_PROT_BIT0 0x08 501 #define CAN_ERR_PROT_BIT1 0x10 502 #define CAN_ERR_PROT_OVERLOAD 0x20 503 #define CAN_ERR_PROT_ACTIVE 0x40 504 #define CAN_ERR_PROT_TX 0x80 507 #define CAN_ERR_PROT_LOC_UNSPEC 0x00 508 #define CAN_ERR_PROT_LOC_SOF 0x03 509 #define CAN_ERR_PROT_LOC_ID28_21 0x02 510 #define CAN_ERR_PROT_LOC_ID20_18 0x06 511 #define CAN_ERR_PROT_LOC_SRTR 0x04 512 #define CAN_ERR_PROT_LOC_IDE 0x05 513 #define CAN_ERR_PROT_LOC_ID17_13 0x07 514 #define CAN_ERR_PROT_LOC_ID12_05 0x0F 515 #define CAN_ERR_PROT_LOC_ID04_00 0x0E 516 #define CAN_ERR_PROT_LOC_RTR 0x0C 517 #define CAN_ERR_PROT_LOC_RES1 0x0D 518 #define CAN_ERR_PROT_LOC_RES0 0x09 519 #define CAN_ERR_PROT_LOC_DLC 0x0B 520 #define CAN_ERR_PROT_LOC_DATA 0x0A 521 #define CAN_ERR_PROT_LOC_CRC_SEQ 0x08 522 #define CAN_ERR_PROT_LOC_CRC_DEL 0x18 523 #define CAN_ERR_PROT_LOC_ACK 0x19 524 #define CAN_ERR_PROT_LOC_ACK_DEL 0x1B 525 #define CAN_ERR_PROT_LOC_EOF 0x1A 526 #define CAN_ERR_PROT_LOC_INTERM 0x12 530 #define CAN_ERR_TRX_UNSPEC 0x00 531 #define CAN_ERR_TRX_CANH_NO_WIRE 0x04 532 #define CAN_ERR_TRX_CANH_SHORT_TO_BAT 0x05 533 #define CAN_ERR_TRX_CANH_SHORT_TO_VCC 0x06 534 #define CAN_ERR_TRX_CANH_SHORT_TO_GND 0x07 535 #define CAN_ERR_TRX_CANL_NO_WIRE 0x40 536 #define CAN_ERR_TRX_CANL_SHORT_TO_BAT 0x50 537 #define CAN_ERR_TRX_CANL_SHORT_TO_VCC 0x60 538 #define CAN_ERR_TRX_CANL_SHORT_TO_GND 0x70 539 #define CAN_ERR_TRX_CANL_SHORT_TO_CANH 0x80 546 #define canMSG_RESERVED_FOR_EXTENDING 0x80000000 559 #define canTRANSCEIVER_LINEMODE_NA 0 560 #define canTRANSCEIVER_LINEMODE_SWC_SLEEP 4 561 #define canTRANSCEIVER_LINEMODE_SWC_NORMAL 5 562 #define canTRANSCEIVER_LINEMODE_SWC_FAST 6 563 #define canTRANSCEIVER_LINEMODE_SWC_WAKEUP 7 564 #define canTRANSCEIVER_LINEMODE_SLEEP 8 565 #define canTRANSCEIVER_LINEMODE_NORMAL 9 566 #define canTRANSCEIVER_LINEMODE_STDBY 10 567 #define canTRANSCEIVER_LINEMODE_TT_CAN_H 11 568 #define canTRANSCEIVER_LINEMODE_TT_CAN_L 12 569 #define canTRANSCEIVER_LINEMODE_OEM1 13 570 #define canTRANSCEIVER_LINEMODE_OEM2 14 571 #define canTRANSCEIVER_LINEMODE_OEM3 15 572 #define canTRANSCEIVER_LINEMODE_OEM4 16 580 #define canTRANSCEIVER_RESNET_NA 0 581 #define canTRANSCEIVER_RESNET_MASTER 1 582 #define canTRANSCEIVER_RESNET_MASTER_STBY 2 583 #define canTRANSCEIVER_RESNET_SLAVE 3 599 #define canTRANSCEIVER_TYPE_UNKNOWN 0 600 #define canTRANSCEIVER_TYPE_251 1 601 #define canTRANSCEIVER_TYPE_252 2 602 #define canTRANSCEIVER_TYPE_DNOPTO 3 603 #define canTRANSCEIVER_TYPE_W210 4 604 #define canTRANSCEIVER_TYPE_SWC_PROTO 5 605 #define canTRANSCEIVER_TYPE_SWC 6 606 #define canTRANSCEIVER_TYPE_EVA 7 607 #define canTRANSCEIVER_TYPE_FIBER 8 608 #define canTRANSCEIVER_TYPE_K251 9 609 #define canTRANSCEIVER_TYPE_K 10 610 #define canTRANSCEIVER_TYPE_1054_OPTO 11 611 #define canTRANSCEIVER_TYPE_SWC_OPTO 12 612 #define canTRANSCEIVER_TYPE_TT 13 613 #define canTRANSCEIVER_TYPE_1050 14 614 #define canTRANSCEIVER_TYPE_1050_OPTO 15 615 #define canTRANSCEIVER_TYPE_1041 16 616 #define canTRANSCEIVER_TYPE_1041_OPTO 17 617 #define canTRANSCEIVER_TYPE_RS485 18 618 #define canTRANSCEIVER_TYPE_LIN 19 619 #define canTRANSCEIVER_TYPE_KONE 20 620 #define canTRANSCEIVER_TYPE_CANFD 22 621 #define canTRANSCEIVER_TYPE_CANFD_LIN 24 622 #define canTRANSCEIVER_TYPE_CANFD_SIC 26 623 #define canTRANSCEIVER_TYPE_LINX_LIN 64 624 #define canTRANSCEIVER_TYPE_LINX_J1708 66 625 #define canTRANSCEIVER_TYPE_LINX_K 68 626 #define canTRANSCEIVER_TYPE_LINX_SWC 70 627 #define canTRANSCEIVER_TYPE_LINX_LS 72 Definition: canstat.h:170
Definition: canstat.h:258
Definition: canstat.h:202
canStatus
Definition: canstat.h:33
Definition: canstat.h:114
Definition: canstat.h:233
Definition: canstat.h:126
Reserved.
Definition: canstat.h:107
Definition: canstat.h:223
Operation not supported by hardware or firmware.
Definition: canstat.h:133
Definition: canstat.h:142
Definition: canstat.h:147
Definition: canstat.h:163
Definition: canstat.h:194
Reserved.
Definition: canstat.h:267
Definition: canstat.h:198
Reserved.
Definition: canstat.h:135
Definition: canstat.h:228
Definition: canstat.h:106
Definition: canstat.h:132
Definition: canstat.h:213
Reserved.
Definition: canstat.h:150
Definition: canstat.h:218
The license is not valid.
Definition: canstat.h:157
Error in the ini-file (16-bit only)
Definition: canstat.h:96
Definition: canstat.h:251
Definition: canstat.h:180
Definition: canstat.h:175
Definition: canstat.h:245
Reserved.
Definition: canstat.h:136
Definition: canstat.h:190
Definition: canstat.h:185
Definition: canstat.h:156
Interrupted by signals.
Definition: canstat.h:70
Reserved.
Definition: canstat.h:134
Definition: canstat.h:120
Definition: canstat.h:101
The card was removed or not inserted.
Definition: canstat.h:149
Definition: canstat.h:239
Definition: canstat.h:264
Can't find req'd config s/w (e.g. CS/SS)
Definition: canstat.h:148