Table of Contents Index NMS Glossary Previous Page Next Page (Page 28 of 32 in this chapter) Version


NMS_V5SendSA7Bit

Description

Sets the value of the SA7 E1 framing bit to 0 or 1 for an E1 link on a provisioned interface.

Prototype

NMS_V5_RESULT_T NMS_V5SendSA7Bit
(NMS_V5_INTERFACE_ID_T interfaceId,
NMS_V5_E1_LOCATION_T e1_loc,
NMS_V5_SA7_VALUE_T sa7_value)

interfaceId Interface ID of a provisioned interface.

e1_loc E1 link location specified in the following structure:

        typedef union _NMS_V5_E1_LOCATION_T
        {
       struct {
       DWORD  boardNb;
       DWORD  trunkNb;
       } CG;        
}NMS_V5_E1_LOCATION_T
sa7_value SA7 bit value to set (Boolean). Accepted values are 0 or 1.

Return Values

Events

None.

Details

This function is asynchronous and returns when the SA7 bit is set for the specified E1 link. Applications can only call NMS_V5SendSA7Bit for E1 links that have been provisioned on the active interface variant.

The NMS_V5_E1_LOCATION_T structure includes the following values:
Parameter

Description

boardNb

Logical board number where an E1 link is located.

trunkNb

Logical trunk number associated with the E1 link.

See Also

NMS_V5ProvisionInterface

Example

void  SendSA7Bit( void )
{
    NMS_V5_RESULT_T      NmsResult;
    DWORD      InterfaceId;
    NMS_V5_E1_LOCATION_T       E1Location;
    BOOL      SA7Value;

    printf("NMS_V5SendSA7Bit:\n");

    /* Get parameters */
    promptdw_nodft("Enter InterfaceId", &InterfaceId);

    printf("Enter E1 location:\n");
    GetE1LocationNMS( &E1Location );
    promptdw_nodft("Enter SA7 Value (0 or 1))", &SA7Value);

    NmsResult = NMS_V5SendSA7Bit( InterfaceId, E1Location, SA7Value );
    printf ("NMS_V5SendSA7Bit: Result=%s\n",PRINT_RESULT(NmsResult));

}



Table of Contents Index NMS Glossary Previous Page Next Page (Page 28 of 32 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2001, NMS Communications Corporation. All rights reserved.