1 // ----------------------------------------------------------------------------
2 // ssb.cxx  --  ssb modem
3 //
4 // Copyright (C) 2010
5 //		Dave Freese, W1HKJ
6 //
7 // This file is part of fldigi.
8 //
9 // Fldigi is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // Fldigi is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with fldigi.  If not, see <http://www.gnu.org/licenses/>.
21 // ----------------------------------------------------------------------------
22 
23 #include <config.h>
24 
25 #include "ssb.h"
26 #include "modem.h"
27 #include "digiscope.h"
28 #include "fl_digi.h"
29 
30 #include "debug.h"
31 
32 #define ssb_bw         4
33 
tx_init()34 void ssb::tx_init()
35 {
36 }
37 
rx_init()38 void ssb::rx_init()
39 {
40 	put_MODEstatus(mode);
41 }
42 
init()43 void ssb::init()
44 {
45 	modem::init();
46 	rx_init();
47 	set_scope_mode(Digiscope::BLANK);
48 }
49 
~ssb()50 ssb::~ssb()
51 {
52 }
53 
restart()54 void ssb::restart()
55 {
56 	set_bandwidth(ssb_bw);
57 }
58 
ssb()59 ssb::ssb()
60 {
61 	mode = MODE_SSB;
62 	samplerate = 44100;
63 	cap &= ~CAP_TX;
64 	restart();
65 }
66 
67 // dummy process
rx_process(const double * buf,int len)68 int ssb::rx_process(const double *buf, int len)
69 {
70 	return 0;
71 }
72 
73 //=====================================================================
74 // ssb transmit
75 // dummy process
76 //=====================================================================
77 
tx_process()78 int ssb::tx_process()
79 {
80 	return -1;
81 }
82