mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-25 01:41:28 -04:00
Extract spectrum collector from BasebandProcessor.
Code size improvement, and less confused classes. :-)
This commit is contained in:
parent
75b1cc25ff
commit
088f60f2bc
15 changed files with 193 additions and 86 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue