Retrieves the link statistics for one link.
MON_STATUS MonGetLinkStats ( U8 board, MonLinkStats *pstats, S16 linkNo, Bool bReset )
|
Argument |
Description |
|
board |
TX board number on which the desired monitor task resides. |
|
pstats |
Pointer to MonLinkStats structure: typedef struct _MonLinkStats /* MTP level 2 link statistics */ |
|
linkNo |
Retrieve the statistics of this specific link number. |
|
bReset |
Flag that indicates whether or not to set statistics to zero after retrieval. |
|
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. |