OSDN Git Service

GMIN-675: Add the ability to repeatedly send samples to Android
[android-x86/hardware-intel-libsensors.git] / description.h
1 /*
2  * Copyright (C) 2014 Intel Corporation.
3  */
4
5 #ifndef __DESCRIPTION_H__
6 #define __DESCRIPTION_H__
7
8 #include "common.h"
9
10 #define QUIRKS_ALREADY_DECODED  0x1  /* Sensor quirks have been read */
11 #define QUIRKS_INITIAL_RATE     0x2  /* Force initial sensor sampling rate */
12 #define QUIRK_TERSE_DRIVER      0x8  /* Force duplicate events generation */
13
14 char*   sensor_get_name         (int handle);
15 char*   sensor_get_vendor       (int handle);
16 int     sensor_get_version      (int handle);
17 float   sensor_get_max_range    (int handle);
18 float   sensor_get_resolution   (int handle);
19 float   sensor_get_power        (int handle);
20 float   sensor_get_illumincalib (int handle);
21
22 int             sensor_get_fl_prop (int s, const char* sel, float* val);
23
24 int             sensor_get_order        (int s, unsigned char map[MAX_CHANNELS]);
25
26 #endif