Struct CodeHeader
Header for G/M/T-codes
Inherited Members
Namespace: DuetControlServer.SPI.Communication.SbcRequests
Assembly: DuetControlServer.dll
Syntax
public struct CodeHeader
Remarks
This is followed by NumParameters CodeParameter instances, which is then followed by concatenated zero-terminated UTF8-strings for each parameter where applicable
Fields
Channel
Target of the code
Declaration
public CodeChannel Channel
Field Value
Type | Description |
---|---|
CodeChannel |
FilePosition
File position after the read code. This is used for pausing and resuming
Declaration
public uint FilePosition
Field Value
Type | Description |
---|---|
uint |
Flags
Flags of this code
Declaration
public CodeFlags Flags
Field Value
Type | Description |
---|---|
CodeFlags |
Letter
Letter of this code (G/M/T)
Declaration
public byte Letter
Field Value
Type | Description |
---|---|
byte |
MajorCode
Major code number (e.g. 1 in G1)
Declaration
public int MajorCode
Field Value
Type | Description |
---|---|
int |
MinorCode
Minor code number (e.g. 4 in G53.4)
Declaration
public int MinorCode
Field Value
Type | Description |
---|---|
int |
NumParameters
Number of parameters following the
Declaration
public byte NumParameters
Field Value
Type | Description |
---|---|
byte |