1
6
7
8
9
10
11
12
13
14
15
16
20
21
24
29
30
33
39
40
43
47
48
51
54
55
58
65
66
75
76
77
86
87
88
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/* ... */
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/* ... */
/* ... */
typedef enum {
ESP_PHY_ANT_ANT0,
ESP_PHY_ANT_ANT1,
ESP_PHY_ANT_MAX,
}{ ... } esp_phy_ant_t;
/* ... */
typedef enum {
ESP_PHY_ANT_MODE_ANT0,
ESP_PHY_ANT_MODE_ANT1,
ESP_PHY_ANT_MODE_AUTO,
ESP_PHY_ANT_MODE_MAX,
}{ ... } esp_phy_ant_mode_t;
/* ... */
typedef struct {
uint8_t gpio_select: 1,
gpio_num: 7;
}{ ... } esp_phy_ant_gpio_t;
/* ... */
typedef struct {
esp_phy_ant_gpio_t gpio_cfg[4];
}{ ... } esp_phy_ant_gpio_config_t;
/* ... */
typedef struct {
esp_phy_ant_mode_t rx_ant_mode;
esp_phy_ant_t rx_ant_default;
esp_phy_ant_mode_t tx_ant_mode;
uint8_t enabled_ant0: 4,
enabled_ant1: 4;
}{ ... } esp_phy_ant_config_t;
/* ... */
esp_err_t esp_phy_set_ant_gpio(esp_phy_ant_gpio_config_t *config);
/* ... */
esp_err_t esp_phy_get_ant_gpio(esp_phy_ant_gpio_config_t *config);
/* ... */
esp_err_t esp_phy_set_ant(esp_phy_ant_config_t *config);
/* ... */
esp_err_t esp_phy_get_ant(esp_phy_ant_config_t *config);
#ifdef __cplusplus
}{...}
#endif