public void Send(TpPacket Packet) { if (this.Status != TpTransactionStatus.Ready) throw new IsoTpTransactionReuseException(this); this.Status = TpTransactionStatus.Active; this.Buff = Packet.Data; if (Buff.Length <= Frames.SingleFrame.DataCapacity) SendSingle(); else SendFlow(); this.Status = TpTransactionStatus.Done; }
public void Send(TpPacket Packet) { if (this.Status != TpTransactionStatus.Ready) { throw new IsoTpTransactionReuseException(this); } this.Status = TpTransactionStatus.Active; this.Buff = Packet.Data; if (Buff.Length <= Frames.SingleFrame.DataCapacity) { SendSingle(); } else { SendFlow(); } this.Status = TpTransactionStatus.Done; }