You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/esp32/include/esp_phy_init.h
+61-4Lines changed: 61 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,43 @@ typedef enum {
46
46
PHY_RF_CAL_FULL=0x00000002/*!< Do full RF calibration. Produces best results, but also consumes a lot of time and current. Suggested to be used once. */
47
47
} esp_phy_calibration_mode_t;
48
48
49
+
50
+
/**
51
+
* @brief Modules for modem sleep
52
+
*/
53
+
typedefenum{
54
+
MODEM_BLE_MODULE, //!< BLE controller used
55
+
MODEM_CLASSIC_BT_MODULE, //!< Classic BT controller used
56
+
MODEM_WIFI_STATION_MODULE, //!< Wi-Fi Station used
57
+
MODEM_WIFI_SOFTAP_MODULE, //!< Wi-Fi SoftAP used
58
+
MODEM_WIFI_SNIFFER_MODULE, //!< Wi-Fi Sniffer used
Copy file name to clipboardExpand all lines: components/esp32/include/esp_wifi_types.h
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -174,8 +174,9 @@ typedef struct {
174
174
}wifi_fast_scan_threshold_t;
175
175
176
176
typedefenum {
177
-
WIFI_PS_NONE, /**< No power save */
178
-
WIFI_PS_MODEM, /**< Modem power save */
177
+
WIFI_PS_NONE, /**< No power save */
178
+
WIFI_PS_MIN_MODEM, /**< Minimum modem power save. In this mode, station wakes up to receive beacon every DTIM period */
179
+
WIFI_PS_MAX_MODEM, /**< Maximum modem power save. In this mode, station wakes up to receive beacon every listen interval */
179
180
} wifi_ps_type_t;
180
181
181
182
#defineWIFI_PROTOCOL_11B 1
@@ -208,6 +209,7 @@ typedef struct {
208
209
boolbssid_set; /**< whether set MAC address of target AP or not. Generally, station_config.bssid_set needs to be 0; and it needs to be 1 only when users need to check the MAC address of the AP.*/
209
210
uint8_tbssid[6]; /**< MAC address of target AP*/
210
211
uint8_tchannel; /**< channel of target AP. Set to 1~13 to scan starting from the specified channel before connecting to AP. If the channel of AP is unknown, set it to 0.*/
212
+
uint16_tlisten_interval; /**< Listen interval for ESP32 station to receive beacon in maximum power save mode, units: beacon interval */
211
213
wifi_sort_method_tsort_method; /**< sort the connect AP in the list by rssi or security mode */
212
214
wifi_fast_scan_threshold_tthreshold; /**< When scan_method is set to WIFI_FAST_SCAN, only APs which have an auth mode that is more secure than the selected auth mode and a signal stronger than the minimum RSSI will be used. */
0 commit comments