Kaizen
Browse modulesPeripheralsperipherals/sharedFunctions

Function: parsePrinterStatusByte()

function parsePrinterStatusByte(byte: number, query: "printer" | "offlineCause" | "paper"): PrinterStatus;

Defined in: shared/peripherals/printer-status.ts:37

Parse a DLE EOT response byte. Bit meanings depend on which query was issued; bits not covered by the given query stay false.

Parameters

ParameterType
bytenumber
query"printer" | "offlineCause" | "paper"

Returns

PrinterStatus

On this page