Reference Guide
ZCOM C I/F Library Routines
ZCONFIG (3X)
Chapter 4 223
Response Data
data.termret.zaddr
This is the terminal ZLU which has been successfully created or modified. For
actions ZcDSC_CREATE_LTT_PTT and ZcDSC_CREATE_LTT_ON_PTT, it
is the newly created terminal ZLU with the correct checksum.
data.termret.error
This is the returned terminal configuration error:
0 - No error (successful)
< 0 - ZCOM error code
> 0 - zcntl() firmware status code
NOTES 1. For port configuration, it is possible to change only one byte of the
32-bit configuration word, by using an appropriate value in action. In
this case, the other bytes remain unaffected. Besides, actions 1-5
correspond to the functions supported by zport(3X), except that zport
(3X) does not allow remote port configuration.
2. The following is the zpconf_type data structure definition (from
<zcom/zcomsys.h>) used in port configuration. This structure allows
the cnfg data to be referenced by individual bit fields
(zpconf_type.bits.<field>), by individual configuration bytes
(zpconf_type.pconfig[<bytenum>]), or by its entire 32-bit value
(zpconf_type.pcval).
/*-- Port Configuration format --*/
typedef union {
struct {
unsigned int ecode : 2; /* Encoding modes */
unsigned int sync : 2; /* Sync mode select */
unsigned int mode : 2; /* Operating mode */
unsigned int parity : 2; /* Parity select */
unsigned int xclock : 2; /* Clock multiplier */
unsigned int sclock : 2; /* Clock source */
unsigned int baud : 4; /* Baud rate value */
unsigned int pmode : 2; /* Port mode select - original */
unsigned int pmode2 : 2; /* Port mode select - extended */
unsigned int baud2 : 4; /* Extended baud rate value */
unsigned int spare : 8; /* Reserved, must be 0 */
} bits;
struct {
unsigned int ecode : 2; /* Encoding modes */
unsigned int frmode : 4; /* Framing mode */
unsigned int set0_1 : 4; /* Reserved, must be 0 */
unsigned int sclk : 2; /* Clock source */