TUPInitGenCfg

Builds a basic configuration buffer that can be passed to TUPSetGenCfg.

Prototype

void TUPInitGenCfg ( TUPGenParms *cfg)

Argument

Description

cfg

Pointer to the configuration structure to fill.

The TUPGenParms structure contains these elements and is filled as follows:

typedef struct _TUPGenParms
{
    maxSaps      1   /* Maximum number of user SAPs          */
    maxNetSaps   1   /* Maximum # interfaces to MTP3         */
    maxCircuits  96  /* Maximum # of circuits to manage      */
    maxCircGrp   32  /* Maximum # circuit groups to manage   */
    alarmLevel   1   /* Alarm level to filter at (1-4)       */
    maxOpcs      16  /*  Maximum # of OPC's                  */
    maxDpcs      16  /*  Maximum number of DPC's             */
    dfltGrpCfg       /* see TUPInitGrpCfg                    */
} TUPGenParms;


Return values

None.

Details

All unlisted elements in the TUPGenParms structure are set for the proper operation of the TUP stack and must not be changed.

Refer to TUPInitGrpCfg for the dfltGrpCfg element settings. Refer to Configuration for more information about general configuration.