This function set the ReceiveMask of MB[index]; The Mask will be reduced if CAN_FRAME_FORMAT = STANDARD to the appropriate format. This function sets one mailbox through the index to RX or TX mode
BOOL CANSetMask(HANDLE hCAN,DWORD index,_CAN_FRAME_FORMAT format, DWORD mask);
Parameters
HANDLE hCAN
HANDLE handle of the CAN Driver got from CANOpenHandle(LPCWSTR lpDevName);
DWORD index
index of mailbox (0..63)
_CAN_FRAME_FORMAT format
format of CAN telegram CAN_STANDARD or CAN_EXTENDED
DWORD mask
canmask to select received can telegram ids with id passed through mailbox PCAN_TRANSFER_BLOCK
Return Values
If this function succeeds, the returns TRUE
If the function fails, the return value is FALSE.
Remarks
Requirements
OS Versions: Windows CE 6RE3 and later.
canbus.h
Link Library: cansdk.lib