Class Firmware
Dummy stage for codes ready to be sent to the firmware. This class is not used by the pipeline itself but indirectly from the SPI channel processor
Inherited Members
Namespace: DuetControlServer.Codes.Pipelines
Assembly: DuetControlServer.dll
Syntax
public class Firmware : PipelineBase
Constructors
Firmware(ChannelProcessor)
Constructor of this class
Declaration
public Firmware(ChannelProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
ChannelProcessor | processor | Channel processor |
Methods
FlushAsync(Code, bool, bool)
Wait for the pipeline stage to become idle
Declaration
public override Task<bool> FlushAsync(Code code, bool evaluateExpressions = true, bool evaluateAll = true)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code waiting for the flush |
bool | evaluateExpressions | Evaluate all expressions when pending codes have been flushed |
bool | evaluateAll | Evaluate the expressions or only SBC fields if evaluateExpressions is set to true |
Returns
Type | Description |
---|---|
Task<bool> | Whether the codes have been flushed successfully |
Overrides
FlushAsync(CodeFile)
Wait for the pipeline stage to become idle
Declaration
public override Task<bool> FlushAsync(CodeFile file)
Parameters
Type | Name | Description |
---|---|---|
CodeFile | file |
Returns
Type | Description |
---|---|
Task<bool> | Whether the codes have been flushed successfully |
Overrides
FlushAsync(bool)
Wait for the pipeline stage to become idle
Declaration
public override Task<bool> FlushAsync(bool flushAll)
Parameters
Type | Name | Description |
---|---|---|
bool | flushAll | Flush everything |
Returns
Type | Description |
---|---|
Task<bool> | Whether the codes have been flushed successfully |
Overrides
ProcessCodeAsync(Code)
Process an incoming code
Declaration
public override Task ProcessCodeAsync(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code to process |
Returns
Type | Description |
---|---|
Task | Asynchronous task |