esp-sdr-zephyr
Raw I/Q receive and transmit on the ESP32-S3/C6 Wi-Fi radio, for Zephyr
Loading...
Searching...
No Matches
Dump-engine ring on the ESP32-S31

Gapless 10+10 bit receive at 20 MS/s through the dump engine alone, turned between two TCM groups, with no pads (esp_sdr_dumpring.h, CONFIG_ESP_SDR_DUMPRING). More...

Data Structures

struct  esp_sdr_dumpring_cfg
struct  esp_sdr_dumpring_stats

Typedefs

typedef void(* esp_sdr_dumpring_sink_t) (void *user, const uint32_t *words, size_t n)

Functions

int esp_sdr_dumpring_run (const struct esp_sdr_dumpring_cfg *cfg, struct esp_sdr_dumpring_stats *stats)
 Receive until esp_sdr_dumpring_stop() or an error, on the calling thread.
void esp_sdr_dumpring_stop (void)
 End a run at its next unit; from any thread or the sink.

Detailed Description

Gapless 10+10 bit receive at 20 MS/s through the dump engine alone, turned between two TCM groups, with no pads (esp_sdr_dumpring.h, CONFIG_ESP_SDR_DUMPRING).

Guide: Gapless receive.

Typedef Documentation

◆ esp_sdr_dumpring_sink_t

typedef void(* esp_sdr_dumpring_sink_t) (void *user, const uint32_t *words, size_t n)

Receives the next words of the run, in order, on the run's thread with interrupts on. The pointer is good for the call only. The engine keeps writing meanwhile: a sink slower than the capture rate ends the run with -ENOBUFS.

Function Documentation

◆ esp_sdr_dumpring_run()

int esp_sdr_dumpring_run ( const struct esp_sdr_dumpring_cfg * cfg,
struct esp_sdr_dumpring_stats * stats )

Receive until esp_sdr_dumpring_stop() or an error, on the calling thread.

Holds the radio meanwhile, at the frequency and gain set before. With two cores, call it from a thread pinned to CPU 1: the turns park the other one.

Parameters
cfgSettings.
statsFilled in at the end; may be NULL.
Returns
0 after a stop, -EINVAL for a bad setting, -EAGAIN before esp_sdr_init() and a tuning, -EBUSY while another run, a replay or a capture holds the engine, -ENOBUFS when the sink fell behind, -EIO when a unit did not start where the last one ended, -ETIMEDOUT when the engine stopped writing.