summaryrefslogtreecommitdiff
path: root/gr-digital/include/digital_constellation.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/include/digital_constellation.h')
-rw-r--r--gr-digital/include/digital_constellation.h45
1 files changed, 23 insertions, 22 deletions
diff --git a/gr-digital/include/digital_constellation.h b/gr-digital/include/digital_constellation.h
index b6da7ff9b..fb2f6747a 100644
--- a/gr-digital/include/digital_constellation.h
+++ b/gr-digital/include/digital_constellation.h
@@ -23,6 +23,7 @@
#ifndef INCLUDED_DIGITAL_CONSTELLATION_H
#define INCLUDED_DIGITAL_CONSTELLATION_H
+#include <digital_api.h>
#include <vector>
#include <math.h>
#include <gr_complex.h>
@@ -53,7 +54,7 @@ typedef boost::shared_ptr<digital_constellation> digital_constellation_sptr;
* from this class and overloaded to perform optimized slicing and
* constellation mappings.
*/
-class digital_constellation : public boost::enable_shared_from_this<digital_constellation>
+class DIGITAL_API digital_constellation : public boost::enable_shared_from_this<digital_constellation>
{
public:
digital_constellation (std::vector<gr_complex> constellation,
@@ -134,7 +135,7 @@ class digital_constellation_calcdist;
typedef boost::shared_ptr<digital_constellation_calcdist> digital_constellation_calcdist_sptr;
// public constructor
-digital_constellation_calcdist_sptr
+DIGITAL_API digital_constellation_calcdist_sptr
digital_make_constellation_calcdist (std::vector<gr_complex> constellation,
std::vector<unsigned int> pre_diff_code,
unsigned int rotational_symmetry,
@@ -148,7 +149,7 @@ digital_make_constellation_calcdist (std::vector<gr_complex> constellation,
* constellation for decision making. Inefficient for large
* constellations.
*/
-class digital_constellation_calcdist : public digital_constellation
+class DIGITAL_API digital_constellation_calcdist : public digital_constellation
{
public:
digital_constellation_calcdist (std::vector<gr_complex> constellation,
@@ -161,7 +162,7 @@ class digital_constellation_calcdist : public digital_constellation
// void calc_hard_symbol_metric(gr_complex *sample, float *metric);
private:
- friend digital_constellation_calcdist_sptr
+ friend DIGITAL_API digital_constellation_calcdist_sptr
digital_make_constellation_calcdist (std::vector<gr_complex> constellation);
};
@@ -178,7 +179,7 @@ class digital_constellation_calcdist : public digital_constellation
* associated with the nearest constellation point.
*
*/
-class digital_constellation_sector : public digital_constellation
+class DIGITAL_API digital_constellation_sector : public digital_constellation
{
public:
@@ -227,7 +228,7 @@ class digital_constellation_rect;
typedef boost::shared_ptr<digital_constellation_rect> digital_constellation_rect_sptr;
// public constructor
-digital_constellation_rect_sptr
+DIGITAL_API digital_constellation_rect_sptr
digital_make_constellation_rect (std::vector<gr_complex> constellation,
std::vector<unsigned int> pre_diff_code,
unsigned int rotational_symmetry,
@@ -236,7 +237,7 @@ digital_make_constellation_rect (std::vector<gr_complex> constellation,
float width_real_sectors,
float width_imag_sectors);
-class digital_constellation_rect : public digital_constellation_sector
+class DIGITAL_API digital_constellation_rect : public digital_constellation_sector
{
public:
@@ -261,7 +262,7 @@ class digital_constellation_rect : public digital_constellation_sector
float d_width_real_sectors;
float d_width_imag_sectors;
- friend digital_constellation_rect_sptr
+ friend DIGITAL_API digital_constellation_rect_sptr
digital_make_constellation_rect (std::vector<gr_complex> constellation,
std::vector<unsigned int> pre_diff_code,
unsigned int rotational_symmetry,
@@ -281,7 +282,7 @@ class digital_constellation_psk;
typedef boost::shared_ptr<digital_constellation_psk> digital_constellation_psk_sptr;
// public constructor
-digital_constellation_psk_sptr
+DIGITAL_API digital_constellation_psk_sptr
digital_make_constellation_psk (std::vector<gr_complex> constellation,
std::vector<unsigned int> pre_diff_code,
unsigned int n_sectors);
@@ -298,7 +299,7 @@ digital_make_constellation_psk (std::vector<gr_complex> constellation,
*
* Assumes that there is a constellation point at 1.x
*/
-class digital_constellation_psk : public digital_constellation_sector
+class DIGITAL_API digital_constellation_psk : public digital_constellation_sector
{
public:
@@ -314,7 +315,7 @@ class digital_constellation_psk : public digital_constellation_sector
private:
- friend digital_constellation_psk_sptr
+ friend DIGITAL_API digital_constellation_psk_sptr
digital_make_constellation_psk (std::vector<gr_complex> constellation,
std::vector<unsigned int> pre_diff_code,
unsigned int n_sectors);
@@ -333,21 +334,21 @@ class digital_constellation_bpsk;
typedef boost::shared_ptr<digital_constellation_bpsk> digital_constellation_bpsk_sptr;
// public constructor
-digital_constellation_bpsk_sptr
+DIGITAL_API digital_constellation_bpsk_sptr
digital_make_constellation_bpsk ();
/*!
* \brief Digital constellation for BPSK
* \ingroup digital
*/
-class digital_constellation_bpsk : public digital_constellation
+class DIGITAL_API digital_constellation_bpsk : public digital_constellation
{
public:
digital_constellation_bpsk ();
unsigned int decision_maker (const gr_complex *sample);
- friend digital_constellation_bpsk_sptr
+ friend DIGITAL_API digital_constellation_bpsk_sptr
digital_make_constellation_bpsk ();
};
@@ -364,21 +365,21 @@ class digital_constellation_qpsk;
typedef boost::shared_ptr<digital_constellation_qpsk> digital_constellation_qpsk_sptr;
// public constructor
-digital_constellation_qpsk_sptr
+DIGITAL_API digital_constellation_qpsk_sptr
digital_make_constellation_qpsk ();
/*!
* \brief Digital constellation for QPSK
* \ingroup digital
*/
-class digital_constellation_qpsk : public digital_constellation
+class DIGITAL_API digital_constellation_qpsk : public digital_constellation
{
public:
digital_constellation_qpsk ();
unsigned int decision_maker (const gr_complex *sample);
- friend digital_constellation_qpsk_sptr
+ friend DIGITAL_API digital_constellation_qpsk_sptr
digital_make_constellation_qpsk ();
};
@@ -395,14 +396,14 @@ class digital_constellation_dqpsk;
typedef boost::shared_ptr<digital_constellation_dqpsk> digital_constellation_dqpsk_sptr;
// public constructor
-digital_constellation_dqpsk_sptr
+DIGITAL_API digital_constellation_dqpsk_sptr
digital_make_constellation_dqpsk ();
/*!
* \brief Digital constellation for DQPSK
* \ingroup digital
*/
-class digital_constellation_dqpsk : public digital_constellation
+class DIGITAL_API digital_constellation_dqpsk : public digital_constellation
{
public:
@@ -426,21 +427,21 @@ class digital_constellation_8psk;
typedef boost::shared_ptr<digital_constellation_8psk> digital_constellation_8psk_sptr;
// public constructor
-digital_constellation_8psk_sptr
+DIGITAL_API digital_constellation_8psk_sptr
digital_make_constellation_8psk ();
/*!
* \brief Digital constellation for 8PSK
* \ingroup digital
*/
-class digital_constellation_8psk : public digital_constellation
+class DIGITAL_API digital_constellation_8psk : public digital_constellation
{
public:
digital_constellation_8psk ();
unsigned int decision_maker (const gr_complex *sample);
- friend digital_constellation_8psk_sptr
+ friend DIGITAL_API digital_constellation_8psk_sptr
digital_make_constellation_8psk ();
};