TRST-A10/TRST-A15 POS Printer OPOS Control Application User’s Manual
TOSHIBA TEC CORPORATION EAA-02450
72
3) DirectIO Method
The DirectIO method is described for each command.
There are two types of commands: those that only operate synchronously and those that operate both synchronously and asynchronously. Regarding the latter
commands, a notification method differs between when they operate synchronously and when they operate asynchronously. This document describes for both
cases.
Commands that operate both synchronously and asynchronously are as follows:
TPTR_CMD_DIRECT_OUTPUT
TPTR_CMD_SET_PTRREQUEST
TPTR_CMD_FILE_OUTPUT
TPTR_CMD_PRINTBITMAP
When the commands operate synchronously:
The table below describes the synchronous operations for the both types of commands.
Each method notifies a result using a return value, Result Code property, and ResultCodeExtended property.
Command
Value
ResultCode
ResultCodeExtended
Meaning
Error Handling
OPOS_SUCCESS
0
Completed successfully
–
OPOS_E_CLOSED
0
The device is closed.
Open the device using the Open
method.
OPOS_E_NOTCLAIMED
0
Does not have exclusive access to the
device.
Obtain the exclusive access using
the Claim (ClaimDevice) method.
TPTR_CMD_DIRECT_
OUTPUT
OPOS_E_DISABLED
0
The device is disabled.
Set the DeviceEnabled property to
TRUE to enable the device.