2 * Copyright (C) 2014 Intel Corporation.
5 #ifndef __DESCRIPTION_H__
6 #define __DESCRIPTION_H__
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 */
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);
22 int sensor_get_fl_prop (int s, const char* sel, float* val);
24 int sensor_get_order (int s, unsigned char map[MAX_CHANNELS]);