![background image](http://html.mh-extra.com/html/toshiba/trst-a10-series/trst-a10-series_user-manual_429122057.webp)
TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual
TOSHIBA TEC CORPORATION EAA-02450
57
// Multiple image execute alignment
//DirectIO Method "TPTR_CMD_SET_WRITETHREAD" Command Parameter Definition
const LONG TPTR_WT_SUSPEND = 1; // Set to seupend
const LONG TPTR_WT_RESUME_AND_RETRY = 2; // Set to resume and retry write data
const LONG TPTR_WT_CLEAR_AND_RESUME = 3; // Clear queued data and resume
const LONG TPTR_WT_CLEAR_AND_RESET = 4; // Clear queued data and reset printer device
//DirectIO Method "TPTR_CMD_GET_WRITETHREAD" Command Result Definition
const LONG TPTR_WT_STATE_SUSPEND = 1; //Async write thread is suspended
const LONG TPTR_WT_STATE_RUN = 2; //Async write thread is running
//DiretIO Methjod "TPTR_CMD_SET_PTRREQUEST" Command Parameter Definition
const LONG TPTR_PR_REPORT_COMPLETE = 1; //Report when printer is idle
const LONG TPTR_PR_SKIP_WHEN_ERROR = 2; //Skip print data after error occurred
const LONG TPTR_PR_CONTINUE_WHEN_ERROR = 3; //Continue print data after error occurred
//DirectIO Method "TPTR_CMD_END_MIXDATA_PAGE" Command Parameter Definition
const LONG TPTR_EMP_PRINT_DATA = 1; //Print Bufferred Data
const LONG TPTR_EMP_PURGE_DATA = 2; //Purge Bufferred Data
//DirectIO Method "TPTR_CMD_PAPER_KIND" Command Parameter Definition
const LONG TPTR_PK_NORMAL = 1; //Select Normal Paper
const LONG TPTR_PK_COLOR = 2; //Select Color Paper
//DirectIO Method "TPTR_CMD_DATA_COLOR" Command Parameter Definition
const LONG TPTR_DC_DEFAULT = 1; //Default Color(Black)
const LONG TPTR_DC_OTHER = 2; //Other Color(Red / Blue)
//DirectIO Method "TPTR_CMD_GET_PRINTERINFORMATION" Command Parameter Definition
const LONG TPTR_GPI_ROM_VERSION = 1; //Get Printer ROM Version
//DirectIO Method "TPTR_CMD_CHECK_PRINTERSUATUS" Command Parameter Definition
const LONG TPTR_CS_NOWSTATUS = 0;
// No Connect Check And Get Printer Status
const LONG TPTR_CS_CONNECTCHECK = 1;
// Connect Check And Get Printer Status
//DirectIO Method "TPTR_CMD_SET_CHILDPG_DIRECTION" Command Parameter Definition
const LONG TPTR_PD_DIRECTION0 = 0;
// Create Page's Print Direction is Top To
Bottom To Send Paper direction
const LONG TPTR_PD_DIRECTION1 = 1;
// Create Page's Print Direction is Left To
Right To Send Paper direction
const LONG TPTR_PD_DIRECTION2 = 2;
// Create Page's Print Direction is Bottom To
Top To Send Paper direction
const LONG TPTR_PD_DIRECTION3 = 3;
// Create Page's Print Direction is Right To
Left To Send Paper direction
//DirectIO Method "TPTR_CMD_CUT_PAPER" Command Parameter Definition
const LONG TPTR_CP_NOMOVE_CUT = 0;
// No Move And PaperCut
const LONG TPTR_CP_JUSTIFY_CUT = 1;
// Move To Head And PaperCut
//DirectIO Method "TPTR_CMD_SETBITMAP_MULTI" Command Parameter Definition(TRST56 only)
const LONG TPTR_SBM_CREATE_MEMORY_IMAGE = 1; //Create memory image
const LONG TPTR_SBM_SET_IMAGE_TO_PRINTER = 2; //Setup image(s) to printer flash memory
const LONG TPTR_SBM_CANCEL_MEMORY_IMAGE = 3; //Cancel All image(s) from memory(can not clear printer image)
////////////////////////////////////////////////////////////////////////////
// 2ST Printer Station Constant
///////////////////////////////////////////////////////////////////////////
const LONG PTR_S_RECEIPT2 = 0x800
////////////////////////////////////////////////////////////////////////////
// 2ST “TransactionPrint” Method: “Control” Parameter Constants
///////////////////////////////////////////////////////////////////////////