TUPInitNSapCfg

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

Prototype

void TUPInitNSapCfg ( TUPNSapCfg *cfg, S16 spId, S16 mtpSpId, U32 opc)

Argument

Description

cfg

Pointer to the configuration structure to fill:

typedef struct _TUPNSapCfg
{
    spId          spId argument
    switchType    TUP_SW_ITU       /* TUP_SW_ITU or TUP_SW_CHN */
    ssf           SSF_NAT          /* SIO high nibble; one of:
                                       SSF_INTL,
                                       SSF_SPARE,
                                       SSF_NAT,
                                       SSF_RES                 */
    origPointCode opc              /* local point code         */
    mtpSpId       mtpSpId argument /* MTP Sap to use, should
                                    * match MTP3 configuration */
    traceInd      0                /* trace on when nonzero    */
} TUPNSapCfg;

 

spId

Network service access point to configure.

mtpSpId

MTP NSAP to use that matches a network service access point in the MTP 3 configuration.

opc

Point code of this node at this service access point.


Return values

None.

Details

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

Refer to USAP and NSAP configuration for more information.