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:
parent
25b06d06d3
commit
3e98505554
@ -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);
|
||||
|
@ -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';
|
||||
|
@ -78,7 +78,8 @@ private:
|
||||
{
|
||||
signalFormatNone,
|
||||
signalFormatDMR,
|
||||
signalFormatDStar
|
||||
signalFormatDStar,
|
||||
signalFormatDPMR
|
||||
} SignalFormat;
|
||||
|
||||
Ui::DSDDemodGUI* ui;
|
||||
|
Loading…
Reference in New Issue
Block a user