Пример #1
0
 [DllImport("ECanVci.dll", EntryPoint = "Receive")] // 返回实际读取到的帧数。如果返回值为0xFFFFFFFF,则表示读取数据失败,有错误发生,请调用ReadErrInfo函数来获取错误码。
 public static extern UInt32 Receive_array(
     UInt32 DeviceType,
     UInt32 DeviceInd,
     UInt32 CANInd,
     out CAN_OBJ_ARRAY Receive,
     UInt32 length,
     UInt32 WaitTime);
Пример #2
0
 [DllImport("ECanVci.dll", EntryPoint = "Transmit")] //返回实际发送的帧数。多帧连续发送
 public static extern UInt32 Transmit_array(
     UInt32 DeviceType,
     UInt32 DeviceInd,
     UInt32 CANInd,
     ref CAN_OBJ_ARRAY send,
     UInt32 length);