
AIV-QM97V1FL Series User Manual
57
Syntax:
i32 getCanBaudRate(u8 *baud)
Description:
This function gets the current setting of the Baud Rate
of the CAN Bus. This function gets an ‘unsigned char’ to
represent the Baud Rate. Here is the table for the Baud
Rate:
Unsigned Char
Baud Rate
1
10K
2
20K
3
50K
4
100K
5
125K
6
250K
7
500K
8
800K
9
1000K
Users can use the macros listed below to set the Baud
Rate:
/* Baud Rate */
#define BAUD_RATE_10K
1
#define BAUD_RATE_20K
2
#define BAUD_RATE_50K
3
#define BAUD_RATE_100K
4
#define BAUD_RATE_125K
5
#define BAUD_RATE_250K
6
#define BAUD_RATE_500K
7
#define BAUD_RATE_800K
8
#define BAUD_RATE_1000K 9
Parameters:
This function gets a number which represents the specific
Baud Rate and stores it at the memory which is pointed at
by the pointer ‘baud’.
Return Value:
If this function gets the baud rate successfully, it returns 0,
any other returned value stands for error.