- 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:
@@ -91,10 +91,13 @@ public:
|
||||
|
||||
// Combine
|
||||
ComplexScalar yout = horner(mu);
|
||||
buf_out->write(&yout, 1);
|
||||
|
||||
// Process timing generator
|
||||
m_timingGenerator.process(yout);
|
||||
bool is_sample = m_timingGenerator.process(yout);
|
||||
if (is_sample)
|
||||
{
|
||||
buf_out->write(&yout, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,10 +22,12 @@ void TimingGenerator::setOmega(radio_float_t omega)
|
||||
m_omega = omega;
|
||||
}
|
||||
|
||||
void TimingGenerator::process(ComplexScalar const &iq)
|
||||
bool TimingGenerator::process(ComplexScalar const &iq)
|
||||
{
|
||||
(void)iq;
|
||||
update(1.0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void TimingGenerator::update(radio_float_t dOmega)
|
||||
|
||||
@@ -21,7 +21,7 @@ public:
|
||||
size_t getAdv() const;
|
||||
radio_float_t getMu() const;
|
||||
|
||||
virtual void process(ComplexScalar const &iq);
|
||||
virtual bool process(ComplexScalar const &iq);
|
||||
void setOmega(radio_float_t omega);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user