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

Diagnostics of the esp_sdr IEEE 802.15.4 radio driver (device "esp_sdr_154"). More...

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  ieee154_esp_sdr_stats
struct  ieee154_esp_sdr_measurement
struct  ieee154_esp_sdr_bench

Typedefs

typedef void(* ieee154_esp_sdr_rx_cb_t) (struct net_pkt *pkt)
typedef void(* ieee154_esp_sdr_dump_cb_t) (const int16_t *iq, size_t n, void *user)

Enumerations

enum  ieee154_esp_sdr_event

Functions

void ieee154_esp_sdr_set_rx_cb (ieee154_esp_sdr_rx_cb_t cb)
void ieee154_esp_sdr_set_invert (bool rx_inv, bool tx_inv)
int ieee154_esp_sdr_set_lo_above (bool above)
int ieee154_esp_sdr_measure (struct ieee154_esp_sdr_measurement *m)
int ieee154_esp_sdr_set_rx_gain (int index)
int ieee154_esp_sdr_dump (ieee154_esp_sdr_dump_cb_t out, void *user)
size_t ieee154_esp_sdr_get_trail (uint32_t *out, size_t max)
size_t ieee154_esp_sdr_get_stall (uint32_t *pc, uint32_t *ls, size_t max)
void ieee154_esp_sdr_get_stats (struct ieee154_esp_sdr_stats *stats)
int ieee154_esp_sdr_bench (struct ieee154_esp_sdr_bench *b)
 Time the ACK waveform build and the front end switches (radio taken meanwhile).
int ieee154_esp_sdr_set_ack_timing (uint32_t delay_us, uint32_t limit_us)
 ACK timing (CONFIG_ESP_SDR_IEEE802154_AUTO_ACK): first sample delay_us after the frame's end (192 us by the standard), none after limit_us.
int ieee154_esp_sdr_ack_test (uint8_t seq)
 Diagnostic: send one ACK with sequence number seq now (receive running).
void ieee154_esp_sdr_clear_stats (void)
 Zero the driver's counters.
int ieee154_esp_sdr_set_ring_unit (uint32_t pairs)
 Set the ring's unit length (ring receive), for latency measurements.
void * ieee154_esp_sdr_high_ram (size_t size)

Detailed Description

Diagnostics of the esp_sdr IEEE 802.15.4 radio driver (device "esp_sdr_154").