- TimingGenerator tells Farrow whenn to produce a sample

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1051 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-06-21 19:37:00 +00:00
parent 31883e71a6
commit d1efaf9f05
3 changed files with 9 additions and 4 deletions
+5 -2
View File
@@ -91,10 +91,13 @@ public:
// Combine // Combine
ComplexScalar yout = horner(mu); ComplexScalar yout = horner(mu);
buf_out->write(&yout, 1);
// Process timing generator // Process timing generator
m_timingGenerator.process(yout); bool is_sample = m_timingGenerator.process(yout);
if (is_sample)
{
buf_out->write(&yout, 1);
}
} }
} }
+3 -1
View File
@@ -22,10 +22,12 @@ void TimingGenerator::setOmega(radio_float_t omega)
m_omega = omega; m_omega = omega;
} }
void TimingGenerator::process(ComplexScalar const &iq) bool TimingGenerator::process(ComplexScalar const &iq)
{ {
(void)iq; (void)iq;
update(1.0); update(1.0);
return true;
} }
void TimingGenerator::update(radio_float_t dOmega) void TimingGenerator::update(radio_float_t dOmega)
+1 -1
View File
@@ -21,7 +21,7 @@ public:
size_t getAdv() const; size_t getAdv() const;
radio_float_t getMu() const; radio_float_t getMu() const;
virtual void process(ComplexScalar const &iq); virtual bool process(ComplexScalar const &iq);
void setOmega(radio_float_t omega); void setOmega(radio_float_t omega);
private: private: