Builds a basic configuration buffer to be passed to MonSetGenCfg.
MON_STATUS MonInitGenCfg ( U8 board, MonGenCfg *pGenCfg )
Argument |
Description |
board |
TX board number on which the desired monitor task resides. |
pGenCfg |
Pointer to the MonGenCfg structure to be initialized. For more information, refer to Details. |
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. |
This function initializes a MonGenCfg structure to all of its default values:
typedef struct _MonGenCfg
{
U8 recvLssu; /* Send up LSSUs? */
U8 recvFisu; /* Send up FISUs? */
U8 mtp2Hdr; /* Include the mtp2Hdr? */
U8 spare;
U16 numBuffers; /* Number of buffers in limited pool */
U16 sizeBuffers; /* Size of each buffer in limited pool */
TimerCfg tInd; /* Maximum time to wait before sending up a data indication */
} MonGenCfg;
The following table lists the field defaults and possible values:
Field |
Default |
Range |
Description |
recvLssu |
FALSE |
TRUE|FALSE |
If TRUE, the LSSUs are passed to the application. If FALSE, they are dropped. |
recvFisu |
FALSE |
TRUE|FALSE |
If TRUE, the FSUs are passed to the application. If FALSE, they are dropped. |
mtp2Hdr |
FALSE |
TRUE|FALSE |
If TRUE, the MTP2 header on the front of the message is left intact. If FALSE, the monitor task strips it off. |
numBuffers |
500 |
50 - 1000 |
Number of buffers used on the board for sending up data indications. |
sizeBuffers |
1000 |
300 - 1900 |
Size of the buffers used for sending up data indications. |
tInd |
5 |
0
= send immediately |
The maximum amount of time (in seconds) to wait before sending an SS7 message. |