1/******************************************************************************
2 * $Id: AKFS_APIs.h 580 2012-03-29 09:56:21Z yamada.rj $
3 ******************************************************************************
4 *
5 * Copyright (C) 2012 Asahi Kasei Microdevices Corporation, Japan
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19#ifndef AKFS_INC_APIS_H
20#define AKFS_INC_APIS_H
21
22/* Include files for AK8975 library. */
23#include "AKFS_Compass.h"
24
25/*** Constant definition ******************************************************/
26#define AKFS_GEOMAG_MAX 70
27
28/*** Type declaration *********************************************************/
29
30/*** Global variables *********************************************************/
31
32/*** Prototype of function ****************************************************/
33int16 AKFS_Init(
34	const	AKFS_PATNO	hpat,
35	const	uint8		regs[]
36);
37
38int16 AKFS_Release(void);
39
40int16 AKFS_Start(const char* path);
41
42int16 AKFS_Stop(const char* path);
43
44int16 AKFS_Get_MAGNETIC_FIELD(
45	const	int16		mag[3],
46	const	int16		status,
47			AKFLOAT*	vx,
48			AKFLOAT*	vy,
49			AKFLOAT*	vz,
50			int16*		accuracy
51);
52
53int16 AKFS_Get_ACCELEROMETER(
54	const   int16		acc[3],
55	const	int16		status,
56			AKFLOAT*    vx,
57			AKFLOAT*    vy,
58			AKFLOAT*    vz,
59			int16*		accuracy
60);
61
62int16 AKFS_Get_ORIENTATION(
63			AKFLOAT*	azimuth,
64			AKFLOAT*	pitch,
65			AKFLOAT*	roll,
66			int16*		accuracy
67);
68
69#endif
70
71