NMS GR303 and V5 Library Developer's Reference Manual (9000-62083-11): Function Reference
(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:
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));
}
(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.