Datasheet
Programming PIC Microcontrollers in BASIC - mikroElektronika
These constant values define mask codes. Routine CANSetMask()requires this code as one of its arguments. These enumerations
must be used by itself i.e. it cannot be ANDed to form multiple values.
const CAN_MASK_B1 = 0
const CAN_MASK_B2 = 1
CAN_FILTER
These constant values define filter codes. Routine CANSetFilter() requires this code as one of its arguments. These enumerations
must be used by itself, i.e. it cannot be ANDed to form multiple values.
const CAN_FILTER_B1_F1 = 0
const CAN_FILTER_B1_F2 = 1
const CAN_FILTER_B2_F1 = 2
const CAN_FILTER_B2_F2 = 3
const CAN_FILTER_B2_F3 = 4
const CAN_FILTER_B2_F4 = 5
CAN_CONFIG_FLAGS
These constant values define flags related to configuring CAN module. Routines CANInitialize() and CANSetBaudRate() use
these codes. One or more these values may be ANDed to form multiple flags
const CAN_CONFIG_DEFAULT = $FF ' 11111111
const CAN_CONFIG_PHSEG2_PRG_BIT = $01
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (39 sur 112)05/11/2004 02:20:52