Revision: 1.23
61
Return Value: This function returns 0, library init
successfully. If this function fails not 0.
7. Syntax:
int CanStop(void)
Description: This function will stop send and recive can message and into configure mode.
Parameters: None.
Return Value: This function returns 0 if it successfully. If this function fails not 0.
8. Syntax:
int CanStart( void )
Description: This function will resume from configure mode to normal mode.
Parameters: None.
Return Value: This function returns 0 if it set the Baud rate successfully. If this function fails
not 0.
9. Syntax:
int setMask(unsigned long mask, int num, int extd_flag)
Description: This function setMask to canbus chip.
Parameters: num 0 is set Mask0, 1 is set Mask1.
extd_flag 1 is 29bit, 0 is 11bit
mask is mask value, if set 11bit the maxmum mask value is 0x7ff,
else the maxmum mask value is 0x1FFFFFFF
Return Value: This function returns 0 if it set the Mask successfully. If this function fails not 0.
10. Syntax:
void getMask(unsigned long *mask, int num, int extd_flag)