mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-05 22:57:47 -04: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(); }
|
const char *getSlot1Text() const { return m_decoder.getSlot1Text(); }
|
||||||
unsigned char getColorCode() const { return m_decoder.getColorCode(); }
|
unsigned char getColorCode() const { return m_decoder.getColorCode(); }
|
||||||
const DSDcc::DSDDstar& getDStarDecoder() const { return m_decoder.getDStarDecoder(); }
|
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 setAudioGain(float gain) { m_decoder.setAudioGain(gain); }
|
||||||
void setBaudRate(int baudRate);
|
void setBaudRate(int baudRate);
|
||||||
|
@ -439,6 +439,14 @@ void DSDDemodGUI::formatStatusText()
|
|||||||
m_formatStatusText[62] = '\0';
|
m_formatStatusText[62] = '\0';
|
||||||
m_signalFormat = signalFormatDStar;
|
m_signalFormat = signalFormatDStar;
|
||||||
break;
|
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:
|
default:
|
||||||
m_signalFormat = signalFormatNone;
|
m_signalFormat = signalFormatNone;
|
||||||
m_formatStatusText[0] = '\0';
|
m_formatStatusText[0] = '\0';
|
||||||
|
@ -78,7 +78,8 @@ private:
|
|||||||
{
|
{
|
||||||
signalFormatNone,
|
signalFormatNone,
|
||||||
signalFormatDMR,
|
signalFormatDMR,
|
||||||
signalFormatDStar
|
signalFormatDStar,
|
||||||
|
signalFormatDPMR
|
||||||
} SignalFormat;
|
} SignalFormat;
|
||||||
|
|
||||||
Ui::DSDDemodGUI* ui;
|
Ui::DSDDemodGUI* ui;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user