基本涵盖了ad9361_api.c里面的全部函数,写在这里备份。
Available commands:
help? - Displays all available commands.
register? - Gets the specified register value.
tx_lo_freq? - Gets current TX LO frequency [MHz].
tx_lo_freq= - Sets the TX LO frequency [MHz].
tx_samp_freq? - Gets current TX sampling frequency [Hz].
tx_samp_freq= - Sets the TX sampling frequency [Hz].
tx_rf_bandwidth? - Gets current TX RF bandwidth [Hz].
tx_rf_bandwidth= - Sets the TX RF bandwidth [Hz].
tx1_attenuation? - Gets current TX1 attenuation [mdB].
tx1_attenuation= - Sets the TX1 attenuation [mdB].
tx2_attenuation? - Gets current TX2 attenuation [mdB].
tx2_attenuation= - Sets the TX2 attenuation [mdB].
tx_fir_en? - Gets current TX FIR state.
tx_fir_en= - Sets the TX FIR state.
rx_lo_freq? - Gets current RX LO frequency [MHz].
rx_lo_freq= - Sets the RX LO frequency [MHz].
rx_samp_freq? - Gets current RX sampling frequency [Hz].
rx_samp_freq= - Sets the RX sampling frequency [Hz].
rx_rf_bandwidth? - Gets current RX RF bandwidth [Hz].
rx_rf_bandwidth= - Sets the RX RF bandwidth [Hz].
rx1_gc_mode? - Gets current RX1 GC mode.
rx1_gc_mode= - Sets the RX1 GC mode.
rx2_gc_mode? - Gets current RX2 GC mode.
rx2_gc_mode= - Sets the RX2 GC mode.
rx1_rf_gain? - Gets current RX1 RF gain.
rx1_rf_gain= - Sets the RX1 RF gain.
rx2_rf_gain? - Gets current RX2 RF gain.
rx2_rf_gain= - Sets the RX2 RF gain.
rx_fir_en? - Gets current RX FIR state.
rx_fir_en= - Sets the RX FIR state.
dds_tx1_tone1_freq? - Gets current DDS TX1 Tone 1 frequency [Hz].
dds_tx1_tone1_freq= - Sets the DDS TX1 Tone 1 frequency [Hz].
dds_tx1_tone2_freq? - Gets current DDS TX1 Tone 2 frequency [Hz].
dds_tx1_tone2_freq= - Sets the DDS TX1 Tone 2 frequency [Hz].
dds_tx1_tone1_phase? - Gets current DDS TX1 Tone 1 phase [degrees].
dds_tx1_tone1_phase= - Sets the DDS TX1 Tone 1 phase [degrees].
dds_tx1_tone2_phase? - Gets current DDS TX1 Tone 2 phase [degrees].
dds_tx1_tone2_phase= - Sets the DDS TX1 Tone 2 phase [degrees].
dds_tx1_tone1_scale? - Gets current DDS TX1 Tone 1 scale.
dds_tx1_tone1_scale= - Sets the DDS TX1 Tone 1 scale.
dds_tx1_tone2_scale? - Gets current DDS TX1 Tone 2 scale.
dds_tx1_tone2_scale= - Sets the DDS TX1 Tone 2 scale.
dds_tx2_tone1_freq? - Gets current DDS TX2 Tone 1 frequency [Hz].
dds_tx2_tone1_freq= - Sets the DDS TX2 Tone 1 frequency [Hz].
dds_tx2_tone2_freq? - Gets current DDS TX2 Tone 2 frequency [Hz].
dds_tx2_tone2_freq= - Sets the DDS TX2 Tone 2 frequency [Hz].
dds_tx2_tone1_phase? - Gets current DDS TX2 Tone 1 phase [degrees].
dds_tx2_tone1_phase= - Sets the DDS TX2 Tone 1 phase [degrees].
dds_tx2_tone2_phase? - Gets current DDS TX2 Tone 2 phase [degrees].
dds_tx2_tone2_phase= - Sets the DDS TX2 Tone 2 phase [degrees].
dds_tx2_tone1_scale? - Gets current DDS TX2 Tone 1 scale.
dds_tx2_tone1_scale= - Sets the DDS TX2 Tone 1 scale.
dds_tx2_tone2_scale? - Gets current DDS TX2 Tone 2 scale.
dds_tx2_tone2_scale= - Sets the DDS TX2 Tone 2 scale.
这些命令里面我们去掉了带有tone这些用以单音测试的,以及有set的去掉对应的get的。剩余以下命令:
help? - Displays all available commands.
register? - Gets the specified register value.
tx_lo_freq= - Sets the TX LO frequency [MHz].
tx_samp_freq= - Sets the TX sampling frequency [Hz].
tx_rf_bandwidth= - Sets the TX RF bandwidth [Hz].
tx1_attenuation= - Sets the TX1 attenuation [mdB].
tx2_attenuation= - Sets the TX2 attenuation [mdB].
tx_fir_en= - Sets the TX FIR state.
rx_lo_freq= - Sets the RX LO frequency [MHz].
rx_samp_freq= - Sets the RX sampling frequency [Hz].
rx_rf_bandwidth= - Sets the RX RF bandwidth [Hz].
rx1_gc_mode= - Sets the RX1 GC mode.
rx2_gc_mode= - Sets the RX2 GC mode.
rx1_rf_gain= - Sets the RX1 RF gain.
rx2_rf_gain= - Sets the RX2 RF gain.
rx_fir_en= - Sets the RX FIR state.
这就非常少了的命令了,可以进行设置试验。
tx_sample_rate和rx_sample_rate这两个在这里是必须一样的,设置一个另外一个跟着对应变化。
整理了一下,更清晰了:
help? - Displays all available commands.
tx_lo_freq= - Sets the TX LO frequency [MHz].
rx_lo_freq= - Sets the RX LO frequency [MHz].
tx_samp_freq= - Sets the TX sampling frequency [Hz].
rx_samp_freq= - Sets the RX sampling frequency [Hz].
tx_rf_bandwidth= - Sets the TX RF bandwidth [Hz].
rx_rf_bandwidth= - Sets the RX RF bandwidth [Hz].
tx_fir_en= - Sets the TX FIR state.
rx_fir_en= - Sets the RX FIR state.
rx1_gc_mode= - Sets the RX1 GC mode.
rx2_gc_mode= - Sets the RX2 GC mode.
rx1_rf_gain= - Sets the RX1 RF gain.
rx2_rf_gain= - Sets the RX2 RF gain.
tx1_attenuation= - Sets the TX1 attenuation [mdB].
tx2_attenuation= - Sets the TX2 attenuation [mdB].