Begin refacturing the different YSF modes.

This commit is contained in:
Jonathan Naylor 2017-08-14 14:08:43 +01:00
parent bd8f15cf5d
commit 701c6b2387
4 changed files with 509 additions and 271 deletions

View file

@ -54,6 +54,14 @@ const unsigned int INTERLEAVE_TABLE[] = {
36U, 76U, 116U, 156U, 196U,
38U, 78U, 118U, 158U, 198U};
CYSFFICH::CYSFFICH(const CYSFFICH& fich) :
m_fich(NULL)
{
m_fich = new unsigned char[6U];
::memcpy(m_fich, fich.m_fich, 6U);
}
CYSFFICH::CYSFFICH() :
m_fich(NULL)
{
@ -249,3 +257,11 @@ void CYSFFICH::setSQ(unsigned char sq)
m_fich[3U] &= 0x80U;
m_fich[3U] |= sq & 0x7FU;
}
CYSFFICH& CYSFFICH::operator=(const CYSFFICH& fich)
{
if (&fich != this)
::memcpy(m_fich, fich.m_fich, 6U);
return *this;
}