SERVICE FUNCTIONS
svcCom3SetDeviceAddr()
M
X
800 SERIES PROGRAMMERS GUIDE 181
svcCom3SetDeviceAddr()
The svcCom3SetDeviceAddr() function allows the application to set the ECR
device address that the terminal is going to respond to. This is valid only in COM3
ECR tailgate mode: MODE_SIO_INT. The ECR device address must be set before
the M
x
800 series terminal will respond to a poll from the ECR. If the terminal is not
in MODE_SIO_INT, the device address will still be set successfully, but will be
ignored.
Prototype
short svcCom3SetDeviceAddr(int fd, char da)
Parameters
Return Values
This function returns 0 upon success and a negative value if unsuccessful in
setting address.
fd File descriptor returned when opening a serial port with ecrOpen().
da A 1 byte value to set the ECR device address to. The legal values are
defined as follows:
SIO_DEVADDR_64
SIO_DEVADDR_65
SIO_DEVADDR_65
SIO_DEVADDR_69