Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
ac4e8384
Commit
ac4e8384
authored
Aug 20, 2012
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update can.h to 3.6-rc2
parent
b8cf1e9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
include/linux/can.h
include/linux/can.h
+13
-12
No files found.
include/linux/can.h
View file @
ac4e8384
...
@@ -74,20 +74,21 @@ struct can_frame {
...
@@ -74,20 +74,21 @@ struct can_frame {
/*
/*
* defined bits for canfd_frame.flags
* defined bits for canfd_frame.flags
*
*
* As the default for CAN FD should be to support the high data rate in the
* The use of struct canfd_frame implies the Extended Data Length (EDL) bit to
* payload section of the frame (HDR) and to support up to 64 byte in the
* be set in the CAN frame bitstream on the wire. The EDL bit switch turns
* data section (EDL) the bits are only set in the non-default case.
* the CAN controllers bitstream processor into the CAN FD mode which creates
* Btw. as long as there's no real implementation for CAN FD network driver
* two new options within the CAN FD frame specification:
* these bits are only preliminary.
*
*
* RX: NOHDR/NOEDL - info about received CAN FD frame
* Bit Rate Switch - to indicate a second bitrate is/was used for the payload
* ESI - bit from originating CAN controller
* Error State Indicator - represents the error state of the transmitting node
* TX: NOHDR/NOEDL - control per-frame settings if supported by CAN controller
*
* ESI - bit is set by local CAN controller
* As the CANFD_ESI bit is internally generated by the transmitting CAN
* controller only the CANFD_BRS bit is relevant for real CAN controllers when
* building a CAN FD frame for transmission. Setting the CANFD_ESI bit can make
* sense for virtual CAN interfaces to test applications with echoed frames.
*/
*/
#define CANFD_NOHDR 0x01
/* frame without high data rate */
#define CANFD_BRS 0x01
/* bit rate switch (second bitrate for payload data) */
#define CANFD_NOEDL 0x02
/* frame without extended data length */
#define CANFD_ESI 0x02
/* error state indicator of the transmitting node */
#define CANFD_ESI 0x04
/* error state indicator */
/**
/**
* struct canfd_frame - CAN flexible data rate frame structure
* struct canfd_frame - CAN flexible data rate frame structure
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment