Download Application interface specification for IBM 4610

Transcript
Table 30. GETLONG byte MM (continued)
Bit
Setting
Description
6
Reserved
7
Reserved
Table 31. GETLONG byte SS
Bit
Setting
Description
0
0
Stream mode enabled
0 (0x01)
1
Honor station mode enabled
1
0
DI: Portrait mode enabled. (Valid only if honor station
mode is enabled)
1
1
DI: Landscape mode enabled. (Valid only if honor station
mode is enabled.)
2
Reserved
3
Reserved
4
Reserved
5
Reserved
6
Reserved
7
Reserved
The returned value is one of the following:
v If the operation is successful, a 0 is returned.
v If the operation fails, a (-1) is returned.
For a description of error values, refer to “Errors” on page 46.
adx_tclose_device()
Use adx_tclose_device() to end communication with the printer driver.
BASIC
TCLOSE
C Interface:
int adx_tclose_device(int session);
Where:
session
Session number returned from adx_topen_device() for the printer driver.
The returned value is one of the following:
v If the operation is successful, a 0 is returned.
v If the operation fails, a (-1) is returned.
For a description of error values, refer to “Errors” on page 46.
Chapter 5. IBM 4610 Printers C Language API
45