73
CITIZEN UWP POS Print SDK - Programming Manual
2.4.4. List of Constants Predefined
No Type
Name
Data
type
Value
Description
1
Result/Error
CMP_SUCCESS
int
0 Successfully completed
CMP_E_CONNECTED
int
1001 Already connected
CMP_E_DISCONNECT
int
1002 Not connected
CMP_E_NOTCONNECT
int
1003 Failed to connect
CMP_E_CONNECT_NOTFOUND
int
1004 Non supported model
CMP_E_CONNECT_OFFLINE
int
1005 Failed printer status
CMP_E_ILLEGAL
int
1101 Unsupported or invalid parameter
CMP_E_OFFLINE
int
1102 Off-line
CMP_E_NOEXIST
int
1103 File does not exist
CMP_E_FAILURE
int
1104 Process failure
CMP_E_TIMEOUT
int
1105 Timeout
CMP_E_NO_LIST
int
1106 Printer cannot be found
CMP_EPTR_COVER_OPEN
int
1201 Cover opens
CMP_EPTR_REC_EMPTY
int
1202 Out of paper
CMP_EPTR_BADFORMAT
int
1203 Unsupported file format
CMP_EPTR_CMP_EPTR_TOOBIG
int
1204 Bitmap size too big
2
Interface to
connect
CMP_PORT_WiFi
int
0 Network
CMP_PORT_Bluetooth
int
1 Bluetooth
4
Status
CMP_STS_NORMAL
int
0 Normal
CMP_STS_DRAWER_LEVEL_H
int
2
Status of pin 3 of drawer kick-out
connector = H
CMP_STS_PAPER_NEAREMPTY
int
4 Paper near empty
CMP_STS_COVER_OPEN
int
16 Cover opens
CMP_STS_PAPER_EMPTY
int
32 Paper empty
CMP_STS_PRINTEROFF
int
128 Off-line
5
Alignment
CMP_ALIGNMENT_LEFT
int
0 Left alignment
CMP_ALIGNMENT_CENTER
Int
1 Center alignment
CMP_ALIGNMENT_RIGHT
int
2 Right alignment
6
Text attribute
CMP_FNT_DEFAULT
int
0 Default font
CMP_FNT_FONTB
int
1 Font B
CMP_FNT_FONTC
int
2 Font C
CMP_FNT_BOLD
int
8 Bold
CMP_FNT_REVERSE
int
16 Reverse
CMP_FNT_UNDERLINE
int
128 Underline
7
Text size
CMP_TXT_1WIDTH
int
0 1 times width
CMP_TXT_2WIDTH
int
16 2 times width
CMP_TXT_3WIDTH
int
32 3 times width
CMP_TXT_4WIDTH
int
48 4 times width
CMP_TXT_5WIDTH
int
64 5 times width
CMP_TXT_6WIDTH
int
80 6 times width
CMP_TXT_7WIDTH
int
96 7 times width
CMP_TXT_8WIDTH
int
112 8 times width
CMP_TXT_1HEIGHT
int
0 1 times height
CMP_TXT_2HEIGHT
int
1 2 times height
CMP_TXT_3HEIGHT
int
2 3 times height
CMP_TXT_4HEIGHT
int
3 4 times height
CMP_TXT_5HEIGHT
int
4 5 times height
CMP_TXT_6HEIGHT
int
5 6 times height