Add some baseband constructors.

Some of them I think I took out earlier...
This commit is contained in:
Jared Boone
2015-11-10 14:04:50 -08:00
parent add6171410
commit 111a5f10c0
4 changed files with 36 additions and 4 deletions

View File

@@ -38,6 +38,17 @@ public:
By32,
};
constexpr ChannelDecimator(
) : decimation_factor { DecimationFactor::By32 }
{
}
constexpr ChannelDecimator(
const DecimationFactor decimation_factor
) : decimation_factor { decimation_factor }
{
}
void set_decimation_factor(const DecimationFactor f) {
decimation_factor = f;
}
@@ -69,7 +80,7 @@ private:
dsp::decimate::DecimateBy2CIC3 cic_3;
dsp::decimate::DecimateBy2CIC3 cic_4;
DecimationFactor decimation_factor = DecimationFactor::By32;
DecimationFactor decimation_factor;
buffer_c16_t execute_decimation(buffer_c8_t buffer);
};