mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Expose reference PPM correction property on receiver model.
This commit is contained in:
parent
fd9bb13157
commit
9db54276c1
@ -47,6 +47,15 @@ void ReceiverModel::set_frequency_step(rf::Frequency f) {
|
|||||||
frequency_step_ = f;
|
frequency_step_ = f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t ReceiverModel::reference_ppm_correction() const {
|
||||||
|
return shared_memory.correction_ppm;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ReceiverModel::set_reference_ppm_correction(int32_t v) {
|
||||||
|
shared_memory.correction_ppm = v;
|
||||||
|
update_tuning_frequency();
|
||||||
|
}
|
||||||
|
|
||||||
bool ReceiverModel::rf_amp() const {
|
bool ReceiverModel::rf_amp() const {
|
||||||
return rf_amp_;
|
return rf_amp_;
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,9 @@ public:
|
|||||||
rf::Frequency frequency_step() const;
|
rf::Frequency frequency_step() const;
|
||||||
void set_frequency_step(rf::Frequency f);
|
void set_frequency_step(rf::Frequency f);
|
||||||
|
|
||||||
|
int32_t reference_ppm_correction() const;
|
||||||
|
void set_reference_ppm_correction(int32_t v);
|
||||||
|
|
||||||
bool rf_amp() const;
|
bool rf_amp() const;
|
||||||
void set_rf_amp(bool enabled);
|
void set_rf_amp(bool enabled);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user