VSF Documented
vsf_usbh_wifi.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_USBH_WIFI_H__
19#define __VSF_USBH_WIFI_H__
20
21/*============================ INCLUDES ======================================*/
23
24#if VSF_USE_USB_HOST == ENABLED && VSF_USBH_USE_WIFI == ENABLED
25
27
28#if VSF_USE_WIFI == ENABLED
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/*============================ MACROS ========================================*/
35
36/* Backward-compatibility type aliases — old code using vk_usbh_wifi_*_t
37 * names continues to compile without modification. */
41
42/*============================ TYPES =========================================*/
43
45
46/*============================ GLOBAL VARIABLES ==============================*/
47
49
50/*============================ USB-SPECIFIC API ==============================*/
51
52/* TX path — USB-specific because it ships frames via bulk OUT endpoints.
53 * Other buses (SDIO) would have their own send API. */
55bool vk_usbh_wifi_can_send(void *dev);
56
57/* Retrieve the embedded generic wifi handle from the USB wifi device. */
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif // VSF_USE_WIFI
65#endif // VSF_USE_USB_HOST && VSF_USBH_USE_WIFI
66#endif // __VSF_USBH_WIFI_H__
vsf_err_t
Definition __type.h:42
Definition vsf_usbh.h:268
unsigned short uint16_t
Definition stdint.h:7
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_usbh_wifi_priv.h:73
vk_usbh_dev_t * dev
Definition vsf_usbh_wifi_priv.h:79
Definition vsf_wifi.h:113
Definition vsf_wifi.h:94
Definition vsf_wifi_priv.h:35
bool vk_usbh_wifi_can_send(void *dev)
Definition vsf_usbh_wifi.c:602
vsf_wifi_scan_result_t vk_usbh_wifi_scan_result_t
Definition vsf_usbh_wifi.h:38
vsf_wifi_link_info_t vk_usbh_wifi_link_info_t
Definition vsf_usbh_wifi.h:39
vsf_err_t vk_usbh_wifi_send(void *dev, uint8_t *frame, uint16_t len)
Definition vsf_usbh_wifi.c:613
vsf_wifi_t * vk_usbh_wifi_get_wifi(void *dev)
Definition vsf_usbh_wifi.c:596
vsf_wifi_auth_cfg_t vk_usbh_wifi_auth_cfg_t
Definition vsf_usbh_wifi.h:40
const vk_usbh_class_drv_t vk_usbh_wifi_drv
Definition vsf_usbh_wifi.c:116
Generated from commit: vsfteam/vsf@3b461d0