esp-sdr-zephyr
Raw I/Q receive and transmit on the ESP32-S3/C6 Wi-Fi radio, for Zephyr
Loading...
Searching...
No Matches
esp_sdr_gapless_cfg Struct Reference

#include <esp_sdr/esp_sdr_gapless.h>

Data Fields

uint16_t ratio_x16
uint8_t pre
uint32_t level
uint32_t budget_bps
uint8_t headroom_lo
bool gain_servo
uint8_t gain_min
bool wide
bool half_rate

Detailed Description

What to keep.

Field Documentation

◆ budget_bps

uint32_t esp_sdr_gapless_cfg::budget_bps

Payload bytes per second the sink can send: the threshold servo keeps what is kept between (100 - headroom_hi) and (100 - headroom_lo) percent of it. 0: no servo.

◆ gain_min

uint8_t esp_sdr_gapless_cfg::gain_min

Gain index range of the servo (0, 0: the PHY's whole range).

◆ gain_servo

bool esp_sdr_gapless_cfg::gain_servo

Step the receive gain to keep the peaks in the headroom band.

◆ half_rate

bool esp_sdr_gapless_cfg::half_rate

The dump engine at 40 MS/s (its own rate bit): every index, count and length of the run is on that axis (a ring lap 410 us, a unit 307 us), the CPU has twice the cycles for each sample (the per-unit cap doubles) and staging holds twice as long.

◆ headroom_lo

uint8_t esp_sdr_gapless_cfg::headroom_lo

Headroom band in percent, for both servos (0, 0: the gain servo 5 and 10, the threshold servo from CONFIG_ESP_SDR_GAPLESS_THR_LINK_PCT, by default the same).

◆ level

uint32_t esp_sdr_gapless_cfg::level

Fixed threshold, window power per sample in raw units squared (0: from the baseline).

◆ pre

uint8_t esp_sdr_gapless_cfg::pre

Windows kept before and after a window past the threshold (up to 4).

◆ ratio_x16

uint16_t esp_sdr_gapless_cfg::ratio_x16

Lowest threshold over the quiet baseline in sixteenths (0: 64, 6 dB), also what counts as quiet for the baseline; ignored with level.

◆ wide

bool esp_sdr_gapless_cfg::wide

Width sorting: chunks of kept samples that carry a signal wider than some 10 MHz go to the sink as width records (ESP_SDR_GAPLESS_SEG_WIDE) instead of their samples. The sink's reserve() must then grant a width record's ESP_SDR_GAPLESS_WIDE_PAIRS pairs whole, as a segment of its own, or none. Off with half_rate.


The documentation for this struct was generated from the following file: