(Page 17 of 30 in this chapter)


SccpGetUSapStatus

Description

Retrieves the User SAP status for a specified User SAP ID.

Prototype

SCCP_STATUS SccpGetUSapStatus (U8 board,

SccpUSapStatus *pStatus,

U16 sapId )

board The TX Series board number to which this request is directed.

pStatus The address of the caller's SCCP User SAP status buffer where the status is returned.

sapId The User SAP ID being retrieved.

Return Values

Details

The SccpUSapStatus structure is shown below.

typedef struct
{
  U8         month;   /* month                            */
  U8         day;     /* day                              */
  U8         year;    /* year - since 1900                */
  U8         hour;    /* hour - 24 hour clock             */
  U8         min;     /* minute                           */
  U8         sec;     /* second                           */
  U8         tenths;  /* tenths of second                 */
  U8         fill;    /* alignment                        */
} DateTime;

typedef struct 
{
  DateTime   dt;      /* Date and Time                    */
  S16        status;  /* status                           */
} SccpUSapStatus;

Status values are bit-set:

#define SCCP_STA_BND       0x01      /* bind              */
#define SCCP_STA_FLCOFF    0x02      /* flow control off  */
#define SCCP_STA_GUARD     0x04      /* guarding          */
#define SCCP_STA_BRT       0x08      /* Backup Routed     */
#define SCCP_STA_GRNT      0x10      /* waiting for grant */
#define SCCP_STA_IGNR      0x20      /* ignore            */
#define SCCP_STA_PROH      0x40      /* prohibited        */
#define SCCP_STA_REST      0x80      /* restarting        */


(Page 17 of 30 in this chapter)


tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights reserved.