OSDN Git Service

Merge branch 'lineage-16.0' of https://github.com/me176c-dev/android_hardware_iio...
[android-x86/hardware-intel-libsensors.git] / description.h
index 72f3bba..f1f9b5f 100644 (file)
@@ -1,6 +1,18 @@
 /*
- * Copyright (C) 2014-2015 Intel Corporation.
- */
+// Copyright (c) 2015 Intel Corporation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+*/
 
 #ifndef __DESCRIPTION_H__
 #define __DESCRIPTION_H__
@@ -34,6 +46,7 @@ char*         sensor_get_name         (int s);
 char*          sensor_get_vendor       (int s);
 int            sensor_get_version      (int s);
 float          sensor_get_max_range    (int s);
+void           sensor_update_max_range (int s);
 float          sensor_get_resolution   (int s);
 float          sensor_get_power        (int s);
 flag_t         sensor_get_flags        (int s);
@@ -45,6 +58,7 @@ 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_mounting_matrix(int s,float mounting_matrix[9]);
+int            sensor_get_available_frequencies(int s);
 int            sensor_get_cal_steps    (int s);
 char*          sensor_get_string_type  (int s);
 int            sensor_get_st_prop      (int s, const char* sel, char val[MAX_NAME_SIZE]);