Handle any frequency offset in the oscillator.

This commit is contained in:
Jonathan Naylor
2016-03-21 21:50:45 +00:00
parent dc08c18db7
commit a3c25766c0
6 changed files with 26 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ enum RESP_TYPE_MMDVM {
class CModem {
public:
CModem(const std::string& port, bool rxInvert, bool txInvert, bool pttInvert, unsigned int txDelay, unsigned int rxLevel, unsigned int txLevel, unsigned int dmrDelay, bool debug = false);
CModem(const std::string& port, bool rxInvert, bool txInvert, bool pttInvert, unsigned int txDelay, unsigned int rxLevel, unsigned int txLevel, unsigned int dmrDelay, int oscOffset, bool debug = false);
~CModem();
void setRFParams(unsigned int rxFrequency, unsigned int txFrequency);
@@ -78,6 +78,7 @@ private:
unsigned int m_dmrDelay;
unsigned int m_rxLevel;
unsigned int m_txLevel;
int m_oscOffset;
bool m_debug;
unsigned int m_rxFrequency;
unsigned int m_txFrequency;