no-OS
Loading...
Searching...
No Matches
ad9361_band_setting Struct Reference

#include <ad9361_ext_band_ctrl.h>

Collaboration diagram for ad9361_band_setting:
[legend]

Public Attributes

const char * name
 
uint64_t freq_min
 
uint64_t freq_max
 
uint32_t * gpio_values
 
uint32_t ngpios
 
uint32_t rf_rx_input_sel
 
uint32_t rf_tx_output_sel
 
uint32_t delay_us
 
struct ad9361_band_settingpre_seq
 
uint32_t pre_seq_len
 
struct ad9361_band_settingpost_seq
 
uint32_t post_seq_len
 

Detailed Description

struct ad9361_band_setting - Describes a single frequency-band configuration.

When the LO frequency falls within [freq_min, freq_max), the driver will:

  1. Execute any pre_seq[] steps in order.
  2. Drive GPIOs according to gpio_values[].
  3. Switch the RX/TX port if rf_rx_input_sel / rf_tx_output_sel differ from the current selection.
  4. Execute any post_seq[] steps in order.

Member Data Documentation

◆ delay_us

uint32_t ad9361_band_setting::delay_us

Microsecond delay applied after this step when used inside a pre_seq[] or post_seq[] sequence. 0 = no delay.

◆ freq_max

uint64_t ad9361_band_setting::freq_max

Exclusive upper bound of the frequency range (Hz).

◆ freq_min

uint64_t ad9361_band_setting::freq_min

Inclusive lower bound of the frequency range (Hz).

◆ gpio_values

uint32_t* ad9361_band_setting::gpio_values

GPIO operations for each pin, indexed by GPIO index in the controller's gpios[] array. Must have ngpios entries when non-NULL. Use AD9361_EXT_BAND_CTL_OP_NOP for pins that should not change.

◆ name

const char* ad9361_band_setting::name

Human-readable identifier (optional, used for debug messages).

◆ ngpios

uint32_t ad9361_band_setting::ngpios

Number of valid entries in gpio_values[].

◆ post_seq

struct ad9361_band_setting* ad9361_band_setting::post_seq

Optional sequenced steps applied after the main setting (may be NULL).

◆ post_seq_len

uint32_t ad9361_band_setting::post_seq_len

◆ pre_seq

struct ad9361_band_setting* ad9361_band_setting::pre_seq

Optional sequenced steps applied before the main setting (may be NULL).

◆ pre_seq_len

uint32_t ad9361_band_setting::pre_seq_len

◆ rf_rx_input_sel

uint32_t ad9361_band_setting::rf_rx_input_sel

RX RF input port to select. Set to AD9361_EXT_BAND_NO_PORT_SEL to leave port unchanged.

◆ rf_tx_output_sel

uint32_t ad9361_band_setting::rf_tx_output_sel

TX RF output port to select. Set to AD9361_EXT_BAND_NO_PORT_SEL to leave port unchanged.


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