COMMELL MPX-2515 User Manual
Page 22

Commell MPX-2515 User’s Guide Rev 0100
Taiwan Commate Computer Inc.
22
Please refer to the MCP2515 data sheet for detail information.
1.7.2 MCP_RX_MASK_0
The MCP_RX_MASK_0 request is defined as the sub-command code 0X20 of
CCP_CMND_CAN_RX_MASKS_FILTERS service.
#define CCP_CAN_RX_MASKS_FILTERS 0X22
#define MCP_RX_MASK_0 0X20
#define EP2 2 /* Endpoint 2 */
#define EP3 3 /* Endpoint 3 */
OFFSET
BULK OUT (EP2)
BULK IN (EP1)
SIZEOF_DATA
0X06
0X01
COMMAND
0X22
0X22
ERROR
0X00
Error code
DATA_0
0X20
Number of bytes written
DATA_1
0X04: Number of bytes
to write.
checksum
DATA_2
RXM0SIDH
DATA_3
RXM0SIDL
DATA_4
RXM0EID8
DATA_5
RXM0EID0
DATA_6
checksum
DATA_7
1.7.3 MCP_RX_MASK_1
The MCP_RX_MASK_1 request is defined as the sub-command code 0X24 of
CCP_CMND_CAN_RX_MASKS_FILTERS service.
#define CCP_CAN_RX_MASKS_FILTERS 0X22
#define MCP_RX_MASK_1 0X24
#define EP2 2 /* Endpoint 2 */
#define EP3 3 /* Endpoint 3 */
OFFSET
BULK OUT (EP2)
BULK IN (EP1)
SIZEOF_DATA
0X06
0X01
COMMAND
0X22
0X22
ERROR
0X00
Error code
DATA_0
0X24
Number of bytes written
DATA_1
0X04: Number of bytes
to write.
checksum