Skip to content
Snippets Groups Projects
Commit 505d5f81 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

CAN: Add error bit values

parent a987379e
No related branches found
No related tags found
No related merge requests found
arch @ c4e2c4ec
Subproject commit ec44a171ffae60b88acd5457461c9d86ff9c4500
Subproject commit c4e2c4ec83f421469a3ef3f355fd56317e0ac595
......@@ -173,6 +173,22 @@
#define CAN_MSGLEN(nbytes) (sizeof(struct can_msg_s) - CAN_MAXDATALEN + (nbytes))
/* CAN Error Indications ************************************************************/
#define CAN_ERROR_SYSTEM (1 << 0) /* Bit 0: Driver internal error */
#define CAN_ERROR_RXLOST (1 << 1) /* Bit 1: RX Message Lost */
#define CAN_ERROR_TXLOST (1 << 2) /* Bit 2: TX Message Lost */
#define CAN_ERROR_ACCESS (1 << 3) /* Bit 3: RAM Access Failure */
#define CAN_ERROR_TIMEOUT (1 << 4) /* Bit 4: Timeout Occurred */
#define CAN_ERROR_PASSIVE (1 << 5) /* Bit 5: Error Passive */
#define CAN_ERROR_CRC (1 << 6) /* Bit 6: RX CRC Error */
#define CAN_ERROR_BIT (1 << 7) /* Bit 7: Bit Error */
#define CAN_ERROR_ACK (1 << 8) /* Bit 8: Acknowledge Error */
#define CAN_ERROR_FORMAT (1 << 9) /* Bit 9: Format Error */
#define CAN_ERROR_STUFF (1 << 10) /* Bit 10: Stuff Error */
#define CAN_ERROR_ALL (0x07ff)
/* CAN filter support ***************************************************************/
/* Some CAN hardware supports a notion of prioritizing messages that match filters.
* Only two priority levels are currently supported and are encoded as defined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment