Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
Description The procedure sets the CAN message filter. CAN must be in Configuration mode. If not, all values will be
ignored.
Parameters:
CAN_FILTER - One of predefined constant values
val - Actual filter 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 filter registers
Example
CANSPISetFilter(CAN_FILTER_B1_F1, 3, CAN_CONFIG_XTD_MSG)
5.2.4.7 CANSPIWrite – Queues message for transmission
Prototype
sub function CANSPIWrite(dim id as longint, dim byref Data : as byte[8],
dim DataLen as byte, dim CAN_TX_MSG_FLAGS as byte) as byte
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (34 sur 112)05/11/2004 02:20:52