4.A2 CANMESSAGE

CAN Message information strcuture.

Structure Definition

typedef struct _CANMESSAGE{

unsigned int Can_ch;
unsigned int Rtr;
unsigned int Msg_type;
unsigned int Tb_Type; 
unsigned int Msg_ID;
unsigned int Msg_len;
unsigned char Data[68];

}CANMESSAGE;

Structure Members

Name

Description

Can_ch

CAN port numbers 0-3

Msg_type

0 : Standard

1 : Extended

Tb_Type

Transmit buffer type(Hex)[0-PTB,1-STB]

Msg_ID

Hexadecimel value

Msg_len

Length of the frames

Rtr

0 : Disable

1 : Enable

Data

Holds the data frame of length Msg_len

Last updated