Retrieves the current HMI status and statistics.
DWORD hmiStatusReq ( CTAHD ctahd, HmStatsData *pHmStats, U8 reset)
|
Argument |
Description |
|
ctahd |
Natural Access handle from a previous successful call to ctaOpenServices. |
|
pHmStats |
Pointer to the statistics structure that is local to application memory: typedef struct hmLnkStats |
|
reset |
If set to zero, do not reset counters. If non-zero, reset all counters. |
The netState field in the HmStatsData structure applies to SIGTRAN configurations only. Valid values for netState are:
HMNS_CONNECTED: Board network connectivity state is UP.
HMNS_ISOLATED: Board network connectivity state is DOWN.
HMNS_UNKNOWN: Board has not reported a network connectivity state.
|
Return value |
Description |
|
SUCCESS |
|
|
HMI_ERR_BADCMD |
Request failed. An event handle was passed to the Health Management service command. |
|
HMI_ERR_CLOSED |
Request failed. Connection closed by HMI. |
|
HMI_ERR_INTERROR |
Request failed. Unknown I/O error occurred. |
|
HMI_ERR_INVHANDLE |
Handle is not valid. |
|
HMI_ERR_NOMEM |
No memory available. |
|
HMI_ERR_REFUSED |
Request failed because the board is in a halted state. |
|
HMI_ERR_TIMEOUT |
Request failed. No response from HMI. |