Data Structures

struct  can_frame_t
 CAN Frame. More...
 

Typedefs

typedef uint32_t can_id_t
 CAN Identifier. More...
 

Enumerations

enum  can_error_t { CAN_ERROR = 0, CAN_NO_ERROR = 1 }
 

Functions

int can_init (uint32_t id, uint32_t mask, struct csp_can_config *conf)
 
int can_send (can_id_t id, uint8_t *data, uint8_t dlc)
 
int csp_can_rx_frame (can_frame_t *frame, CSP_BASE_TYPE *task_woken)
 

Data Structure Documentation

struct can_frame_t

CAN Frame.

Data Fields

can_id_t id
 32 bit CAN identifier More...
 
uint8_t dlc
 Data Length Code. More...
 
union {
   uint8_t   data [8]
 
   uint16_t   data16 [4]
 
   uint32_t   data32 [2]
 
}; 
 

Field Documentation

union { ... }
uint8_t can_frame_t::data[8]
uint16_t can_frame_t::data16[4]
uint32_t can_frame_t::data32[2]
uint8_t can_frame_t::dlc

Data Length Code.

Frame Data - 0 to 8 bytes

can_id_t can_frame_t::id

32 bit CAN identifier

Typedef Documentation

typedef uint32_t can_id_t

CAN Identifier.

Enumeration Type Documentation

Enumerator
CAN_ERROR 
CAN_NO_ERROR 

Function Documentation

int can_init ( uint32_t  id,
uint32_t  mask,
struct csp_can_config conf 
)
int can_send ( can_id_t  id,
uint8_t *  data,
uint8_t  dlc 
)
int csp_can_rx_frame ( can_frame_t frame,
CSP_BASE_TYPE *  task_woken 
)