Title
Rev.
Page
HMK-825 HMC-825
Ver1.5
P.60/65
8-2) Functions
8-2-1) long HwaUSB1.Open (LPCTSTR SelPrinter);
Please open USB port by Printer Model (“HMK-825”).
Parameters
:
SelPrinter : Printer Model Name
Return
:
Open normal : 0
Open error : -3 (minus)
8-2-2) void HwaUSB1.Close (void);
Please close USB port by Printer Model (“HMK-825”).
Parameters
:
None
Return
:
None
8-2-3) long HwaUSB1.PrintStr (LPCTSTR data);
It prints the character line.
Parameters
:
Data : String datas
Return
:
Printing normal : 1
Printing error : 0
8-2-4) long HwaUSB1.PrintCmd (unsigned char data);
It prints a byte (data).
Parameters
:
Data : 1 byte data (0~255)
Return
:
Printing normal : 1
Printing error : 0
8-2-5) long HwaUSB1.RealRead (void);
It reads the data stauts a byte by USB port.
Parameters
:
None
Return
:
Reading normal : The value of printer status
Reading error : -1 (minus)