PicoLowLevel
can.h File Reference
#include <stdint.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.

Classes

struct  can_frame
 

Macros

#define CAN_EFF_FLAG   0x80000000UL /* EFF/SFF is set in the MSB */
 
#define CAN_RTR_FLAG   0x40000000UL /* remote transmission request */
 
#define CAN_ERR_FLAG   0x20000000UL /* error message frame */
 
#define CAN_SFF_MASK   0x000007FFUL /* standard frame format (SFF) */
 
#define CAN_EFF_MASK   0x1FFFFFFFUL /* extended frame format (EFF) */
 
#define CAN_ERR_MASK   0x1FFFFFFFUL /* 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
 

Typedefs

typedef unsigned char __u8
 
typedef unsigned short __u16
 
typedef unsigned long __u32
 
typedef __u32 canid_t
 

Macro Definition Documentation

◆ CAN_EFF_FLAG

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

◆ CAN_EFF_ID_BITS

#define CAN_EFF_ID_BITS   29

◆ CAN_EFF_MASK

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

◆ CAN_ERR_FLAG

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

◆ CAN_ERR_MASK

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

◆ CAN_MAX_DLC

#define CAN_MAX_DLC   8

◆ CAN_MAX_DLEN

#define CAN_MAX_DLEN   8

◆ CAN_RTR_FLAG

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

◆ CAN_SFF_ID_BITS

#define CAN_SFF_ID_BITS   11

◆ CAN_SFF_MASK

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

Typedef Documentation

◆ __u16

typedef unsigned short __u16

◆ __u32

typedef unsigned long __u32

◆ __u8

typedef unsigned char __u8

◆ canid_t

typedef __u32 canid_t