Title
Revision.
Page
054 SERIES RELEASE2
R2.Ver2.0
P.60
6-3-2) Funtions
1) long HwaUSB1.Open (LPCTSTR SelPrinter);
Please open USB port by Printer Model (“HMK-054”).
Parameters :
SelPrinter : Printer Model Name
Return :
Open normal : 0
Open error : -3 (minus)
2) void HwaUSB1.Close (void);
Please close USB port by Printer Model (“HMK-825”).
Parameters :
None
Return :
None
3) long HwaUSB1.PrintStr (LPCTSTR data);
It prints the character line.
Parameters :
Data : String datas
Return :
Printing normal : 1
Printing 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.
Parameters :
Data : 1 byte data (0~255)
Return :
Printing normal : 1
Printing error : 0
5) long HwaUSB1.RealRead (void);
It reads the data of printer status as 1 byte of USB port.
Parameters :
None
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.