MCUXpresso_MIMXRT1021xxxxx/middleware/wifi_nxp/incl/wifi_ping.h
Yilin Sun 1cf36afbfa
Updated to SDK v2.14.0
Signed-off-by: Yilin Sun <imi415@imi.moe>
2023-08-31 23:30:31 +08:00

53 lines
1.3 KiB
C

/** @file wifi_ping.h
*
* @brief This file provides the support for network utility ping
*/
/*
* Copyright 2008-2020 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef _WIFI_PING_H_
#define _WIFI_PING_H_
#include <wmlog.h>
#define ping_e(...) wmlog_e("ping", ##__VA_ARGS__)
#define ping_w(...) wmlog_w("ping", ##__VA_ARGS__)
#define PING_ID 0xAFAFU
#define PING_INTERVAL 1000
#define PING_DEFAULT_TIMEOUT_SEC 2
#define PING_DEFAULT_COUNT 10
#define PING_DEFAULT_SIZE 56
#define PING_MAX_SIZE 65507U
#define PING_MAX_COUNT 65535U
/** Register Network Utility CLI commands.
*
* Register the Network Utility CLI commands. Currently, only ping command is
* supported.
*
* \note This function can only be called by the application after \ref
* wlan_init() called.
*
* \return WM_SUCCESS if the CLI commands are registered
* \return -WM_FAIL otherwise (for example if this function
* was called while the CLI commands were already registered)
*/
int ping_cli_init(void);
/** Unregister Network Utility CLI commands.
*
* Unregister the Network Utility CLI commands.
*
* \return WM_SUCCESS if the CLI commands are unregistered
* \return -WM_FAIL otherwise
*/
int ping_cli_deinit(void);
#endif /*_WIFI_PING_H_ */