kopia lustrzana https://github.com/f4exb/sdrangel
DSDdecoder: dPMR minimalist implementation
rodzic
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;
|
||||
|
|
Ładowanie…
Reference in New Issue