Title Rev.
Page
HMK(P)-081,HMC-081 Ver1.0
62
8-2) Functions
8-2-1) long HwaUSB1.Open (LPCTSTR SelPrinter);
Please open USB port by Printer Model (“HMK-825”).
Notice
: Please open the model HMK-825, instead HMK-081.
It is to be compatible with the model HMK-825.
z
Parameters
:
SelPrinter : Printer Model Name
z
Return
:
Open normal : 0
Open error : -3 (minus)
8-2-2) void HwaUSB1.Close (void);
Please close USB port by Printer Model (“HMK-825”).
z
Parameters
:
None
z
Return
:
None
8-2-3) long HwaUSB1.PrintStr (LPCTSTR data);
It prints the character line.
z
Parameters
:
Data : String datas
z
Return
:
Printing normal : 1
Printing error : 0
8-2-4) long HwaUSB1.PrintCmd (unsigned char data);
It prints a byte (data).
z
Parameters
:
Data : 1 byte data (0~255)
z
Return
:
Printing normal : 1
Printing error : 0
8-2-5) long HwaUSB1.RealRead (void);
It reads the data stauts a byte by USB port.
z
Parameters
:
None
z
Return
:
Reading normal : The value of printer status
Reading error : -1 (minus)
[
Caution
]
Please do not use the function we don
’
t provide, because it causes the function damage.
Please contact us for the sample program.