ACC Programmer's Reference Guide
Chapter 4 255
ZCOM C I/F Library Routines
zport (3X)
Threads
Considerations
This routine may be called from multi-threaded application using the
POSIX (1003.1c) kernel threads API package. It has the following
characteristics when called by multi-threaded application:
cancellation point Thread cancellation can occur when a
thread calls this rout ine.
async-cancel unsafe The calling thread’s cancelability
type must be
PTHREAD_CANCEL_DEFERRED if
cancellation is enabled.
async-signal unsafe It cannot be called from a signal
handler
fork unsafe It cannot be called by a child process
after fork(2) but before exec(2).
PARAMETERS iftno ACC MUX interface number.
portno Port number in the ACC interface card:
rcode Request code:
1 - Use configuration in interface table
2-Usedataincnfg
action Configuration type:
0..7 For Z7200A, Z7340A and Z7400A ACC interface cards
0..3 For the Z7300A ACC interface card
0..1 For the Z7350A ACC interface card
ZCOM_ZMUXPORT_ALL (0) - Set all modes (all fields)
ZCOM_ZMUXPORT_CONF (1) - Set Configuration mode only (Ecode,
Mode, Parity)
ZCOM_ZMUXPORT_BAUD (2) - Set Baud Rate mode only (X.Clk,
S.Clk, Baud Rate)
ZCOM_ZMUXPORT_PORT (3) - Set Port mode only (Pmode, Pmode2)
ZCOM_ZMUXPORT_BRK (4) - Port Break request










