11#define CSK_WIFI_SSID_LEN 32
12#define CSK_WIFI_BSSID_LEN 17
13#define CSK_WIFI_PWD_LEN 64
15#define CSK_WIFI_STATUS_STA_CONNECTED 0
16#define CSK_WIFI_STATUS_STA_DISCONNECTED 2
17#define CSK_WIFI_STATUS_STA_UNKNOWN 3
203#ifdef CONFIG_CSK_WIFI_STATION
252int csk_wifi_sta_get_status(
void);
256#ifdef CONFIG_CSK_WIFI_SOFTAP
ZTEST_BMEM int timeout
Definition: main.c:31
int csk_wifi_remove_callback(csk_wifi_event_cb_t *wifi_event_cb)
Remove an wifi event callback.
Definition: csk_wifi_api_819s.c:55
struct csk_wifi_event_cb csk_wifi_event_cb_t
CSK WIFI callback structure.
int csk_wifi_scan_ap(csk_wifi_scan_info_t **ap_info, csk_wifi_result_t *result, k_timeout_t timeout)
Scan the neighboring AP device.
Definition: csk_wifi_api.c:53
int csk_wifi_deinit(void)
CSK WiFi driver deinitialize.
Definition: csk_wifi_api.c:48
int csk_wifi_add_callback(csk_wifi_event_cb_t *wifi_event_cb)
Add an wifi event callback.
Definition: csk_wifi_api.c:21
#define CSK_WIFI_BSSID_LEN
Definition: csk_wifi.h:12
#define CSK_WIFI_SSID_LEN
Definition: csk_wifi.h:11
void(* wifi_event_cb_t)(csk_wifi_event_t event, void *event_data, uint32_t event_data_len, void *arg)
Definition: csk_wifi.h:109
csk_wifi_event_t
CSK WiFi events structure.
Definition: csk_wifi.h:95
@ CSK_WIFI_EVT_AP_STOPPED
Definition: csk_wifi.h:99
@ CSK_WIFI_EVT_STA_DISCONNECTED
Definition: csk_wifi.h:97
@ CSK_WIFI_EVT_AP_STACONNECTED
Definition: csk_wifi.h:100
@ CSK_WIFI_EVT_AP_STARTED
Definition: csk_wifi.h:98
@ CSK_WIFI_EVT_STA_CONNECTED
Definition: csk_wifi.h:96
@ CSK_WIFI_EVT_AP_STADISCONNECTED
Definition: csk_wifi.h:101
@ CSK_WIFI_EVT_SCAN_DONE
Definition: csk_wifi.h:102
@ CSK_WIFI_EVT_STA_CONNECTING
Definition: csk_wifi.h:103
csk_wifi_bandwidth_t
CSK WiFi bandwidth mode.
Definition: csk_wifi.h:39
@ CSK_WIFI_BW_HT20
Definition: csk_wifi.h:40
@ CSK_WIFI_BW_HT40
Definition: csk_wifi.h:41
#define CSK_WIFI_PWD_LEN
Definition: csk_wifi.h:13
csk_wifi_encryption_mode_t
CSK WiFi encryption mode.
Definition: csk_wifi.h:24
@ CSK_WIFI_AUTH_WPA2_PSK
Definition: csk_wifi.h:28
@ CSK_WIFI_AUTH_WEP
Definition: csk_wifi.h:26
@ CSK_WIFI_AUTH_WPA_PSK
Definition: csk_wifi.h:27
@ CSK_WIFI_AUTH_WPA2_ENTERPRISE
Definition: csk_wifi.h:30
@ CSK_WIFI_AUTH_OPEN
Definition: csk_wifi.h:25
@ CSK_WIFI_AUTH_WPA_WPA2_PSK
Definition: csk_wifi.h:29
@ CSK_WIFI_AUTH_WPA3_PSK
Definition: csk_wifi.h:31
@ CSK_WIFI_AUTH_MAX
Definition: csk_wifi.h:33
@ CSK_WIFI_AUTH_WPA2_WPA3_PSK
Definition: csk_wifi.h:32
int csk_wifi_init(void)
CSK WiFi driver initialize.
Definition: csk_wifi_api.c:28
csk_wifi_result_t
CSK WiFi operation(API) results structure.
Definition: csk_wifi.h:83
@ CSK_WIFI_ERR_STA_FAILED
Definition: csk_wifi.h:85
@ CSK_WIFI_ERR_INVALID_PASSWORD
Definition: csk_wifi.h:88
@ CSK_WIFI_ERR_SCAN_FAILED
Definition: csk_wifi.h:89
@ CSK_WIFI_SUCCESS
Definition: csk_wifi.h:84
@ CSK_WIFI_ERR_AP_FAILED
Definition: csk_wifi.h:86
@ CSK_WIFI_ERR_AP_NOT_FOUND
Definition: csk_wifi.h:87
void
Definition: eswifi_shell.c:15
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition: util_macro.h:44
struct _snode sys_snode_t
Definition: slist.h:33
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
CSK WIFI callback structure.
Definition: csk_wifi.h:121
wifi_event_cb_t handler
Definition: csk_wifi.h:131
uint32_t event_data_len
Definition: csk_wifi.h:146
sys_snode_t node
Definition: csk_wifi.h:126
uint32_t events
Definition: csk_wifi.h:136
void * arg
Definition: csk_wifi.h:151
void * event_data
Definition: csk_wifi.h:141
CSK WiFi scan info type.
Definition: csk_wifi.h:72
csk_wifi_encryption_mode_t encryption_mode
Definition: csk_wifi.h:77
int rssi
Definition: csk_wifi.h:75
uint8_t channel
Definition: csk_wifi.h:76
CSK WiFi softap configuration struct.
Definition: csk_wifi.h:59
uint8_t channel
Definition: csk_wifi.h:64
csk_wifi_bandwidth_t bandwidth
Definition: csk_wifi.h:63
uint8_t max_connections
Definition: csk_wifi.h:65
bool ssid_hidden
Definition: csk_wifi.h:66
csk_wifi_encryption_mode_t encryption_mode
Definition: csk_wifi.h:62
CSK WiFi station configuration struct.
Definition: csk_wifi.h:47
csk_wifi_encryption_mode_t encryption_mode
Definition: csk_wifi.h:53
uint8_t channel
Definition: csk_wifi.h:51
int rssi
Definition: csk_wifi.h:52
Kernel timeout type.
Definition: sys_clock.h:65