Documentation
Includes
stdint.h
#include <stdint.h>
stdbool.h
#include <stdbool.h>
tuya_cloud_types.h
#include "tuya_cloud_types.h"
Macros
Marco __WIFI_NETCFG_FRAME_SNIFFER_H__
#define __WIFI_NETCFG_FRAME_SNIFFER_H__
Functions
Func WifiNetcfgFrameSnifferCallbackSet
int WifiNetcfgFrameSnifferCallbackSet();
Func WifiNetcfgFrameSnifferEnable
int WifiNetcfgFrameSnifferEnable();
Func destroyWifiNetcfgFrameSniffer
void destroyWifiNetcfgFrameSniffer();
Func WifiNetcfgFrameSnifferSessionInit
int WifiNetcfgFrameSnifferSessionInit();
Func WifiNetcfgFrameSnifferSessionUnInit
int WifiNetcfgFrameSnifferSessionUnInit();
Vars
Variable ptrWifiNetcfgFrameSniffer_t
ptrWifiNetcfgFrameSniffer_t getWifiNetcfgFrameSniffer();
Consts
Types
Typedefs
Typedef fnSnifferUserCallback_t
typedef int (*fnSnifferUserCallback_t)(void *ptrArgs,uint8_t *buf, uint16_t len, const SCHAR_T rssi);
Typedef *ptrSnifferUserParameters_t;
typedef struct SnifferUserParameters_s{
fnSnifferUserCallback_t cb;
void* ptrArgs;
}SnifferUserParameters_t, *ptrSnifferUserParameters_t;
Typedef fnSnifferUserRegister
typedef int (*fnSnifferUserRegister)(int netcfg_type, ptrSnifferUserParameters_t pParam);
Typedef fnSnifferUserUnregister
typedef int (*fnSnifferUserUnregister)(int netcfg_type);
Typedef fnSnifferUserStart
typedef int (*fnSnifferUserStart)(int netcfg_type);
Typedef fnSnifferUserStop
typedef int (*fnSnifferUserStop)(bool isInternalCall);
Typedef fnSnifferUserStopAllOtherNetcfg
typedef int (*fnSnifferUserStopAllOtherNetcfg)(int netcfg_type, bool isInternalCall);
Typedef fnSnifferUserStartAllOtherNetcfg
typedef int (*fnSnifferUserStartAllOtherNetcfg)(int netcfg_type, bool isInternalCall);
Typedef *ptrWifiNetcfgFrameSniffer_t;
typedef struct WifiNetcfgFrameSniffer_s{
bool isSnifferStart;
fnSnifferUserRegister registerSnifferUserFn;
fnSnifferUserStart startSnifferUserFn;
fnSnifferUserStop stopSnifferUserFn;
fnSnifferUserUnregister unregisterSnifferUserFn;
fnSnifferUserStartAllOtherNetcfg startAllOtherUserFn;
fnSnifferUserStopAllOtherNetcfg stopAllOtherUserFn;
}WifiNetcfgFrameSniffer_t, *ptrWifiNetcfgFrameSniffer_t;