Skip to content
Snippets Groups Projects
Commit 0b96b493 authored by Sergey Musikhin's avatar Sergey Musikhin
Browse files

trigger control elements in grc

parent e02f0af7
No related branches found
No related tags found
No related merge requests found
...@@ -114,6 +114,9 @@ parameters: ...@@ -114,6 +114,9 @@ parameters:
options: ['auto', 'auto3db', '50M', '144M', '222M', 'custom'] options: ['auto', 'auto3db', '50M', '144M', '222M', 'custom']
option_labels: ['auto', 'auto3db', '50M', '144M', '222M', 'custom'] option_labels: ['auto', 'auto3db', '50M', '144M', '222M', 'custom']
${params} ${params}
...@@ -126,6 +129,10 @@ inputs: ...@@ -126,6 +129,10 @@ inputs:
id: pmic_in id: pmic_in
optional: true optional: true
- domain: message
id: fire
optional: true
% if sourk == 'source': % if sourk == 'source':
outputs: outputs:
...@@ -145,6 +152,8 @@ outputs: ...@@ -145,6 +152,8 @@ outputs:
optional: true optional: true
templates: templates:
imports: |- imports: |-
import bladeRF import bladeRF
...@@ -355,6 +364,32 @@ PARAMS_TMPL = """ ...@@ -355,6 +364,32 @@ PARAMS_TMPL = """
dtype: real dtype: real
default: 20 default: 20
hide: ${'$'}{'none' if (nchan > ${n}) else 'all'} 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'}
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment