/*
 * main.c
 */

typedef signed char     int8;
typedef unsigned char   Uint8;
typedef signed short	int16;
typedef unsigned short  Uint16;
typedef int			    int32;
typedef unsigned int	Uint32;
typedef float			float32;
typedef long long       int64;
typedef unsigned long long Uint64;


//--------------------------------------------------------------------

typedef struct
{

    int16	bufswitch;	//当前buf编号

	float	data_lev1buf[2][6][128];		//lev1原始采样缓存

	float	fftbuf_r[16];
	float	fftbuf_i[16];



}HARBAY;

HARBAY  *dp;

int main(void) {
	

	int16	i;

	HARBAY *dp = (HARBAY *)calloc(1, sizeof(HARBAY), 1);
		if(!dp) return 0;



		dp->bufswitch=1;


		//取待计算数据,倒位序
		for(i=0; i<16; i++)
		{
			dp->fftbuf_r[i]=dp->data_lev1buf[dp->bufswitch][2][48];
			dp->fftbuf_i[i]=0;
		}



	return 0;
}
