##// END OF EJS Templates
Development of the waveform storage ability of the lfrgse
Development of the waveform storage ability of the lfrgse

File last commit:

r20:eedc59c3c383 default
r42:e422d9305701 default
Show More
wfpacket.cpp
24 lines | 469 B | text/x-c | CppLexer
#include "wfpacket.h"
WFPacket::WFPacket(QObject *parent) :
QObject(parent)
{
this->nbSamples = XMAX;
//
wf_v = (short*) malloc(2*XMAX);
wf_e1 = (short*) malloc(2*XMAX);
wf_e2 = (short*) malloc(2*XMAX);
wf_b1 = (short*) malloc(2*XMAX);
wf_b2 = (short*) malloc(2*XMAX);
wf_b3 = (short*) malloc(2*XMAX);
}
WFPacket::~WFPacket()
{
free(wf_v);
free(wf_e1);
free(wf_e2);
free(wf_b1);
free(wf_b2);
free(wf_b3);
}