~ubuntu-branches/ubuntu/quantal/linpsk/quantal

« back to all changes in this revision

Viewing changes to linpsk/cdemodulator.h

  • Committer: Bazaar Package Importer
  • Author(s): Bruce Walker
  • Date: 2002-02-06 11:43:38 UTC
  • Revision ID: james.westby@ubuntu.com-20020206114338-xqmjmhh01lpjm0g4
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          cdemodulator.h  -  description
 
3
                             -------------------
 
4
    begin                : Sat Jun 2 2001
 
5
    copyright            : (C) 2001 by Volker Schroer
 
6
    email                : dl1ksv@gmx.de
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 ***************************************************************************/
 
16
 
 
17
#ifndef CDEMODULATOR_H
 
18
#define CDEMODULATOR_H
 
19
 
 
20
#include <qobject.h>
 
21
#include <complex.h>
 
22
 
 
23
/**Base class for all possible types of demodulators
 
24
  *@author Volker Schroer
 
25
  */
 
26
 
 
27
class CDemodulator : public QObject
 
28
 {
 
29
 Q_OBJECT
 
30
public: 
 
31
         CDemodulator();
 
32
        
 
33
        virtual ~CDemodulator();
 
34
  /** processes the input */
 
35
  virtual void ProcessInput(double *input) = 0;
 
36
        /** gets the selected frequency */
 
37
        double getRxFrequency(void);
 
38
        /** Initialises something */
 
39
        virtual bool Init(double,int) = 0;
 
40
 
 
41
protected:
 
42
        /** Status of AFC */
 
43
        bool UseAfc;
 
44
        /** Frequency to be received */
 
45
        double RxFrequency;
 
46
 
 
47
public slots: //Slots
 
48
  /** enables/ disables the use of AFC */
 
49
        virtual void    setAfc(bool);
 
50
  /** sets the frequency for the demodulator */
 
51
  virtual void setRxFrequency(double);
 
52
 
 
53
        
 
54
signals: // Signals
 
55
  /** Signal will be emitted if a new character was detected */
 
56
  void newSymbol(char);
 
57
        /** FastSquelch ?? */
 
58
        void setFastSquelch(bool);
 
59
        /** SquelchLevel */
 
60
        void setSquelchValue(int);
 
61
        /** Signal will be emitted if AFC is on and the RxFrequency has changed */
 
62
        void rxFrequencyChanged(double);
 
63
        /** Send Phase Value */
 
64
        void newPhaseValue(int,float_complex);
 
65
        
 
66
};
 
67
 
 
68
#endif