Skip to content

Commit e545210

Browse files
author
Max Robert
committed
Change comments for device types
1 parent 00cb2f1 commit e545210

File tree

3 files changed

+14
-23
lines changed

3 files changed

+14
-23
lines changed

redhawk-codegen/redhawk/codegen/jinja/cpp/component/frontend/templates/resource.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,18 @@
2525

2626
For a tuner device, the structure frontend_tuner_status needs to match the number
2727
of tuners that this device controls and what kind of device it is.
28-
The options for devices are: TX, RX, RX_DIGITIZER, CHANNELIZER, DDC, RX_DIGITIZER_CHANNELIZER
28+
The options for devices are: ANTENNA, RX, RX_ARRAY, DBOT, ABOT, ARDC, RDC, SRDC, DRDC, TX, TX_ARRAY, TDC
2929

30-
For example, if this device has 5 physical
31-
tuners, 3 RX_DIGITIZER and 2 CHANNELIZER, then the code in the construct function
32-
should look like this:
30+
An example of setting up this device as an ABOT would look like this:
3331

34-
this->addChannels(3, "RX_DIGITIZER");
35-
this->addChannels(2, "CHANNELIZER");
32+
this->addChannels(1, "ABOT");
3633

3734
The incoming request for tuning contains a string describing the requested tuner
3835
type. The string for the request must match the string in the tuner status.
3936
/*{% endif %}*/
4037
***********************************************************************************/
4138
/*{% if 'FrontendTuner' in component.implements %}*/
42-
this->addChannels(1, "RX_DIGITIZER");
39+
this->addChannels(1, "ABOT");
4340
/*{% endif %}*/
4441
/*{% endblock %}*/
4542

redhawk-codegen/redhawk/codegen/jinja/java/component/pull/templates/resource.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,20 +218,17 @@ public void constructor()
218218
219219
For a tuner device, the structure frontend_tuner_status needs to match the number
220220
of tuners that this device controls and what kind of device it is.
221-
The options for devices are: TX, RX, RX_DIGITIZER, CHANNELIZER, DDC, RX_DIGITIZER_CHANNELIZER
222-
223-
For example, if this device has 5 physical
224-
tuners, 3 RX_DIGITIZER and 2 CHANNELIZER, then the code in the construct function
225-
should look like this:
221+
The options for devices are: ANTENNA, RX, RX_ARRAY, DBOT, ABOT, ARDC, RDC, SRDC, DRDC, TX, TX_ARRAY, TDC
222+
223+
An example of setting up this device as an ABOT would look like this:
226224
227-
this.addChannels(3, "RX_DIGITIZER");
228-
this.addChannels(2, "CHANNELIZER");
225+
this.addChannels(1, "ABOT");
229226
230227
The incoming request for tuning contains a string describing the requested tuner
231228
type. The string for the request must match the string in the tuner status.
232229
233230
**************************************************************************/
234-
this.addChannels(1, "RX_DIGITIZER");
231+
this.addChannels(1, "ABOT");
235232
/*{% endif %}*/
236233
}
237234

redhawk-codegen/redhawk/codegen/jinja/python/component/pull/templates/resource.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,19 @@ def constructor(self):
5555
#{% if component.hastunerstatusstructure %}
5656
For a tuner device, the structure frontend_tuner_status needs to match the number
5757
of tuners that this device controls and what kind of device it is.
58-
The options for devices are: TX, RX, RX_DIGITIZER, CHANNELIZER, DDC, RX_DIGITIZER_CHANNELIZER
59-
60-
For example, if this device has 5 physical
61-
tuners, 3 RX_DIGITIZER and 2 CHANNELIZER, then the code in the construct function
62-
should look like this:
58+
The options for devices are: ANTENNA, RX, RX_ARRAY, DBOT, ABOT, ARDC, RDC, SRDC, DRDC, TX, TX_ARRAY, TDC
59+
60+
An example of setting up this device as an ABOT would look like this:
6361
64-
self.addChannels(3, "RX_DIGITIZER")
65-
self.addChannels(2, "CHANNELIZER")
62+
self.addChannels(1, "ABOT")
6663
6764
The incoming request for tuning contains a string describing the requested tuner
6865
type. The string for the request must match the string in the tuner status.
6966
#{% endif %}
7067
"""
7168
# TODO add customization here.
7269
#{% if component.hastunerstatusstructure %}
73-
self.addChannels(1, "RX_DIGITIZER")
70+
self.addChannels(1, "ABOT")
7471
#{% else %}
7572
pass
7673
#{% endif %}

0 commit comments

Comments
 (0)