Decode and encode the System Fusion FICH.

This commit is contained in:
Jonathan Naylor
2016-02-23 19:30:35 +00:00
parent 6792894c00
commit dc819b8821
10 changed files with 219 additions and 74 deletions

View File

@@ -51,14 +51,16 @@ bool CYSFParrot::write(const unsigned char* data)
::memcpy(m_data + m_used, data, YSF_FRAME_LENGTH_BYTES + 2U);
m_used += YSF_FRAME_LENGTH_BYTES + 2U;
if (data[0U] == TAG_EOT) {
m_timer.start();
m_ptr = 0U;
}
return true;
}
void CYSFParrot::end()
{
m_timer.start();
m_ptr = 0U;
}
void CYSFParrot::read(unsigned char* data)
{
assert(data != NULL);