android13/hardware/rockchip/sensor/st/akm09911/Acc_mma8452.h

73 lines
2.5 KiB
C
Executable File

/* --------------------------------------------------------------------------------------------------------
* Copyright(C), 2010-2011, Fuzhou Rockchip Co., Ltd. All Rights Reserved.
*
* File: Acc_mma8452.h
*
* Desc:
*
* -----------------------------------------------------------------------------------
* < ϰÓï ºÍ ËõÂÔÓï > :
*
* -----------------------------------------------------------------------------------
* Usage:
*
* Note:
*
* Author: ChenZhen
*
* --------------------------------------------------------------------------------------------------------
* Version:
* v1.0
* --------------------------------------------------------------------------------------------------------
* Log:
*
* --------------------------------------------------------------------------------------------------------
*/
#ifndef __ACC_MMA8452_H__
#define __ACC_MMA8452_H__
#ifdef __cplusplus
extern "C" {
#endif
/* ---------------------------------------------------------------------------------------------------------
* Include Files
* ---------------------------------------------------------------------------------------------------------
*/
#include "AKCommon.h"
/* ---------------------------------------------------------------------------------------------------------
* Macros Definition
* ---------------------------------------------------------------------------------------------------------
*/
/* ---------------------------------------------------------------------------------------------------------
* Types and Structures Definition
* ---------------------------------------------------------------------------------------------------------
*/
/* ---------------------------------------------------------------------------------------------------------
* Global Functions' Prototype
* ---------------------------------------------------------------------------------------------------------
*/
int16_t Acc_InitDevice(void);
void Acc_DeinitDevice(void);
int16_t Acc_GetAccelerationData(float fData[3]);
/* ---------------------------------------------------------------------------------------------------------
* Inline Functions Implementation
* ---------------------------------------------------------------------------------------------------------
*/
#ifdef __cplusplus
}
#endif
#endif /* __ACC_MMA8452_H__ */