summaryrefslogtreecommitdiff
path: root/commons.h
diff options
context:
space:
mode:
authorIain R. Learmonth <irl@debian.org>2015-10-18 18:51:00 +0100
committerIain R. Learmonth <irl@debian.org>2015-10-18 18:51:00 +0100
commitd63dd8d081a6fcd0715cd13f26df59fb831769d2 (patch)
treeb9c1f6245147a310aac3762630bad389bbb57335 /commons.h
parentc720a3d55c5ec832c29cb7ce50b6fb4b70c55b11 (diff)
Imported Upstream version 1.5.0upstream/1.5.0
Diffstat (limited to 'commons.h')
-rw-r--r--commons.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/commons.h b/commons.h
index e521841c..51834f3b 100644
--- a/commons.h
+++ b/commons.h
@@ -1,16 +1,14 @@
#ifndef COMMONS_H
#define COMMONS_H
-//#define NSMAX 1365
#define NSMAX 6827
#define NTMAX 120
+#define RX_SAMPLE_RATE 12000
-extern "C" {
-
-extern struct {
+extern struct FortranCommon {
float ss[184*NSMAX]; //This is "common/jt9com/..." in fortran
float savg[NSMAX];
- short int d2[NTMAX*12000];
+ short int d2[NTMAX*RX_SAMPLE_RATE];
int nutc; //UTC as integer, HHMM
int ndiskdat; //1 ==> data read from *.wav file
int ntrperiod; //TR period (seconds)
@@ -18,6 +16,7 @@ extern struct {
int newdat; //1 ==> new data, must do long FFT
int npts8; //npts for c0() array
int nfa; //Low decode limit (Hz)
+ int nfSplit; //JT65 | JT9 split frequency
int nfb; //High decode limit (Hz)
int ntol; //+/- decoding range around fQSO (Hz)
int kin;
@@ -30,6 +29,10 @@ extern struct {
char datetime[20];
} jt9com_;
+extern "C" {
+extern struct {
+ float syellow[NSMAX];
+} jt9w_;
}
#endif // COMMONS_H