Transceiver52M: Add vectorized radio burst capability
This patch allows multiple signalVectors to be stored within
a single radioVector object. The motivation is to provide
a facility for diversity and/or MIMO burst handling. When
no channel value is specified, single channel bevhaviour
is maintained.
Signed-off-by: Thomas Tsou <tom@tsou.cc>
diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp
index 5cf34de..43fa3a3 100644
--- a/Transceiver52M/radioInterface.cpp
+++ b/Transceiver52M/radioInterface.cpp
@@ -251,9 +251,11 @@
*/
while (recvSz > burstSize) {
for (size_t i = 0; i < mChans; i++) {
- burst = new radioVector(burstSize, head, rcvClock);
+ burst = new radioVector(rcvClock, burstSize, head);
- unRadioifyVector((float *) (recvBuffer[i]->begin() + readSz), *burst);
+ unRadioifyVector((float *) (recvBuffer[i]->begin() + readSz),
+ *burst->getVector());
+
if (mReceiveFIFO[i].size() < 32)
mReceiveFIFO[i].write(burst);
else