MMDVM_CM/DSTAR2YSF/DSTAR2YSF.h
2020-11-02 00:11:30 -05:00

62 lines
1.6 KiB
C++

/*
* Copyright (C) 2016 by Jonathan Naylor G4KLX
* Copyright (C) 2018 by Andy Uribe CA6JAU
* Copyright (C) 2018 by Manuel Sanchez EA7EE
*
* 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(DSTAR2YSF_H)
#define DSTAR2YSF_H
#include "DSTARNetwork.h"
#include "ModeConv.h"
#include "UDPSocket.h"
#include "StopWatch.h"
#include "Version.h"
#include "YSFPayload.h"
#include "YSFNetwork.h"
#include "YSFFICH.h"
#include "Timer.h"
#include "Utils.h"
#include "Conf.h"
#include "Log.h"
#include "CRC.h"
#include <string>
class CDSTAR2YSF
{
public:
CDSTAR2YSF(const std::string& configFile);
~CDSTAR2YSF();
int run();
private:
std::string m_callsign;
CConf m_conf;
CDSTARNetwork* m_dstarNetwork;
CYSFNetwork* m_ysfNetwork;
unsigned char* m_ysfFrame;
CModeConv m_conv;
unsigned char* m_dstarFrame;
unsigned int m_dstarFrames;
void processWiresX(const unsigned char* data, unsigned char fi, unsigned char dt, unsigned char fn, unsigned char ft);
};
#endif