Add working sync sample dumping for DMR, P25 and YSF.

This commit is contained in:
Jonathan Naylor
2017-02-02 20:13:28 +00:00
parent f3a3132a6c
commit ac4249bbb1
6 changed files with 29 additions and 23 deletions
+3 -1
View File
@@ -18,7 +18,7 @@
#define WANT_DEBUG
#define DUMP_SAMPLES
// #define DUMP_SAMPLES
#include "Config.h"
#include "Globals.h"
@@ -438,6 +438,7 @@ void CP25RX::writeRSSILdu(uint8_t* ldu)
m_rssiCount = 0U;
}
#if defined(DUMP_SAMPLES)
void CP25RX::writeSync(uint16_t start)
{
q15_t sync[P25_SYNC_LENGTH_SYMBOLS];
@@ -452,3 +453,4 @@ void CP25RX::writeSync(uint16_t start)
serial.writeSamples(STATE_P25, sync, P25_SYNC_LENGTH_SYMBOLS);
}
#endif