ZCOM C I/F Library Routines
ZCONFIG (3X)
data.setportsc.rcode
This field is used for actions ZcDSC_ALL_PARMS, ZcDSC_CFG_MODE, ZcDSC_BAUD_RATE, ZcDSC_PORT_MODE, ZcDSC_SET_TIMESLOTS and ZcDSC_SET_SUBC_SPECS only. Values are:
1 - Use configuration in interface table
2 - Use data in field data.setportsc.ptcfg
data.setportsc.ptcfg
Pointer to the port and subchannel configuration data of which the data structure zptcfg_t is defined in /opt/acc/include/zcom/zcomsys.h.
Port configuration data (32 bits) which is used for actions
ZcDSC_ALL_PARMS, ZcDSC_CFG_MODE, ZcDSC_BAUD_RATE and ZcDSC_PORT_MODE only. See the Port Configuration section for the format of the configuration data (data.setport.cnfg field).
Timeslot assignment array: used for actions ZcDSC_ALL_PARMS or
ZcDSC_SET_TIMESLOTS only. Up to 32 timeslot assignments are allowed.
Each element of the array is indexed by the timeslot number. That is, timeslot
0is in tmsl[0], timeslot 1 is in tmsl[1], etc. For action ZcDSC_ALL_PARMS, all timeslots are configured. For action ZcDSC_SET_TIMESLOTS only timeslot entries with the UPD bit set are configured. The timeslot definition for each element in the array is shown below:
15 | 14 | 13 | 12 | 11 | 10 | 9 |
| 8 | 7 | 6 | 5 |
| 4 | 3 | 2 | 1 | 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
0 | UPD | TTI | Transmit subch number |
| Transmit fill mask |
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set to 0 | RTI | Receive subch number |
| Receive fill mask |
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UPD: The Update bit is used with the ZcDSC_SET_TIMESLOTS action to identify timeslots which are to be configured. Timeslots with the UPD bit not set, are unaffected by the ZcDSC_SET_TIMESLOTS action.
Detailed descriptions of the TTI, RTI, Transmit and Receive subchannel numbers, and the Transmit or Receive fill masks, can be found in the Siemens MUNICH32 data sheet in Section 4.2.4 Time Slot Assignment.
A TTI (Transmit Timeslot Inhibit) bit value of ‘1’ causes the transmit timeslot to be placed into tristate. The data is not destroyed but sent in the next
214 | Chapter 4 |