Title
Rev.
Page
HMC-060, HMK-060 Release 2
Ver2.0
P.55
7-3-2) Functions
1) long HwaUSB1.Open(LPCTSTR SelPrinter);
Please open USB port as Printer Model(“HMK-060”).
n
Parameters:
SelPrinter : Printer Model Name
n
Return :
Open normal : 0
Open error : -3(minus)
2)void HwaUSB1.Close(void);
Please close USB port by the way of which you open Printer Model.
n
Parameters:
None
n
Return :
None
3)long HwaUSB1.PrintStr(LPCTSTR data);
It prints the string.
n
Parameters:
data : String datas
n
Return :
Print normal : 1
Print error : 0
※
In order to prevent the data loss by the printing timeout,
Please check the printer status by the RealRed function, and print out.
4)long HwaUSB1.PrintCmd(unsigned char data);
It prints the data 1 byte. It is to use for the printer control command.
n
Parameters:
data : 1 byte data (0~255)
n
Return :
Print normal : 1
Print error : 0
5)long HwaUSB1.RealRead(void);
It reads the data of printer status as 1 byte of USB port.
n
Parameters:
None
n
Return :
Read normal : Printer status
Read error : -1(minus)
※
Please do not use the functions which are not commented.
※
Please ask the person in charge of sample program.