4.1.20 CAN_SendWithoutStruct
Description:
This function is the same as
CAN_SendMsg
. But this function doesn’t
use PacketStruct structure type. If users use CAN_SendMsg and can’t
send CAN message correctly with some application development like
dot Net 2003, the CAN_SendWithoutStruct function can instead.
Syntax:
int CAN_SendWithoutStruct(BYTE BoardNo, BYTE Port, BYTE Mode,
DWORD Id, BYTE Rtr, BYTE Dlen, BYTE *Data)
Parameter:
BoardNo: [input] PISO-CAN board number (0~7)
Port: [input] CAN port number (1~4 or 1~2)
Mode: 0
→
11-bit identifier, 1
→
29-bit identifier.
Id: Identifier
Rtr: Remote transmission request
Dlen: Data length
*Data: data byte
Return:
CAN_NoError: OK
CAN_BoardNumberError: BoardNo is not correct.
CAN_PortNumberError: Port number is not correct.
CAN_ActiveBoardError: This board is not activated.
CAN_TransmitBufferLocked:
Transmit buffer in CAN chip is locked.
CAN_TransmitIncomplete:
Transmission is not yet completed.
PISO-CAN/PEX-CAN/PCM-CAN Series User’s Manual (v2.6 Dec/2013) -------
54
CAN_ConfigError: Port has not been configured successfully.
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru