From 2e7d6f638181231bad0a8fd2fa6fb72cf6ad1f7c Mon Sep 17 00:00:00 2001
From: Ben Reynwar <ben@reynwar.net>
Date: Mon, 31 Jan 2011 23:25:36 -0700
Subject: Added QPSK constellation object.

---
 gnuradio-core/src/lib/general/gr_constellation.h | 26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

(limited to 'gnuradio-core/src/lib/general/gr_constellation.h')

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
-- 
cgit v1.2.3