WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
wifi_event.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2021. All rights reserved.
3 * Description: wifi_event.h 的头文件
4 */
5
6
7#ifndef SERVICE_WIFI_EVENT_C_H
8#define SERVICE_WIFI_EVENT_C_H
9
10#include "wifi_linked_info.h"
11#include "station_info.h"
12#include "wifi_p2p_config.h"
13
14#ifdef __cplusplus
15#if __cplusplus
16extern "C" {
17#endif
18#endif
19
33typedef struct {
36 void (*wifi_event_connection_changed)(int32_t state, const wifi_linked_info_stru *info, int32_t reason_code);
39 void (*wifi_event_scan_state_changed)(int32_t state, int32_t size);
42 void (*wifi_event_softap_state_changed)(int32_t state);
45 void (*wifi_event_softap_sta_join)(const wifi_sta_info_stru *info);
48 void (*wifi_event_softap_sta_leave)(const wifi_sta_info_stru *info);
51 void (*wifi_event_p2p_receive_connect)(const uint8_t *bssid, int8_t wps_method);
54 void (*wifi_event_p2p_go_neg_result)(int32_t state, int32_t mode);
57 void (*wifi_event_p2p_go_start)(int32_t state);
60 void (*wifi_event_p2p_invitation_result)(int32_t state);
63 void (*wifi_event_p2p_gc_connection_changed)(int32_t state, const p2p_status_info_stru *status);
66 void (*wifi_event_p2p_go_connection_changed)(int32_t state, const p2p_client_info_stru *client);
69 void (*wifi_event_wps_result)(int32_t state, wifi_if_type_enum wifi_if_type);
71
85
90#ifdef __cplusplus
91#if __cplusplus
92}
93#endif
94#endif
95
96#endif // SERVICE_WIFI_EVENT_C_H
wifi_if_type_enum
Type of WiFi interface。
Definition wifi_device_config.h:212
wifi_event_state_enum
WiFi事件状态。
Definition wifi_event.h:79
@ WIFI_STATE_AVALIABLE
Definition wifi_event.h:82
@ WIFI_STATE_NOT_AVALIABLE
Definition wifi_event.h:80
p2p已连接的gc信息。
Definition wifi_p2p_config.h:202
p2p设置信息。
Definition wifi_p2p_config.h:175
指向用于Sta和Hotspot连接、断开连接或扫描的WiFi事件回调的指针。
Definition wifi_event.h:33
有关连接到此STA的AP信息。
Definition wifi_linked_info.h:47
返回与AP相连的STA信息。
Definition station_info.h:30