示例#1
0
        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;
        }
示例#2
0
        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;
        }