Sendcanmsg / Sendcanmsg_Nonblock - ICP DAS USA mPAC-7186EXD-CAN User Manual

Table of Contents

Advertisement

3.1.9 SendCANMsg / SendCANMsg_NonBlock

Description:
 SendCANMsg():
Send CAN message with blocking method.
If the transmission buffer is disable, this function will send a message
to the CAN network. However, if the transmit buffer is enable, this
function will send all the messages stored in the transmit buffer to the
CAN network.
 SendCANMsg_NonBlock():
Send CAN message with non-blocking method.
If the transmit buffer is disable, this function will send a message to
the CAN network. However, if the transmit buffer is enable, this
function will return error code to inform users the transmission buffer
is enabled. This function is supported by XC100 library v1.80 or later.
Syntax:
int SendCANMsg(unsigned char Mode, unsigned long MsgID,
int SendCANMsg_NonBlock(
Parameter:
 Mode: This parameter is used for CAN ID type.
 MsgID: The ID of this CAN message. The ID may be a 11-bit value
or 29-bit value.
 RTR: Remote transmits request byte.
I-7188XBD-CAN/μPAC-7186EXD-CAN user manual (ver.1.0.3, May/09/2014)
unsigned char RTR, unsigned char DataLen,
unsigned char *Data)
unsigned char Mode, unsigned long MsgID,
unsigned char RTR, unsigned char DataLen,
unsigned char *Data)
Mode value
0
Send a 11-bit ID CAN message
others
Send a 29-bit ID CAN message
RTR value
This CAN message is not a remote
0
transmit request message.
This CAN message is a remote
1
transmit request message.
Meaning
Meaning
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7188xbd-can

Table of Contents