Table of Contents

Class Consts

Namespace
DuetControlServer.Link.Protocol.Shared
Assembly
DuetControlServer.dll

Static class holding SPI transfer constants

public static class Consts
Inheritance
Consts
Inherited Members

Fields

Default size of a data transfer buffer

public const int BufferSize = 8192

Field Value

int

Size of the header prefixing a buffered code

public const int BufferedCodeHeaderSize = 4

Field Value

int

Delay to await after the last firmware segment has been written (in ms)

public const int FirmwareFinishedDelay = 750

Field Value

int

Size of each transmitted firmware binary segment (must be equal to blockReadSize in the IAP project)

public const int FirmwareSegmentSize = 2048

Field Value

int

Unique format code for binary SPI transfers

public const byte FormatCode = 95

Field Value

byte

Must be different from any other used format code (0x3E = DuetWiFiServer)

Format code indicating that RRF is operating in standalone mode

public const byte FormatCodeStandalone = 96

Field Value

byte

Time to wait when the IAP reboots to the main firmware

public const int IapRebootDelay = 2000

Field Value

int

Size of each transmitted IAP binary segment (must be a multiple of IFLASH_PAGE_SIZE)

public const int IapSegmentSize = 1536

Field Value

int

Timeout when waiting for a response from IAP

public const int IapTimeout = 8000

Field Value

int

Unique format code that is not used anywhere else

public const byte InvalidFormatCode = 201

Field Value

byte

Maximum length of a whole-line comment to send to RRF

public const int MaxCommentLength = 100

Field Value

int

Maximum number of evaluation and variable requests to send per transfer

public const int MaxEvaluationRequestsPerTransfer = 32

Field Value

int

Maximum length of an expression

public const int MaxExpressionLength = 256

Field Value

int

Maximum length of a variable name

public const int MaxVariableLength = 120

Field Value

int

Value used by RepRapFirmware to represent an invalid file handle

public const uint NoFileHandle = 0

Field Value

uint

Value used by RepRapFirmware to represent an invalid file position

public const uint NoFilePosition = 4294967295

Field Value

uint

Used protocol version. This is incremented whenever the protocol details change

public const ushort ProtocolVersion = 7

Field Value

ushort