1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 08:54:49 -04:00

BFM demod: working RDS support

This commit is contained in:
f4exb
2015-12-13 09:45:29 +01:00
parent 6782c753ad
commit 48855bfb63
13 changed files with 4719 additions and 14 deletions
+5 -2
View File
@@ -45,8 +45,9 @@ RDSDecoder::~RDSDecoder()
{
}
void RDSDecoder::frameSync(bool bit)
bool RDSDecoder::frameSync(bool bit)
{
bool group_ready = false;
unsigned int reg_syndrome;
unsigned long bit_distance, block_distance;
unsigned int block_calculated_crc, block_received_crc, checkword, dataword;
@@ -170,7 +171,7 @@ void RDSDecoder::frameSync(bool bit)
if (m_groupGoodBlocksCounter == 5)
{
//decode_group(group); TODO: pass on to the group parser
group_ready = true; //decode_group(group); pass on to the group parser
}
}
@@ -205,6 +206,8 @@ void RDSDecoder::frameSync(bool bit)
}
m_bitCounter++;
return group_ready;
}
////////////////////////// HELPER FUNTIONS /////////////////////////