Select one of the symbols to view example projects that use it.
 
Outline
#define ESP_WIFI_OS_ADAPTER_H_
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include "sdkconfig.h"
#define ESP_WIFI_OS_ADAPTER_VERSION
#define ESP_WIFI_OS_ADAPTER_MAGIC
#define OSI_FUNCS_TIME_BLOCKING
#define OSI_QUEUE_SEND_FRONT
#define OSI_QUEUE_SEND_BACK
#define OSI_QUEUE_SEND_OVERWRITE
wifi_osi_funcs_t
g_wifi_osi_funcs;
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/esp_wifi/include/esp_private/wifi_os_adapter.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2018-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef ESP_WIFI_OS_ADAPTER_H_ #define ESP_WIFI_OS_ADAPTER_H_ #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stddef.h> #include "sdkconfig.h"5 includes #ifdef __cplusplus extern "C" { #endif #define ESP_WIFI_OS_ADAPTER_VERSION 0x00000008 #define ESP_WIFI_OS_ADAPTER_MAGIC 0xDEADBEAF #define OSI_FUNCS_TIME_BLOCKING 0xffffffff #define OSI_QUEUE_SEND_FRONT 0 #define OSI_QUEUE_SEND_BACK 1 #define OSI_QUEUE_SEND_OVERWRITE 26 defines typedef struct wifi_osi_funcs_t { int32_t _version; bool (* _env_is_chip)(void); void (*_set_intr)(int32_t cpu_no, uint32_t intr_source, uint32_t intr_num, int32_t intr_prio); void (*_clear_intr)(uint32_t intr_source, uint32_t intr_num); void (*_set_isr)(int32_t n, void *f, void *arg); void (*_ints_on)(uint32_t mask); void (*_ints_off)(uint32_t mask); bool (* _is_from_isr)(void); void *(* _spin_lock_create)(void); void (* _spin_lock_delete)(void *lock); uint32_t (*_wifi_int_disable)(void *wifi_int_mux); void (*_wifi_int_restore)(void *wifi_int_mux, uint32_t tmp); void (*_task_yield_from_isr)(void); void *(*_semphr_create)(uint32_t max, uint32_t init); void (*_semphr_delete)(void *semphr); int32_t (*_semphr_take)(void *semphr, uint32_t block_time_tick); int32_t (*_semphr_give)(void *semphr); void *(*_wifi_thread_semphr_get)(void); void *(*_mutex_create)(void); void *(*_recursive_mutex_create)(void); void (*_mutex_delete)(void *mutex); int32_t (*_mutex_lock)(void *mutex); int32_t (*_mutex_unlock)(void *mutex); void *(* _queue_create)(uint32_t queue_len, uint32_t item_size); void (* _queue_delete)(void *queue); int32_t (* _queue_send)(void *queue, void *item, uint32_t block_time_tick); int32_t (* _queue_send_from_isr)(void *queue, void *item, void *hptw); int32_t (* _queue_send_to_back)(void *queue, void *item, uint32_t block_time_tick); int32_t (* _queue_send_to_front)(void *queue, void *item, uint32_t block_time_tick); int32_t (* _queue_recv)(void *queue, void *item, uint32_t block_time_tick); uint32_t (* _queue_msg_waiting)(void *queue); void *(* _event_group_create)(void); void (* _event_group_delete)(void *event); uint32_t (* _event_group_set_bits)(void *event, uint32_t bits); uint32_t (* _event_group_clear_bits)(void *event, uint32_t bits); uint32_t (* _event_group_wait_bits)(void *event, uint32_t bits_to_wait_for, int clear_on_exit, int wait_for_all_bits, uint32_t block_time_tick); int32_t (* _task_create_pinned_to_core)(void *task_func, const char *name, uint32_t stack_depth, void *param, uint32_t prio, void *task_handle, uint32_t core_id); int32_t (* _task_create)(void *task_func, const char *name, uint32_t stack_depth, void *param, uint32_t prio, void *task_handle); void (* _task_delete)(void *task_handle); void (* _task_delay)(uint32_t tick); int32_t (* _task_ms_to_tick)(uint32_t ms); void *(* _task_get_current_task)(void); int32_t (* _task_get_max_priority)(void); void *(* _malloc)(size_t size); void (* _free)(void *p); int32_t (* _event_post)(const char* event_base, int32_t event_id, void* event_data, size_t event_data_size, uint32_t ticks_to_wait); uint32_t (* _get_free_heap_size)(void); uint32_t (* _rand)(void); void (* _dport_access_stall_other_cpu_start_wrap)(void); void (* _dport_access_stall_other_cpu_end_wrap)(void); void (* _wifi_apb80m_request)(void); void (* _wifi_apb80m_release)(void); void (* _phy_disable)(void); void (* _phy_enable)(void); #if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_ESP_WIFI_TARGET_ESP32 void (* _phy_common_clock_enable)(void); void (* _phy_common_clock_disable)(void);/* ... */ #endif int (* _phy_update_country_info)(const char* country); int (* _read_mac)(uint8_t* mac, unsigned int type); void (* _timer_arm)(void *timer, uint32_t tmout, bool repeat); void (* _timer_disarm)(void *timer); void (* _timer_done)(void *ptimer); void (* _timer_setfn)(void *ptimer, void *pfunction, void *parg); void (* _timer_arm_us)(void *ptimer, uint32_t us, bool repeat); void (* _wifi_reset_mac)(void); void (* _wifi_clock_enable)(void); void (* _wifi_clock_disable)(void); void (* _wifi_rtc_enable_iso)(void); void (* _wifi_rtc_disable_iso)(void); int64_t (* _esp_timer_get_time)(void); int (* _nvs_set_i8)(uint32_t handle, const char* key, int8_t value); int (* _nvs_get_i8)(uint32_t handle, const char* key, int8_t* out_value); int (* _nvs_set_u8)(uint32_t handle, const char* key, uint8_t value); int (* _nvs_get_u8)(uint32_t handle, const char* key, uint8_t* out_value); int (* _nvs_set_u16)(uint32_t handle, const char* key, uint16_t value); int (* _nvs_get_u16)(uint32_t handle, const char* key, uint16_t* out_value); int (* _nvs_open)(const char* name, unsigned int open_mode, uint32_t *out_handle); void (* _nvs_close)(uint32_t handle); int (* _nvs_commit)(uint32_t handle); int (* _nvs_set_blob)(uint32_t handle, const char* key, const void* value, size_t length); int (* _nvs_get_blob)(uint32_t handle, const char* key, void* out_value, size_t* length); int (* _nvs_erase_key)(uint32_t handle, const char* key); int (* _get_random)(uint8_t *buf, size_t len); int (* _get_time)(void *t); unsigned long (* _random)(void); #if !CONFIG_IDF_TARGET_ESP32 && !CONFIG_ESP_WIFI_TARGET_ESP32 uint32_t (* _slowclk_cal_get)(void); #endif void (* _log_write)(unsigned int level, const char* tag, const char* format, ...); void (* _log_writev)(unsigned int level, const char* tag, const char* format, va_list args); uint32_t (* _log_timestamp)(void); void * (* _malloc_internal)(size_t size); void * (* _realloc_internal)(void *ptr, size_t size); void * (* _calloc_internal)(size_t n, size_t size); void * (* _zalloc_internal)(size_t size); void * (* _wifi_malloc)(size_t size); void * (* _wifi_realloc)(void *ptr, size_t size); void * (* _wifi_calloc)(size_t n, size_t size); void * (* _wifi_zalloc)(size_t size); void * (* _wifi_create_queue)(int queue_len, int item_size); void (* _wifi_delete_queue)(void * queue); int (* _coex_init)(void); void (* _coex_deinit)(void); int (* _coex_enable)(void); void (* _coex_disable)(void); uint32_t (* _coex_status_get)(void); void (* _coex_condition_set)(uint32_t type, bool dissatisfy); int (* _coex_wifi_request)(uint32_t event, uint32_t latency, uint32_t duration); int (* _coex_wifi_release)(uint32_t event); int (* _coex_wifi_channel_set)(uint8_t primary, uint8_t secondary); int (* _coex_event_duration_get)(uint32_t event, uint32_t *duration); int (* _coex_pti_get)(uint32_t event, uint8_t *pti); void (* _coex_schm_status_bit_clear)(uint32_t type, uint32_t status); void (* _coex_schm_status_bit_set)(uint32_t type, uint32_t status); int (* _coex_schm_interval_set)(uint32_t interval); uint32_t (* _coex_schm_interval_get)(void); uint8_t (* _coex_schm_curr_period_get)(void); void * (* _coex_schm_curr_phase_get)(void); int (* _coex_schm_process_restart)(void); int (* _coex_schm_register_cb)(int, int (* cb)(int)); int (* _coex_register_start_cb)(int (* cb)(void)); #if CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32C5 || CONFIG_IDF_TARGET_ESP32C61 void (* _regdma_link_set_write_wait_content)(void *, uint32_t, uint32_t); void * (* _sleep_retention_find_link_by_id)(int);/* ... */ #endif int (*_coex_schm_flexible_period_set)(uint8_t); uint8_t (*_coex_schm_flexible_period_get)(void); int32_t _magic; }{ ... } wifi_osi_funcs_t; extern wifi_osi_funcs_t g_wifi_osi_funcs; #ifdef __cplusplus }{...} #endif /* ... */ #endif /* ESP_WIFI_OS_ADAPTER_H_ */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.