SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Attributes | List of all members
DSDDecoder Class Reference

#include <dsddecoder.h>

Public Member Functions

 DSDDecoder ()
 
 ~DSDDecoder ()
 
void pushSample (short sample)
 
short getFilteredSample () const
 
short getSymbolSyncSample () const
 
short * getAudio1 (int &nbSamples)
 
void resetAudio1 ()
 
short * getAudio2 (int &nbSamples)
 
void resetAudio2 ()
 
void enableMbelib (bool enable)
 
bool mbeDVReady1 () const
 
void resetMbeDV1 ()
 
bool mbeDVReady2 () const
 
void resetMbeDV2 ()
 
const unsigned char * getMbeDVFrame1 () const
 
const unsigned char * getMbeDVFrame2 () const
 
bool getVoice1On () const
 
bool getVoice2On () const
 
void setTDMAStereo (bool tdmaStereo)
 
bool getSymbolPLLLocked () const
 
int getMbeRateIndex () const
 
int getInLevel () const
 
int getCarrierPos () const
 
int getZeroCrossingPos () const
 
int getSymbolSyncQuality () const
 
int getSamplesPerSymbol () const
 
void enableCosineFiltering (bool on)
 
DSDcc::DSDDecoder::DSDSyncType getSyncType () const
 
DSDcc::DSDDecoder::DSDStationType getStationType () const
 
const char * getFrameTypeText () const
 
const DSDcc::DSDDMR & getDMRDecoder () const
 
const DSDcc::DSDDstar & getDStarDecoder () const
 
const DSDcc::DSDdPMR & getDPMRDecoder () const
 
const DSDcc::DSDYSF & getYSFDecoder () const
 
const DSDcc::DSDNXDN & getNXDNDecoder () const
 
void setMyPoint (float lat, float lon)
 
void setAudioGain (float gain)
 
void setBaudRate (int baudRate)
 
void setSymbolPLLLock (bool pllLock)
 
void useHPMbelib (bool useHP)
 
void set48k (bool to48k)
 
void setUpsampling (int upsampling)
 

Private Attributes

DSDcc::DSDDecoder m_decoder
 

Detailed Description

Definition at line 26 of file dsddecoder.h.

Constructor & Destructor Documentation

◆ DSDDecoder()

DSDDecoder::DSDDecoder ( )

Definition at line 25 of file dsddecoder.cpp.

References m_decoder.

26 {
27  m_decoder.setQuiet();
28  m_decoder.setUpsampling(6); // force upsampling of audio to 48k
29  m_decoder.setStereo(true); // force copy to L+R channels
30  m_decoder.setDecodeMode(DSDcc::DSDDecoder::DSDDecodeAuto, true); // Initialize with auto-detect
31  m_decoder.setUvQuality(3); // This is gr-dsd default
32  m_decoder.enableCosineFiltering(false);
33  m_decoder.setDataRate(DSDcc::DSDDecoder::DSDRate4800);
34 }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80

◆ ~DSDDecoder()

DSDDecoder::~DSDDecoder ( )

Definition at line 36 of file dsddecoder.cpp.

37 {
38 }

Member Function Documentation

◆ enableCosineFiltering()

void DSDDecoder::enableCosineFiltering ( bool  on)
inline

Definition at line 61 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::applySettings().

61 { m_decoder.enableCosineFiltering(on); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ enableMbelib()

void DSDDecoder::enableMbelib ( bool  enable)
inline

Definition at line 41 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

41 { m_decoder.enableMbelib(enable); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getAudio1()

short* DSDDecoder::getAudio1 ( int &  nbSamples)
inline

Definition at line 36 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

36 { return m_decoder.getAudio1(nbSamples); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getAudio2()

short* DSDDecoder::getAudio2 ( int &  nbSamples)
inline

Definition at line 38 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

38 { return m_decoder.getAudio2(nbSamples); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getCarrierPos()

int DSDDecoder::getCarrierPos ( ) const
inline

Definition at line 57 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemodGUI::tick().

57 { return m_decoder.getCarrierPos(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getDMRDecoder()

const DSDcc::DSDDMR& DSDDecoder::getDMRDecoder ( ) const
inline

Definition at line 65 of file dsddecoder.h.

References m_decoder.

65 { return m_decoder.getDMRDecoder(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80

◆ getDPMRDecoder()

const DSDcc::DSDdPMR& DSDDecoder::getDPMRDecoder ( ) const
inline

Definition at line 67 of file dsddecoder.h.

References m_decoder.

67 { return m_decoder.getDPMRDecoder(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80

◆ getDStarDecoder()

const DSDcc::DSDDstar& DSDDecoder::getDStarDecoder ( ) const
inline

Definition at line 66 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::formatStatusText().

66 { return m_decoder.getDStarDecoder(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getFilteredSample()

short DSDDecoder::getFilteredSample ( ) const
inline

Definition at line 33 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

33 { return m_decoder.getFilteredSample(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getFrameTypeText()

const char* DSDDecoder::getFrameTypeText ( ) const
inline

Definition at line 64 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemodGUI::tick().

64 { return m_decoder.getFrameTypeText(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getInLevel()

int DSDDecoder::getInLevel ( ) const
inline

Definition at line 56 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemodGUI::tick().

56 { return m_decoder.getInLevel(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getMbeDVFrame1()

const unsigned char* DSDDecoder::getMbeDVFrame1 ( ) const
inline

Definition at line 47 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

47 { return m_decoder.getMbeDVFrame1(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getMbeDVFrame2()

const unsigned char* DSDDecoder::getMbeDVFrame2 ( ) const
inline

Definition at line 48 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

48 { return m_decoder.getMbeDVFrame2(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getMbeRateIndex()

int DSDDecoder::getMbeRateIndex ( ) const
inline

Definition at line 54 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

54 { return (int) m_decoder.getMbeRate(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getNXDNDecoder()

const DSDcc::DSDNXDN& DSDDecoder::getNXDNDecoder ( ) const
inline

Definition at line 69 of file dsddecoder.h.

References m_decoder.

69 { return m_decoder.getNXDNDecoder(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80

◆ getSamplesPerSymbol()

int DSDDecoder::getSamplesPerSymbol ( ) const
inline

Definition at line 60 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

60 { return m_decoder.getSamplesPerSymbol(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getStationType()

DSDcc::DSDDecoder::DSDStationType DSDDecoder::getStationType ( ) const
inline

Definition at line 63 of file dsddecoder.h.

References m_decoder.

63 { return m_decoder.getStationType(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80

◆ getSymbolPLLLocked()

bool DSDDecoder::getSymbolPLLLocked ( ) const
inline

Definition at line 52 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemodGUI::tick().

52 { return m_decoder.getSymbolPLLLocked(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getSymbolSyncQuality()

int DSDDecoder::getSymbolSyncQuality ( ) const
inline

Definition at line 59 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemodGUI::tick().

59 { return m_decoder.getSymbolSyncQuality(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getSymbolSyncSample()

short DSDDecoder::getSymbolSyncSample ( ) const
inline

Definition at line 34 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

34 { return m_decoder.getSymbolSyncSample(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getSyncType()

DSDcc::DSDDecoder::DSDSyncType DSDDecoder::getSyncType ( ) const
inline

Definition at line 62 of file dsddecoder.h.

References m_decoder.

62 { return m_decoder.getSyncType(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80

◆ getVoice1On()

bool DSDDecoder::getVoice1On ( ) const
inline

Definition at line 49 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemodGUI::tick().

49 { return m_decoder.getVoice1On(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getVoice2On()

bool DSDDecoder::getVoice2On ( ) const
inline

Definition at line 50 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemodGUI::tick().

50 { return m_decoder.getVoice2On(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ getYSFDecoder()

const DSDcc::DSDYSF& DSDDecoder::getYSFDecoder ( ) const
inline

Definition at line 68 of file dsddecoder.h.

References m_decoder.

68 { return m_decoder.getYSFDecoder(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80

◆ getZeroCrossingPos()

int DSDDecoder::getZeroCrossingPos ( ) const
inline

Definition at line 58 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemodGUI::tick().

58 { return m_decoder.getZeroCrossingPos(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ mbeDVReady1()

bool DSDDecoder::mbeDVReady1 ( ) const
inline

Definition at line 43 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

43 { return m_decoder.mbeDVReady1(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ mbeDVReady2()

bool DSDDecoder::mbeDVReady2 ( ) const
inline

Definition at line 45 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

45 { return m_decoder.mbeDVReady2(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ pushSample()

void DSDDecoder::pushSample ( short  sample)
inline

Definition at line 32 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

32 { m_decoder.run(sample); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ resetAudio1()

void DSDDecoder::resetAudio1 ( )
inline

Definition at line 37 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

37 { m_decoder.resetAudio1(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ resetAudio2()

void DSDDecoder::resetAudio2 ( )
inline

Definition at line 39 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

39 { m_decoder.resetAudio2(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ resetMbeDV1()

void DSDDecoder::resetMbeDV1 ( )
inline

Definition at line 44 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

44 { m_decoder.resetMbeDV1(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ resetMbeDV2()

void DSDDecoder::resetMbeDV2 ( )
inline

Definition at line 46 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::feed().

46 { m_decoder.resetMbeDV2(); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ set48k()

void DSDDecoder::set48k ( bool  to48k)

Definition at line 40 of file dsddecoder.cpp.

References m_decoder.

Referenced by useHPMbelib().

41 {
42  m_decoder.setUpsampling(to48k ? 6 : 0);
43 }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ setAudioGain()

void DSDDecoder::setAudioGain ( float  gain)
inline

Definition at line 72 of file dsddecoder.h.

References m_decoder, and setBaudRate().

Referenced by DSDDemod::applySettings().

72 { m_decoder.setAudioGain(gain); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setBaudRate()

void DSDDecoder::setBaudRate ( int  baudRate)

Definition at line 50 of file dsddecoder.cpp.

References m_decoder.

Referenced by DSDDemod::applySettings(), and setAudioGain().

51 {
52  if (baudRate == 2400)
53  {
54  m_decoder.setDataRate(DSDcc::DSDDecoder::DSDRate2400);
55  }
56  else if (baudRate == 4800)
57  {
58  m_decoder.setDataRate(DSDcc::DSDDecoder::DSDRate4800);
59  }
60  else if (baudRate == 9600)
61  {
62  m_decoder.setDataRate(DSDcc::DSDDecoder::DSDRate9600);
63  }
64  else // default 4800 bauds
65  {
66  m_decoder.setDataRate(DSDcc::DSDDecoder::DSDRate4800);
67  }
68 
69  // when setting baud rate activate detection of all possible modes for this rate
70  // because on the other hand when a mode is selected then the baud rate is automatically changed
71  m_decoder.setDecodeMode(DSDcc::DSDDecoder::DSDDecodeAuto, true);
72 }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ setMyPoint()

void DSDDecoder::setMyPoint ( float  lat,
float  lon 
)
inline

Definition at line 71 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::handleMessage().

71 { m_decoder.setMyPoint(lat, lon); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ setSymbolPLLLock()

void DSDDecoder::setSymbolPLLLock ( bool  pllLock)
inline

Definition at line 74 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::applySettings().

74 { m_decoder.setSymbolPLLLock(pllLock); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ setTDMAStereo()

void DSDDecoder::setTDMAStereo ( bool  tdmaStereo)
inline

Definition at line 51 of file dsddecoder.h.

References m_decoder.

Referenced by DSDDemod::applySettings().

51 { m_decoder.setTDMAStereo(tdmaStereo); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ setUpsampling()

void DSDDecoder::setUpsampling ( int  upsampling)

Definition at line 45 of file dsddecoder.cpp.

References m_decoder.

Referenced by DSDDemod::applyAudioSampleRate(), and useHPMbelib().

46 {
47  m_decoder.setUpsampling(upsampling);
48 }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the caller graph for this function:

◆ useHPMbelib()

void DSDDecoder::useHPMbelib ( bool  useHP)
inline

Definition at line 75 of file dsddecoder.h.

References m_decoder, set48k(), and setUpsampling().

Referenced by DSDDemod::applySettings().

75 { m_decoder.useHPMbelib(useHP); }
DSDcc::DSDDecoder m_decoder
Definition: dsddecoder.h:80
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_decoder

DSDcc::DSDDecoder DSDDecoder::m_decoder
private

The documentation for this class was generated from the following files: