forked from gnuradio/gnuradio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuhd_rfnoc_duc.block.yml
56 lines (51 loc) · 1023 Bytes
/
uhd_rfnoc_duc.block.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
id: uhd_rfnoc_duc
label: RFNoC Digital Upconverter Block
templates:
imports: |-
from gnuradio import uhd
make: |-
uhd.rfnoc_duc(
self.rfnoc_graph,
${num_chans},
uhd.device_addr(${block_args}),
${device_select},
${instance_index})
self.${id}.set_freq(${freq}, 0)
self.${id}.set_input_rate(${input_rate}, 0)
callbacks:
- set_freq(${freq}, 0)
- set_input_rate(${input_rate}, 0)
parameters:
- id: num_chans
label: Number of Channels
dtype: int
default: 1
- id: block_args
label: Block Args
dtype: string
default: ""
- id: device_select
label: Device Select
dtype: int
default: -1
- id: instance_index
label: Instance Select
dtype: int
default: -1
- id: freq
label: Frequency Shift (Hz)
dtype: real
- id: input_rate
label: Input Rate (Hz)
dtype: real
inputs:
- domain: rfnoc
dtype: 'sc16'
vlen: 1
multiplicity: ${num_chans}
outputs:
- domain: rfnoc
dtype: 'sc16'
vlen: 1
multiplicity: ${num_chans}
file_format: 1