Struct CodeHeader
Header for G/M/T-codes
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DuetControlServer.SPI.Communication.LinuxRequests
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 |
---|---|
System.UInt32 |
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 |
---|---|
System.Byte |
MajorCode
Major code number (e.g. 1 in G1)
Declaration
public int MajorCode
Field Value
Type | Description |
---|---|
System.Int32 |
MinorCode
Minor code number (e.g. 4 in G53.4)
Declaration
public int MinorCode
Field Value
Type | Description |
---|---|
System.Int32 |
NumParameters
Number of parameters following the
Declaration
public byte NumParameters
Field Value
Type | Description |
---|---|
System.Byte |