mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-25 07:19:28 -05:00
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:
parent
74b5571e8b
commit
49d6cda731
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user