Quadrature Demod: Difference between revisions
No edit summary |
mNo edit summary |
||
Line 53: | Line 53: | ||
; C++ files | ; C++ files | ||
: [https://github.com/gnuradio/gnuradio/blob/master/gr-analog/lib/quadrature_demod_cf_impl.cc] | : [https://github.com/gnuradio/gnuradio/blob/master/gr-analog/lib/quadrature_demod_cf_impl.cc quadrature_demod_cf_impl.cc] | ||
; Header files | ; Header files | ||
: [https://github.com/gnuradio/gnuradio/blob/master/gr-analog/lib/quadrature_demod_cf_impl.h] | : [https://github.com/gnuradio/gnuradio/blob/master/gr-analog/lib/quadrature_demod_cf_impl.h quadrature_demod_cf_impl.h] | ||
; Public header files | ; Public header files | ||
: [https://github.com/gnuradio/gnuradio/blob/master/gr-analog/include/gnuradio/analog/quadrature_demod_cf.h] | : [https://github.com/gnuradio/gnuradio/blob/master/gr-analog/include/gnuradio/analog/quadrature_demod_cf.h quadrature_demod_cf.h] | ||
; Block definition | ; Block definition | ||
: [https://github.com/gnuradio/gnuradio/blob/master/gr-analog/grc/analog_quadrature_demod_cf.block.yml] | : [https://github.com/gnuradio/gnuradio/blob/master/gr-analog/grc/analog_quadrature_demod_cf.block.yml analog_quadrature_demod_cf.block.yml] |
Revision as of 10:19, 19 August 2022
This can be used to demod FM, FSK, GMSK, etc. The input is complex baseband, output is the signal frequency in relation to the sample rate, multiplied with the gain.
Mathematically, this block calculates the product of the one-sample delayed-&-conjugated input and the undelayed signal, and then calculates the argument (a.k.a. angle, in radians) of the resulting complex number:
Let x be a complex sinusoid with amplitude A>0, (absolute) frequency and phase sampled at f_s>0 so, without loss of generality,
then
is real, and so is , and hence only scales, therefore is invariant: = arg
This block does not support C++ output, so it cannot be used when the output language of a flowgraph in GRC is C++.
Parameters
- Gain
- Gain setting to adjust the output amplitude. Set based on converting the phase difference between samples to a nominal output value. Default: "samp_rate/(2*math.pi*fsk_deviation_hz)".
Example Flowgraph
This flowgraph shows the Quadrature Demod block as a Frequency Shift Keying detector.
Source Files
- C++ files
- quadrature_demod_cf_impl.cc
- Header files
- quadrature_demod_cf_impl.h
- Public header files
- quadrature_demod_cf.h
- Block definition
- analog_quadrature_demod_cf.block.yml