|
libpg2sdr
Host library for the ProStick Gen 2 SDR
|
Gain table entry. More...
#include <pg2sdr.h>
Data Fields | |
| double | gain_db |
| unsigned | lna_gain: 4 |
| unsigned | mix_gain: 4 |
| unsigned | vga_gain: 4 |
Gain table entry.
Element type for the total gain tables used in pg2sdr_get_gain_tables() and pg2sdr_set_gain_tables(). Each entry maps a total gain (in dB) to gain step settings for each of the three gain stages.
| double pg2sdr_gain_table_t::gain_db |
Total gain, dB
| unsigned pg2sdr_gain_table_t::lna_gain |
LNA gain step, 0-15 (register 5 bits 3:0)
| unsigned pg2sdr_gain_table_t::mix_gain |
MIX gain step, 0-15 (register 7 bits 3:0)
| unsigned pg2sdr_gain_table_t::vga_gain |
VGA gain step, 0-15 (register 12 bits 3:0)