summaryrefslogtreecommitdiff
path: root/gr-digital/include/digital
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-08-14 19:39:08 -0400
committerTom Rondeau <trondeau@vt.edu>2012-08-14 19:39:08 -0400
commit29a019d2761f8001f2c132968c67b060a0ba24bc (patch)
tree1e532c72134af3070ff6f7b4e6df62645bd17a8b /gr-digital/include/digital
parentab479e3d5b5d77eb4133dd06ea3ffc51551fccd6 (diff)
digital: moved metric_type.h to digital include dir. Fixed gr-trellis to work with this.
Diffstat (limited to 'gr-digital/include/digital')
-rw-r--r--gr-digital/include/digital/CMakeLists.txt2
-rw-r--r--gr-digital/include/digital/constellation.h2
-rw-r--r--gr-digital/include/digital/metric_type.h31
3 files changed, 33 insertions, 2 deletions
diff --git a/gr-digital/include/digital/CMakeLists.txt b/gr-digital/include/digital/CMakeLists.txt
index 27e151e0a5..83d0dfc557 100644
--- a/gr-digital/include/digital/CMakeLists.txt
+++ b/gr-digital/include/digital/CMakeLists.txt
@@ -103,7 +103,7 @@ install(FILES
# lms_dd_equalizer_cc.h
# kurtotic_equalizer_cc.h
map_bb.h
-# metric_type.h
+ metric_type.h
mpsk_receiver_cc.h
mpsk_snr_est_cc.h
# ofdm_cyclic_prefixer.h
diff --git a/gr-digital/include/digital/constellation.h b/gr-digital/include/digital/constellation.h
index 0e38355561..1acc6bdc8b 100644
--- a/gr-digital/include/digital/constellation.h
+++ b/gr-digital/include/digital/constellation.h
@@ -24,7 +24,7 @@
#define INCLUDED_DIGITAL_CONSTELLATION_H
#include <digital/api.h>
-#include <digital_metric_type.h>
+#include <digital/metric_type.h>
#include <boost/enable_shared_from_this.hpp>
#include <gr_complex.h>
#include <vector>
diff --git a/gr-digital/include/digital/metric_type.h b/gr-digital/include/digital/metric_type.h
new file mode 100644
index 0000000000..7eacc95150
--- /dev/null
+++ b/gr-digital/include/digital/metric_type.h
@@ -0,0 +1,31 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2004 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ *
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef INCLUDED_DIGITAL_METRIC_TYPE_H
+#define INCLUDED_DIGITAL_METRIC_TYPE_H
+
+typedef enum {
+ TRELLIS_EUCLIDEAN = 200, TRELLIS_HARD_SYMBOL, TRELLIS_HARD_BIT
+} trellis_metric_type_t;
+
+#endif /* INCLUDED_DIGITAL_METRIC_TYPE_H */
+