Padgetportaddr; Padgetportirq; Padgetports - Hand Held Products PadCom TT1500 User Manual

Point-of-sale terminal control library
Table of Contents

Advertisement

padGetPortAddr

Returns the address of a port.
Note: This function is available in the MS-DOS version only!
Syntax
MS-DOS: int padGetPortAddr(
int Port
)
Parameter
Port
Returns
Returns the address of the specified communications port.
See Also
padSetPortAddr, padGetPortIrq

padGetPortIrq

Returns the interrupt number associated with a port.
Note: This function is available in the MS-DOS version only!
Syntax
MS-DOS: int padGetPortIrq(
int Port
)
Parameter
Port
Returns
Returns the interrupt number used by the specified communications port.
See Also
padSetPortIrq, padGetPortAddr

padGetPorts

Returns the current number of available ports. Use padSetPorts (see page 3-60) to change the number of ports available.
Syntax
int padGetPorts(
void
)
Returns
The return values are 1 for 1 port, 2 for 2 ports, etc.
3 - 20
Description
1 = COM1
2 = COM2
3 = COM3
4 = COM4
Description
Should be 1 for COM1, 2 for COM2, 3 for COM3 or 4 for COM4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents