Ecropen - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

ecrOpen

This function opens the port and initializes it according to the I4683 variable. If the
visa_sel is non zero, the port is configured for VISA 2 processing. If port_name
is specified, then it overrides the setting in the L4683 environment variable. If
port_name is not specified, then a null terminated string ("") should be passed and
the value in the L4683 environment variable will be used. The function returns the
handle to the port. or a negative value upon error and errno set.
Prototype
short hEcr = ecrOpen(char *port_name, short visa_sel);
Return Values
Negative return values are defined as follows:
-0
I4683 environment variable NOT found.
-1
Device driver not installed
-2
L4683 environment variable NOT found.
-3
Invalid port number in L4683.
-4
Invalid port name argument.
-5
Invalid L4683 environment variable length.
-6
Invalid I4683 slot specified or not initialized.
-7
Visa protocol NOT started.
-8
Initialization failed of Polling semaphore.
D
erno = -EINVAL
errno = -ENXIO
erno = -EINVAL
erno = -EINVAL
erno = -EINVAL
erno = -EINVAL
erno = -EBADSLT
erno = -EPROTO
erno = -EPERM
X
M
800 S
P
ERIES
ROGRAMMERS
D
EVICE
RIVERS
ecrOpen
101
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents