![]() |
WL865E4-P
36.07.001
|
Public APIs and structures of PING feature. More...
Go to the source code of this file.
Data Structures | |
struct | M2MB_PING_REQ_STATUS |
M2MB_PING_REQ_STATUS_T defines the data type of M2MB_PING_REQ_RESULT event. More... | |
struct | M2MB_PING_COMPLETE_STATUS |
M2MB_PING_COMPLETE_STATUS_T defines the data type of M2MB_PING_COMPLETE event. More... | |
#define | M2MB_PING_PACKET_SIZE_MAX_TX (1576) |
#define | M2MB_PING_PACKET_SIZE_MAX_RX (1556) |
#define | M2MB_NETWORK_PING_SUCCESS 0 |
#define | M2MB_NETWORK_PING_INVALID_IP_ADDRESS M2MB_NET_ERR_INVALID_IPADDR |
#define | M2MB_NETWORK_PING_REQUEST_TIMED_OUT 2 |
enum | M2MB_PING_CFGID { M2MB_PING_CFGID_ADDRESS, M2MB_PING_CFGID_DATA_SIZE, M2MB_PING_CFGID_COUNT, M2MB_PING_CFGID_STAT, M2MB_PING_CFGID_CB } |
M2MB_PING_CFGID_E defines configuration IDs for ping. More... | |
enum | M2MB_PING_EVENT { M2MB_PING_REQ_RESULT, M2MB_PING_COMPLETE } |
M2MB_PING_EVENT_E defines events passed in the ping callback. More... | |
typedef enum M2MB_PING_CFGID | M2MB_PING_CFGID_E |
M2MB_PING_CFGID_E defines configuration IDs for ping. More... | |
typedef enum M2MB_PING_EVENT | M2MB_PING_EVENT_E |
M2MB_PING_EVENT_E defines events passed in the ping callback. More... | |
typedef struct M2MB_PING_REQ_STATUS | M2MB_PING_REQ_STATUS_T |
M2MB_PING_REQ_STATUS_T defines the data type of M2MB_PING_REQ_RESULT event. More... | |
typedef struct M2MB_PING_COMPLETE_STATUS | M2MB_PING_COMPLETE_STATUS_T |
M2MB_PING_COMPLETE_STATUS_T defines the data type of M2MB_PING_COMPLETE event. More... | |
typedef INT32(* | M2MB_PING_CB_T) (M2MB_PING_EVENT_E ev, VOID *data) |
M2MB_PING_CB_T defines callback for ping request. More... | |
INT32 | m2mb_ping_start (VOID) |
m2mb_ping_start is called to initiate Ping. More... | |
INT32 | m2mb_ping_stop (VOID) |
m2mb_ping_stop is called to stop ping procedure. More... | |
INT32 | m2mb_ping_cfg_set (M2MB_PING_CFGID_E cfgID, UINT32 value) |
m2mb_ping_cfg_set is called to set the ping configuration. More... | |
INT32 | m2mb_ping_cfg_get (M2MB_PING_CFGID_E cfgID, VOID *value) |
m2mb_ping_cfg_get is called to set the ping configuration. More... | |
Public APIs and structures of PING feature.
we866e4/epl/inc/nwk/m2mb_ping.h
PING provides APIs to ping a particular device in the network.
The user can specify the number of times it wants to ping in the foreground or background. When done in foreground, calling thread is held till the ping operation is complete. In case of background ping, a new thread is created and ping operation is done in it. The user can use the background ping for a continuous ping operation and this can be stop by calling stop API.
Definition in file m2mb_ping.h.