-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIsoTpFunctionalCollection.cs
More file actions
22 lines (18 loc) · 857 Bytes
/
Copy pathIsoTpFunctionalCollection.cs
File metadata and controls
22 lines (18 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System.Collections.Generic;
namespace CanKit.Pro.IsoTp;
/// <summary>
/// What <see cref="IsoTpFunctionalClient.SendAndCollectWithTransmitStampAsync"/> returns: the
/// responses collected within the window, and when the request went out.
/// </summary>
public readonly struct IsoTpFunctionalCollection
{
internal IsoTpFunctionalCollection(IReadOnlyList<IsoTpFunctionalResponse> responses, IsoTpTransmitStamps transmitStamps)
{
Responses = responses;
TransmitStamps = transmitStamps;
}
/// <summary>The Single-Frame responses collected within the window, in arrival order.</summary>
public IReadOnlyList<IsoTpFunctionalResponse> Responses { get; }
/// <summary>When the request was handed to the driver and transmitted; zero where unknown.</summary>
public IsoTpTransmitStamps TransmitStamps { get; }
}