A
RCHITECTURE
open()
E
355/
E
265 U
SER
AND
B
EST
P
RACTICES
G
UIDE
19
open()
This claims ownership of the device. Calling this function also flushes all data and
clears all error conditions in the communication channel. The device names that
can be opened for ports are:
"/DEV/COM1A"
"/DEV/COM1B"
"/DEV/COM1C"
"/DEV/COM1D"
"/DEV/COM1E"
Use
get_port_status()
to get the status of the smart device connection. A
smart device cannot open a communication port until the e355 application has
opened the corresponding device.
Prototype
Int open(const char *devname, int attributes);
Parameters
Return Values
Positive integer device handle if successful, or -1 with
errno
set to an error code
if error occurs.
close()
This releases ownership of the device. Calling this function also flushes all data
and clears all error conditions in the communication port.
Prototype
int close(int device_handle) parameters:
Parameters
Return Values
Returns 0 for success, -1 with errno set to
EBADF
if device not open.
devname
Pointer to the null terminated device name string.
attributes
Ignored in this driver.
device_handle
The handle returned for the device by the
open()
call.
Содержание e265
Страница 1: ...Verifone Part Number DOC087 080 EN A Revision A e355 e265 User and Best Practices Guide...
Страница 6: ...CONTENTS 6 E355 E265 USER AND BEST PRACTICES GUIDE...
Страница 10: ...PREFACE Conventions and Acronyms 10 E355 E265 USER AND BEST PRACTICES GUIDE...
Страница 64: ...SYSTEM MODE VTM Software Versions 64 E355 E265 USER AND BEST PRACTICES GUIDE...
Страница 70: ...LOGGING OPTIONS logdump 70 E355 E265 USER AND BEST PRACTICES GUIDE...
Страница 74: ...SOFTWARE PACKAGE Downloading 74 E355 E265 USER AND BEST PRACTICES GUIDE...
Страница 76: ...CONTROL AND BARCODE APPLICATIONS Pipe Interface 76 E355 E265 USER AND BEST PRACTICES GUIDE...