WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
soc_any_api.h 文件参考

浏览源代码.

结构体

struct  ext_wifi_any_peer_info
 
struct  ext_wifi_any_device
 
struct  ext_wifi_any_callback
 

宏定义

#define WIFI_ANY_MAX_USER_DATA   250
 
#define WIFI_ANY_KEY_LEN   16
 
#define WIFI_ANY_MAC_LEN   6
 
#define WIFI_ANY_MAX_SSID_LEN   (32 + 1)
 

类型定义

typedef void(* hi_wifi_any_scan_result_cb) (ext_wifi_any_device *devices[], unsigned char num)
 Callback function invoked when ANY scan is finished.CNcomment:ANY扫描完成回调函数CNend
 
typedef void(* uapi_wifi_any_recv_cb) (unsigned char *mac, unsigned char *data, unsigned short len, unsigned char seqnum)
 Callback function for ANY RX.CNcomment:ANY驱动接收回调函数CNend
 
typedef void(* uapi_wifi_any_send_complete_cb) (unsigned char *mac, unsigned char status, unsigned char seqnum)
 Callback function for ANY TX.CNcomment:ANY驱动发送回调函数CNend
 

函数

int uapi_wifi_any_init (const char *ifname)
 Use this funtion to initialize ANY feature.CNcomment:ANY功能初始化函数CNend
 
int uapi_wifi_any_deinit (void)
 Use this funtion to de-initialize ANY feature.CNcomment:ANY功能去初始化函数CNend
 
void uapi_wifi_any_set_callback (uapi_wifi_any_send_complete_cb send_cb, uapi_wifi_any_recv_cb recv_cb)
 Register callback functions for ANY TX and RX.CNcomment:注册ANY驱动发送回调函数和接收回调函数CNend
 
int uapi_wifi_any_send (const unsigned char *mac, unsigned char mac_len, unsigned char *data, unsigned short data_len, unsigned char seq)
 Send ANY frame to specific mac address.CNcomment:向指定MAC地址的设备发送ANY数据。CNend
 
int uapi_wifi_any_add_peer (const ext_wifi_any_peer_info *peer_info)
 Add information of ANY peer device.CNcomment:添加ANY对端设备信息。CNend
 
int uapi_wifi_any_del_peer (const unsigned char *mac, unsigned char len)
 Delete specific peer device.CNcomment:删除指定MAC地址的对端设备信息。CNend
 
int uapi_wifi_any_fetch_peer (unsigned char index, ext_wifi_any_peer_info *peer)
 Get ANY peer device's information by index.CNcomment:获取指定索引的对端设备信息。CNend
 
int uapi_wifi_any_discover_peer (hi_wifi_any_scan_result_cb p_fn_cb)
 Start ANY scan and register callback to handle scan results.
CNcomment:发起ANY扫描并注册回调函数处理扫描完成之后的结果。CNend
 

详细描述

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2019-2020. All rights reserved. Description: header file for ANY api.CNcomment:描述:ANY api接口头文件。CNend
Create: 2019-01-03