summaryrefslogtreecommitdiff
path: root/commons.h
diff options
context:
space:
mode:
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