OSDN Git Service

Configurable calibration steps
[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 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 char*           sensor_get_name         (int s);
18 char*           sensor_get_vendor       (int s);
19 int             sensor_get_version      (int s);
20 float           sensor_get_max_range    (int s);
21 float           sensor_get_resolution   (int s);
22 float           sensor_get_power        (int s);
23 flag_t          sensor_get_flags        (int s);
24 int32_t         sensor_get_min_delay    (int s);
25 max_delay_t     sensor_get_max_delay    (int s);
26 float           sensor_get_illumincalib (int s);
27 uint32_t        sensor_get_quirks       (int s);
28 int             sensor_get_prop         (int s, const char* sel, int* val);
29 int             sensor_get_fl_prop      (int s, const char* sel, float* val);
30 int             sensor_get_order        (int s,unsigned char map[MAX_CHANNELS]);
31 int     sensor_get_cal_steps (int s);
32 char*           sensor_get_string_type  (int s);
33
34 #endif