diff --git a/grc/gen_bladerf_blocks.py b/grc/gen_bladerf_blocks.py index 7f7d1ab8b0fc161b08f253bf95c721e628852ece..ee1ffffe632d6d55277f9d0fc20303f3f3c65232 100644 --- a/grc/gen_bladerf_blocks.py +++ b/grc/gen_bladerf_blocks.py @@ -113,6 +113,9 @@ parameters: default: auto options: ['auto', 'auto3db', '50M', '144M', '222M', 'custom'] option_labels: ['auto', 'auto3db', '50M', '144M', '222M', 'custom'] + + + ${params} @@ -126,6 +129,10 @@ inputs: id: pmic_in optional: true +- domain: message + id: fire + optional: true + % if sourk == 'source': outputs: @@ -145,6 +152,8 @@ outputs: optional: true + + templates: imports: |- import bladeRF @@ -355,6 +364,32 @@ PARAMS_TMPL = """ dtype: real default: 20 hide: ${'$'}{'none' if (nchan > ${n}) else 'all'} + +- id: trigger${n} + label: 'Use trigger' + category: 'Channel ${n}' + dtype: enum + default: 'False' + options: ['False', 'True'] + hide: ${'$'}{'part' if (nchan > ${n}) else 'all'} + +- id: trigger_role${n} + label: Trigger role + category: 'Channel ${n}' + dtype: enum + options: ['master', 'slave'] + option_labels: [master, slave] + hide: ${'$'}{ 'part' if (nchan > ${n}) else 'all'} + +- id: trigger_signal${n} + label: Trigger role + category: 'Channel ${n}' + dtype: enum + default: 'J51_1' + options: ['J71_4', 'J51_1', 'MINI_EXP_1', 'USER_0', 'USER_1', 'USER_2', 'USER_3', 'USER_4', 'USER_5', 'USER_6', 'USER_7'] + option_labels: ['J71_4', 'J51_1', 'MINI_EXP_1', 'USER_0', 'USER_1', 'USER_2', 'USER_3', 'USER_4', 'USER_5', 'USER_6', 'USER_7'] + hide: ${'$'}{ 'part' if (nchan > ${n}) else 'all'} + """