Padsetporthandle; Padsetportirq; Padsetports - Hand Held Products PadCom TT1500 User Manual

Point-of-sale terminal control library
Table of Contents

Advertisement

padSetPortHandle

Sets a handle to the port.
Syntax
Win32:
void padSetPortHandle(
HANDLE newPortHandle
)
Parameter
newPortHandle
See Also
padSetPort, padSetPortIrq, padSetType

padSetPortIrq

Sometimes it may be necessary to manually specify the interrupt request numbers used when referring to a communications
port. padSetPortIrq 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: int padSetPortIrq(
int Port,
int Irq
)
Parameter
Port
Irq
Returns
Returns TRUE if the port specified is legal and library is "off", otherwise FALSE.
See Also
padSetPort, padSetPortAddr, padSetType

padSetPorts

Sets the maximum number of communications ports available. The next time padOn or padConnect is executed, only the
com ports specified by MaxPorts will be available for use. This function works only when the library is in an "off" state (i.e.,
before padOn/padConnect or after padOff).
Syntax
int padSetPorts(
int MaxPorts
)
Parameter
MaxPorts
3 - 60
Win16:
void padSetPortHandle(
int newPortHandle
)
Description
Handle to the port
Description
1 = COM1
2 = COM2
3 = COM3
4 = COM4
The value to be used as the port interrupt number
Description
valid values start at 1 for 1 com port (the maximum allowed for Windows 3.1 is 9)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents