예제 #1
0
        public override void OnSlaveReceived()
        {
            if (Request.Length > 0)
            {
                TxData.Clear();

                for (int n = 0; n < Request.Length; ++n)
                {
                    TxData.Add(Request.GetByte(n));
                }
            }
            else
            {
                TxData.Clear();
            }
        }
예제 #2
0
 public SPITestFunction(List <byte> data) :
     base(requestLength: data.Count, responseLength: data.Count)
 {
     TxData.Clear();
     TxData.AddRange(data);
 }