Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub procedure CANSPISetMask(CAN_MASK as byte, val as longint, dim
CAN_CONFIG_FLAGS as byte)
Description The procedure sets the CAN message mask. CAN must be in Configuration mode. If not, all values will be
ignored.
Parameters:
CAN_MASK - One of predefined constant value
val - Actual mask register value
CAN_CONFIG_FLAGS - Type of message to filter, either CAN_CONFIG_XTD_MSG or
CAN_CONFIG_STD_MSG
Output:
Given value is bit adjusted to appropriate buffer mask registers.
Example
CANSPISetMask(CAN_MASK_B2, -1, CAN_CONFIG_XTD_MSG)
5.2.4.6 CANSPISetFilter – Sets the CAN message filter
Prototype
sub procedure CANSPISetFilter(dim CAN_FILTER as byte, dim val as longint,
dim CAN_CONFIG_FLAGS as byte)
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (33 sur 112)05/11/2004 02:20:52