Skip to content
Snippets Groups Projects
Commit b0166aa8 authored by John Romein's avatar John Romein
Browse files

BugID: 225

added i4complex support
parent f8f35ae7
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@
#include <Common/lofar_complex.h>
#include <Common/Timer.h>
#include <CS1_InputSection/LockedRange.h>
#include <CS1_Interface/DH_RSP.h>
#include <CS1_Interface/RSPTimeStamp.h>
#include <CS1_Interface/SparseSet.h>
......@@ -45,8 +46,7 @@ namespace LOFAR
// @{
class Beamlet {
i16complex Xpol;
i16complex Ypol;
DH_RSP::BufferType Xpol, Ypol;
};
// A BeamletBuffer can hold the beamlets coming from the rspboards
......
......@@ -57,4 +57,12 @@
#define I4COMPLEX_TYPE 1
#define I16COMPLEX_TYPE 2
#if INPUT_TYPE == I4COMPLEX_TYPE
#define INPUT_SAMPLE_TYPE i4complex
#elif INPUT_TYPE == I16COMPLEX_TYPE
#define INPUT_SAMPLE_TYPE i16complex
#else
#error Bad INPUT_TYPE
#endif
#endif
......@@ -26,6 +26,7 @@
#include <APS/ParameterSet.h>
#include <Transport/DataHolder.h>
#include <CS1_Interface/CS1_Config.h>
#include <CS1_Interface/RSPTimeStamp.h>
#include <CS1_Interface/RectMatrix.h>
#include <CS1_Interface/SparseSet.h>
......@@ -38,7 +39,7 @@ namespace LOFAR
class DH_RSP: public DataHolder
{
public:
typedef i16complex BufferType;
typedef INPUT_SAMPLE_TYPE BufferType;
explicit DH_RSP (const string &name,
const ACC::APS::ParameterSet &pset);
......
......@@ -44,13 +44,7 @@ class DH_Subband: public DataHolder
public:
// samples are ALWAYS stored in little endian format !
#if INPUT_TYPE == I4COMPLEX_TYPE
typedef i4complex SampleType;
#elif INPUT_TYPE == I16COMPLEX_TYPE
typedef i16complex SampleType;
#else
#error INPUT_TYPE not supported
#endif
typedef INPUT_SAMPLE_TYPE SampleType;
// Fine-grained delays
typedef struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment