/// <summary> /// Sends the contents of a HeapMessageArray /// </summary> /// <param name="hJ2534MessageArray_Local">HeapMessageArray to send</param> public void SendMessages(HeapMessageArray hJ2534MessageArray_Local) { lock (sync) API.CheckResult(API.PTWriteMsgs(channelId, (IntPtr)this.hJ2534MessageArray, hJ2534MessageArray_Local.LengthPtr, DefaultTxTimeout)); }
internal Channel(Device Device, Protocol ProtocolID, Baud Baud, ConnectFlag ConnectFlags, int ChannelID, object Sync) { sync = Sync; channelId = ChannelID; hJ2534MessageArray = new HeapMessageArray(ProtocolID, CONST.HEAPMESSAGEBUFFERSIZE); API = Device.API; this.Device = Device; this.ProtocolID = ProtocolID; this.ConnectFlags = ConnectFlags; DefaultTxTimeout = 100; DefaultRxTimeout = 300; DefaultTxFlag = TxFlag.NONE; }