1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-04 16:01:14 -05:00

DSDdecoder: dPMR minimalist implementation

This commit is contained in:
f4exb 2016-08-08 01:04:56 +02:00
parent 25b06d06d3
commit 3e98505554
3 changed files with 11 additions and 1 deletions

View File

@ -48,6 +48,7 @@ public:
const char *getSlot1Text() const { return m_decoder.getSlot1Text(); }
unsigned char getColorCode() const { return m_decoder.getColorCode(); }
const DSDcc::DSDDstar& getDStarDecoder() const { return m_decoder.getDStarDecoder(); }
const DSDcc::DSDdPMR& getDPMRDecoder() const { return m_decoder.getDPMRDecoder(); }
void setAudioGain(float gain) { m_decoder.setAudioGain(gain); }
void setBaudRate(int baudRate);

View File

@ -439,6 +439,14 @@ void DSDDemodGUI::formatStatusText()
m_formatStatusText[62] = '\0';
m_signalFormat = signalFormatDStar;
break;
case DSDcc::DSDDecoder::DSDSyncDPMR:
if (m_signalFormat != signalFormatDPMR)
{
memcpy(&m_formatStatusText, "CC: ", 4);
}
sprintf(&m_formatStatusText[4], "%04d", m_dsdDemod->getDecoder().getDPMRDecoder().getColorCode());
m_signalFormat = signalFormatDPMR;
break;
default:
m_signalFormat = signalFormatNone;
m_formatStatusText[0] = '\0';

View File

@ -78,7 +78,8 @@ private:
{
signalFormatNone,
signalFormatDMR,
signalFormatDStar
signalFormatDStar,
signalFormatDPMR
} SignalFormat;
Ui::DSDDemodGUI* ui;