public int StartCAN(byte time1, byte time2) { VCI_INIT_CONFIG config = new VCI_INIT_CONFIG(); config.AccCode = 0; config.AccMask = -1; config.Filter = 0; config.Mode = 0; config.Timing0 = time1; config.Timing1 = time2; int rel = VCI_InitCAN(m_devtype, m_devind, m_canind, ref config); rel = VCI_StartCAN(m_devtype, m_devind, m_canind); return(rel); }
extern static int VCI_InitCAN(int DeviceType, int DeviceInd, int CANInd, ref VCI_INIT_CONFIG pInitConfig);