Datasheet
Programming PIC Microcontrollers in BASIC - mikroElektronika
If (CAN_CONFIG_FLAGS and CAN_CONFIG_VALID_XTD_MSG) <> 0
Set all filters to XTD_MSG
Else if (config and CONFIG_VALID_STD_MSG) <> 0
Set all filters to STD_MSG
Else
Set half of the filters to STD, and the rest to XTD_MSG
Side Effects:
All pending transmissions are aborted.
Example
dim aa as byte
aa = CAN_CONFIG_SAMPLE_THRICE and ' form value to be used
CAN_CONFIG_PHSEG2_PRG_ON and ' with CANSPIInitialize
CAN_CONFIG_STD_MSG and
CAN_CONFIG_DBL_BUFFER_ON and
CAN_CONFIG_VALID_XTD_MSG and
CAN_CONFIG_LINE_FILTER_OFF
CANInitialize(1, 1, 3, 3, 1, aa)
5.2.4.4 CANSPISetBaudRate – Sets CAN Baud Rate
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (31 sur 112)05/11/2004 02:20:52