mikroSDK Reference Manual
can_message_t Struct Reference

CAN driver message structure. More...

Data Fields

union {
   struct {
      uint16_t   std_id
 
      uint16_t   ext_id
 
   } 
 
   uint32_t   id
 
}; 
 
can_frame_format_t frame_format
 
can_frame_type_t frame_type
 
uint8_t data_len
 
uint8_t message_data [8]
 

Detailed Description

CAN driver message structure, used by receive and transmit structures.

Note
id variable is divided in the folowing order:
  • 0b0001 1111 1111 1111 1111 1111 1111 1111 |______________________|___________| EID[17:0] SID[10:0]

Field Documentation

◆ std_id

uint16_t can_message_t::std_id

Standard format frame identifier.

◆ ext_id

uint16_t can_message_t::ext_id

Extended format frame identifier.

◆ frame_format

can_frame_format_t can_message_t::frame_format

Format of frame, standard or extended format.

◆ frame_type

can_frame_type_t can_message_t::frame_type

Type of frame, data or remote.

◆ data_len

uint8_t can_message_t::data_len

Data length.

◆ message_data

uint8_t can_message_t::message_data[8]

Data.