OSDN Git Service

Shift max and min rate calculations to enumeration stage
[android-x86/hardware-intel-libsensors.git] / description.h
index 0bfeab9..aef3f21 100644 (file)
 #define QUIRK_NOISY            0x10  /* High noise level on readings         */
 #define QUIRK_FORCE_CONTINUOUS 0x20  /* Force usage of continuous trigger    */
 
+#ifdef __LP64__
+       typedef uint64_t        flag_t;
+       typedef int64_t         max_delay_t;
+#else
+       typedef uint32_t        flag_t;
+       typedef int32_t         max_delay_t;
+#endif
+
 char*          sensor_get_name         (int s);
 char*          sensor_get_vendor       (int s);
 int            sensor_get_version      (int s);
@@ -28,6 +36,7 @@ uint32_t      sensor_get_quirks       (int s);
 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]);
+int            sensor_get_cal_steps    (int s);
 char*          sensor_get_string_type  (int s);
 
 #endif