MonGetLinkCfg

Retrieves the configuration of one link.

Prototype

MON_STATUS MonGetLinkCfg ( U8 board, MonLinkCfg *pLinkCfg, S16 linkNo )

Argument

Description

board

TX board number on which the desired monitor task resides.

pLinkCfg

Pointer to a MonLinkCfg structure where the data link configuration values are filled:

typedef struct 
{
    U16     linkNum;               /* Link Number */
    U16     linkType;              /* ANSI/ITU */
#define MON_LINK_ANSI      0
#define MON_LINK_ITU       1
#define MON_LINK_ANSI_EXT  2
#define MON_LINK_ITU_EXT   3
    U16     portNum;               /* Port number (from tdmcfg or txconfig) */
    U16     portType;              /* Port type (tdm v. serial) */
#define MON_PTYPE_SERIAL   0
#define MON_PTYPE_TDM      4
    U16     dataEnc;               /* Data encoding (NRZ/NRZI) */
#define DAT_NRZ            0       /* data format is NRZ */
#define DAT_NRZI           1       /* data format is NRZI */
    U16     maxFrameLen;           /* Maximum SS7 frame length */
    U16     numBuffers;            /* Number of buffers in limited pool */
    U16     sizeBuffers;           /* Size of each buffer in limited pool */
} MonLinkCfg;

linkNo

Retrieves the configuration information of this specific link number.


Return values

Return value

Description

MON_BOARD

Board number out of range.

MON_DRIVER

CPI driver returned an error.

MON_HANDLE

Board not previously initialized.

MON_LINKTYPE

Invalid link or switch type.

MON_PARAM

Invalid parameter.

MON_RESPONSE

Wrong response from board.

MON_SUCCESS

 

MON_TIMEOUT

No response from board.


See also

MonInitLinkCfg