1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
//////////////////////////////////////////////////////////////////////
// rdsdecode.h: decodes RDS messages into text.
//
// History:
// 2011-08-26 Initial creation MSW
// 2011-08-26 Initial release
/////////////////////////////////////////////////////////////////////
#ifndef RDSDECODE_H
#define RDSDECODE_H
#include <QtGlobal>
#include "dsp/rbdsconstants.h"
#define MAX_TEXT 128
class CRdsDecode
{
public:
CRdsDecode();
void DecodeRdsGroup(tRDS_GROUPS* pGrp);
int GetRdsString( char* Str);
int GetRdsCallString( char* Str);
void DecodeReset(int USFm);
private:
void Decode32RadioText();
void Decode64RadioText();
void DecodePTYText();
void DecodePSText();
void DecodePIcode();
tRDS_GROUPS m_Group;
int m_USFm;
int m_GrpType;
int m_PrgType;
int m_LastPrgType;
int m_LastABBit;
int m_LastPICode;
int m_MaxTextPos;
char m_PTYText[MAX_TEXT];
char m_RDSText[MAX_TEXT];
char m_RTextOut[MAX_TEXT];
char m_RText[MAX_TEXT];
char m_PSTextOut[MAX_TEXT];
char m_PSText[MAX_TEXT];
char m_RBDSCallSign[MAX_TEXT];
};
#endif // RDSDECODE_H
|