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(); } }
public SPITestFunction(List <byte> data) : base(requestLength: data.Count, responseLength: data.Count) { TxData.Clear(); TxData.AddRange(data); }