Struct TransferHeader
Header describing the content of a full SPI transfer
Inherited Members
Namespace: DuetControlServer.SPI.Communication.Shared
Assembly: DuetControlServer.dll
Syntax
public struct TransferHeader
Fields
ChecksumData16
CRC16 checksum of the transfer data (protocol version < 4)
Declaration
public ushort ChecksumData16
Field Value
Type | Description |
---|---|
ushort |
ChecksumData32
CRC32 checksum of the transfer data (protocol version >= 4)
Declaration
public uint ChecksumData32
Field Value
Type | Description |
---|---|
uint |
ChecksumHeader16
CRC16 checksum of the transfer header (protocol version < 4)
Declaration
public ushort ChecksumHeader16
Field Value
Type | Description |
---|---|
ushort |
ChecksumHeader32
CRC32 checksum of the transfer header (protocol version >= 4)
Declaration
public uint ChecksumHeader32
Field Value
Type | Description |
---|---|
uint |
DataLength
Total length of the data transfer in bytes
Declaration
public ushort DataLength
Field Value
Type | Description |
---|---|
ushort |
FormatCode
Unique number representing the format used for this type of data transfer
Declaration
public byte FormatCode
Field Value
Type | Description |
---|---|
byte |
See Also
NumPackets
Number of packets in the data transfer
Declaration
public byte NumPackets
Field Value
Type | Description |
---|---|
byte |
ProtocolVersion
Version of the protocol. This is incremented whenever the protocol details change
Declaration
public ushort ProtocolVersion
Field Value
Type | Description |
---|---|
ushort |
See Also
SequenceNumber
Sequence number (auto-incremented), used to detect resets on either side
Declaration
public ushort SequenceNumber
Field Value
Type | Description |
---|---|
ushort |