You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CMSIS-DSP/Testing/Include/Tests/TransformCQ15.h

37 lines
1019 B
C++

#include "Test.h"
#include "Pattern.h"
#include "dsp/transform_functions.h"
class TransformCQ15:public Client::Suite
{
public:
TransformCQ15(Testing::testID_t id);
virtual void setUp(Testing::testID_t,std::vector<Testing::param_t>& paramsArgs,Client::PatternMgr *mgr);
virtual void tearDown(Testing::testID_t,Client::PatternMgr *mgr);
private:
#include "TransformCQ15_decl.h"
Client::Pattern<q15_t> input;
Client::LocalPattern<q15_t> outputfft;
Client::LocalPattern<q15_t> outputifft;
Client::RefPattern<q15_t> ref;
arm_cfft_instance_q15 instCfftQ15;
int ifft;
/*
ifft pattern is using the output of the fft and the input of the fft.
Since output of the fft is scaled, the input is not recovered without an additional scaling.
*/
int scaling;
arm_status status;
};