Extract spectrum collector from BasebandProcessor.

Code size improvement, and less confused classes. :-)
This commit is contained in:
Jared Boone 2015-12-11 12:26:45 -08:00
parent 75b1cc25ff
commit 088f60f2bc
15 changed files with 193 additions and 86 deletions

View file

@ -101,6 +101,13 @@ public:
void real(int16_t v) { _v[0] = v; }
void imag(int16_t v) { _v[1] = v; }
template<class X>
complex<int16_t>& operator+=(const complex<X>& other) {
_v[0] += other.real();
_v[1] += other.imag();
return *this;
}
constexpr uint32_t __rep() const {
return _rep;
}