Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
error.h File Reference

Go to the source code of this file.

Macros

#define CAN_ERR_DLC   8 /* dlc for error message frames */
 
#define CAN_ERR_TX_TIMEOUT   0x00000001U /* TX timeout (by netdevice driver) */
 
#define CAN_ERR_LOSTARB   0x00000002U /* lost arbitration / data[0] */
 
#define CAN_ERR_CRTL   0x00000004U /* controller problems / data[1] */
 
#define CAN_ERR_PROT   0x00000008U /* protocol violations / data[2..3] */
 
#define CAN_ERR_TRX   0x00000010U /* transceiver status / data[4] */
 
#define CAN_ERR_ACK   0x00000020U /* received no ACK on transmission */
 
#define CAN_ERR_BUSOFF   0x00000040U /* bus off */
 
#define CAN_ERR_BUSERROR   0x00000080U /* bus error (may flood!) */
 
#define CAN_ERR_RESTARTED   0x00000100U /* controller restarted */
 
#define CAN_ERR_LOSTARB_UNSPEC   0x00 /* unspecified */
 
#define CAN_ERR_CRTL_UNSPEC   0x00 /* unspecified */
 
#define CAN_ERR_CRTL_RX_OVERFLOW   0x01 /* RX buffer overflow */
 
#define CAN_ERR_CRTL_TX_OVERFLOW   0x02 /* TX buffer overflow */
 
#define CAN_ERR_CRTL_RX_WARNING   0x04 /* reached warning level for RX errors */
 
#define CAN_ERR_CRTL_TX_WARNING   0x08 /* reached warning level for TX errors */
 
#define CAN_ERR_CRTL_RX_PASSIVE   0x10 /* reached error passive status RX */
 
#define CAN_ERR_CRTL_TX_PASSIVE   0x20 /* reached error passive status TX */
 
#define CAN_ERR_PROT_UNSPEC   0x00 /* unspecified */
 
#define CAN_ERR_PROT_BIT   0x01 /* single bit error */
 
#define CAN_ERR_PROT_FORM   0x02 /* frame format error */
 
#define CAN_ERR_PROT_STUFF   0x04 /* bit stuffing error */
 
#define CAN_ERR_PROT_BIT0   0x08 /* unable to send dominant bit */
 
#define CAN_ERR_PROT_BIT1   0x10 /* unable to send recessive bit */
 
#define CAN_ERR_PROT_OVERLOAD   0x20 /* bus overload */
 
#define CAN_ERR_PROT_ACTIVE   0x40 /* active error announcement */
 
#define CAN_ERR_PROT_TX   0x80 /* error occurred on transmission */
 
#define CAN_ERR_PROT_LOC_UNSPEC   0x00 /* unspecified */
 
#define CAN_ERR_PROT_LOC_SOF   0x03 /* start of frame */
 
#define CAN_ERR_PROT_LOC_ID28_21   0x02 /* ID bits 28 - 21 (SFF: 10 - 3) */
 
#define CAN_ERR_PROT_LOC_ID20_18   0x06 /* ID bits 20 - 18 (SFF: 2 - 0 )*/
 
#define CAN_ERR_PROT_LOC_SRTR   0x04 /* substitute RTR (SFF: RTR) */
 
#define CAN_ERR_PROT_LOC_IDE   0x05 /* identifier extension */
 
#define CAN_ERR_PROT_LOC_ID17_13   0x07 /* ID bits 17-13 */
 
#define CAN_ERR_PROT_LOC_ID12_05   0x0F /* ID bits 12-5 */
 
#define CAN_ERR_PROT_LOC_ID04_00   0x0E /* ID bits 4-0 */
 
#define CAN_ERR_PROT_LOC_RTR   0x0C /* RTR */
 
#define CAN_ERR_PROT_LOC_RES1   0x0D /* reserved bit 1 */
 
#define CAN_ERR_PROT_LOC_RES0   0x09 /* reserved bit 0 */
 
#define CAN_ERR_PROT_LOC_DLC   0x0B /* data length code */
 
#define CAN_ERR_PROT_LOC_DATA   0x0A /* data section */
 
#define CAN_ERR_PROT_LOC_CRC_SEQ   0x08 /* CRC sequence */
 
#define CAN_ERR_PROT_LOC_CRC_DEL   0x18 /* CRC delimiter */
 
#define CAN_ERR_PROT_LOC_ACK   0x19 /* ACK slot */
 
#define CAN_ERR_PROT_LOC_ACK_DEL   0x1B /* ACK delimiter */
 
#define CAN_ERR_PROT_LOC_EOF   0x1A /* end of frame */
 
#define CAN_ERR_PROT_LOC_INTERM   0x12 /* intermission */
 
#define CAN_ERR_TRX_UNSPEC   0x00 /* 0000 0000 */
 
#define CAN_ERR_TRX_CANH_NO_WIRE   0x04 /* 0000 0100 */
 
#define CAN_ERR_TRX_CANH_SHORT_TO_BAT   0x05 /* 0000 0101 */
 
#define CAN_ERR_TRX_CANH_SHORT_TO_VCC   0x06 /* 0000 0110 */
 
#define CAN_ERR_TRX_CANH_SHORT_TO_GND   0x07 /* 0000 0111 */
 
#define CAN_ERR_TRX_CANL_NO_WIRE   0x40 /* 0100 0000 */
 
#define CAN_ERR_TRX_CANL_SHORT_TO_BAT   0x50 /* 0101 0000 */
 
#define CAN_ERR_TRX_CANL_SHORT_TO_VCC   0x60 /* 0110 0000 */
 
#define CAN_ERR_TRX_CANL_SHORT_TO_GND   0x70 /* 0111 0000 */
 
#define CAN_ERR_TRX_CANL_SHORT_TO_CANH   0x80 /* 1000 0000 */
 

Macro Definition Documentation

#define CAN_ERR_ACK   0x00000020U /* received no ACK on transmission */

Definition at line 23 of file error.h.

#define CAN_ERR_BUSERROR   0x00000080U /* bus error (may flood!) */

Definition at line 25 of file error.h.

#define CAN_ERR_BUSOFF   0x00000040U /* bus off */

Definition at line 24 of file error.h.

#define CAN_ERR_CRTL   0x00000004U /* controller problems / data[1] */

Definition at line 20 of file error.h.

#define CAN_ERR_CRTL_RX_OVERFLOW   0x01 /* RX buffer overflow */

Definition at line 34 of file error.h.

#define CAN_ERR_CRTL_RX_PASSIVE   0x10 /* reached error passive status RX */

Definition at line 38 of file error.h.

#define CAN_ERR_CRTL_RX_WARNING   0x04 /* reached warning level for RX errors */

Definition at line 36 of file error.h.

#define CAN_ERR_CRTL_TX_OVERFLOW   0x02 /* TX buffer overflow */

Definition at line 35 of file error.h.

#define CAN_ERR_CRTL_TX_PASSIVE   0x20 /* reached error passive status TX */

Definition at line 39 of file error.h.

#define CAN_ERR_CRTL_TX_WARNING   0x08 /* reached warning level for TX errors */

Definition at line 37 of file error.h.

#define CAN_ERR_CRTL_UNSPEC   0x00 /* unspecified */

Definition at line 33 of file error.h.

#define CAN_ERR_DLC   8 /* dlc for error message frames */

Definition at line 15 of file error.h.

#define CAN_ERR_LOSTARB   0x00000002U /* lost arbitration / data[0] */

Definition at line 19 of file error.h.

#define CAN_ERR_LOSTARB_UNSPEC   0x00 /* unspecified */

Definition at line 29 of file error.h.

#define CAN_ERR_PROT   0x00000008U /* protocol violations / data[2..3] */

Definition at line 21 of file error.h.

#define CAN_ERR_PROT_ACTIVE   0x40 /* active error announcement */

Definition at line 51 of file error.h.

#define CAN_ERR_PROT_BIT   0x01 /* single bit error */

Definition at line 45 of file error.h.

#define CAN_ERR_PROT_BIT0   0x08 /* unable to send dominant bit */

Definition at line 48 of file error.h.

#define CAN_ERR_PROT_BIT1   0x10 /* unable to send recessive bit */

Definition at line 49 of file error.h.

#define CAN_ERR_PROT_FORM   0x02 /* frame format error */

Definition at line 46 of file error.h.

#define CAN_ERR_PROT_LOC_ACK   0x19 /* ACK slot */

Definition at line 71 of file error.h.

#define CAN_ERR_PROT_LOC_ACK_DEL   0x1B /* ACK delimiter */

Definition at line 72 of file error.h.

#define CAN_ERR_PROT_LOC_CRC_DEL   0x18 /* CRC delimiter */

Definition at line 70 of file error.h.

#define CAN_ERR_PROT_LOC_CRC_SEQ   0x08 /* CRC sequence */

Definition at line 69 of file error.h.

#define CAN_ERR_PROT_LOC_DATA   0x0A /* data section */

Definition at line 68 of file error.h.

#define CAN_ERR_PROT_LOC_DLC   0x0B /* data length code */

Definition at line 67 of file error.h.

#define CAN_ERR_PROT_LOC_EOF   0x1A /* end of frame */

Definition at line 73 of file error.h.

#define CAN_ERR_PROT_LOC_ID04_00   0x0E /* ID bits 4-0 */

Definition at line 63 of file error.h.

#define CAN_ERR_PROT_LOC_ID12_05   0x0F /* ID bits 12-5 */

Definition at line 62 of file error.h.

#define CAN_ERR_PROT_LOC_ID17_13   0x07 /* ID bits 17-13 */

Definition at line 61 of file error.h.

#define CAN_ERR_PROT_LOC_ID20_18   0x06 /* ID bits 20 - 18 (SFF: 2 - 0 )*/

Definition at line 58 of file error.h.

#define CAN_ERR_PROT_LOC_ID28_21   0x02 /* ID bits 28 - 21 (SFF: 10 - 3) */

Definition at line 57 of file error.h.

#define CAN_ERR_PROT_LOC_IDE   0x05 /* identifier extension */

Definition at line 60 of file error.h.

#define CAN_ERR_PROT_LOC_INTERM   0x12 /* intermission */

Definition at line 74 of file error.h.

#define CAN_ERR_PROT_LOC_RES0   0x09 /* reserved bit 0 */

Definition at line 66 of file error.h.

#define CAN_ERR_PROT_LOC_RES1   0x0D /* reserved bit 1 */

Definition at line 65 of file error.h.

#define CAN_ERR_PROT_LOC_RTR   0x0C /* RTR */

Definition at line 64 of file error.h.

#define CAN_ERR_PROT_LOC_SOF   0x03 /* start of frame */

Definition at line 56 of file error.h.

#define CAN_ERR_PROT_LOC_SRTR   0x04 /* substitute RTR (SFF: RTR) */

Definition at line 59 of file error.h.

#define CAN_ERR_PROT_LOC_UNSPEC   0x00 /* unspecified */

Definition at line 55 of file error.h.

#define CAN_ERR_PROT_OVERLOAD   0x20 /* bus overload */

Definition at line 50 of file error.h.

#define CAN_ERR_PROT_STUFF   0x04 /* bit stuffing error */

Definition at line 47 of file error.h.

#define CAN_ERR_PROT_TX   0x80 /* error occurred on transmission */

Definition at line 52 of file error.h.

#define CAN_ERR_PROT_UNSPEC   0x00 /* unspecified */

Definition at line 44 of file error.h.

#define CAN_ERR_RESTARTED   0x00000100U /* controller restarted */

Definition at line 26 of file error.h.

#define CAN_ERR_TRX   0x00000010U /* transceiver status / data[4] */

Definition at line 22 of file error.h.

#define CAN_ERR_TRX_CANH_NO_WIRE   0x04 /* 0000 0100 */

Definition at line 79 of file error.h.

#define CAN_ERR_TRX_CANH_SHORT_TO_BAT   0x05 /* 0000 0101 */

Definition at line 80 of file error.h.

#define CAN_ERR_TRX_CANH_SHORT_TO_GND   0x07 /* 0000 0111 */

Definition at line 82 of file error.h.

#define CAN_ERR_TRX_CANH_SHORT_TO_VCC   0x06 /* 0000 0110 */

Definition at line 81 of file error.h.

#define CAN_ERR_TRX_CANL_NO_WIRE   0x40 /* 0100 0000 */

Definition at line 83 of file error.h.

#define CAN_ERR_TRX_CANL_SHORT_TO_BAT   0x50 /* 0101 0000 */

Definition at line 84 of file error.h.

#define CAN_ERR_TRX_CANL_SHORT_TO_CANH   0x80 /* 1000 0000 */

Definition at line 87 of file error.h.

#define CAN_ERR_TRX_CANL_SHORT_TO_GND   0x70 /* 0111 0000 */

Definition at line 86 of file error.h.

#define CAN_ERR_TRX_CANL_SHORT_TO_VCC   0x60 /* 0110 0000 */

Definition at line 85 of file error.h.

#define CAN_ERR_TRX_UNSPEC   0x00 /* 0000 0000 */

Definition at line 78 of file error.h.

#define CAN_ERR_TX_TIMEOUT   0x00000001U /* TX timeout (by netdevice driver) */

Definition at line 18 of file error.h.