Class Consts
Static class holding SPI transfer constants
Inherited Members
Namespace: DuetControlServer.SPI.Communication
Assembly: DuetControlServer.dll
Syntax
public static class Consts
Fields
BufferSize
Default size of a data transfer buffer
Declaration
public const int BufferSize = 8192
Field Value
Type | Description |
---|---|
int |
BufferedCodeHeaderSize
Size of the header prefixing a buffered code
Declaration
public const int BufferedCodeHeaderSize = 4
Field Value
Type | Description |
---|---|
int |
FirmwareFinishedDelay
Delay to await after the last firmware segment has been written (in ms)
Declaration
public const int FirmwareFinishedDelay = 750
Field Value
Type | Description |
---|---|
int |
FirmwareSegmentSize
Size of each transmitted firmware binary segment (must be equal to blockReadSize in the IAP project)
Declaration
public const int FirmwareSegmentSize = 2048
Field Value
Type | Description |
---|---|
int |
FormatCode
Unique format code for binary SPI transfers
Declaration
public const byte FormatCode = 95
Field Value
Type | Description |
---|---|
byte |
Remarks
Must be different from any other used format code (0x3E = DuetWiFiServer)
FormatCodeStandalone
Format code indicating that RRF is operating in standalone mode
Declaration
public const byte FormatCodeStandalone = 96
Field Value
Type | Description |
---|---|
byte |
IapRebootDelay
Time to wait when the IAP reboots to the main firmware
Declaration
public const int IapRebootDelay = 2000
Field Value
Type | Description |
---|---|
int |
IapSegmentSize
Size of each transmitted IAP binary segment (must be a multiple of IFLASH_PAGE_SIZE)
Declaration
public const int IapSegmentSize = 1536
Field Value
Type | Description |
---|---|
int |
IapTimeout
Timeout when waiting for a response from IAP
Declaration
public const int IapTimeout = 8000
Field Value
Type | Description |
---|---|
int |
InvalidFormatCode
Unique format code that is not used anywhere else
Declaration
public const byte InvalidFormatCode = 201
Field Value
Type | Description |
---|---|
byte |
MaxCommentLength
Maximum length of a whole-line comment to send to RRF
Declaration
public const int MaxCommentLength = 100
Field Value
Type | Description |
---|---|
int |
MaxEvaluationRequestsPerTransfer
Maximum number of evaluation and variable requests to send per transfer
Declaration
public const int MaxEvaluationRequestsPerTransfer = 32
Field Value
Type | Description |
---|---|
int |
MaxExpressionLength
Maximum length of an expression
Declaration
public const int MaxExpressionLength = 256
Field Value
Type | Description |
---|---|
int |
MaxVariableLength
Maximum length of a variable name
Declaration
public const int MaxVariableLength = 120
Field Value
Type | Description |
---|---|
int |
NoFileHandle
Value used by RepRapFirmware to represent an invalid file handle
Declaration
public const uint NoFileHandle = 0
Field Value
Type | Description |
---|---|
uint |
NoFilePosition
Value used by RepRapFirmware to represent an invalid file position
Declaration
public const uint NoFilePosition = 4294967295
Field Value
Type | Description |
---|---|
uint |
ProtocolVersion
Used protocol version. This is incremented whenever the protocol details change
Declaration
public const ushort ProtocolVersion = 6
Field Value
Type | Description |
---|---|
ushort |