EasyManua.ls Logo

VeriFone MX800 Series - Svccom3 Setmode()

VeriFone MX800 Series
344 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SERVICE FUNCTIONS
svcCom3SetMode()
M
X
800 SERIES PROGRAMMERS GUIDE 175
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
Return Values
This function returns 0 upon success and a negative value if unsuccessful.
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 Port is set to not valid mode
MODE_R232_INT RS232 mode
MODE_R485_INT RS485 mode
MODE_SIO_INT SIO Tailgate mode

Table of Contents

Other manuals for VeriFone MX800 Series

Related product manuals