ICP DAS USA I-7565-H1 User Manual page 63

High performance usb/can converter
Table of Contents

Advertisement

TimePeriod:
[in] The time period of module hardware timer for sending CAN
message. If the value is zero, this function doesn't work.
TransmitTimes:
[in] The count for sending CAN message. If the value is zero, it means
that CAN message will be sent periodically and permanently.
Return Values :
Return 0 means success, others means failure.
Examples :
Int Ret;
BYTE CAN_No;
_VCI_CAN_MSG CAN_SendMsg;
CAN_No=1;
CAN_SendMsg.Mode = 1;
CAN_SendMsg.RTR
CAN_SendMsg.ID
CAN_SendMsg.DLC
CAN_SendMsg.Data[0]= 0x12;
CAN_SendMsg.Data[1]= 0x34;
CAN_SendMsg.Data[2]= 0x56;
CAN_SendMsg.Data[3]= 0x78;
CAN_SendMsg.Data[4]= 0x90;
CAN_SendMsg.Data[5]= 0xAB;
CAN_SendMsg.Data[6]= 0xCD;
CAN_SendMsg.Data[7]= 0xEF;
//Send 200 CANMsg with 10ms period and then stop
Ret = VCI_EnableHWCyclicTxMsg(CAN_No, &CAN_SendMsg, 10, 200);
//Send CANMsg with 10ms period permanently
//Ret = VCI_EnableHWCyclicTxMsg(CAN_No, &CAN_SendMsg, 10, 0);
I-7565-H1/H2 High Performance USB/CAN Converter User's Manual (Ver 1.7, Aug/2011) ------------- 63
= 0;
= 0x1;
= 8;

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7565-h2

Table of Contents