142331858975144405f95243be8427084ee7d478dJean-Baptiste Queru/*
242331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * Copyright (C) 2008 The Android Open Source Project
342331858975144405f95243be8427084ee7d478dJean-Baptiste Queru *
442331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * Licensed under the Apache License, Version 2.0 (the "License");
542331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * you may not use this file except in compliance with the License.
642331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * You may obtain a copy of the License at
742331858975144405f95243be8427084ee7d478dJean-Baptiste Queru *
842331858975144405f95243be8427084ee7d478dJean-Baptiste Queru *      http://www.apache.org/licenses/LICENSE-2.0
942331858975144405f95243be8427084ee7d478dJean-Baptiste Queru *
1042331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * Unless required by applicable law or agreed to in writing, software
1142331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * distributed under the License is distributed on an "AS IS" BASIS,
1242331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1342331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * See the License for the specific language governing permissions and
1442331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * limitations under the License.
1542331858975144405f95243be8427084ee7d478dJean-Baptiste Queru */
1642331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
1742331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#ifndef ANDROID_SENSORS_H
1842331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#define ANDROID_SENSORS_H
1942331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
2042331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#include <stdint.h>
2142331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#include <errno.h>
2242331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#include <sys/cdefs.h>
2342331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#include <sys/types.h>
2442331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
2542331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#include <linux/input.h>
2642331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
2742331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#include <hardware/hardware.h>
2842331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#include <hardware/sensors.h>
2942331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
3042331858975144405f95243be8427084ee7d478dJean-Baptiste Queru__BEGIN_DECLS
3142331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
3242331858975144405f95243be8427084ee7d478dJean-Baptiste Queru/*****************************************************************************/
3342331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
3442331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
3542331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
3642331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#define ID_MPL_BASE (0)
37986d38918eb72f00a67189a942da432df17e504eKevin Powell#define ID_GY (ID_MPL_BASE)
3842331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#define ID_A  (ID_GY + 1)
3942331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#define ID_M  (ID_A + 1)
4042331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#define ID_O  (ID_M + 1)
41986d38918eb72f00a67189a942da432df17e504eKevin Powell#define ID_RV (ID_O + 1)
42986d38918eb72f00a67189a942da432df17e504eKevin Powell#define ID_LA (ID_RV + 1)
43986d38918eb72f00a67189a942da432df17e504eKevin Powell#define ID_GR (ID_LA + 1)
4442331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
4542331858975144405f95243be8427084ee7d478dJean-Baptiste Queru/*****************************************************************************/
4642331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
4742331858975144405f95243be8427084ee7d478dJean-Baptiste Queru/*
4842331858975144405f95243be8427084ee7d478dJean-Baptiste Queru * The SENSORS Module
4942331858975144405f95243be8427084ee7d478dJean-Baptiste Queru */
5042331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
5142331858975144405f95243be8427084ee7d478dJean-Baptiste Queru__END_DECLS
5242331858975144405f95243be8427084ee7d478dJean-Baptiste Queru
5342331858975144405f95243be8427084ee7d478dJean-Baptiste Queru#endif  // ANDROID_SENSORS_H
54