beautypg.com

COMMELL MPX-2515 User Manual

Page 8

background image

Commell MPX-2515 User’s Guide Rev 0100

Taiwan Commate Computer Inc.

8

#define CAN_SET_LED_SWITCH 0X03
#define CAN_SET_TRANSFER_RATE 0X04
#define CAN_RESET_INSTRUCT 0X85

#define MCP_RX_MASK_0 0X20
#define MCP_RX_MASK_1 0X24
#define MCP_RX_FILTER_0 0X00
#define MCP_RX_FILTER_1 0X04
#define MCP_RX_FILTER_2 0X08
#define MCP_RX_FILTER_3 0X10
#define MCP_RX_FILTER_4 0X14
#define MCP_RX_FILTER_5 0X18

#define MCP_LOAD_TXB0SIDH 0X40
#define MCP_LOAD_TXB0D0 0X41
#define MCP_LOAD_TXB1SIDH 0X42
#define MCP_LOAD_TXB1D0 0X43
#define MCP_LOAD_TXB2SIDH 0X44
#define MCP_LOAD_TXB2D0 0X45
#define MCP_ABORT_TXB0 0X38
#define MCP_ABORT_TXB1 0X48
#define MCP_ABORT_TXB2 0X58

/* MCP2515 Register Address */
#define RXM0SIDH 0X20
#define RXM1SIDH 0X24
#define RXF0SIDH 0X00
#define RXF1SIDH 0X04
#define RXF2SIDH 0X08
#define RXF3SIDH 0X10
#define RXF4SIDH 0X14
#define RXF5SIDH 0X18

/* Others */
#define EP1 1 /* Endpoint 1 */
#define EP2 2 /* Endpoint 2 */
#define EP3 3 /* Endpoint 3 */
#define EP4 4 /* Endpoint 4 */

1.5 CCP_CAN_SYSTEM_SERVICE

The CCP_CAN_SYSTEM_SERVICE uses 0X20 as its command category service
code. This service however contains several sub-services, which are identified by
the Sub-Command Codes that is starting at the first byte of the DATA field. This
section defines this service.

1.5.1 CAN_GET_INFO

The CAN_GET_INFO command returns the USB vendor ID, product ID, and the
firmware version of the targeted MPX-2515 card.