Expand description
PHY initialization handling for chips with a radio.
§Usage
§Enabling and Disabling the PHY
The PhyController trait is implemented for all modem peripherals (WIFI, BT and
IEEE802154), that are present for a particular chip. See its documentation for further usage
instructions.
§Backing Up and Restoring PHY Calibration Data
If the PHY has already been calibrated, you can use backup_phy_calibration_data to persist calibration data elsewhere (e.g. in flash). Using set_phy_calibration_data you can restore previously persisted calibration data.
§Config Options
| Option | Stability | Default value | Allowed values |
|---|---|---|---|
ESP_PHY_CONFIG_PHY_ENABLE_USB Keeps USB running when using WiFi. This allows debugging and log messages via USB Serial JTAG. Turn off for best WiFi performance. | ⚠️ Unstable | true | |
ESP_PHY_CONFIG_PHY_SKIP_CALIBRATION_AFTER_DEEP_SLEEP Use PHY_RF_CAL_NONE after deep sleep. | ⚠️ Unstable | false | |
ESP_PHY_CONFIG_PHY_FULL_CALIBRATION Use PHY_RF_CAL_FULL instead of PHY_RF_CAL_PARTIAL. | ⚠️ Unstable | true |
§Feature Flags
§Logging Feature Flags
defmt— Enable logging output usingdefmtand implementdefmt::Formaton certain types.log-04— Enable logging output using version 0.4 of thelogcrate.
§Chip selection
One of the following features must be enabled to select the target chip:
esp32c2esp32c3esp32c6esp32h2esp32esp32s2esp32s3
Structs§
- Calibration
Data Already SetError - Calibration data was already set.
- NoCalibration
Data Error - No calibration data is available.
- PhyInit
Guard - Prevents the PHY from being deinitialized.
Constants§
- PHY_
CALIBRATION_ DATA_ LENGTH - Length of the PHY calibration data.
Traits§
- PhyController
- Common functionality for controlling PHY initialization.
Functions§
- backup_
phy_ calibration_ data - Backup the PHY calibration data to the provided slice.
- set_
phy_ calibration_ data - Load previously backed up PHY calibration data.
Type Aliases§
- PhyCalibration
Data - Type alias for opaque calibration data.