Initializes a buffer that can be passed to TUPSetCircCfg.
void TUPInitCircCfg ( TUPCircCfg *cfg, CirIdx circId, U32 opc, U32 dpc)
Argument |
Description |
cfg |
Pointer to the configuration structure to fill. Refer to the Details section for more information. |
circId |
Circuit index from which to start. |
opc |
Originating point code of this node for this circuit. |
dpc |
Destination point code of the node at the destination end of these circuits. |
None.
The elements of the TUPCircCfg structure are initialized with the following:
typedef struct _TUPCircCfg
{
circuitId circId argument
/* First circuit index in group */
cic 0 /* First Circuit ID code in group */
altOrgPointCode opc argument
/* Originating Point Code */
dstPointCode dpc argument
/* Destination point code */
numCircs 1 /* Number of circuits in group */
groupId 0 /* Non-zero defines a pre-defined
/* group for group actions */
nsapId 0 /* NSAP from TUP config to use */
switchType TUP_SW_ITU
/* Switch type for these circuits */
t1.value 15 /* Time to wait for COT(10-15) */
t1.enable TRUE
t2.value 30 /* Time to wait for ACM (20-30) */
t2.enable FALSE
t3.value 15 /* Time to wait for CLF after UBM (4-15) */
t3.enable TRUE
t4.value 15 /* Time to wait for CLF after CFL (4-15) */
t4.enable TRUE
t5.value 60 /* Time to stop sending CFL (60) */
t5.enable TRUE
t6.value 15 /* Time to wait for RLG (4-15) */
t6.enable TRUE
t7.value 60 /* Time to stop sending CLF (60) */
t7.enable TRUE
t8.value 2 /* Time to wait for backward check tone
/* (£ 2) */
t8.enable TRUE
t9.value 5 /* Time to delay 1st time continuity
/* check (1-10) */
t9.enable TRUE
t10.value 180 /* Time to delay CCR (60-180) */
t10.enable TRUE
t11.value 60 /* Time to wait to alert after block
/* signal (60) */
t11.enable FALSE
t12.value 15 /* Time to wait for response to block
/* signal (4-15) */
t12.enable TRUE
t13.value 60 /* Time to wait to alert no response to
/* initial blocking signal (60) */
t13.enable TRUE
t14.value 60 /* Time to wait to repeat BLO(60) */
t14.enable TRUE
t15.value 15 /* Time to wait for response to
/* unblock (4-15) */
t15.enable TRUE
t16.value 60 /* Time to wait to alert no response to
/* initial unblocking signal (60) */
t16.enable TRUE
t17.value 60 /* Time to wait to repeat UBL(60) */
t17.enable TRUE
t18.value 15 /* Time to wait for reset circuit
/* response (4-15) */
t18.enable TRUE
t19.value 60 /* Time to wait to resend RSC(60) */
t19.enable TRUE
} TUPCircCfg;
For more information, refer to Circuits and groups configuration.