X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=description.h;h=f31161f3ac955101a77cbd61beec684ecd7e6527;hb=b24d6584ce3c44cdb5ba9ebe6aa525ff7ecd477c;hp=2cd24c3eae935c7383d68daa7ca0af7215079f1f;hpb=1b91fef4d78b3c3c3e04811f8227e447c6c29ddd;p=android-x86%2Fhardware-intel-libsensors.git diff --git a/description.h b/description.h index 2cd24c3..f31161f 100644 --- a/description.h +++ b/description.h @@ -7,6 +7,13 @@ #include "common.h" +#define QUIRK_ALREADY_DECODED 0x01 /* Sensor quirks have been read */ +#define QUIRK_INITIAL_RATE 0x02 /* Force initial sensor sampling rate */ +#define QUIRK_FIELD_ORDERING 0x04 /* Do field remapping for this sensor */ +#define QUIRK_TERSE_DRIVER 0x08 /* Force duplicate events generation */ +#define QUIRK_NOISY 0x10 /* High noise level on readings */ +#define QUIRK_CONTINUOUS_DRIVER 0x20 /* Force the continuous driver mode */ + char* sensor_get_name (int handle); char* sensor_get_vendor (int handle); int sensor_get_version (int handle); @@ -15,4 +22,15 @@ float sensor_get_resolution (int handle); float sensor_get_power (int handle); float sensor_get_illumincalib (int handle); +int sensor_get_prop (int s, const char* sel, int* val); +int sensor_get_fl_prop (int s, const char* sel, float* val); + +int sensor_get_order (int s, unsigned char map[MAX_CHANNELS]); + +char* sensor_get_string_type(int s); +flag_t sensor_get_flags (int s); + +int32_t sensor_get_min_delay(int s); +max_delay_t sensor_get_max_delay (int s); + #endif