Get_Port_Status() - VeriFone e355 User And Best Practices Manual

Hide thumbs Also See for e355:
Table of Contents

Advertisement

A
RCHITECTURE

Get_port_status()

Get_port_status()
Parameters
Return Values
22
355/
265 U
E
E
SER AND
handle
buffer
Returns 0 if no output is pending, 1 if output is pending, or -1 if an error occurred
and errno is set to an error code.
For a communication port, the four status bytes copied into the given buffer are as
follows:
Byte 1: The number of input messages pending.
Byte 2: Event Cause Bits described below.
Byte 3: The number of output messages pending.
Byte 4: The status byte described below.
The event cause bits are set when an event is sent to the application. The
application can read the bits to determine the cause of the event. The event cause
bits are cleared when they are read. The definitions are as follows:
Table 8
Event Cause Bits
Bit
Event
Bit 0
Connect Event
Bit 1
Disconnect Event
Bit 2
RX Ready
B
P
G
EST
RACTICES
UIDE
The handle returned for the device by the open() call.
The 4-byte buffer in which to copy the status information.
Definition
Set when a communication port is opened.
Set when a communication port is closed or Bluetooth
connection is lost.
Set when new received data is ready to be read.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

E265

Table of Contents