WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
soc_wifi_sdp_api.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2019-2019. All rights reserved.
3 * Description: Header file for wifi aware api
4 * Create: 2019-08-04
5 */
6
7#ifndef __SOC_WIFI_SDP_API_H__
8#define __SOC_WIFI_SDP_API_H__
9
10#include "td_type.h"
11
12#ifdef __cplusplus
13#if __cplusplus
14extern "C" {
15#endif
16#endif
17
23
24typedef int (*hi_wifi_sdp_recv_cb)(unsigned char* mac, unsigned char peer_handle, unsigned char local_handle,
25 unsigned char* msg, unsigned char len);
26int uapi_wifi_sdp_init(const char* ifname);
28int uapi_wifi_sdp_start_service(const char* service_name, unsigned char local_handle,
29 hi_wifi_sdp_recv_cb recv_cb, unsigned char role);
30int uapi_wifi_sdp_stop_service(unsigned char local_handle, unsigned char role);
31int uapi_wifi_sdp_send(unsigned char* mac_addr, unsigned char peer_handle, unsigned char local_handle,
32 unsigned char* msg, int len);
33int uapi_wifi_sdp_adjust_tx_power(const char *ifname, signed char power);
34int uapi_wifi_sdp_restore_tx_power(const char *ifname);
35int uapi_wifi_sdp_adjust_rx_param(const char *ifname, signed char rssi);
36int uapi_wifi_sdp_restore_rx_param(const char *ifname);
37int uapi_wifi_sdp_beacon_switch(const char *ifname, unsigned char enable);
39#ifdef __cplusplus
40#if __cplusplus
41 }
42#endif
43#endif
44
45#endif /* end __HI_WIFI_VLWIP_API_H__ */
46
int uapi_wifi_sdp_set_retry_times(td_u32 retries)
int(* hi_wifi_sdp_recv_cb)(unsigned char *mac, unsigned char peer_handle, unsigned char local_handle, unsigned char *msg, unsigned char len)
Definition soc_wifi_sdp_api.h:24
int uapi_wifi_sdp_beacon_switch(const char *ifname, unsigned char enable)
int uapi_wifi_sdp_adjust_tx_power(const char *ifname, signed char power)
int uapi_wifi_sdp_restore_tx_power(const char *ifname)
int uapi_wifi_sdp_init(const char *ifname)
int uapi_wifi_sdp_stop_service(unsigned char local_handle, unsigned char role)
int uapi_wifi_sdp_restore_rx_param(const char *ifname)
int uapi_wifi_sdp_start_service(const char *service_name, unsigned char local_handle, hi_wifi_sdp_recv_cb recv_cb, unsigned char role)
int uapi_wifi_sdp_adjust_rx_param(const char *ifname, signed char rssi)
int uapi_wifi_sdp_deinit(void)
wifi_sdp_type_enum
Definition soc_wifi_sdp_api.h:18
@ WIFI_SDP_PUBLISH
Definition soc_wifi_sdp_api.h:19
@ WIFI_SDP_SUBSCRIBE
Definition soc_wifi_sdp_api.h:20
@ WIFI_SDP_BUTT
Definition soc_wifi_sdp_api.h:21
int uapi_wifi_sdp_send(unsigned char *mac_addr, unsigned char peer_handle, unsigned char local_handle, unsigned char *msg, int len)
unsigned int td_u32
Definition td_type.h:38