Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
505d5f81
Commit
505d5f81
authored
9 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
CAN: Add error bit values
parent
a987379e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch
+1
-1
1 addition, 1 deletion
arch
include/nuttx/can.h
+16
-0
16 additions, 0 deletions
include/nuttx/can.h
with
17 additions
and
1 deletion
arch
@
c4e2c4ec
Subproject commit
ec44a171ffae60b88acd5457461c9d86ff9c4500
Subproject commit
c4e2c4ec83f421469a3ef3f355fd56317e0ac595
This diff is collapsed.
Click to expand it.
include/nuttx/can.h
+
16
−
0
View file @
505d5f81
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment