2018-01-24 18:37:45 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 by Jonathan Naylor G4KLX
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !defined(NXDNFACCH1_H)
|
|
|
|
#define NXDNFACCH1_H
|
|
|
|
|
|
|
|
class CNXDNFACCH1 {
|
|
|
|
public:
|
|
|
|
CNXDNFACCH1(const CNXDNFACCH1& facch);
|
|
|
|
CNXDNFACCH1();
|
|
|
|
~CNXDNFACCH1();
|
|
|
|
|
2018-01-29 21:41:14 +00:00
|
|
|
bool decode(const unsigned char* data, unsigned int offset);
|
|
|
|
|
|
|
|
void encode(unsigned char* data, unsigned int offset) const;
|
2018-01-24 18:37:45 +00:00
|
|
|
|
2018-02-21 07:48:24 +00:00
|
|
|
void getData(unsigned char* data) const;
|
|
|
|
void getRaw(unsigned char* data) const;
|
2018-01-24 18:37:45 +00:00
|
|
|
|
|
|
|
void setData(const unsigned char* data);
|
2018-02-21 07:48:24 +00:00
|
|
|
void setRaw(const unsigned char* data);
|
2018-01-24 18:37:45 +00:00
|
|
|
|
|
|
|
CNXDNFACCH1& operator=(const CNXDNFACCH1& facch);
|
|
|
|
|
|
|
|
private:
|
2018-01-25 19:19:54 +00:00
|
|
|
unsigned char* m_data;
|
2018-01-24 18:37:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|