Add full frame file dumping.

This commit is contained in:
Jonathan Naylor
2017-02-20 21:36:35 +00:00
parent ac22f0b783
commit fc477d9abf
6 changed files with 97 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ enum RESP_TYPE_MMDVM {
class CModem {
public:
CModem(const std::string& port, bool duplex, bool rxInvert, bool txInvert, bool pttInvert, unsigned int txDelay, unsigned int dmrDelay, int oscOffset, bool debug = false);
CModem(const std::string& port, bool duplex, bool rxInvert, bool txInvert, bool pttInvert, unsigned int txDelay, unsigned int dmrDelay, int oscOffset, const std::string& samplesDir, bool debug = false);
~CModem();
void setRFParams(unsigned int rxFrequency, unsigned int txFrequency);
@@ -102,6 +102,7 @@ private:
unsigned int m_ysfTXLevel;
unsigned int m_p25TXLevel;
int m_oscOffset;
std::string m_samplesDir;
bool m_debug;
unsigned int m_rxFrequency;
unsigned int m_txFrequency;
@@ -143,7 +144,8 @@ private:
bool setFrequency();
void printDebug();
void printSamples();
void printSyncSamples();
void dumpSamples();
RESP_TYPE_MMDVM getResponse();
};