Svcgetportstatus() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

S
F
ERVICE
UNCTIONS

svcGetPortStatus()

svcGetPortStatus()
NOTE
168
M
X
800 S
P
ERIES
ROGRAMMERS
The svcGetPortStatus() function returns the following information regarding
the port:
x
The M
800 series terminal does not support the detection of parity errors on the
COM ports due to the limitations of the ARM processor.
Prototype
struct vficomErrCounts *svcGetPortStatus(int inFd, int *buf)
Parameters
The file descriptor associated with the open port device.
inFd
4 integer buffer used to return the port signal status information
buf
Return Values
Number of received bytes pending in its input queue.
buf[0]
Number of available (free) bytes in its output queue. This is different
buf[1]
than the function svcGetOutQ() where it returns the number of bytes
pending in the output queue.
Signal information as defined as follows:
buf[2]
(all bits for corresponding signals are set if hardware supports signal for
that port and the signal is detected to be asserted. Otherwise, bit is not
set.)
0x80
0x40
0x20
0x10
0x08
0x04
0x02
0x01
Reserved
buf[3]
G
UIDE
set if DTR detected
set if RTS detected
set if CTS detected
set if Ring Indicator present
set if Carrier Detect (CD) present
set if DSR detected
Reserved
Reserved

Advertisement

Table of Contents
loading

Table of Contents