micro_climate/App/Inc/collect_data.h

31 lines
576 B
C
Raw Permalink Normal View History

2024-07-05 03:52:43 +00:00
#ifndef _COLLECT_DATA_
#define _COLLECT_DATA_
#include "comm_types.h"
#include "sm6ds3th.h"
#pragma pack(push,1)
// <20><><EFBFBD>ݽṹ<DDBD><E1B9B9><EFBFBD><EFBFBD>
// ԭʼ<D4AD><CABC><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#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;
// <20>Ƕȼ<C7B6><C8BC><EFBFBD><EFBFBD><EFBFBD><E1B9B9>
typedef struct{
float Angle_X;
float Angle_Y;
float isReady;
}tagAnlgeValue;
#pragma pack(pop)
extern tagAnlgeValue g_AnlgeValue;
void GetAngleValue();
#endif