OSDN Git Service

Fix type of recently introduced semi arbitrated sampling rate
[android-x86/hardware-intel-libsensors.git] / description.h
1 /*
2  * Copyright (C) 2014-2015 Intel Corporation.
3  */
4
5 #ifndef __DESCRIPTION_H__
6 #define __DESCRIPTION_H__
7
8 #include "common.h"
9
10 #define QUIRK_ALREADY_DECODED   0x01  /* Sensor quirks have been read         */
11 #define QUIRK_INITIAL_RATE      0x02  /* Force initial sensor sampling rate   */
12 #define QUIRK_FIELD_ORDERING    0x04  /* Do field remapping for this sensor   */
13 #define QUIRK_TERSE_DRIVER      0x08  /* Force duplicate events generation    */
14 #define QUIRK_NOISY             0x10  /* High noise level on readings         */
15 #define QUIRK_FORCE_CONTINUOUS  0x20  /* Force usage of continuous trigger    */
16
17 #ifdef __LP64__
18         typedef uint64_t        flag_t;
19         typedef int64_t         max_delay_t;
20 #else
21         typedef uint32_t        flag_t;
22         typedef int32_t         max_delay_t;
23 #endif
24
25 char*           sensor_get_name         (int s);
26 char*           sensor_get_vendor       (int s);
27 int             sensor_get_version      (int s);
28 float           sensor_get_max_range    (int s);
29 float           sensor_get_resolution   (int s);
30 float           sensor_get_power        (int s);
31 flag_t          sensor_get_flags        (int s);
32 int32_t         sensor_get_min_delay    (int s);
33 max_delay_t     sensor_get_max_delay    (int s);
34 float           sensor_get_illumincalib (int s);
35 uint32_t        sensor_get_quirks       (int s);
36 int             sensor_get_prop         (int s, const char* sel, int* val);
37 int             sensor_get_fl_prop      (int s, const char* sel, float* val);
38 int             sensor_get_order        (int s,unsigned char map[MAX_CHANNELS]);
39 int             sensor_get_cal_steps    (int s);
40 char*           sensor_get_string_type  (int s);
41 int             sensor_get_st_prop      (int s, const char* sel, char val[MAX_NAME_SIZE]);
42
43 #endif