summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general/gr_constellation.h
diff options
context:
space:
mode:
authorBen Reynwar <ben@reynwar.net>2011-01-31 23:25:36 -0700
committerBen Reynwar <ben@reynwar.net>2011-01-31 23:25:36 -0700
commit2e7d6f638181231bad0a8fd2fa6fb72cf6ad1f7c (patch)
tree991973ef18d1898b3b6a1b4ef23b5c4560aaa895 /gnuradio-core/src/lib/general/gr_constellation.h
parentc72e8c84f565cf3be61780515fa6f7f3dfd73218 (diff)
Added QPSK constellation object.
Diffstat (limited to 'gnuradio-core/src/lib/general/gr_constellation.h')
-rw-r--r--gnuradio-core/src/lib/general/gr_constellation.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/general/gr_constellation.h b/gnuradio-core/src/lib/general/gr_constellation.h
index fcc947ca62..8ba22d59ac 100644
--- a/gnuradio-core/src/lib/general/gr_constellation.h
+++ b/gnuradio-core/src/lib/general/gr_constellation.h
@@ -213,4 +213,30 @@ class gr_constellation_bpsk : public gr_constellation
};
+/************************************************************/
+/* gr_constellation_qpsk */
+/* */
+/* Only works for QPSK. */
+/* */
+/************************************************************/
+
+class gr_constellation_qpsk;
+typedef boost::shared_ptr<gr_constellation_qpsk> gr_constellation_qpsk_sptr;
+
+// public constructor
+gr_constellation_qpsk_sptr
+gr_make_constellation_qpsk ();
+
+class gr_constellation_qpsk : public gr_constellation
+{
+ public:
+
+ gr_constellation_qpsk ();
+ unsigned int decision_maker (gr_complex sample);
+
+ friend gr_constellation_qpsk_sptr
+ gr_make_constellation_qpsk ();
+
+};
+
#endif