One I/Q capture per packet per channel of a uniform grid, from the ring on the other CPU, ESP32-S3 (esp_sdr_chancap.h, CONFIG_ESP_SDR_CHANCAP).
More...
One I/Q capture per packet per channel of a uniform grid, from the ring on the other CPU, ESP32-S3 (esp_sdr_chancap.h, CONFIG_ESP_SDR_CHANCAP).
Guide: Channelizer.
◆ ESP_SDR_CHANCAP_CHANNELS_MAX
| #define ESP_SDR_CHANCAP_CHANNELS_MAX 16U |
Channels of one instance at most.
◆ ESP_SDR_CHANCAP_FULL_SCALE
| #define ESP_SDR_CHANCAP_FULL_SCALE ESP_SDR_RING_RAW_FULL_SCALE |
Output full scale: a full scale input tone on a channel's centre gives this amplitude.
◆ esp_sdr_chancap_cb_t
| typedef void(* esp_sdr_chancap_cb_t) (void *user, const struct esp_sdr_chancap *cap) |
Called on the callback thread for every finished capture; the consumer releases it.
◆ esp_sdr_chancap_active()
| bool esp_sdr_chancap_active |
( |
void | | ) |
|
- Returns
- Whether an instance is running.
◆ esp_sdr_chancap_bench()
Time the channelizer on noise-like data on the calling CPU, not while a run is active.
- Parameters
-
| cfg | The grid and rate to time; the gates are ignored. |
| pairs | Input pairs to process (a multiple of 512). |
| res | The timings. |
- Return values
-
| 0 | on success. |
| -EBUSY | while a run is active. |
| -EINVAL | for a pair count that is not a multiple of 512, or a grid esp_sdr_chancap_start() refuses. |
| -ERANGE | for an LO below the band. |
◆ esp_sdr_chancap_get_plan()
Copy the running or last run's plan into plan.
◆ esp_sdr_chancap_start()
Tune to the grid and start capturing.
Picks the LO so that the LO leakage falls between channels where it can, starts the ring on CPU 1 and the channelizer and callback threads on the other CPU.
- Return values
-
| 0 | on success. |
| -EINVAL | for a grid that does not fit the band, an unsupported rate, or no callback. |
| -EBUSY | if an instance is running. |
| -EAGAIN | if esp_sdr_init() has not run. |
| -ERANGE | if the LO cannot be tuned. |