3 - 60
padSetPortHandle
Sets a handle to the port
.
Syntax
Parameter
Description
newPortHandle
Handle to the port
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
Description
Port
1 = COM1
2 = COM2
3 = COM3
4 = COM4
Irq
The value to be used as the port interrupt number
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
Description
MaxPorts
valid values start at 1 for 1 com port (the maximum allowed for Windows 3.1 is 9)
Win32:
void padSetPortHandle(
HANDLE newPortHandle
)
Win16:
void padSetPortHandle(
int newPortHandle
)
Summary of Contents for PadCom TT1500
Page 1: ... PadCom Point of Sale Terminal Control Library U s e r s G u i d e ...
Page 88: ...4 2 ...
Page 129: ......
Page 130: ......
Page 131: ......
Page 132: ... PadCom UG Rev A 4619 Jordan Road P O Box 187 Skaneateles Falls New York 13153 0187 ...