COMMELL MPX-2515 User Manual
Page 29

Commell MPX-2515 User’s Guide Rev 0100
Taiwan Commate Computer Inc.
29
DATA_10
Reserved
DATA_11
TXB0DLC
DATA_12
TXB0D0
DATA_13
TXB0D1
DATA_14
TXB0D2
DATA_15
TXB0D3
DATA_16
TXB0D4
DATA_17
TXB0D5
DATA_18
TXB0D6
DATA_19
TXB0D7
DATA_20
checksum
1.8.4 MCP_LOAD_TXB1SIDH
The MCP_LOAD_TXB1SIDH command loads the bytes in the Request Packet to
the associated MCP2515 registers in order to complete the corresponding message
transmission on the CAN bus.
#define CCP_CAN_TX_SERVICE 0X23 /* command category code */
#define MCP_LOAD_TXB1SIDH 0X42 /* sub-command code */
#define EP2 2 /* Endpoint 2 */
#define EP3 3 /* Endpoint 3 */
OFFSET
BULK OUT (EP2)
BULK IN (EP1)
SIZEOF_DATA
0X14
0X05
COMMAND
0X23
0X23
ERROR
0X00
Error code
DATA_0
0X42
Number of bytes return
(0X04)
DATA_1
Overwrite flag
EFLG before transmitting
DATA_2
Reserved
TXB1CTRL before
transmitting
DATA_3
0X40
EFLG after transmitted
DATA_4
Value to load to TXB1CTRL
TXB1CTRL after
transmitted
DATA_5
0X41
checksum
DATA_6
0X0D
DATA_7
TXB1SIDH
DATA_8
TXB1SIDL
DATA_9
TXB1EID8
DATA_10
TXB1EID0
DATA_11
TXB1DLC
DATA_12
TXB1D0
DATA_13
TXB1D1
DATA_14
TXB1D2