|
Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Data Structures | |
| struct | csk_wifi_ctrl_msg_t |
| struct | csk_wifi_config |
| struct | csk_wifi_object_t |
Macros | |
| #define | DT_DRV_COMPAT listenai_csk_wifi |
| #define | WIFI_MAX_SCAN_NUM CONFIG_MAX_SCAN_APS_NUM |
| #define | WIFI_MAX_TIMEOUT_SEC CONFIG_WLAN_API_TIMEOUT |
| #define | MACTOSTR(mac) (mac)[0], (mac)[1], (mac)[2], (mac)[3], (mac)[4], (mac)[5] |
| #define | MACSTR "%02x:%02x:%02x:%02x:%02x:%02x" |
| #define | EVENT_SUBTYPE(event) ((uint16_t)((event) & 0xFFFF)) |
Enumerations | |
| enum | wifi_ctrl_msg_type_t { WIFI_COMMAND , WIFI_EVENT , WIFI_COMMAND , WIFI_EVENT } |
Functions | |
| LOG_MODULE_DECLARE (csk_wifi, CONFIG_WIFI_LOG_LEVEL) | |
| K_MSGQ_DEFINE (xrwlan_msgq, sizeof(uint32_t), 1, 4) | |
| K_MSGQ_DEFINE (wifi_result_msgq, sizeof(wifi_ret_msg_t), 1, 4) | |
| K_MSGQ_DEFINE (wifi_interactive_msgq, sizeof(csk_wifi_ctrl_msg_t), 4, 4) | |
| static void | wifi_control_thread (void *, void *, void *) |
| K_SEM_DEFINE (init_sem, 0, 1) | |
| K_THREAD_DEFINE (wifi_ctrl_thread_id, CONFIG_WIFI_CTRL_STACK_SIZE, wifi_control_thread, NULL, NULL, NULL, CONFIG_WIFI_CTRL_PRIORITY, 0, 0) | |
| static void | csk_wifi_receive_pkt (struct mbuf *mb, uint16_t len, void *arg) |
| const struct device * | wifi_obj_get_dev (csk_wifi_mode_t mode) |
| wifi_sta_state_machine_t | wifi_obj_get_sm (void) |
| static void | wifi_obj_set_sm (wifi_sta_state_machine_t sm) |
| static void | wifi_reset_result (void) |
| static int | wifi_give_result (wifi_ret_msg_t *ret_msg, bool async_mode) |
| int | wifi_take_result (wifi_ret_msg_t *ret_msg, k_timeout_t timeout) |
| void | wlan_event_clear (void) |
| int | wlan_event_give (wlan_event_t *event) |
| int | wlan_event_take (wlan_event_t *event, k_timeout_t timeout) |
| int | wifi_send_command (const struct device *dev, wifi_cmd_t command, k_timeout_t timeouts, bool async_mode) |
| csk_wifi_encryption_mode_t | wifi_get_encryption_mode (csk_wifi_encryption_mode_t mode) |
| enum wlan_mode | wifi_get_wlan_mode (csk_wifi_mode_t mode) |
| static int | wifi_send_event (const struct device *dev, csk_wifi_event_t event, void *event_data, uint32_t data_len, k_timeout_t timeouts) |
| static int | wifi_get_message (csk_wifi_ctrl_msg_t *msg, k_timeout_t timeouts) |
| int | wifi_sm_on_connect_scan_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_on_connect_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_on_auth_exception_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_on_assoc_exception_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_on_handshake_exception_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_on_disconnect_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_connected_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_disconnected_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_on_scan_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_scandone_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_on_cmdtimeout_handler (const struct device *dev, wlan_event_t current_event) |
| int | wifi_sm_on_startup_handler (const struct device *dev, wlan_event_t current_event) |
| void | wifi_sta_sm_handler (wlan_event_t current_event) |
| static void | wlan_event_handler (uint32_t param0, uint32_t param1) |
| static int | wifi_driver_init (void) |
| static int | wifi_driver_deinit (void) |
| static void | wifi_virtual_netif_init (const struct device *dev) |
| static void | wifi_virtual_netif_deinit (const struct device *dev) |
| static int | wifi_sta_connect (const struct device *dev) |
| static int | wifi_sta_get_connected_info (const struct device *dev) |
| static int | wifi_sta_disconnect (const struct device *dev) |
| static int | wifi_scan_list (const struct device *dev, int *ap_count, csk_wifi_scan_info_t **ap_list) |
| static void | wifi_command_handler (const struct device *dev, wifi_req_t req) |
| static void | wifi_async_event_handler (const struct device *dev, csk_wifi_event_t event) |
| static void | csk_wifi_netif_init (struct net_if *netif) |
| static int | csk_wifi_send_pkt (const struct device *dev, struct net_pkt *pkt) |
| static int | csk_eth_dev_init (const struct device *dev) |
Variables | |
| static csk_wifi_object_t | s_csk_wifi_obj = {0} |
| const char * | WIFI_STA_SM_STRINGS [] |
| const char * | WLAN_EVENT_STRINGS [] |
| static const struct ethernet_api | csk_eth_apis |
| #define DT_DRV_COMPAT listenai_csk_wifi |
| #define EVENT_SUBTYPE | ( | event | ) | ((uint16_t)((event) & 0xFFFF)) |
| #define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x" |
| #define MACTOSTR | ( | mac | ) | (mac)[0], (mac)[1], (mac)[2], (mac)[3], (mac)[4], (mac)[5] |
| #define WIFI_MAX_SCAN_NUM CONFIG_MAX_SCAN_APS_NUM |
| #define WIFI_MAX_TIMEOUT_SEC CONFIG_WLAN_API_TIMEOUT |
| enum wifi_ctrl_msg_type_t |
|
static |
| K_MSGQ_DEFINE | ( | wifi_interactive_msgq | , |
| sizeof(csk_wifi_ctrl_msg_t) | , | ||
| 4 | , | ||
| 4 | |||
| ) |
| K_MSGQ_DEFINE | ( | wifi_result_msgq | , |
| sizeof(wifi_ret_msg_t) | , | ||
| 1 | , | ||
| 4 | |||
| ) |
| K_MSGQ_DEFINE | ( | xrwlan_msgq | , |
| sizeof(uint32_t) | , | ||
| 1 | , | ||
| 4 | |||
| ) |
| K_SEM_DEFINE | ( | init_sem | , |
| 0 | , | ||
| 1 | |||
| ) |
| K_THREAD_DEFINE | ( | wifi_ctrl_thread_id | , |
| CONFIG_WIFI_CTRL_STACK_SIZE | , | ||
| wifi_control_thread | , | ||
| NULL | , | ||
| NULL | , | ||
| NULL | , | ||
| CONFIG_WIFI_CTRL_PRIORITY | , | ||
| 0 | , | ||
| 0 | |||
| ) |
| LOG_MODULE_DECLARE | ( | csk_wifi | , |
| CONFIG_WIFI_LOG_LEVEL | |||
| ) |
|
static |
|
static |
|
static |
|
static |
| csk_wifi_encryption_mode_t wifi_get_encryption_mode | ( | csk_wifi_encryption_mode_t | mode | ) |
|
inlinestatic |
| enum wlan_mode wifi_get_wlan_mode | ( | csk_wifi_mode_t | mode | ) |
|
inlinestatic |
| const struct device * wifi_obj_get_dev | ( | csk_wifi_mode_t | mode | ) |
| wifi_sta_state_machine_t wifi_obj_get_sm | ( | void | ) |
|
inlinestatic |
|
static |
-2 pending scan schedule -reject new request -1 interface is disabled -reject new request
| int wifi_send_command | ( | const struct device * | dev, |
| wifi_cmd_t | command, | ||
| k_timeout_t | timeouts, | ||
| bool | async_mode | ||
| ) |
|
inlinestatic |
| int wifi_sm_connected_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_disconnected_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_on_assoc_exception_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_on_auth_exception_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_on_cmdtimeout_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_on_connect_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_on_connect_scan_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_on_disconnect_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_on_handshake_exception_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_on_scan_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_on_startup_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
| int wifi_sm_scandone_handler | ( | const struct device * | dev, |
| wlan_event_t | current_event | ||
| ) |
|
static |
|
static |
|
static |
| void wifi_sta_sm_handler | ( | wlan_event_t | current_event | ) |
| int wifi_take_result | ( | wifi_ret_msg_t * | ret_msg, |
| k_timeout_t | timeout | ||
| ) |
| int wlan_event_give | ( | wlan_event_t * | event | ) |
| int wlan_event_take | ( | wlan_event_t * | event, |
| k_timeout_t | timeout | ||
| ) |
|
static |
|
static |
| const char* WIFI_STA_SM_STRINGS[] |
| const char* WLAN_EVENT_STRINGS[] |