can-eth-gw-utils Utilities  0.1
A bidirectional CAN to Ethernet Gateway (Utilities)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
can.h File Reference
#include <linux/types.h>
#include <linux/socket.h>
Include dependency graph for can.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  can_frame
 
struct  canfd_frame
 
struct  sockaddr_can
 
struct  can_filter
 

Macros

#define CAN_EFF_FLAG   0x80000000U /* EFF/SFF is set in the MSB */
 
#define CAN_RTR_FLAG   0x40000000U /* remote transmission request */
 
#define CAN_ERR_FLAG   0x20000000U /* error message frame */
 
#define CAN_SFF_MASK   0x000007FFU /* standard frame format (SFF) */
 
#define CAN_EFF_MASK   0x1FFFFFFFU /* extended frame format (EFF) */
 
#define CAN_ERR_MASK   0x1FFFFFFFU /* omit EFF, RTR, ERR flags */
 
#define CAN_SFF_ID_BITS   11
 
#define CAN_EFF_ID_BITS   29
 
#define CAN_MAX_DLC   8
 
#define CAN_MAX_DLEN   8
 
#define CANFD_MAX_DLC   15
 
#define CANFD_MAX_DLEN   64
 
#define CANFD_BRS   0x01 /* bit rate switch (second bitrate for payload data) */
 
#define CANFD_ESI   0x02 /* error state indicator of the transmitting node */
 
#define CAN_MTU   (sizeof(struct can_frame))
 
#define CANFD_MTU   (sizeof(struct canfd_frame))
 
#define CAN_RAW   1 /* RAW sockets */
 
#define CAN_BCM   2 /* Broadcast Manager */
 
#define CAN_TP16   3 /* VAG Transport Protocol v1.6 */
 
#define CAN_TP20   4 /* VAG Transport Protocol v2.0 */
 
#define CAN_MCNET   5 /* Bosch MCNet */
 
#define CAN_ISOTP   6 /* ISO 15765-2 Transport Protocol */
 
#define CAN_NPROTO   7
 
#define SOL_CAN_BASE   100
 
#define CAN_INV_FILTER   0x20000000U /* to be set in can_filter.can_id */
 

Typedefs

typedef __u32 canid_t
 
typedef __u32 can_err_mask_t
 

Macro Definition Documentation

#define CAN_BCM   2 /* Broadcast Manager */

Definition at line 116 of file can.h.

#define CAN_EFF_FLAG   0x80000000U /* EFF/SFF is set in the MSB */

Definition at line 22 of file can.h.

#define CAN_EFF_ID_BITS   29

Definition at line 42 of file can.h.

#define CAN_EFF_MASK   0x1FFFFFFFU /* extended frame format (EFF) */

Definition at line 28 of file can.h.

#define CAN_ERR_FLAG   0x20000000U /* error message frame */

Definition at line 24 of file can.h.

#define CAN_ERR_MASK   0x1FFFFFFFU /* omit EFF, RTR, ERR flags */

Definition at line 29 of file can.h.

#define CAN_INV_FILTER   0x20000000U /* to be set in can_filter.can_id */

Definition at line 160 of file can.h.

#define CAN_ISOTP   6 /* ISO 15765-2 Transport Protocol */

Definition at line 120 of file can.h.

#define CAN_MAX_DLC   8

Definition at line 53 of file can.h.

#define CAN_MAX_DLEN   8

Definition at line 54 of file can.h.

#define CAN_MCNET   5 /* Bosch MCNet */

Definition at line 119 of file can.h.

#define CAN_MTU   (sizeof(struct can_frame))

Definition at line 111 of file can.h.

#define CAN_NPROTO   7

Definition at line 121 of file can.h.

#define CAN_RAW   1 /* RAW sockets */

Definition at line 115 of file can.h.

#define CAN_RTR_FLAG   0x40000000U /* remote transmission request */

Definition at line 23 of file can.h.

#define CAN_SFF_ID_BITS   11

Definition at line 41 of file can.h.

#define CAN_SFF_MASK   0x000007FFU /* standard frame format (SFF) */

Definition at line 27 of file can.h.

#define CAN_TP16   3 /* VAG Transport Protocol v1.6 */

Definition at line 117 of file can.h.

#define CAN_TP20   4 /* VAG Transport Protocol v2.0 */

Definition at line 118 of file can.h.

#define CANFD_BRS   0x01 /* bit rate switch (second bitrate for payload data) */

Definition at line 90 of file can.h.

#define CANFD_ESI   0x02 /* error state indicator of the transmitting node */

Definition at line 91 of file can.h.

#define CANFD_MAX_DLC   15

Definition at line 57 of file can.h.

#define CANFD_MAX_DLEN   64

Definition at line 58 of file can.h.

Referenced by main().

#define CANFD_MTU   (sizeof(struct canfd_frame))

Definition at line 112 of file can.h.

#define SOL_CAN_BASE   100

Definition at line 123 of file can.h.

Typedef Documentation

typedef __u32 can_err_mask_t

Definition at line 50 of file can.h.

typedef __u32 canid_t

Definition at line 39 of file can.h.