Svccom3Setmode() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

svcCom3SetMode()

The svcCom3SetMode() function allows the application to manually set the
mode for the COM3 port according to what kind of port COM3 should function as.
If ecrOpen() is used, this is done automatically according to the ECR
environment variables. If open() is used, then this call should be used to set the
correct desired mode for the port. To change modes, it is required to first close the
channel with the MODE_CLOSE_CHANNEL setting and then set the mode to the
new desired mode.
Prototype
short svcCom3SetMode(int fd, char ioctlMode)
Parameters
fd
File descriptor returned when opening a serial port with either open()
or ecrOpen().
ioctlMode
Value indicating the mode to set the port to as defined as follows:
MODE_CLOSE_CHANNEL
MODE_R232_INT
MODE_R485_INT
MODE_SIO_INT
Return Values
This function returns 0 upon success and a negative value if unsuccessful.
Port is set to not valid mode
RS232 mode
RS485 mode
SIO Tailgate mode
X
M
800 S
P
ERIES
ROGRAMMERS
S
F
ERVICE
UNCTIONS
svcCom3SetMode()
175
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents