diff --git a/filters/ad9084/cfir_hp_rx.txt b/filters/ad9084/cfir_hp_rx.txt new file mode 100644 index 00000000..548ba6a9 --- /dev/null +++ b/filters/ad9084/cfir_hp_rx.txt @@ -0,0 +1,24 @@ +# coeffs_16_hp0.txt +dest: rx cfir_all profile_1 datapath_all +gain: 0 +complex_scalar: 32767 0 +enable: 1 profile_1 +selection_mode: direct_regmap +coeff_transfer: 0 +bypass: 0 +64515 64515 +65535 65535 +0 0 +0 0 +3598 3598 +65535 65535 +45971 45971 +32767 32767 +45971 45971 +65535 65535 +3598 3598 +0 0 +0 0 +65535 65535 +64515 64515 +0 0 diff --git a/filters/ad9084/cfir_lp_rx.txt b/filters/ad9084/cfir_lp_rx.txt new file mode 100644 index 00000000..ed4d8910 --- /dev/null +++ b/filters/ad9084/cfir_lp_rx.txt @@ -0,0 +1,25 @@ +# pfilt_coeffs_16_lp0.txt +dest: rx cfir_all profile_2 datapath_all +gain: 0 +complex_scalar: 32767 0 +enable: 1 profile_2 +selection_mode: direct_regmap +coeff_transfer: 0 +bypass: 0 +242 242 +541 541 +151 151 +64329 64329 +63642 63642 +650 650 +6461 6461 +11575 11575 +11575 11575 +6461 6461 +650 650 +63642 63642 +64329 64329 +151 151 +541 541 +242 242 + diff --git a/filters/ad9084/cfir_lp_tx.txt b/filters/ad9084/cfir_lp_tx.txt new file mode 100644 index 00000000..8afa9702 --- /dev/null +++ b/filters/ad9084/cfir_lp_tx.txt @@ -0,0 +1,25 @@ +# coeffs_16_lp0.txt +dest: tx cfir_all profile_all datapath_all +gain: 0 +complex_scalar: 32767 0 +enable: 1 profile_2 +selection_mode: direct_regmap +coeff_transfer: 0 +bypass: 0 +242 242 +541 541 +151 151 +64329 64329 +63642 63642 +650 650 +6461 6461 +11575 11575 +11575 11575 +6461 6461 +650 650 +63642 63642 +64329 64329 +151 151 +541 541 +242 242 + diff --git a/filters/ad9084/pfilt_hp_rx.txt b/filters/ad9084/pfilt_hp_rx.txt new file mode 100644 index 00000000..b0984378 --- /dev/null +++ b/filters/ad9084/pfilt_hp_rx.txt @@ -0,0 +1,43 @@ +# pfilt_coeffs_16_lp0.txt +mode: real_n2 real_n2 +gain: 6 6 6 6 +scalar_gain: 63 63 63 63 +dest: rx pfilt_all bank_0 +hc_delay: 0 +mode_switch_en: 0 +mode_switch_add_en: 0 +real_data_mode_en: 1 +quad_mode_en: 0 +0x00F2 +0xFDE3 +0x0096 +0x04B8 +0xF89A +0xFD75 +0x193D +0xD2CA +0x2D36 +0xE6C3 +0x028B +0x0766 +0xFB48 +0xFF6A +0x021D +0xFF0E +0x00F2 +0xFDE3 +0x0096 +0x04B8 +0xF89A +0xFD75 +0x193D +0xD2CA +0x2D36 +0xE6C3 +0x028B +0x0766 +0xFB48 +0xFF6A +0x021D +0xFF0E + diff --git a/filters/ad9084/pfilt_off_rx.txt b/filters/ad9084/pfilt_off_rx.txt new file mode 100644 index 00000000..b4eb350d --- /dev/null +++ b/filters/ad9084/pfilt_off_rx.txt @@ -0,0 +1,40 @@ +# pfilt_coeffs_16_lp0.txt +mode: disabled disabled +gain: 0 0 0 0 +dest: rx pfilt_a0 bank_0 +hc_delay: 0 +mode_switch_en: 0 +mode_switch_add_en: 0 +real_data_mode_en: 0 +quad_mode_en: 0 +0x0027 +0xFE01 +0xFE58 +0x0538 +0x0063 +0xF23E +0x0A98 +0x3FC3 +0x3FC3 +0x0A98 +0xF23E +0x0063 +0x0538 +0xFE58 +0xFE01 +0x0027 +0x0027 +0xFE01 +0xFE58 +0x0538 +0x0063 +0xF23E +0x0A98 +0x3FC3 +0x3FC3 +0x0A98 +0xF23E +0x0063 +0x0538 +0xFE58 +0xFE01 diff --git a/glade/ad9084.glade b/glade/ad9084.glade index c27e147d..a1145010 100644 --- a/glade/ad9084.glade +++ b/glade/ad9084.glade @@ -474,48 +474,6 @@ 1 10 - - -180 - 180 - 1 - 10 - - - -180 - 180 - 1 - 10 - - - -180 - 180 - 1 - 10 - - - -180 - 180 - 1 - 10 - - - -180 - 180 - 1 - 10 - - - -180 - 180 - 1 - 10 - - - -180 - 180 - 1 - 10 - True True @@ -531,41 +489,148 @@ False 3 - + True False - start - start - 5 - top + vertical - - gtk-refresh + True - True - True + False start start - True - bottom + 5 + top + + + gtk-refresh + True + True + True + start + start + True + bottom + + + False + False + 5 + 0 + + + + + True + False + Device Name + True + + + True + True + 1 + + False - False - 5 + True 0 - + True False - Device Name - True + 5 + 5 + 5 + 5 + 0 + in + + + True + False + + + True + False + 12 + + + + True + False + 5 + 5 + 5 + 5 + True + + + True + False + PFIR Config: + + + 0 + 0 + + + + + True + False + + + + 1 + 0 + + + + + True + False + CFIR Config: + + + 0 + 1 + + + + + True + False + + + + 1 + 1 + + + + + + + + + + + True + False + <b>Global</b> + True + + - True - True + False + False + 5 1 @@ -639,6 +704,12 @@ 4 2 5 + + + + + + True @@ -722,32 +793,6 @@ - - - True - False - PFIR Config: - - - 3 - 4 - GTK_FILL - GTK_FILL - - - - - True - False - - - - 1 - 2 - 3 - 4 - - @@ -869,109 +914,218 @@ 3 3 - + True False - 2 - 3 - 5 - 5 + vertical - + True False - NCO Frequency - - - GTK_FILL - GTK_FILL - - - - - True - True - - False - False - nco_adjust_1 - 6 + 0 + none + + + True + False + 12 + + + True + False + 5 + 2 + + + RX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + + + + + + + + True + False + + - 1 - 2 - GTK_FILL - + False + True + 0 - + True False - Main NCO Frequency - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - - False - False - main_rx_nco_adjust_1 - 6 - - - 1 - 2 - 1 - 2 - GTK_FILL - - - - - - True - True - - 0,000000 - False - False - nco_phase_adjust1 - 3 - - - 2 - 3 - GTK_FILL - - - - - - True - True - - 0,000000 - False - False - main_rx_nco_phase_adjust1 - 3 + 2 + 3 + 5 + 5 + + + True + True + + 0,000000 + False + False + main_rx_nco_phase_adjust1 + 3 + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + True + True + + 0,000000 + False + False + nco_phase_adjust1 + 3 + + + 2 + 3 + GTK_FILL + + + + + + True + True + + False + False + main_rx_nco_adjust_1 + 6 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + True + False + Main NCO Frequency + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + + False + False + nco_adjust_1 + 6 + + + 1 + 2 + GTK_FILL + + + + + + True + False + NCO Frequency + + + GTK_FILL + GTK_FILL + + - 2 - 3 - 1 - 2 - GTK_FILL - + False + True + 1 @@ -1005,112 +1159,223 @@ True False 3 + 3 + 3 - + True False - 2 - 3 - 5 - 5 + vertical - + True False - NCO Frequency - - - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - nco_adjust_2 - 6 + 0 + none + + + True + False + 12 + + + True + False + 5 + 2 + + + RX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + + + + + + + + True + False + + - 1 - 2 - GTK_FILL - + False + True + 0 - + True False - Main NCO Frequency - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - main_rx_nco_adjust_2 - 6 - - - 1 - 2 - 1 - 2 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - nco_phase_adjust2 - 3 - - - 2 - 3 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - main_rx_nco_phase_adjust2 - 3 + 2 + 3 + 5 + 5 + + + True + True + + 0,000 + False + False + main_rx_nco_phase_adjust1 + 3 + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + True + True + + 0,000 + False + False + nco_phase_adjust1 + 3 + + + 2 + 3 + GTK_FILL + + + + + + True + True + + 0,000000 + False + False + main_rx_nco_adjust_1 + 6 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + True + False + Main NCO Frequency + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + + 0,000000 + False + False + nco_adjust_1 + 6 + + + 1 + 2 + GTK_FILL + + + + + + True + False + NCO Frequency + + + GTK_FILL + GTK_FILL + + - 2 - 3 - 1 - 2 - GTK_FILL - + False + True + 1 @@ -1140,116 +1405,227 @@ 0 in - + True False 3 + 3 + 3 - + True False - 2 - 3 - 5 - 5 + vertical - + True False - NCO Frequency - - - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - nco_adjust_3 - 6 + 0 + none + + + True + False + 12 + + + True + False + 5 + 2 + + + RX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + + + + + + + + True + False + + - 1 - 2 - GTK_FILL - + False + True + 0 - + True False - Main NCO Frequency - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - main_rx_nco_adjust_3 - 6 - - - 1 - 2 - 1 - 2 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - nco_phase_adjust3 - 3 - - - 2 - 3 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - main_rx_nco_phase_adjust3 - 3 + 2 + 3 + 5 + 5 + + + True + True + + 0,000 + False + False + main_rx_nco_phase_adjust1 + 3 + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + True + True + + 0,000 + False + False + nco_phase_adjust1 + 3 + + + 2 + 3 + GTK_FILL + + + + + + True + True + + 0,000000 + False + False + main_rx_nco_adjust_1 + 6 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + True + False + Main NCO Frequency + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + + 0,000000 + False + False + nco_adjust_1 + 6 + + + 1 + 2 + GTK_FILL + + + + + + True + False + NCO Frequency + + + GTK_FILL + GTK_FILL + + - 2 - 3 - 1 - 2 - GTK_FILL - + False + True + 1 @@ -1279,116 +1655,227 @@ 0 in - + True False 3 + 3 + 3 - + True False - 2 - 3 - 5 - 5 + vertical - + True False - NCO Frequency + 0 + none + + + True + False + 12 + + + True + False + 5 + 2 + + + RX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + + + + + + + + True + False + + - GTK_FILL - GTK_FILL + False + True + 0 - - True - True - - 0,000000 - False - False - nco_adjust_4 - 6 - - - 1 - 2 - GTK_FILL - - - - - + True False - Main NCO Frequency - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - main_rx_nco_adjust_4 - 6 - - - 1 - 2 - 1 - 2 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - nco_phase_adjust4 - 3 - - - 2 - 3 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - main_rx_nco_phase_adjust4 - 3 + 2 + 3 + 5 + 5 + + + True + True + + 0,000 + False + False + main_rx_nco_phase_adjust1 + 3 + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + True + True + + 0,000 + False + False + nco_phase_adjust1 + 3 + + + 2 + 3 + GTK_FILL + + + + + + True + True + + 0,000000 + False + False + main_rx_nco_adjust_1 + 6 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + True + False + Main NCO Frequency + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + + 0,000000 + False + False + nco_adjust_1 + 6 + + + 1 + 2 + GTK_FILL + + + + + + True + False + NCO Frequency + + + GTK_FILL + GTK_FILL + + - 2 - 3 - 1 - 2 - GTK_FILL - + False + True + 1 @@ -1422,112 +1909,223 @@ True False 3 + 3 + 3 - + True False - 2 - 3 - 5 - 5 + vertical - + True False - NCO Frequency - - - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - nco_adjust_5 - 6 + 0 + none + + + True + False + 12 + + + True + False + 5 + 2 + + + RX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + + + + + + + + True + False + + - 1 - 2 - GTK_FILL - + False + True + 0 - + True False - Main NCO Frequency + 2 + 3 + 5 + 5 + + + True + True + + 0,000 + False + False + main_rx_nco_phase_adjust1 + 3 + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + True + True + + 0,000 + False + False + nco_phase_adjust1 + 3 + + + 2 + 3 + GTK_FILL + + + + + + True + True + + 0,000000 + False + False + main_rx_nco_adjust_1 + 6 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + True + False + Main NCO Frequency + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + + 0,000000 + False + False + nco_adjust_1 + 6 + + + 1 + 2 + GTK_FILL + + + + + + True + False + NCO Frequency + + + GTK_FILL + GTK_FILL + + - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - main_rx_nco_adjust_5 - 6 - - - 1 - 2 - 1 - 2 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - nco_phase_adjust5 - 3 - - - 2 - 3 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - main_rx_nco_phase_adjust5 - 3 - - - 2 - 3 - 1 - 2 - GTK_FILL - + False + True + 1 @@ -1557,116 +2155,227 @@ 0 in - + True False - 3 + 3 + 3 + 3 - + True False - 2 - 3 - 5 - 5 + vertical - + True False - NCO Frequency - - - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - nco_adjust_6 - 6 + 0 + none + + + True + False + 12 + + + True + False + 5 + 2 + + + RX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + + + + + + + + True + False + + - 1 - 2 - GTK_FILL - + False + True + 0 - + True False - Main NCO Frequency - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - main_rx_nco_adjust_6 - 6 - - - 1 - 2 - 1 - 2 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - nco_phase_adjust6 - 3 - - - 2 - 3 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - main_rx_nco_phase_adjust6 - 3 + 2 + 3 + 5 + 5 + + + True + True + + 0,000 + False + False + main_rx_nco_phase_adjust1 + 3 + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + True + True + + 0,000 + False + False + nco_phase_adjust1 + 3 + + + 2 + 3 + GTK_FILL + + + + + + True + True + + 0,000000 + False + False + main_rx_nco_adjust_1 + 6 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + True + False + Main NCO Frequency + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + + 0,000000 + False + False + nco_adjust_1 + 6 + + + 1 + 2 + GTK_FILL + + + + + + True + False + NCO Frequency + + + GTK_FILL + GTK_FILL + + - 2 - 3 - 1 - 2 - GTK_FILL - + False + True + 1 @@ -1696,116 +2405,227 @@ 0 in - + True False 3 + 3 + 3 - + True False - 2 - 3 - 5 - 5 + vertical - + True False - NCO Frequency - - - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - nco_adjust_7 - 6 + 0 + none + + + True + False + 12 + + + True + False + 5 + 2 + + + RX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + + + + + + + + True + False + + - 1 - 2 - GTK_FILL - + False + True + 0 - + True False - Main NCO Frequency - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - main_rx_nco_adjust_7 - 6 - - - 1 - 2 - 1 - 2 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - nco_phase_adjust7 - 3 - - - 2 - 3 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - main_rx_nco_phase_adjust7 - 3 + 2 + 3 + 5 + 5 + + + True + True + + 0,000 + False + False + main_rx_nco_phase_adjust1 + 3 + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + True + True + + 0,000 + False + False + nco_phase_adjust1 + 3 + + + 2 + 3 + GTK_FILL + + + + + + True + True + + 0,000000 + False + False + main_rx_nco_adjust_1 + 6 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + True + False + Main NCO Frequency + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + + 0,000000 + False + False + nco_adjust_1 + 6 + + + 1 + 2 + GTK_FILL + + + + + + True + False + NCO Frequency + + + GTK_FILL + GTK_FILL + + - 2 - 3 - 1 - 2 - GTK_FILL - + False + True + 1 @@ -1835,116 +2655,227 @@ 0 in - + True False 3 + 3 + 3 - + True False - 2 - 3 - 5 - 5 - - - True - False - NCO Frequency - - - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - nco_adjust_8 - 6 - - - 1 - 2 - GTK_FILL - - - + vertical - + True False - Main NCO Frequency - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - - 0,000000 - False - False - main_rx_nco_adjust_8 - 6 - - - 1 - 2 - 1 - 2 - GTK_FILL - - - - - - True - True - - 0,000 - False - False - nco_phase_adjust8 - 3 + 0 + none + + + True + False + 12 + + + True + False + 5 + 2 + + + RX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + + + + + + + + True + False + + - 2 - 3 - GTK_FILL - + False + True + 0 - + True - True - - 0,000 - False - False - main_rx_nco_phase_adjust1 - 3 + False + 2 + 3 + 5 + 5 + + + True + True + + 0,000 + False + False + main_rx_nco_phase_adjust1 + 3 + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + + + True + True + + 0,000 + False + False + nco_phase_adjust1 + 3 + + + 2 + 3 + GTK_FILL + + + + + + True + True + + 0,000000 + False + False + main_rx_nco_adjust_1 + 6 + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + True + False + Main NCO Frequency + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + + 0,000000 + False + False + nco_adjust_1 + 6 + + + 1 + 2 + GTK_FILL + + + + + + True + False + NCO Frequency + + + GTK_FILL + GTK_FILL + + - 2 - 3 - 1 - 2 - GTK_FILL - + False + True + 1 @@ -2180,15 +3111,72 @@ 5 5 - - Enable + True - True - False - none - 1 - True - True + False + + + TX Enable + True + True + False + none + 1 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + @@ -2566,21 +3554,78 @@ 5 5 - - Enable + True - True - False - none - 0 - True - True + False + + + TX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + - + True False True @@ -2622,7 +3667,7 @@ 0,000000 False False - nco_adjust_10 + nco_adjust_9 6 @@ -2633,7 +3678,7 @@ - + True False NCO Frequency @@ -2644,7 +3689,7 @@ - + True False Gain Scale @@ -2664,7 +3709,7 @@ 0,000000000 False False - gain_scale_adjust_2 + gain_scale_adjust_1 9 @@ -2684,7 +3729,7 @@ 0,000000000 False False - test_tone_scale_adjust_2 + test_tone_scale_adjust_1 9 @@ -2704,7 +3749,7 @@ 0,000 False False - tx_nco_phase_adjust_2 + tx_nco_phase_adjust_1 3 @@ -2732,7 +3777,7 @@ - + True False Test Tone Scale @@ -2751,7 +3796,7 @@ - + True False <b>Channel</b> @@ -2793,7 +3838,7 @@ 0,000000 False False - main_tx_nco_adjust_2 + main_tx_nco_adjust_1 6 @@ -2811,7 +3856,7 @@ 0,000000000 False False - main_test_tone_scale_adjust_2 + main_test_tone_scale_adjust_1 9 @@ -2824,7 +3869,7 @@ - + True False Test Tone Scale @@ -2838,7 +3883,7 @@ - + True False Main NCO Frequency @@ -2875,7 +3920,7 @@ 0,000 False False - tx_main_nco_phase_adjust_2 + tx_main_nco_phase_adjust_1 3 @@ -2890,7 +3935,7 @@ - + True False <b>Main</b> @@ -2956,21 +4001,78 @@ 5 5 - - Enable + True - True - False - none - 0 - True - True + False + + + TX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + - + True False True @@ -3012,7 +4114,7 @@ 0,000000 False False - nco_adjust_11 + nco_adjust_9 6 @@ -3023,7 +4125,7 @@ - + True False NCO Frequency @@ -3034,7 +4136,7 @@ - + True False Gain Scale @@ -3054,7 +4156,7 @@ 0,000000000 False False - gain_scale_adjust_3 + gain_scale_adjust_1 9 @@ -3074,7 +4176,7 @@ 0,000000000 False False - test_tone_scale_adjust_3 + test_tone_scale_adjust_1 9 @@ -3094,7 +4196,7 @@ 0,000 False False - tx_nco_phase_adjust_3 + tx_nco_phase_adjust_1 3 @@ -3122,7 +4224,7 @@ - + True False Test Tone Scale @@ -3141,7 +4243,7 @@ - + True False <b>Channel</b> @@ -3183,7 +4285,7 @@ 0,000000 False False - main_tx_nco_adjust_3 + main_tx_nco_adjust_1 6 @@ -3201,7 +4303,7 @@ 0,000000000 False False - main_test_tone_scale_adjust_3 + main_test_tone_scale_adjust_1 9 @@ -3214,7 +4316,7 @@ - + True False Test Tone Scale @@ -3228,7 +4330,7 @@ - + True False Main NCO Frequency @@ -3265,7 +4367,7 @@ 0,000 False False - tx_main_nco_phase_adjust_3 + tx_main_nco_phase_adjust_1 3 @@ -3280,7 +4382,7 @@ - + True False <b>Main</b> @@ -3346,21 +4448,78 @@ 5 5 - - Enable + True - True - False - none - 0 - True - True + False + + + TX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + - + True False True @@ -3402,7 +4561,7 @@ 0,000000 False False - nco_adjust_12 + nco_adjust_9 6 @@ -3413,7 +4572,7 @@ - + True False NCO Frequency @@ -3424,7 +4583,7 @@ - + True False Gain Scale @@ -3444,7 +4603,7 @@ 0,000000000 False False - gain_scale_adjust_4 + gain_scale_adjust_1 9 @@ -3464,7 +4623,7 @@ 0,000000000 False False - test_tone_scale_adjust_4 + test_tone_scale_adjust_1 9 @@ -3484,7 +4643,7 @@ 0,000 False False - tx_nco_phase_adjust_4 + tx_nco_phase_adjust_1 3 @@ -3512,7 +4671,7 @@ - + True False Test Tone Scale @@ -3531,7 +4690,7 @@ - + True False <b>Channel</b> @@ -3573,7 +4732,7 @@ 0,000000 False False - main_tx_nco_adjust_4 + main_tx_nco_adjust_1 6 @@ -3591,7 +4750,7 @@ 0,000000000 False False - main_test_tone_scale_adjust_4 + main_test_tone_scale_adjust_1 9 @@ -3604,7 +4763,7 @@ - + True False Test Tone Scale @@ -3618,7 +4777,7 @@ - + True False Main NCO Frequency @@ -3655,7 +4814,7 @@ 0,000 False False - tx_main_nco_phase_adjust_4 + tx_main_nco_phase_adjust_1 3 @@ -3670,7 +4829,7 @@ - + True False <b>Main</b> @@ -3736,21 +4895,78 @@ 5 5 - - Enable + True - True - False - none - 0 - True - True + False + + + TX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + - + True False True @@ -3789,11 +5005,12 @@ True True - 0,000000 + -7,000000 False False - nco_adjust_13 + nco_adjust_9 6 + -7 1 @@ -3803,7 +5020,7 @@ - + True False NCO Frequency @@ -3814,7 +5031,7 @@ - + True False Gain Scale @@ -3834,7 +5051,7 @@ 0,000000000 False False - gain_scale_adjust_5 + gain_scale_adjust_1 9 @@ -3854,7 +5071,7 @@ 0,000000000 False False - test_tone_scale_adjust_5 + test_tone_scale_adjust_1 9 @@ -3874,7 +5091,7 @@ 0,000 False False - tx_nco_phase_adjust_5 + tx_nco_phase_adjust_1 3 @@ -3902,7 +5119,7 @@ - + True False Test Tone Scale @@ -3921,7 +5138,7 @@ - + True False <b>Channel</b> @@ -3963,7 +5180,7 @@ 0,000000 False False - main_tx_nco_adjust_5 + main_tx_nco_adjust_1 6 @@ -3981,7 +5198,7 @@ 0,000000000 False False - main_test_tone_scale_adjust_5 + main_test_tone_scale_adjust_1 9 @@ -3994,7 +5211,7 @@ - + True False Test Tone Scale @@ -4008,7 +5225,7 @@ - + True False Main NCO Frequency @@ -4045,7 +5262,7 @@ 0,000 False False - tx_nco_phase_adjust_5 + tx_main_nco_phase_adjust_1 3 @@ -4060,7 +5277,7 @@ - + True False <b>Main</b> @@ -4126,21 +5343,78 @@ 5 5 - - Enable + True - True - False - none - 0 - True - True + False + + + TX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + - + True False True @@ -4179,11 +5453,12 @@ True True - 0,000000 + -7,000000 False False - nco_adjust_14 + nco_adjust_9 6 + -7 1 @@ -4193,7 +5468,7 @@ - + True False NCO Frequency @@ -4204,7 +5479,7 @@ - + True False Gain Scale @@ -4224,7 +5499,7 @@ 0,000000000 False False - gain_scale_adjust_6 + gain_scale_adjust_1 9 @@ -4244,7 +5519,7 @@ 0,000000000 False False - test_tone_scale_adjust_6 + test_tone_scale_adjust_1 9 @@ -4264,7 +5539,7 @@ 0,000 False False - tx_nco_phase_adjust_6 + tx_nco_phase_adjust_1 3 @@ -4292,7 +5567,7 @@ - + True False Test Tone Scale @@ -4311,7 +5586,7 @@ - + True False <b>Channel</b> @@ -4353,7 +5628,7 @@ 0,000000 False False - main_tx_nco_adjust_6 + main_tx_nco_adjust_1 6 @@ -4371,7 +5646,7 @@ 0,000000000 False False - main_test_tone_scale_adjust_6 + main_test_tone_scale_adjust_1 9 @@ -4384,7 +5659,7 @@ - + True False Test Tone Scale @@ -4398,7 +5673,7 @@ - + True False Main NCO Frequency @@ -4435,7 +5710,7 @@ 0,000 False False - tx_main_nco_phase_adjust_6 + tx_main_nco_phase_adjust_1 3 @@ -4450,7 +5725,7 @@ - + True False <b>Main</b> @@ -4516,21 +5791,78 @@ 5 5 - - Enable + True - True - False - none - 0 - True - True + False + + + TX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + - + True False True @@ -4569,11 +5901,12 @@ True True - 0,000000 + -7,000000 False False - nco_adjust_15 + nco_adjust_9 6 + -7 1 @@ -4583,7 +5916,7 @@ - + True False NCO Frequency @@ -4594,7 +5927,7 @@ - + True False Gain Scale @@ -4614,7 +5947,7 @@ 0,000000000 False False - gain_scale_adjust_7 + gain_scale_adjust_1 9 @@ -4634,7 +5967,7 @@ 0,000000000 False False - test_tone_scale_adjust_7 + test_tone_scale_adjust_1 9 @@ -4654,7 +5987,7 @@ 0,000 False False - tx_nco_phase_adjust_7 + tx_nco_phase_adjust_1 3 @@ -4682,7 +6015,7 @@ - + True False Test Tone Scale @@ -4701,7 +6034,7 @@ - + True False <b>Channel</b> @@ -4740,11 +6073,12 @@ True True - 0,000000 + -9,000000 False False - main_tx_nco_adjust_7 + main_tx_nco_adjust_1 6 + -9 1 @@ -4761,7 +6095,7 @@ 0,000000000 False False - main_test_tone_scale_adjust_7 + main_test_tone_scale_adjust_1 9 @@ -4774,7 +6108,7 @@ - + True False Test Tone Scale @@ -4788,7 +6122,7 @@ - + True False Main NCO Frequency @@ -4825,7 +6159,7 @@ 0,000 False False - tx_main_nco_phase_adjust_7 + tx_main_nco_phase_adjust_1 3 @@ -4840,7 +6174,7 @@ - + True False <b>Main</b> @@ -4906,21 +6240,78 @@ 5 5 - - Enable + True - True - False - none - 0 - True - True + False + + + TX Enable + True + True + False + none + 0 + True + True + + + False + True + 0 + + + + + CFIR Enable + True + True + False + none + 0 + True + True + + + False + True + 1 + + + + + True + False + CFIR Profile + + + False + True + 5 + 2 + + + + + True + False + 1 + + 1 + 2 + + + + False + True + 3 + + - + True False True @@ -4959,11 +6350,12 @@ True True - 0,000000 + -10,000000 False False - nco_adjust_16 + nco_adjust_9 6 + -10 1 @@ -4973,7 +6365,7 @@ - + True False NCO Frequency @@ -4984,7 +6376,7 @@ - + True False Gain Scale @@ -5004,7 +6396,7 @@ 0,000000000 False False - gain_scale_adjust_8 + gain_scale_adjust_1 9 @@ -5024,7 +6416,7 @@ 0,000000000 False False - test_tone_scale_adjust_8 + test_tone_scale_adjust_1 9 @@ -5044,7 +6436,7 @@ 0,000 False False - tx_nco_phase_adjust_8 + tx_nco_phase_adjust_1 3 @@ -5072,7 +6464,7 @@ - + True False Test Tone Scale @@ -5091,7 +6483,7 @@ - + True False <b>Channel</b> @@ -5130,11 +6522,12 @@ True True - 0,000000 + -9,000000 False False - main_tx_nco_adjust_8 + main_tx_nco_adjust_1 6 + -9 1 @@ -5151,7 +6544,7 @@ 0,000000000 False False - main_test_tone_scale_adjust_8 + main_test_tone_scale_adjust_1 9 @@ -5164,7 +6557,7 @@ - + True False Test Tone Scale @@ -5178,7 +6571,7 @@ - + True False Main NCO Frequency @@ -5215,7 +6608,7 @@ 0,000 False False - tx_main_nco_phase_adjust_8 + tx_main_nco_phase_adjust_1 3 @@ -5230,7 +6623,7 @@ - + True False <b>Main</b> @@ -5310,4 +6703,46 @@ + + -180 + 180 + 1 + 10 + + + -180 + 180 + 1 + 10 + + + -180 + 180 + 1 + 10 + + + -180 + 180 + 1 + 10 + + + -180 + 180 + 1 + 10 + + + -180 + 180 + 1 + 10 + + + -180 + 180 + 1 + 10 + diff --git a/plugins/ad9084.c b/plugins/ad9084.c index 827649ff..aa47942e 100644 --- a/plugins/ad9084.c +++ b/plugins/ad9084.c @@ -71,6 +71,7 @@ struct plugin_private { gboolean has_once_updated; const char *dac_name; char last_pfir[PATH_MAX]; + char last_cfir[PATH_MAX]; }; static void save_widget_value(GtkWidget *widget, struct iio_widget *iio_w) @@ -141,15 +142,19 @@ static int ad9084_add_chan_widgets(GtkBuilder *builder, char *main_nco; char *nco_phase; char *main_nco_phase; + char *en; + char *cfir_en; + char *cfir_profile; } rx_widgets[NUM_MAX_CHANNEL] = { - { "rx_nco_freq1", "rx_main_nco_freq1", "rx_nco_phase1", "rx_main_nco_phase1" }, - { "rx_nco_freq2", "rx_main_nco_freq2", "rx_nco_phase2", "rx_main_nco_phase2" }, - { "rx_nco_freq3", "rx_main_nco_freq3", "rx_nco_phase3", "rx_main_nco_phase3" }, - { "rx_nco_freq4", "rx_main_nco_freq4", "rx_nco_phase4", "rx_main_nco_phase4" }, - { "rx_nco_freq5", "rx_main_nco_freq5", "rx_nco_phase5", "rx_main_nco_phase5" }, - { "rx_nco_freq6", "rx_main_nco_freq6", "rx_nco_phase6", "rx_main_nco_phase6" }, - { "rx_nco_freq7", "rx_main_nco_freq7", "rx_nco_phase7", "rx_main_nco_phase7" }, - { "rx_nco_freq8", "rx_main_nco_freq8", "rx_nco_phase8", "rx_main_nco_phase8" }, + { "rx_nco_freq1", "rx_main_nco_freq1", "rx_nco_phase1", "rx_main_nco_phase1", "rx_enable1", "rx_cfir_enable1", "rx_cfir_profile1" }, + { "rx_nco_freq2", "rx_main_nco_freq2", "rx_nco_phase2", "rx_main_nco_phase2", "rx_enable2", "rx_cfir_enable2", "rx_cfir_profile2" }, + { "rx_nco_freq3", "rx_main_nco_freq3", "rx_nco_phase3", "rx_main_nco_phase3", "rx_enable3", "rx_cfir_enable3", "rx_cfir_profile3" }, + { "rx_nco_freq4", "rx_main_nco_freq4", "rx_nco_phase4", "rx_main_nco_phase4", "rx_enable4", "rx_cfir_enable4", "rx_cfir_profile4" }, + { "rx_nco_freq5", "rx_main_nco_freq5", "rx_nco_phase5", "rx_main_nco_phase5", "rx_enable5", "rx_cfir_enable5", "rx_cfir_profile5" }, + { "rx_nco_freq6", "rx_main_nco_freq6", "rx_nco_phase6", "rx_main_nco_phase6", "rx_enable6", "rx_cfir_enable6", "rx_cfir_profile6" }, + { "rx_nco_freq7", "rx_main_nco_freq7", "rx_nco_phase7", "rx_main_nco_phase7", "rx_enable7", "rx_cfir_enable7", "rx_cfir_profile7" }, + { "rx_nco_freq8", "rx_main_nco_freq8", "rx_nco_phase8", "rx_main_nco_phase8", "rx_enable8", "rx_cfir_enable8", "rx_cfir_profile8" }, + }; struct { char *nco; @@ -162,39 +167,41 @@ static int ad9084_add_chan_widgets(GtkBuilder *builder, char *test_tone_scale; char *main_nco_test_tone_en; char *main_nco_test_tone_scale; + char *cfir_en; + char *cfir_profile; } tx_widgets[NUM_MAX_CHANNEL] = { {"tx_nco_freq1", "tx_main_nco_freq1", "tx_nco_phase1", "tx_main_nco_phase1", "tx_enable1", "tx_nco_gain_scale1", "tx_test_tone_en1", "tx_test_tone_scale1", "tx_main_test_tone_en1", - "tx_main_test_tone_scale1"}, + "tx_main_test_tone_scale1", "tx_cfir_enable1", "tx_cfir_profile1"}, {"tx_nco_freq2", "tx_main_nco_freq2", "tx_nco_phase2", "tx_main_nco_phase2", "tx_enable2", "tx_nco_gain_scale2", "tx_test_tone_en2", "tx_test_tone_scale2", "tx_main_test_tone_en2", - "tx_main_test_tone_scale2"}, + "tx_main_test_tone_scale2", "tx_cfir_enable2", "tx_cfir_profile2"}, {"tx_nco_freq3", "tx_main_nco_freq3", "tx_nco_phase3", "tx_main_nco_phase3", "tx_enable3", "tx_nco_gain_scale3", "tx_test_tone_en3", "tx_test_tone_scale3", "tx_main_test_tone_en3", - "tx_main_test_tone_scale3"}, + "tx_main_test_tone_scale3", "tx_cfir_enable3", "tx_cfir_profile3"}, {"tx_nco_freq4", "tx_main_nco_freq4", "tx_nco_phase4", "tx_main_nco_phase4", "tx_enable4", "tx_nco_gain_scale4", "tx_test_tone_en4", "tx_test_tone_scale4", "tx_main_test_tone_en4", - "tx_main_test_tone_scale4"}, + "tx_main_test_tone_scale4", "tx_cfir_enable4", "tx_cfir_profile4"}, {"tx_nco_freq5", "tx_main_nco_freq5", "tx_nco_phase5", "tx_main_nco_phase5", "tx_enable5", "tx_nco_gain_scale5", "tx_test_tone_en5", "tx_test_tone_scale5", "tx_main_test_tone_en5", - "tx_main_test_tone_scale5"}, + "tx_main_test_tone_scale5", "tx_cfir_enable5", "tx_cfir_profile5"}, {"tx_nco_freq6", "tx_main_nco_freq6", "tx_nco_phase6", "tx_main_nco_phase6", "tx_enable6", "tx_nco_gain_scale6", "tx_test_tone_en6", "tx_test_tone_scale6", "tx_main_test_tone_en6", - "tx_main_test_tone_scale6"}, + "tx_main_test_tone_scale6", "tx_cfir_enable6", "tx_cfir_profile6"}, {"tx_nco_freq7", "tx_main_nco_freq7", "tx_nco_phase7", "tx_main_nco_phase7", "tx_enable7", "tx_nco_gain_scale7", "tx_test_tone_en7", "tx_test_tone_scale7", "tx_main_test_tone_en7", - "tx_main_test_tone_scale7"}, + "tx_main_test_tone_scale7", "tx_cfir_enable7", "tx_cfir_profile7"}, {"tx_nco_freq8", "tx_main_nco_freq8", "tx_nco_phase8", "tx_main_nco_phase8", "tx_enable8", "tx_nco_gain_scale8", "tx_test_tone_en8", "tx_test_tone_scale8", "tx_main_test_tone_en8", - "tx_main_test_tone_scale8"}, + "tx_main_test_tone_scale8", "tx_cfir_enable8", "tx_cfir_profile8"}, }; const char *nco = output ? tx_widgets[chann_nr].nco : rx_widgets[chann_nr].nco; @@ -206,6 +213,16 @@ static int ad9084_add_chan_widgets(GtkBuilder *builder, const char *main_nco_phase = output ? tx_widgets[chann_nr].main_nco_phase : rx_widgets[chann_nr].main_nco_phase; + const char *en = output ? tx_widgets[chann_nr].en : + rx_widgets[chann_nr].en; + + const char *cfir_en = output ? tx_widgets[chann_nr].cfir_en : + rx_widgets[chann_nr].cfir_en; + + const char *cfir_profile = output ? tx_widgets[chann_nr].cfir_profile : + rx_widgets[chann_nr].cfir_profile; + + iio_spin_button_int_init_from_builder(&iio_widgets[priv->num_widgets++], ad9084, voltage, "channel_nco_frequency", @@ -226,14 +243,23 @@ static int ad9084_add_chan_widgets(GtkBuilder *builder, "main_nco_phase", builder, main_nco_phase, &k_scale); + iio_toggle_button_init_from_builder(&iio_widgets[priv->num_widgets++], + ad9084, voltage, "en", builder, + en, FALSE); + + iio_toggle_button_init_from_builder(&iio_widgets[priv->num_widgets++], + ad9084, voltage, "cfir_en", builder, + cfir_en, FALSE); + + iio_combo_box_init_from_builder(&priv->iio_widgets[priv->num_widgets++], + ad9084, voltage, "cfir_profile_sel", + NULL, builder, + cfir_profile, NULL); + if (!output) return 0; /* add extra tx bindings */ - iio_toggle_button_init_from_builder(&iio_widgets[priv->num_widgets++], - ad9084, voltage,"en", builder, - tx_widgets[chann_nr].en, FALSE); - iio_spin_button_init_from_builder(&iio_widgets[priv->num_widgets++], ad9084, voltage, @@ -241,14 +267,12 @@ static int ad9084_add_chan_widgets(GtkBuilder *builder, tx_widgets[chann_nr].nco_gain_scale, NULL); - iio_toggle_button_init_from_builder(&iio_widgets[priv->num_widgets++], ad9084, voltage, "channel_nco_test_tone_en", builder, tx_widgets[chann_nr].test_tone_en, FALSE); - iio_spin_button_init_from_builder(&iio_widgets[priv->num_widgets++], ad9084, voltage, "channel_nco_test_tone_scale", @@ -256,14 +280,12 @@ static int ad9084_add_chan_widgets(GtkBuilder *builder, tx_widgets[chann_nr].test_tone_scale, NULL); - iio_toggle_button_init_from_builder(&iio_widgets[priv->num_widgets++], ad9084, voltage, "main_nco_test_tone_en", builder, tx_widgets[chann_nr].main_nco_test_tone_en, FALSE); - iio_spin_button_init_from_builder(&iio_widgets[priv->num_widgets++], ad9084, voltage, "main_nco_test_tone_scale", @@ -369,7 +391,7 @@ static void load_pfir(GtkFileChooser *chooser, gpointer data) if (!buf) goto err; - ret = iio_device_attr_write_raw(priv->ad9084, "filter_fir_config", buf, size); + ret = iio_device_attr_write_raw(priv->ad9084, "pfilt_config", buf, size); free(buf); if (ret < 0) goto err; @@ -390,6 +412,40 @@ static void load_pfir(GtkFileChooser *chooser, gpointer data) gtk_file_chooser_set_filename(chooser, "(None)"); } + +static void load_cfir(GtkFileChooser *chooser, gpointer data) +{ + struct plugin_private *priv = data; + char *file_name = gtk_file_chooser_get_filename(chooser); + char *buf; + ssize_t size; + int ret; + + buf = read_file(file_name, &size); + if (!buf) + goto err; + + ret = iio_device_attr_write_raw(priv->ad9084, "cfir_config", buf, size); + free(buf); + if (ret < 0) + goto err; + + gtk_file_chooser_set_filename(chooser, file_name); + strncpy(priv->last_cfir, file_name, sizeof(priv->last_cfir) - 1); + g_free(file_name); + + return; +err: + g_free(file_name); + dialog_box_message(GTK_WIDGET(chooser), "CFIR Loading Failed", + "Failed to CFIR using the selected file!"); + + if (priv->last_cfir[0]) + gtk_file_chooser_set_filename(chooser, priv->last_cfir); + else + gtk_file_chooser_set_filename(chooser, "(None)"); +} + static GtkWidget *ad9084_init(struct osc_plugin *plugin, GtkWidget *notebook, const char *ini_fn) { @@ -647,6 +703,14 @@ static GtkWidget *ad9084_init(struct osc_plugin *plugin, GtkWidget *notebook, GTK_FILE_CHOOSER(gtk_builder_get_object(builder, "pfir_config")), OSC_FILTER_FILE_PATH"/ad9084"); + /* load cfir cb */ + g_builder_connect_signal(builder, "cfir_config", "file-set", + G_CALLBACK(load_cfir), priv); + + gtk_file_chooser_set_current_folder( + GTK_FILE_CHOOSER(gtk_builder_get_object(builder, "cfir_config")), + OSC_FILTER_FILE_PATH"/ad9084"); + return ad9084_panel; error_free_ctx: