Pci Struct¶
Parsed ISO 15765-2 Protocol-Control-Information (PCI) view produced by TryParsePci(ReadOnlySpan<byte>, IsoTpEndpoint, bool, Pci). Only the fields relevant to the parsed PciType are populated; all other fields are default-valued.
Implements IEquatable<Pci>
Properties¶
Pci.BlockSize Property¶
Block size (BS) for FlowControl; otherwise 0.
Property Value¶
Pci.DataOffset Property¶
Byte offset (within the CAN payload span passed to TryParsePci(ReadOnlySpan<byte>, IsoTpEndpoint, bool, Pci)) at which user data starts. For SF/FF this is the first data byte; for CF this is the first data byte; for FC there are no user data bytes and the value points one past the FC PCI.
Property Value¶
Pci.FlowStatus Property¶
Flow status for FlowControl; otherwise ClearToSend.
Property Value¶
Pci.Length Property¶
Length field. For SingleFrame this is the number of user data bytes (1..7 for classic-CAN, 1..62 for CAN-FD escape form). For FirstFrame this is the total PDU length (up to 4095 for the classic form and up to MaxFdFirstFrameLength for the CAN-FD escape form). Otherwise zero.
Property Value¶
Pci.SequenceNumber Property¶
Sequence number (0..15) for ConsecutiveFrame; otherwise 0.
Property Value¶
Pci.StMin Property¶
STmin converted to a TimeSpan via DecodeStMin(byte). Only meaningful for FlowControl; TimeSpan.Zero otherwise.
Property Value¶
Pci.StMinRaw Property¶
Raw STmin byte for FlowControl; otherwise 0. Use DecodeStMin(byte) to convert to TimeSpan.
Property Value¶
Pci.Type Property¶
PCI type (nibble of the first PCI byte).
Property Value¶
Operators¶
Pci.operator ==(Pci, Pci) Operator¶
Equality operator.
Parameters¶
left Pci
right Pci
Returns¶
Pci.operator !=(Pci, Pci) Operator¶
Inequality operator.
Parameters¶
left Pci
right Pci