X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=common.h;h=62d6d17880eb1ef85e8fcfbf2a7714cddb1392a2;hb=cda77fa4f1de5197c40d1845a382f9abaa4818a4;hp=aa2951a793207b460dcc40c6bf30c6f109026950;hpb=d73577a6b7a0911daf859d25161bcca77f274ed2;p=android-x86%2Fhardware-intel-libsensors.git diff --git a/common.h b/common.h index aa2951a..62d6d17 100644 --- a/common.h +++ b/common.h @@ -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 __COMMON_H__ #define __COMMON_H__ @@ -18,6 +30,7 @@ #define CHANNEL_PATH BASE_PATH "scan_elements/" #define ENABLE_PATH BASE_PATH "buffer/enable" +#define BUFFER_LENGTH_PATH BASE_PATH "buffer/length" #define NAME_PATH BASE_PATH "name" #define TRIGGER_PATH BASE_PATH "trigger/current_trigger" #define EVENTS_PATH BASE_PATH "events/" @@ -277,6 +290,12 @@ typedef struct */ float mounting_matrix[9]; + /** Count of available frequencies */ + int avail_freqs_count; + + /** Array of available frequencies */ + float* avail_freqs; + /* * Event counter - will be used to check if we have a significant sample for noisy sensors. We want to make sure we do not send any wrong * events before filtering kicks in. We can also use it for statistics.