Padsetport; Padsetportaddr - Hand Held Products PadCom TT1500 User Manual

Point-of-sale terminal control library
Table of Contents

Advertisement

See Also
padBox, padClearPixel, padFrame, padInvert, padLine

padSetPort

Sets the communications port. The next time padOn is executed, only the com port specified by Port is used. This function
works only when the library is in an "off" state (i.e., before padOn() or after padOff()). This is not normally needed, however
it may be useful in some situations.
Syntax
BOOL padSetPort(
int Port
)
Parameter
Port
Returns
Returns TRUE if the port specified is legal and library is "off", otherwise FALSE.
See Also
padGetPort, padIsOn, padSetPortAddr, padSetPortIrq, padSetType

padSetPortAddr

Sometimes it may be necessary to manually specify the address used when referring to a communications port.
padSetPortAddr provides this ability. This function works only when the library is in an "off" state (i.e., before padOn() or
after padOff()). This is not normally needed, however it may be useful in some situations.
Note: This function is available in the DOS version only!
Syntax
DOS: BOOL padSetPortAddr(
int Port,
int Address
)
Parameter
Port
Address
Returns
Returns TRUE if the port specified is legal and library is "off", otherwise FALSE.
See Also
padSetPort, padSetPortIrq, padSetType
Description
1 = COM1
2 = COM2
3 = COM3
4 = COM4
0 causes all the ports to be sequentially checked for a Transaction Team device.
Description
1 = COM1
2 = COM2
3 = COM3
4 = COM4
The value to be used as the port address
3 - 59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents