~ubuntu-branches/debian/jessie/linpsk/jessie

« back to all changes in this revision

Viewing changes to linpsk/pskmod.h

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2005-04-10 18:17:27 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050410181727-3l9dnfg0sp7bhk13
Tags: 0.8.1-1
* New upstream release 0.8.1
  * Modified upstream configure.in to support FHS-compliant Qt
    installation! (ie /usr/include/qt3, not /usr/lib/qt3/include) :-(
  * Re-autotools with autoconf2.59 and automake-1.9
* linpsk is no longer a Debian-native package (dsc/tar.gz)
* Now maintained by the debian-hams group
* Switch to debhelper 4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//////////////////////////////////////////////////////////////////////
2
 
// PSKMod.h: interface for the CPSKMod class.
3
 
//
4
 
//////////////////////////////////////////////////////////////////////
5
 
//      PSK31/CW modulator
6
 
// Copyright 1999.    Moe Wheatley AE4JY  <ae4jy@mindspring.com>
7
 
//
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.
12
 
//
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.
17
 
//
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.
21
 
//
22
 
//////////////////////////////////////////////////////////////////////
23
 
//
24
 
// Modified by Volker Schroer, DL1KSV, for use in LinPsk
25
 
 
26
 
#ifndef PSKMOD_H
27
 
#define PSKMOD_H
28
 
 
29
 
#include <qobject.h>
30
 
#include "constants.h"
31
 
#include "parameter.h"
32
 
#include <ctype.h>
33
 
 
34
 
#include "ctxdisplay.h"
35
 
#include "ctxwindow.h"
36
 
#include "cmodulator.h"
37
 
 
38
 
extern Parameter settings;
39
 
 
40
 
class PSKModulator  : public CModulator
41
 
{
42
 
   Q_OBJECT
43
 
public:
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
52
 
                n                                                               length of array
53
 
                length                                  number of calculated values , normally n but shorter at end of tx
54
 
*/
55
 
 
56
 
private:
57
 
        QString m_TestString;
58
 
        unsigned int m_AmblePtr;
59
 
        int m_Preamble[33];
60
 
        int m_Postamble[33];
61
 
 
62
 
// PSK31 and CW generator variables
63
 
        double m_t;
64
 
        int m_Ramp;
65
 
        double m_RMSConstant;
66
 
 
67
 
        double m_PSKSecPerSamp;
68
 
        double m_PSKTime;
69
 
        double m_PSKPeriodUpdate;
70
 
        double m_PSKPhaseInc;
71
 
        unsigned short int m_TxShiftReg;
72
 
        unsigned short int m_TxCodeWord;
73
 
        double* m_pPSKtxI;
74
 
        double* m_pPSKtxQ;
75
 
        char m_PresentPhase;
76
 
        char m_Lastsymb;
77
 
        int m_CWState;
78
 
        int m_CWtimer;
79
 
        bool m_AddEndingZero;
80
 
// Window pointer
81
 
// CTxdisplay *tx;
82
 
 
83
 
// PSK31 and CW modulator private functions
84
 
        int GetChar();
85
 
        char GetNextBPSKSymbol(void);
86
 
        char GetNextQPSKSymbol(void);
87
 
        char GetNextCWSymbol(void);
88
 
public slots:
89
 
signals: // Signals
90
 
  /** Tx finished */
91
 
//  void finished();
92
 
//  void charSend(char);
93
 
};
94
 
 
95
 
#endif