Add the P25 NID BCH encoder.

This commit is contained in:
Jonathan Naylor
2016-09-19 21:41:34 +01:00
parent 16ec0db6d8
commit 3567d83349
13 changed files with 255 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ m_netFrames(0U),
m_netBits(0U),
m_netErrs(0U),
m_netLost(0U),
m_nid(),
m_nid(nac),
m_audio(),
m_rfData(),
m_netData()
@@ -82,6 +82,7 @@ bool CP25Control::writeModem(unsigned char* data, unsigned int len)
LogMessage("P25, transmission lost, %.1f seconds, BER: %.1f%%", float(m_rfFrames) / 5.56F, float(m_rfErrs * 100U) / float(m_rfBits));
if (m_netState == RS_NET_IDLE)
m_display->clearP25();
writeNetwork(data + 2U, P25_DUID_TERM);
m_rfState = RS_RF_LISTENING;
m_rfTimeout.stop();
m_rfData.reset();