blob: 7ce3ed8655212f70abaf8408504027e6b5ae3996 (
plain)
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
|
id: blocks_phase_shift
label: Phase Shift
parameters:
- id: shift
label: Phase Shift
dtype: float
default: '0.0'
- id: is_radians
label: Units
dtype: enum
options: ['True', 'False']
option_labels: ['Radians', 'Degrees']
inputs:
- domain: stream
dtype: complex
- domain: message
id: shift
optional: true
outputs:
- domain: stream
dtype: complex
templates:
imports: from gnuradio import blocks
make: blocks.phase_shift(${shift}, ${is_radians})
callbacks:
- set_shift(${shift})
documentation: "This block will phase shift the input signal by the specified phase\
\ by multiplying the input times a shift value: \n\
\ gr_complex(cos(d_shift_in_radians),sin(d_shift_in_radians))\n\n\
\ Notes:\n\
\ If degrees are provided, the block automatically handles the conversion.\n\
\ This block functions like a multiply const, but with the const limited to \
\ abs() == 1 to provide a constant phase shift."
file_format: 1
|