#ifndef _COLLECT_DATA_
#define _COLLECT_DATA_

#include "comm_types.h"
#include "sm6ds3th.h"

#pragma pack(push,1)

// 数据结构定义
// 原始采样值缓冲区
#define SMPVALUE_BUFFER_LEN  40
typedef struct{
	U_DataType XValueBuffer[SMPVALUE_BUFFER_LEN];
	U_DataType YValueBuffer[SMPVALUE_BUFFER_LEN]; 
	
	U_DataType XValue; 
	U_DataType YValue;
}tagSmpValueBuffer;

// 角度计算结构体
typedef struct{
	float Angle_X;           
	float Angle_Y;               
	float isReady;         
}tagAnlgeValue;
#pragma pack(pop) 
extern tagAnlgeValue g_AnlgeValue;

void GetAngleValue();
#endif