1
6
11
12
13
14
15
16
17
18
19
24
28
35
36
45
46
47
55
56
57
60
61
62
63
64
/* ... */
/* ... */
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
ANT_TOTAL_TWO = 2,
ANT_TOTAL_THREE,
ANT_TOTAL_MAX
}{ ... } ant_mun_t;
/* ... */
typedef struct {
ant_mun_t ant_num;
uint8_t ant_zero;
uint8_t ant_one;
uint8_t ant_two;
int16_t ant_switch;
}{ ... } wifi_antenna_auto_switch_config_t;
/* ... */
esp_err_t esp_wifi_set_ant_soft_switch(const wifi_antenna_auto_switch_config_t *config);
/* ... */
esp_err_t esp_wifi_get_ant_soft_switch_config(wifi_antenna_auto_switch_config_t *config);
/* ... */
void esp_deinit_ant_soft_switch(void);
#ifdef __cplusplus
}{...}
#endif