From 6910ea7e22c78d098c3d00f1ec948c55b2e58c9e Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 3 Sep 2015 04:02:26 +0200 Subject: [PATCH] Deep redesign: Better support for FCD dongles #2 --- include-gpl/dsp/decimators.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include-gpl/dsp/decimators.h b/include-gpl/dsp/decimators.h index 0f5493b73..dbd37d67f 100644 --- a/include-gpl/dsp/decimators.h +++ b/include-gpl/dsp/decimators.h @@ -36,6 +36,22 @@ struct decimation_shifts static const uint post32 = 0; }; +template<> +struct decimation_shifts<16, 16> +{ + static const uint pre1 = 0; + static const uint pre2 = 0; + static const uint post2 = 1; + static const uint pre4 = 0; + static const uint post4 = 2; + static const uint pre8 = 0; + static const uint post8 = 3; + static const uint pre16 = 0; + static const uint post16 = 4; + static const uint pre32 = 0; + static const uint post32 = 5; +}; + template<> struct decimation_shifts<16, 12> {