初始版本
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#ifndef __LSM6DSL_APP_H__
|
||||
#define __LSM6DSL_APP_H__
|
||||
|
||||
#include "bsp.h"
|
||||
|
||||
#define X 0
|
||||
#define Y 1
|
||||
#define Z 2
|
||||
#define XYZ 3
|
||||
|
||||
typedef struct {
|
||||
uint16_t GyX;
|
||||
uint16_t GyY;
|
||||
uint16_t GyZ;
|
||||
uint16_t AccX;
|
||||
uint16_t AccY;
|
||||
uint16_t AccZ;
|
||||
}AccGyData_t;
|
||||
|
||||
typedef struct {
|
||||
uint16_t AccX;
|
||||
uint16_t AccY;
|
||||
uint16_t AccZ;
|
||||
}AccData_t;
|
||||
|
||||
void Lsm6dslInit(void);
|
||||
void Lsm6dslLoopHandler(void);
|
||||
void Lsm6dsl1mSRoutine(void);
|
||||
void Lsm6dsStart(void);
|
||||
void Lsm6dsStop(void);
|
||||
void Lsm6dsInt1CallBack(void);
|
||||
void Lsm6dsInt2CallBack(void);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user