mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-22 14:57:30 +02:00
feat(wifi_remote): Added generation step for wifi_remote based on IDF
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
# For more information about build system see
|
||||
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
|
||||
# The following five lines of boilerplate have to be in your project's
|
||||
# CMakeLists in this exact order for cmake to work correctly
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(smoke_test)
|
5
components/esp_wifi_remote/test/smoke_test/README.md
Normal file
5
components/esp_wifi_remote/test/smoke_test/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Smoke (build-only) test
|
||||
|
||||
This test tries to build an application which calls all declared APIs from this component and from `esp_wifi`.
|
||||
Most of the test code is autogenerated, please see [README.md](../../scripts/README.md) for more details on the generation process.
|
||||
This test should be build for all combinations of host and slave targets.
|
@ -0,0 +1,3 @@
|
||||
idf_component_register(SRCS "esp_hosted_mock.c"
|
||||
INCLUDE_DIRS "include"
|
||||
REQUIRES esp_wifi esp_wifi_remote)
|
@ -0,0 +1,21 @@
|
||||
# This file is auto-generated
|
||||
menu "ESP Hosted Mock"
|
||||
choice SLAVE_IDF_TARGET
|
||||
prompt "choose slave target"
|
||||
default SLAVE_IDF_TARGET_ESP32
|
||||
config SLAVE_IDF_TARGET_ESP32
|
||||
bool "esp32"
|
||||
config SLAVE_IDF_TARGET_ESP32S2
|
||||
bool "esp32s2"
|
||||
config SLAVE_IDF_TARGET_ESP32C3
|
||||
bool "esp32c3"
|
||||
config SLAVE_IDF_TARGET_ESP32S3
|
||||
bool "esp32s3"
|
||||
config SLAVE_IDF_TARGET_ESP32C2
|
||||
bool "esp32c2"
|
||||
config SLAVE_IDF_TARGET_ESP32C6
|
||||
bool "esp32c6"
|
||||
config SLAVE_IDF_TARGET_ESP32H2
|
||||
bool "esp32h2"
|
||||
endchoice
|
||||
endmenu
|
@ -0,0 +1,393 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
// This file is auto-generated
|
||||
#include "esp_wifi.h"
|
||||
#include "esp_wifi_remote.h"
|
||||
|
||||
esp_err_t esp_wifi_remote_init(const wifi_init_config_t *config)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_deinit(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_mode(wifi_mode_t mode)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_mode(wifi_mode_t *mode)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_start(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_stop(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_restore(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_connect(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_disconnect(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_clear_fast_connect(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_deauth_sta(uint16_t aid)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_scan_start(const wifi_scan_config_t *config, _Bool block)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_scan_stop(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_scan_get_ap_num(uint16_t *number)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_scan_get_ap_records(uint16_t *number, wifi_ap_record_t *ap_records)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_scan_get_ap_record(wifi_ap_record_t *ap_record)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_clear_ap_list(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_sta_get_ap_info(wifi_ap_record_t *ap_info)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_ps(wifi_ps_type_t type)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_ps(wifi_ps_type_t *type)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_protocol(wifi_interface_t ifx, uint8_t protocol_bitmap)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_protocol(wifi_interface_t ifx, uint8_t *protocol_bitmap)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_bandwidth(wifi_interface_t ifx, wifi_bandwidth_t bw)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_bandwidth(wifi_interface_t ifx, wifi_bandwidth_t *bw)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_channel(uint8_t primary, wifi_second_chan_t second)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_channel(uint8_t *primary, wifi_second_chan_t *second)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_country(const wifi_country_t *country)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_country(wifi_country_t *country)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_mac(wifi_interface_t ifx, const uint8_t mac[6])
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_mac(wifi_interface_t ifx, uint8_t mac[6])
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_promiscuous_rx_cb(wifi_promiscuous_cb_t cb)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_promiscuous(_Bool en)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_promiscuous(_Bool *en)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_promiscuous_filter(const wifi_promiscuous_filter_t *filter)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_promiscuous_filter(wifi_promiscuous_filter_t *filter)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_promiscuous_ctrl_filter(const wifi_promiscuous_filter_t *filter)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_promiscuous_ctrl_filter(wifi_promiscuous_filter_t *filter)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_config(wifi_interface_t interface, wifi_config_t *conf)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_config(wifi_interface_t interface, wifi_config_t *conf)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_ap_get_sta_list(wifi_sta_list_t *sta)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_ap_get_sta_aid(const uint8_t mac[6], uint16_t *aid)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_storage(wifi_storage_t storage)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_vendor_ie(_Bool enable, wifi_vendor_ie_type_t type, wifi_vendor_ie_id_t idx, const void *vnd_ie)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_vendor_ie_cb(esp_vendor_ie_cb_t cb, void *ctx)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_max_tx_power(int8_t power)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_max_tx_power(int8_t *power)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_event_mask(uint32_t mask)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_event_mask(uint32_t *mask)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_80211_tx(wifi_interface_t ifx, const void *buffer, int len, _Bool en_sys_seq)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_csi_rx_cb(wifi_csi_cb_t cb, void *ctx)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_csi_config(const wifi_csi_config_t *config)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_csi(_Bool en)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_ant_gpio(const wifi_ant_gpio_config_t *config)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_ant_gpio(wifi_ant_gpio_config_t *config)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_ant(const wifi_ant_config_t *config)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_ant(wifi_ant_config_t *config)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
int64_t esp_wifi_remote_get_tsf_time(wifi_interface_t interface)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_inactive_time(wifi_interface_t ifx, uint16_t sec)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_inactive_time(wifi_interface_t ifx, uint16_t *sec)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_statis_dump(uint32_t modules)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_rssi_threshold(int32_t rssi)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_ftm_initiate_session(wifi_ftm_initiator_cfg_t *cfg)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_ftm_end_session(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_ftm_resp_set_offset(int16_t offset_cm)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_ftm_get_report(wifi_ftm_report_entry_t *report, uint8_t num_entries)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_config_11b_rate(wifi_interface_t ifx, _Bool disable)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_connectionless_module_set_wake_interval(uint16_t wake_interval)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_force_wakeup_acquire(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_force_wakeup_release(void)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_country_code(const char *country, _Bool ieee80211d_enabled)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_get_country_code(char *country)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_config_80211_tx_rate(wifi_interface_t ifx, wifi_phy_rate_t rate)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_disable_pmf_config(wifi_interface_t ifx)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_sta_get_aid(uint16_t *aid)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_sta_get_negotiated_phymode(wifi_phy_mode_t *phymode)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_set_dynamic_cs(_Bool enabled)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_wifi_remote_sta_get_rssi(int *rssi)
|
||||
{
|
||||
return ESP_OK;
|
||||
}
|
@ -0,0 +1 @@
|
||||
version: 1.0.0
|
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
*/
|
||||
#pragma once
|
||||
#include "esp_wifi.h"
|
||||
#include "esp_hosted_mock.h"
|
||||
#include "esp_wifi_remote.h"
|
||||
|
||||
#define ESP_HOSTED_CHANNEL_CONFIG_DEFAULT() {}
|
||||
#define ESP_SERIAL_IF 0
|
||||
#define ESP_STA_IF 1
|
||||
#define ESP_AP_IF 2
|
||||
|
||||
struct esp_remote_channel_config {
|
||||
int if_type;
|
||||
bool secure;
|
||||
};
|
||||
|
||||
esp_remote_channel_t esp_hosted_add_channel(struct esp_remote_channel_config *config, esp_remote_channel_tx_fn_t *tx_cb, esp_remote_channel_rx_fn_t rx_cb);
|
@ -0,0 +1,84 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
// This file is auto-generated
|
||||
#pragma once
|
||||
esp_err_t esp_wifi_remote_init(const wifi_init_config_t *config);
|
||||
esp_err_t esp_wifi_remote_deinit(void);
|
||||
esp_err_t esp_wifi_remote_set_mode(wifi_mode_t mode);
|
||||
esp_err_t esp_wifi_remote_get_mode(wifi_mode_t *mode);
|
||||
esp_err_t esp_wifi_remote_start(void);
|
||||
esp_err_t esp_wifi_remote_stop(void);
|
||||
esp_err_t esp_wifi_remote_restore(void);
|
||||
esp_err_t esp_wifi_remote_connect(void);
|
||||
esp_err_t esp_wifi_remote_disconnect(void);
|
||||
esp_err_t esp_wifi_remote_clear_fast_connect(void);
|
||||
esp_err_t esp_wifi_remote_deauth_sta(uint16_t aid);
|
||||
esp_err_t esp_wifi_remote_scan_start(const wifi_scan_config_t *config, _Bool block);
|
||||
esp_err_t esp_wifi_remote_scan_stop(void);
|
||||
esp_err_t esp_wifi_remote_scan_get_ap_num(uint16_t *number);
|
||||
esp_err_t esp_wifi_remote_scan_get_ap_records(uint16_t *number, wifi_ap_record_t *ap_records);
|
||||
esp_err_t esp_wifi_remote_scan_get_ap_record(wifi_ap_record_t *ap_record);
|
||||
esp_err_t esp_wifi_remote_clear_ap_list(void);
|
||||
esp_err_t esp_wifi_remote_sta_get_ap_info(wifi_ap_record_t *ap_info);
|
||||
esp_err_t esp_wifi_remote_set_ps(wifi_ps_type_t type);
|
||||
esp_err_t esp_wifi_remote_get_ps(wifi_ps_type_t *type);
|
||||
esp_err_t esp_wifi_remote_set_protocol(wifi_interface_t ifx, uint8_t protocol_bitmap);
|
||||
esp_err_t esp_wifi_remote_get_protocol(wifi_interface_t ifx, uint8_t *protocol_bitmap);
|
||||
esp_err_t esp_wifi_remote_set_bandwidth(wifi_interface_t ifx, wifi_bandwidth_t bw);
|
||||
esp_err_t esp_wifi_remote_get_bandwidth(wifi_interface_t ifx, wifi_bandwidth_t *bw);
|
||||
esp_err_t esp_wifi_remote_set_channel(uint8_t primary, wifi_second_chan_t second);
|
||||
esp_err_t esp_wifi_remote_get_channel(uint8_t *primary, wifi_second_chan_t *second);
|
||||
esp_err_t esp_wifi_remote_set_country(const wifi_country_t *country);
|
||||
esp_err_t esp_wifi_remote_get_country(wifi_country_t *country);
|
||||
esp_err_t esp_wifi_remote_set_mac(wifi_interface_t ifx, const uint8_t mac[6]);
|
||||
esp_err_t esp_wifi_remote_get_mac(wifi_interface_t ifx, uint8_t mac[6]);
|
||||
esp_err_t esp_wifi_remote_set_promiscuous_rx_cb(wifi_promiscuous_cb_t cb);
|
||||
esp_err_t esp_wifi_remote_set_promiscuous(_Bool en);
|
||||
esp_err_t esp_wifi_remote_get_promiscuous(_Bool *en);
|
||||
esp_err_t esp_wifi_remote_set_promiscuous_filter(const wifi_promiscuous_filter_t *filter);
|
||||
esp_err_t esp_wifi_remote_get_promiscuous_filter(wifi_promiscuous_filter_t *filter);
|
||||
esp_err_t esp_wifi_remote_set_promiscuous_ctrl_filter(const wifi_promiscuous_filter_t *filter);
|
||||
esp_err_t esp_wifi_remote_get_promiscuous_ctrl_filter(wifi_promiscuous_filter_t *filter);
|
||||
esp_err_t esp_wifi_remote_set_config(wifi_interface_t interface, wifi_config_t *conf);
|
||||
esp_err_t esp_wifi_remote_get_config(wifi_interface_t interface, wifi_config_t *conf);
|
||||
esp_err_t esp_wifi_remote_ap_get_sta_list(wifi_sta_list_t *sta);
|
||||
esp_err_t esp_wifi_remote_ap_get_sta_aid(const uint8_t mac[6], uint16_t *aid);
|
||||
esp_err_t esp_wifi_remote_set_storage(wifi_storage_t storage);
|
||||
esp_err_t esp_wifi_remote_set_vendor_ie(_Bool enable, wifi_vendor_ie_type_t type, wifi_vendor_ie_id_t idx, const void *vnd_ie);
|
||||
esp_err_t esp_wifi_remote_set_vendor_ie_cb(esp_vendor_ie_cb_t cb, void *ctx);
|
||||
esp_err_t esp_wifi_remote_set_max_tx_power(int8_t power);
|
||||
esp_err_t esp_wifi_remote_get_max_tx_power(int8_t *power);
|
||||
esp_err_t esp_wifi_remote_set_event_mask(uint32_t mask);
|
||||
esp_err_t esp_wifi_remote_get_event_mask(uint32_t *mask);
|
||||
esp_err_t esp_wifi_remote_80211_tx(wifi_interface_t ifx, const void *buffer, int len, _Bool en_sys_seq);
|
||||
esp_err_t esp_wifi_remote_set_csi_rx_cb(wifi_csi_cb_t cb, void *ctx);
|
||||
esp_err_t esp_wifi_remote_set_csi_config(const wifi_csi_config_t *config);
|
||||
esp_err_t esp_wifi_remote_set_csi(_Bool en);
|
||||
esp_err_t esp_wifi_remote_set_ant_gpio(const wifi_ant_gpio_config_t *config);
|
||||
esp_err_t esp_wifi_remote_get_ant_gpio(wifi_ant_gpio_config_t *config);
|
||||
esp_err_t esp_wifi_remote_set_ant(const wifi_ant_config_t *config);
|
||||
esp_err_t esp_wifi_remote_get_ant(wifi_ant_config_t *config);
|
||||
int64_t esp_wifi_remote_get_tsf_time(wifi_interface_t interface);
|
||||
esp_err_t esp_wifi_remote_set_inactive_time(wifi_interface_t ifx, uint16_t sec);
|
||||
esp_err_t esp_wifi_remote_get_inactive_time(wifi_interface_t ifx, uint16_t *sec);
|
||||
esp_err_t esp_wifi_remote_statis_dump(uint32_t modules);
|
||||
esp_err_t esp_wifi_remote_set_rssi_threshold(int32_t rssi);
|
||||
esp_err_t esp_wifi_remote_ftm_initiate_session(wifi_ftm_initiator_cfg_t *cfg);
|
||||
esp_err_t esp_wifi_remote_ftm_end_session(void);
|
||||
esp_err_t esp_wifi_remote_ftm_resp_set_offset(int16_t offset_cm);
|
||||
esp_err_t esp_wifi_remote_ftm_get_report(wifi_ftm_report_entry_t *report, uint8_t num_entries);
|
||||
esp_err_t esp_wifi_remote_config_11b_rate(wifi_interface_t ifx, _Bool disable);
|
||||
esp_err_t esp_wifi_remote_connectionless_module_set_wake_interval(uint16_t wake_interval);
|
||||
esp_err_t esp_wifi_remote_force_wakeup_acquire(void);
|
||||
esp_err_t esp_wifi_remote_force_wakeup_release(void);
|
||||
esp_err_t esp_wifi_remote_set_country_code(const char *country, _Bool ieee80211d_enabled);
|
||||
esp_err_t esp_wifi_remote_get_country_code(char *country);
|
||||
esp_err_t esp_wifi_remote_config_80211_tx_rate(wifi_interface_t ifx, wifi_phy_rate_t rate);
|
||||
esp_err_t esp_wifi_remote_disable_pmf_config(wifi_interface_t ifx);
|
||||
esp_err_t esp_wifi_remote_sta_get_aid(uint16_t *aid);
|
||||
esp_err_t esp_wifi_remote_sta_get_negotiated_phymode(wifi_phy_mode_t *phymode);
|
||||
esp_err_t esp_wifi_remote_set_dynamic_cs(_Bool enabled);
|
||||
esp_err_t esp_wifi_remote_sta_get_rssi(int *rssi);
|
@ -0,0 +1,8 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
*/
|
||||
#pragma once
|
||||
#include "esp_wifi.h"
|
||||
#include "esp_hosted_api.h"
|
@ -0,0 +1,2 @@
|
||||
idf_component_register(SRCS "smoke_test.c" "all_wifi_calls.c" "all_wifi_remote_calls.c"
|
||||
INCLUDE_DIRS ".")
|
411
components/esp_wifi_remote/test/smoke_test/main/all_wifi_calls.c
Normal file
411
components/esp_wifi_remote/test/smoke_test/main/all_wifi_calls.c
Normal file
@ -0,0 +1,411 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
// This file is auto-generated
|
||||
#include "esp_wifi.h"
|
||||
|
||||
void run_all_wifi_apis(void)
|
||||
{
|
||||
{
|
||||
const wifi_init_config_t *config = NULL;
|
||||
esp_wifi_init(config);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_deinit();
|
||||
}
|
||||
|
||||
{
|
||||
wifi_mode_t mode = 0;
|
||||
esp_wifi_set_mode(mode);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_mode_t *mode = NULL;
|
||||
esp_wifi_get_mode(mode);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_start();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_stop();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_restore();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_connect();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_disconnect();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_clear_fast_connect();
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t aid = 0;
|
||||
esp_wifi_deauth_sta(aid);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_scan_config_t *config = NULL;
|
||||
_Bool block = 0;
|
||||
esp_wifi_scan_start(config, block);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_scan_stop();
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t *number = NULL;
|
||||
esp_wifi_scan_get_ap_num(number);
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t *number = NULL;
|
||||
wifi_ap_record_t *ap_records = NULL;
|
||||
esp_wifi_scan_get_ap_records(number, ap_records);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ap_record_t *ap_record = NULL;
|
||||
esp_wifi_scan_get_ap_record(ap_record);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_clear_ap_list();
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ap_record_t *ap_info = NULL;
|
||||
esp_wifi_sta_get_ap_info(ap_info);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ps_type_t type = 0;
|
||||
esp_wifi_set_ps(type);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ps_type_t *type = NULL;
|
||||
esp_wifi_get_ps(type);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint8_t protocol_bitmap = 0;
|
||||
esp_wifi_set_protocol(ifx, protocol_bitmap);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint8_t *protocol_bitmap = NULL;
|
||||
esp_wifi_get_protocol(ifx, protocol_bitmap);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
wifi_bandwidth_t bw = 0;
|
||||
esp_wifi_set_bandwidth(ifx, bw);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
wifi_bandwidth_t *bw = NULL;
|
||||
esp_wifi_get_bandwidth(ifx, bw);
|
||||
}
|
||||
|
||||
{
|
||||
uint8_t primary = 0;
|
||||
wifi_second_chan_t second = 0;
|
||||
esp_wifi_set_channel(primary, second);
|
||||
}
|
||||
|
||||
{
|
||||
uint8_t *primary = NULL;
|
||||
wifi_second_chan_t *second = NULL;
|
||||
esp_wifi_get_channel(primary, second);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_country_t *country = NULL;
|
||||
esp_wifi_set_country(country);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_country_t *country = NULL;
|
||||
esp_wifi_get_country(country);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
const uint8_t mac[6] = {};
|
||||
esp_wifi_set_mac(ifx, mac);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint8_t mac[6] = {};
|
||||
esp_wifi_get_mac(ifx, mac);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_promiscuous_cb_t cb = 0;
|
||||
esp_wifi_set_promiscuous_rx_cb(cb);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool en = 0;
|
||||
esp_wifi_set_promiscuous(en);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool *en = NULL;
|
||||
esp_wifi_get_promiscuous(en);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_promiscuous_filter_t *filter = NULL;
|
||||
esp_wifi_set_promiscuous_filter(filter);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_promiscuous_filter_t *filter = NULL;
|
||||
esp_wifi_get_promiscuous_filter(filter);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_promiscuous_filter_t *filter = NULL;
|
||||
esp_wifi_set_promiscuous_ctrl_filter(filter);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_promiscuous_filter_t *filter = NULL;
|
||||
esp_wifi_get_promiscuous_ctrl_filter(filter);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t interface = 0;
|
||||
wifi_config_t *conf = NULL;
|
||||
esp_wifi_set_config(interface, conf);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t interface = 0;
|
||||
wifi_config_t *conf = NULL;
|
||||
esp_wifi_get_config(interface, conf);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_sta_list_t *sta = NULL;
|
||||
esp_wifi_ap_get_sta_list(sta);
|
||||
}
|
||||
|
||||
{
|
||||
const uint8_t mac[6] = {};
|
||||
uint16_t *aid = NULL;
|
||||
esp_wifi_ap_get_sta_aid(mac, aid);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_storage_t storage = 0;
|
||||
esp_wifi_set_storage(storage);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool enable = 0;
|
||||
wifi_vendor_ie_type_t type = 0;
|
||||
wifi_vendor_ie_id_t idx = 0;
|
||||
const void *vnd_ie = NULL;
|
||||
esp_wifi_set_vendor_ie(enable, type, idx, vnd_ie);
|
||||
}
|
||||
|
||||
{
|
||||
esp_vendor_ie_cb_t cb = 0;
|
||||
void *ctx = NULL;
|
||||
esp_wifi_set_vendor_ie_cb(cb, ctx);
|
||||
}
|
||||
|
||||
{
|
||||
int8_t power = 0;
|
||||
esp_wifi_set_max_tx_power(power);
|
||||
}
|
||||
|
||||
{
|
||||
int8_t *power = NULL;
|
||||
esp_wifi_get_max_tx_power(power);
|
||||
}
|
||||
|
||||
{
|
||||
uint32_t mask = 0;
|
||||
esp_wifi_set_event_mask(mask);
|
||||
}
|
||||
|
||||
{
|
||||
uint32_t *mask = NULL;
|
||||
esp_wifi_get_event_mask(mask);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
const void *buffer = NULL;
|
||||
int len = 0;
|
||||
_Bool en_sys_seq = 0;
|
||||
esp_wifi_80211_tx(ifx, buffer, len, en_sys_seq);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_csi_cb_t cb = 0;
|
||||
void *ctx = NULL;
|
||||
esp_wifi_set_csi_rx_cb(cb, ctx);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_csi_config_t *config = NULL;
|
||||
esp_wifi_set_csi_config(config);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool en = 0;
|
||||
esp_wifi_set_csi(en);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_ant_gpio_config_t *config = NULL;
|
||||
esp_wifi_set_ant_gpio(config);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ant_gpio_config_t *config = NULL;
|
||||
esp_wifi_get_ant_gpio(config);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_ant_config_t *config = NULL;
|
||||
esp_wifi_set_ant(config);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ant_config_t *config = NULL;
|
||||
esp_wifi_get_ant(config);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t interface = 0;
|
||||
esp_wifi_get_tsf_time(interface);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint16_t sec = 0;
|
||||
esp_wifi_set_inactive_time(ifx, sec);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint16_t *sec = NULL;
|
||||
esp_wifi_get_inactive_time(ifx, sec);
|
||||
}
|
||||
|
||||
{
|
||||
uint32_t modules = 0;
|
||||
esp_wifi_statis_dump(modules);
|
||||
}
|
||||
|
||||
{
|
||||
int32_t rssi = 0;
|
||||
esp_wifi_set_rssi_threshold(rssi);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ftm_initiator_cfg_t *cfg = NULL;
|
||||
esp_wifi_ftm_initiate_session(cfg);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_ftm_end_session();
|
||||
}
|
||||
|
||||
{
|
||||
int16_t offset_cm = 0;
|
||||
esp_wifi_ftm_resp_set_offset(offset_cm);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ftm_report_entry_t *report = NULL;
|
||||
uint8_t num_entries = 0;
|
||||
esp_wifi_ftm_get_report(report, num_entries);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
_Bool disable = 0;
|
||||
esp_wifi_config_11b_rate(ifx, disable);
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t wake_interval = 0;
|
||||
esp_wifi_connectionless_module_set_wake_interval(wake_interval);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_force_wakeup_acquire();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_force_wakeup_release();
|
||||
}
|
||||
|
||||
{
|
||||
const char *country = NULL;
|
||||
_Bool ieee80211d_enabled = 0;
|
||||
esp_wifi_set_country_code(country, ieee80211d_enabled);
|
||||
}
|
||||
|
||||
{
|
||||
char *country = NULL;
|
||||
esp_wifi_get_country_code(country);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
wifi_phy_rate_t rate = 0;
|
||||
esp_wifi_config_80211_tx_rate(ifx, rate);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
esp_wifi_disable_pmf_config(ifx);
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t *aid = NULL;
|
||||
esp_wifi_sta_get_aid(aid);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_phy_mode_t *phymode = NULL;
|
||||
esp_wifi_sta_get_negotiated_phymode(phymode);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool enabled = 0;
|
||||
esp_wifi_set_dynamic_cs(enabled);
|
||||
}
|
||||
|
||||
{
|
||||
int *rssi = NULL;
|
||||
esp_wifi_sta_get_rssi(rssi);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,411 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
// This file is auto-generated
|
||||
#include "esp_wifi_remote.h"
|
||||
|
||||
void run_all_wifi_remote_apis(void)
|
||||
{
|
||||
{
|
||||
const wifi_init_config_t *config = NULL;
|
||||
esp_wifi_remote_init(config);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_deinit();
|
||||
}
|
||||
|
||||
{
|
||||
wifi_mode_t mode = 0;
|
||||
esp_wifi_remote_set_mode(mode);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_mode_t *mode = NULL;
|
||||
esp_wifi_remote_get_mode(mode);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_start();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_stop();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_restore();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_connect();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_disconnect();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_clear_fast_connect();
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t aid = 0;
|
||||
esp_wifi_remote_deauth_sta(aid);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_scan_config_t *config = NULL;
|
||||
_Bool block = 0;
|
||||
esp_wifi_remote_scan_start(config, block);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_scan_stop();
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t *number = NULL;
|
||||
esp_wifi_remote_scan_get_ap_num(number);
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t *number = NULL;
|
||||
wifi_ap_record_t *ap_records = NULL;
|
||||
esp_wifi_remote_scan_get_ap_records(number, ap_records);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ap_record_t *ap_record = NULL;
|
||||
esp_wifi_remote_scan_get_ap_record(ap_record);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_clear_ap_list();
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ap_record_t *ap_info = NULL;
|
||||
esp_wifi_remote_sta_get_ap_info(ap_info);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ps_type_t type = 0;
|
||||
esp_wifi_remote_set_ps(type);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ps_type_t *type = NULL;
|
||||
esp_wifi_remote_get_ps(type);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint8_t protocol_bitmap = 0;
|
||||
esp_wifi_remote_set_protocol(ifx, protocol_bitmap);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint8_t *protocol_bitmap = NULL;
|
||||
esp_wifi_remote_get_protocol(ifx, protocol_bitmap);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
wifi_bandwidth_t bw = 0;
|
||||
esp_wifi_remote_set_bandwidth(ifx, bw);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
wifi_bandwidth_t *bw = NULL;
|
||||
esp_wifi_remote_get_bandwidth(ifx, bw);
|
||||
}
|
||||
|
||||
{
|
||||
uint8_t primary = 0;
|
||||
wifi_second_chan_t second = 0;
|
||||
esp_wifi_remote_set_channel(primary, second);
|
||||
}
|
||||
|
||||
{
|
||||
uint8_t *primary = NULL;
|
||||
wifi_second_chan_t *second = NULL;
|
||||
esp_wifi_remote_get_channel(primary, second);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_country_t *country = NULL;
|
||||
esp_wifi_remote_set_country(country);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_country_t *country = NULL;
|
||||
esp_wifi_remote_get_country(country);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
const uint8_t mac[6] = {};
|
||||
esp_wifi_remote_set_mac(ifx, mac);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint8_t mac[6] = {};
|
||||
esp_wifi_remote_get_mac(ifx, mac);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_promiscuous_cb_t cb = 0;
|
||||
esp_wifi_remote_set_promiscuous_rx_cb(cb);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool en = 0;
|
||||
esp_wifi_remote_set_promiscuous(en);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool *en = NULL;
|
||||
esp_wifi_remote_get_promiscuous(en);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_promiscuous_filter_t *filter = NULL;
|
||||
esp_wifi_remote_set_promiscuous_filter(filter);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_promiscuous_filter_t *filter = NULL;
|
||||
esp_wifi_remote_get_promiscuous_filter(filter);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_promiscuous_filter_t *filter = NULL;
|
||||
esp_wifi_remote_set_promiscuous_ctrl_filter(filter);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_promiscuous_filter_t *filter = NULL;
|
||||
esp_wifi_remote_get_promiscuous_ctrl_filter(filter);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t interface = 0;
|
||||
wifi_config_t *conf = NULL;
|
||||
esp_wifi_remote_set_config(interface, conf);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t interface = 0;
|
||||
wifi_config_t *conf = NULL;
|
||||
esp_wifi_remote_get_config(interface, conf);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_sta_list_t *sta = NULL;
|
||||
esp_wifi_remote_ap_get_sta_list(sta);
|
||||
}
|
||||
|
||||
{
|
||||
const uint8_t mac[6] = {};
|
||||
uint16_t *aid = NULL;
|
||||
esp_wifi_remote_ap_get_sta_aid(mac, aid);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_storage_t storage = 0;
|
||||
esp_wifi_remote_set_storage(storage);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool enable = 0;
|
||||
wifi_vendor_ie_type_t type = 0;
|
||||
wifi_vendor_ie_id_t idx = 0;
|
||||
const void *vnd_ie = NULL;
|
||||
esp_wifi_remote_set_vendor_ie(enable, type, idx, vnd_ie);
|
||||
}
|
||||
|
||||
{
|
||||
esp_vendor_ie_cb_t cb = 0;
|
||||
void *ctx = NULL;
|
||||
esp_wifi_remote_set_vendor_ie_cb(cb, ctx);
|
||||
}
|
||||
|
||||
{
|
||||
int8_t power = 0;
|
||||
esp_wifi_remote_set_max_tx_power(power);
|
||||
}
|
||||
|
||||
{
|
||||
int8_t *power = NULL;
|
||||
esp_wifi_remote_get_max_tx_power(power);
|
||||
}
|
||||
|
||||
{
|
||||
uint32_t mask = 0;
|
||||
esp_wifi_remote_set_event_mask(mask);
|
||||
}
|
||||
|
||||
{
|
||||
uint32_t *mask = NULL;
|
||||
esp_wifi_remote_get_event_mask(mask);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
const void *buffer = NULL;
|
||||
int len = 0;
|
||||
_Bool en_sys_seq = 0;
|
||||
esp_wifi_remote_80211_tx(ifx, buffer, len, en_sys_seq);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_csi_cb_t cb = 0;
|
||||
void *ctx = NULL;
|
||||
esp_wifi_remote_set_csi_rx_cb(cb, ctx);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_csi_config_t *config = NULL;
|
||||
esp_wifi_remote_set_csi_config(config);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool en = 0;
|
||||
esp_wifi_remote_set_csi(en);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_ant_gpio_config_t *config = NULL;
|
||||
esp_wifi_remote_set_ant_gpio(config);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ant_gpio_config_t *config = NULL;
|
||||
esp_wifi_remote_get_ant_gpio(config);
|
||||
}
|
||||
|
||||
{
|
||||
const wifi_ant_config_t *config = NULL;
|
||||
esp_wifi_remote_set_ant(config);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ant_config_t *config = NULL;
|
||||
esp_wifi_remote_get_ant(config);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t interface = 0;
|
||||
esp_wifi_remote_get_tsf_time(interface);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint16_t sec = 0;
|
||||
esp_wifi_remote_set_inactive_time(ifx, sec);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
uint16_t *sec = NULL;
|
||||
esp_wifi_remote_get_inactive_time(ifx, sec);
|
||||
}
|
||||
|
||||
{
|
||||
uint32_t modules = 0;
|
||||
esp_wifi_remote_statis_dump(modules);
|
||||
}
|
||||
|
||||
{
|
||||
int32_t rssi = 0;
|
||||
esp_wifi_remote_set_rssi_threshold(rssi);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ftm_initiator_cfg_t *cfg = NULL;
|
||||
esp_wifi_remote_ftm_initiate_session(cfg);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_ftm_end_session();
|
||||
}
|
||||
|
||||
{
|
||||
int16_t offset_cm = 0;
|
||||
esp_wifi_remote_ftm_resp_set_offset(offset_cm);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_ftm_report_entry_t *report = NULL;
|
||||
uint8_t num_entries = 0;
|
||||
esp_wifi_remote_ftm_get_report(report, num_entries);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
_Bool disable = 0;
|
||||
esp_wifi_remote_config_11b_rate(ifx, disable);
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t wake_interval = 0;
|
||||
esp_wifi_remote_connectionless_module_set_wake_interval(wake_interval);
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_force_wakeup_acquire();
|
||||
}
|
||||
|
||||
{
|
||||
esp_wifi_remote_force_wakeup_release();
|
||||
}
|
||||
|
||||
{
|
||||
const char *country = NULL;
|
||||
_Bool ieee80211d_enabled = 0;
|
||||
esp_wifi_remote_set_country_code(country, ieee80211d_enabled);
|
||||
}
|
||||
|
||||
{
|
||||
char *country = NULL;
|
||||
esp_wifi_remote_get_country_code(country);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
wifi_phy_rate_t rate = 0;
|
||||
esp_wifi_remote_config_80211_tx_rate(ifx, rate);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_interface_t ifx = 0;
|
||||
esp_wifi_remote_disable_pmf_config(ifx);
|
||||
}
|
||||
|
||||
{
|
||||
uint16_t *aid = NULL;
|
||||
esp_wifi_remote_sta_get_aid(aid);
|
||||
}
|
||||
|
||||
{
|
||||
wifi_phy_mode_t *phymode = NULL;
|
||||
esp_wifi_remote_sta_get_negotiated_phymode(phymode);
|
||||
}
|
||||
|
||||
{
|
||||
_Bool enabled = 0;
|
||||
esp_wifi_remote_set_dynamic_cs(enabled);
|
||||
}
|
||||
|
||||
{
|
||||
int *rssi = NULL;
|
||||
esp_wifi_remote_sta_get_rssi(rssi);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
## IDF Component Manager Manifest File
|
||||
dependencies:
|
||||
## Required IDF version
|
||||
idf:
|
||||
version: "5.3"
|
||||
espressif/esp_wifi_remote:
|
||||
version: "*"
|
||||
override_path: ../../..
|
21
components/esp_wifi_remote/test/smoke_test/main/smoke_test.c
Normal file
21
components/esp_wifi_remote/test/smoke_test/main/smoke_test.c
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include "esp_wifi_remote.h"
|
||||
|
||||
void run_all_wifi_apis(void);
|
||||
void run_all_wifi_remote_apis(void);
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
// manual init and deinit
|
||||
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
|
||||
esp_wifi_init(&cfg);
|
||||
esp_wifi_deinit();
|
||||
|
||||
run_all_wifi_apis();
|
||||
run_all_wifi_remote_apis();
|
||||
}
|
@ -0,0 +1 @@
|
||||
CONFIG_SLAVE_IDF_TARGET_ESP32=y
|
@ -0,0 +1 @@
|
||||
CONFIG_SLAVE_IDF_TARGET_ESP32C2=y
|
@ -0,0 +1 @@
|
||||
CONFIG_SLAVE_IDF_TARGET_ESP32C3=y
|
@ -0,0 +1 @@
|
||||
CONFIG_SLAVE_IDF_TARGET_ESP32C6=y
|
@ -0,0 +1 @@
|
||||
CONFIG_SLAVE_IDF_TARGET_ESP32S2=y
|
@ -0,0 +1 @@
|
||||
CONFIG_SLAVE_IDF_TARGET_ESP32S3=y
|
Reference in New Issue
Block a user