![](/images/backgrounds/292713/hp-hp-ux-11i-v2-i-o-cards-reference-guide-152766175x1.png)
ZCOM C I/F Library Routines
ZCNTL (3X)
For any i960
Data structure: ztrq2_type
Must set RTYP bit = 1. This usually means setting the ztrq2_type.tmreqt field to 0x80.
| 15 | 14 | 13 | 12 | 11 |
| 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 | RTYP | Ext. Req. Type |
|
|
|
|
| Terminal Type |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 | Port Number |
|
|
|
|
|
|
| Subchannel Number |
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
4 | Group Poll Code |
|
|
|
|
|
| Device Poll Code |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
6 | Group Select Code |
|
|
|
|
|
| Device Poll Code |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
8 | Terminal Option Word |
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
| ||||||
1 | Special Terminal Configuration |
|
|
|
|
|
|
|
|
|
| ||||||
0 | (Variable Length, max. 6 bytes) |
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The terminal type relates a protocol to the specific terminal (the device name in a TTGEN configuration file maps to a terminal type for each terminal). The terminal port must be the same as the original port. To move a terminal from one port to another, use zconfig(3X). The special terminal configuration is protocol dependent, and corresponds to the field spec_cfg of the physical terminal table (see zptt_type in /opt/acc/include/zcom/zcomsys.h). Currently, a maximum of
4.The tag parameters
RETURN VALUE Routine zcntl returns 0 if successful. Otherwise, a
If mode 8 is used and zcntl returns with zero, rstat contains the return status: 0 means successful, a
Chapter 4 | 175 |