5.A1 CANCONFIG

CAN configuration structure.

Structure Definition

typedef struct _CANCONFIG{

unsigned int Can_ch;
unsigned int BaudRate;
unsigned int Rtr;
	
}CANCONFIG;

Structure Members

Name

Description

Can_ch

CAN port number 0-3.

BaudRate

Constant indicating the baud rate.

[0 - B1000 一 1000kbit/s,

1 - B800 一 800kbit/s,

2 - B500 一 500kbit/s,

3 - B250 一 250kbit/s,

4 - B125 一 25kbits/s,

5 - B100 一 100kbit/s,

6 - B50 一 50kbit/s,

7 - B20 一 20kbit/s,

8 - B10 一 10kbit/s ]

Rtr

RTR.

[0 - Disable,

1 - Enable]

Last updated