Move BasebandConfiguration to receiver_model.hpp.

That's the only place it's being used now -- it's no longer moving between cores.
This commit is contained in:
Jared Boone 2016-07-19 17:11:32 -07:00
parent 74b5571e8b
commit 49d6cda731
2 changed files with 21 additions and 21 deletions

View File

@ -30,6 +30,27 @@
#include "max2837.hpp" #include "max2837.hpp"
#include "volume.hpp" #include "volume.hpp"
struct BasebandConfiguration {
int32_t mode;
uint32_t sampling_rate;
size_t decimation_factor;
constexpr BasebandConfiguration(
int32_t mode,
uint32_t sampling_rate,
size_t decimation_factor = 1
) : mode { mode },
sampling_rate { sampling_rate },
decimation_factor { decimation_factor }
{
}
constexpr BasebandConfiguration(
) : BasebandConfiguration { -1, 0, 1 }
{
}
};
class ReceiverModel { class ReceiverModel {
public: public:
enum class Mode : int32_t { enum class Mode : int32_t {

View File

@ -191,27 +191,6 @@ public:
AudioStatistics statistics; AudioStatistics statistics;
}; };
struct BasebandConfiguration {
int32_t mode;
uint32_t sampling_rate;
size_t decimation_factor;
constexpr BasebandConfiguration(
int32_t mode,
uint32_t sampling_rate,
size_t decimation_factor = 1
) : mode { mode },
sampling_rate { sampling_rate },
decimation_factor { decimation_factor }
{
}
constexpr BasebandConfiguration(
) : BasebandConfiguration { -1, 0, 1 }
{
}
};
class SpectrumStreamingConfigMessage : public Message { class SpectrumStreamingConfigMessage : public Message {
public: public:
enum class Mode : uint32_t { enum class Mode : uint32_t {