1
//////////////////////////////////////////////////////////////////////
2
// PSKMod.h: interface for the CPSKMod class.
4
//////////////////////////////////////////////////////////////////////
6
// Copyright 1999. Moe Wheatley AE4JY <ae4jy@mindspring.com>
8
//This program is free software; you can redistribute it and/or
9
//modify it under the terms of the GNU General Public License
10
//as published by the Free Software Foundation; either version 2
11
//of the License, or any later version.
13
//This program is distributed in the hope that it will be useful,
14
//but WITHOUT ANY WARRANTY; without even the implied warranty of
15
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
//GNU General Public License for more details.
18
//You should have received a copy of the GNU General Public License
19
//along with this program; if not, write to the Free Software
20
//Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
//////////////////////////////////////////////////////////////////////
24
// Modified by Volker Schroer, DL1KSV, for use in LinPsk
30
#include "constants.h"
31
#include "parameter.h"
34
#include "ctxdisplay.h"
35
#include "ctxwindow.h"
36
#include "cmodulator.h"
38
extern Parameter settings;
40
class PSKModulator : public CModulator
44
PSKModulator(int,double,CTxdisplay *);
45
virtual ~PSKModulator();
46
// PSK31 and CW modulator
47
// void InitPSKModulator(double freq, CTxdisplay *);
48
unsigned int CalcSignal( double* pData , int n);
49
/** length = CalcSignal (double *pData, int n)
50
Reads tx Buffer and calculates the signal values to be transmitted
51
double *pData pointer to array for computed signal values
53
length number of calculated values , normally n but shorter at end of tx
58
unsigned int m_AmblePtr;
62
// PSK31 and CW generator variables
67
double m_PSKSecPerSamp;
69
double m_PSKPeriodUpdate;
71
unsigned short int m_TxShiftReg;
72
unsigned short int m_TxCodeWord;
83
// PSK31 and CW modulator private functions
85
char GetNextBPSKSymbol(void);
86
char GetNextQPSKSymbol(void);
87
char GetNextCWSymbol(void);
92
// void charSend(char);