+++ /dev/null
-/*
- * libsensord-share
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *
- */
-
-#include <csensor_config.h>
-#include "common.h"
-#include <libxml/xmlmemory.h>
-#include <libxml/parser.h>
-#include <sstream>
-#include <iostream>
-#include <fstream>
-#include <string>
-
-using std::ifstream;
-using std::string;
-using std::istringstream;
-
-#define ROOT_ELEMENT "SENSOR"
-#define TEXT_ELEMENT "text"
-#define MODEL_ID_ATTR "id"
-#define DEFAULT_ATTR "value"
-
-csensor_config::csensor_config()
-{
-}
-
-csensor_config& csensor_config::get_instance(void)
-{
- static bool load_done = false;
- static csensor_config inst;
-
- if (!load_done) {
- inst.load_config(SENSOR_CONFIG_FILE_PATH);
- inst.get_device_id();
- if (!inst.m_device_id.empty())
- INFO("Device ID = %s", inst.m_device_id.c_str());
- else
- ERR("Failed to get Device ID");
- load_done = true;
- }
-
- return inst;
-}
-
-bool csensor_config::load_config(const string& config_path)
-{
- xmlDocPtr doc;
- xmlNodePtr cur;
-
- DBG("csensor_config::load_config(\"%s\") is called!\n",config_path.c_str());
-
- doc = xmlParseFile(config_path.c_str());
-
- if (doc == NULL) {
- ERR("There is no %s\n",config_path.c_str());
- return false;
- }
-
- cur = xmlDocGetRootElement(doc);
- if(cur == NULL) {
- ERR("There is no root element in %s\n",config_path.c_str());
- xmlFreeDoc(doc);
- return false;
- }
-
- if(xmlStrcmp(cur->name, (const xmlChar *)ROOT_ELEMENT)) {
- ERR("Wrong type document: there is no [%s] root element in %s\n",ROOT_ELEMENT,config_path.c_str());
- xmlFreeDoc(doc);
- return false;
- }
-
- xmlNodePtr model_list_node_ptr;
- xmlNodePtr model_node_ptr;
- xmlNodePtr element_node_ptr;
- xmlAttrPtr attr_ptr;
- char* prop = NULL;
-
- model_list_node_ptr = cur->xmlChildrenNode;
-
- while (model_list_node_ptr != NULL) {
- //skip garbage element, [text]
- if (!xmlStrcmp(model_list_node_ptr->name,(const xmlChar *)TEXT_ELEMENT)) {
- model_list_node_ptr = model_list_node_ptr->next;
- continue;
- }
-
- //insert Model_list to config map
- m_sensor_config[(const char*)model_list_node_ptr->name];
- DBG("<%s>\n",(const char*)model_list_node_ptr->name);
-
- model_node_ptr = model_list_node_ptr->xmlChildrenNode;
- while (model_node_ptr != NULL){
- //skip garbage element, [text]
- if (!xmlStrcmp(model_node_ptr->name,(const xmlChar *)TEXT_ELEMENT)) {
- model_node_ptr = model_node_ptr->next;
- continue;
- }
-
-
- string model_id;
- prop = (char*)xmlGetProp(model_node_ptr,(const xmlChar*)MODEL_ID_ATTR);
- model_id = prop;
- free(prop);
-
- //insert Model to Model_list
- m_sensor_config[(const char*)model_list_node_ptr->name][model_id];
- DBG("<%s id=\"%s\">\n",(const char*)model_list_node_ptr->name,model_id.c_str());
-
- element_node_ptr = model_node_ptr->xmlChildrenNode;
- while (element_node_ptr != NULL) {
- //skip garbage element, [text]
- if (!xmlStrcmp(element_node_ptr->name,(const xmlChar *)TEXT_ELEMENT)) {
- element_node_ptr = element_node_ptr->next;
- continue;
- }
-
- //insert Element to Model
- m_sensor_config[(const char*)model_list_node_ptr->name][model_id][(const char*)element_node_ptr->name];
- DBG("<%s id=\"%s\"><%s>\n",(const char*)model_list_node_ptr->name,model_id.c_str(),(const char*)element_node_ptr->name);
-
- attr_ptr = element_node_ptr->properties;
- while (attr_ptr != NULL) {
-
- string key,value;
- key = (char*)attr_ptr->name;
- prop = (char*)xmlGetProp(element_node_ptr,attr_ptr->name);
- value = prop;
- free(prop);
-
- //insert attribute to Element
- m_sensor_config[(const char*)model_list_node_ptr->name][model_id][(const char*)element_node_ptr->name][key]=value;
- DBG("<%s id=\"%s\"><%s \"%s\"=\"%s\">\n",(const char*)model_list_node_ptr->name,model_id.c_str(),(const char*)element_node_ptr->name,key.c_str(),value.c_str());
- attr_ptr = attr_ptr->next;
- }
-
-
- element_node_ptr = element_node_ptr->next;
- }
-
- DBG("\n");
- model_node_ptr = model_node_ptr->next;
- }
-
- DBG("\n");
- model_list_node_ptr = model_list_node_ptr->next;
- }
-
- xmlFreeDoc(doc);
- return true;
-}
-
-
-bool csensor_config::get(const string& sensor_type,const string& model_id, const string& element, const string& attr, string& value)
-{
- auto it_model_list = m_sensor_config.find(sensor_type);
-
- if (it_model_list == m_sensor_config.end()) {
- ERR("There is no <%s> element\n",sensor_type.c_str());
- return false;
- }
-
- auto it_model = it_model_list->second.find(model_id);
-
- if (it_model == it_model_list->second.end()) {
- ERR("There is no <%s id=\"%s\"> element\n",sensor_type.c_str(),model_id.c_str());
- return false;
- }
-
- auto it_element = it_model->second.find(element);
-
- if (it_element == it_model->second.end()) {
- DBG("There is no <%s id=\"%s\"><%s> element\n",sensor_type.c_str(),model_id.c_str(),element.c_str());
- return false;
- }
-
- auto it_attr = it_element->second.find(attr);
-
- if (it_attr == it_element->second.end()) {
- DBG("There is no <%s id=\"%s\"><%s \"%s\">\n",sensor_type.c_str(),model_id.c_str(),element.c_str(),attr.c_str());
- return false;
- }
-
- value = it_attr->second;
-
- return true;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, const string& attr, double& value)
-{
- string str_value;
-
- if (get(sensor_type,model_id,element,attr,str_value) == false)
- return false;
-
- istringstream convert(str_value);
-
- if ( !(convert >> value))
- value = 0;
-
- return true;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, const string& attr, long& value)
-{
- string str_value;
-
- if (get(sensor_type,model_id,element,attr,str_value) == false)
- return false;
-
- istringstream convert(str_value);
-
- if ( !(convert >> value))
- value = 0;
-
- return true;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, string& value)
-{
- if (get(sensor_type, model_id, element, m_device_id, value))
- return true;
-
- if (get(sensor_type, model_id, element, DEFAULT_ATTR, value))
- return true;
-
- return false;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, double& value)
-{
- if (get(sensor_type, model_id, element, m_device_id, value))
- return true;
-
- if (get(sensor_type, model_id, element, DEFAULT_ATTR, value))
- return true;
-
- return false;
-}
-
-bool csensor_config::get(const string& sensor_type, const string& model_id, const string& element, long& value)
-{
- if (get(sensor_type, model_id, element, m_device_id, value))
- return true;
-
- if (get(sensor_type, model_id, element, DEFAULT_ATTR, value))
- return true;
-
- return false;
-}
-
-bool csensor_config::is_supported(const string& sensor_type,const string& model_id)
-{
- auto it_model_list = m_sensor_config.find(sensor_type);
-
- if (it_model_list == m_sensor_config.end())
- return false;
-
- auto it_model = it_model_list->second.find(model_id);
-
- if (it_model == it_model_list->second.end())
- return false;
-
- return true;
-}
+++ /dev/null
-/*
- * libsensord-share
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *
- */
-
-#if !defined(_CSENSOR_CONFIG_CLASS_H_)
-#define _CSENSOR_CONFIG_CLASS_H_
-
-#include <cconfig.h>
-
-#define SENSOR_CONFIG_FILE_PATH "/usr/etc/sensors.xml"
-
-typedef std::unordered_map<std::string,std::string> Element;
-/*
-* an Element is a group of attributes
-* <Element value1 = "10.0", value2 = "20.0"/>
-*
-* "value" -> "LSM330DLC"
-*
-*/
-
-typedef std::unordered_map<std::string,Element> Model;
-/*
-* a Model is a group of elements to consist of specific vendor's one sensor configuration
-* <NAME value = "LSM330DLC" />
-* <VENDOR value = "ST Microelectronics"/>
-* <RAW_DATA_UNIT value = "1" />
-* <RESOLUTION value = "12" />
-*
-* <NAME> -> <value = "LSM330DLC"/>
-*
-*/
-
-typedef std::unordered_map<std::string,Model> Model_list;
-/*
-* a Model_list is a group of Model
-* <MODEL id = "lsm330dlc_accel">
-* </MODEL>
-* <MODEL id = "mpu6500">
-* </MODEL>
-*
-* "lsm330dlc_accel" -> <Model>
-*
-*/
-
-typedef std::unordered_map<std::string,Model_list> Sensor_config;
-/*
-* a SensorConfig represents sensors.xml
-* <ACCEL/>
-* <GYRO/>
-* <PROXIMITY/>
-*
-* "ACCEL" -> Model_list
-*
-*/
-
-class csensor_config : public cconfig
-{
-private:
- csensor_config();
- csensor_config(csensor_config const&) {};
- csensor_config& operator=(csensor_config const&);
-
- bool load_config(const std::string& config_path);
-
- Sensor_config m_sensor_config;
-public:
- static csensor_config& get_instance(void);
-
- bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, const std::string& attr, std::string& value);
- bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, const std::string& attr, double& value);
- bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, const std::string& attr, long& value);
-
- bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, std::string& value);
- bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, double& value);
- bool get(const std::string& sensor_type, const std::string& model_id, const std::string& element, long& value);
-
- bool is_supported(const std::string &sensor_type, const std::string &model_id);
-};
-
-#endif
+++ /dev/null
-/*
- * sensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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.
- *
- */
-
-#include <iio_common.h>
-#include <fcntl.h>
-#include <dirent.h>
-#include <fstream>
-#include <string>
-#include <iostream>
-
-#define SCAN_EL_DIR "scan_elements/"
-
-#define BYTE_SIZE 8
-#define ULONGLONG 64
-
-using std::fstream;
-using std::ifstream;
-using std::string;
-using std::ios;
-
-void sort_channels_by_index(struct channel_parameters *channels, int count)
-{
- struct channel_parameters temp;
- int i, j;
-
- for (i = 0; i < count; i++)
- for (j = i; (j > 0) && (channels[j].index < channels[j-1].index); j--)
- {
- temp = channels[j];
- channels[j] = channels[j-1];
- channels[j-1] = temp;
- }
-}
-
-int decode_channel_data_type(const char *device_dir, const char *ch_name, struct channel_parameters *ch_info)
-{
- string file_type, type_string;
- ifstream ftype;
- char s_char, e_char;
- unsigned bit_count, pad_bit_count, shift_count;
-
- file_type = string(device_dir) + string(SCAN_EL_DIR) + string(ch_name) + string("_type");
- ftype.open(file_type.c_str());
- if (!ftype.is_open())
- return -1;
- ftype >> type_string;
- sscanf(type_string.c_str(), "%ce:%c%u/%u>>%u", &e_char,
- &s_char, &bit_count, &pad_bit_count, &shift_count);
- if (e_char == 'b')
- ch_info->big_endian = 1;
- else
- ch_info->big_endian = 0;
-
- if (s_char == 's')
- ch_info->is_signed = 1;
- else
- ch_info->is_signed = 0;
-
- ch_info->valid_bits = bit_count;
- ch_info->byte_count = pad_bit_count / BYTE_SIZE;
-
- if (bit_count == ULONGLONG)
- ch_info->mask = ~0;
- else
- ch_info->mask = (1 << bit_count) - 1;
- ch_info->shift = shift_count;
- return 0;
-}
-
-int add_channel_to_array(const char *device_dir, const char *ch_name, struct channel_parameters *channel)
-{
- string file_en, file_type, file_index, file_scale, file_offset;
- ifstream ftemp;
- unsigned int i;
-
- file_en = string(device_dir) + string(SCAN_EL_DIR) + string(ch_name) + string("_en");
- file_index = string(device_dir) + string(SCAN_EL_DIR) + string(ch_name) + string("_index");
- file_scale = string(device_dir) + string(ch_name) + string("_scale");
- file_offset = string(device_dir) + string(ch_name) + string("_offset");
-
- ftemp.open(file_en.c_str());
- if (!ftemp.is_open())
- return -1;
-
- ftemp >> i;
- ftemp.close();
- if (i == 0)
- return -1;
-
- if (asprintf(&(channel->prefix_str), "%s", ch_name) == -1)
- return -1;
-
- channel->is_en = 1;
- channel->scale = 1.0;
- channel->offset = 0.0;
-
- ftemp.open(file_index.c_str());
- if (!ftemp.is_open())
- return -1;
- ftemp >> i;
- channel->index = i;
- ftemp.close();
-
- ftemp.open(file_scale.c_str());
- if (ftemp.is_open())
- {
- ftemp >> channel->scale;
- ftemp.close();
- }
-
- ftemp.open(file_offset.c_str());
- if (ftemp.is_open())
- {
- ftemp >> channel->offset;
- ftemp.close();
- }
- decode_channel_data_type(device_dir, ch_name, channel);
- return 0;
-}
-
-int get_channel_array_size(struct channel_parameters *channels, int num_channels)
-{
- int bytes = 0;
- int i = 0;
- while (i < num_channels) {
- if (bytes % channels[i].byte_count == 0)
- channels[i].buf_index = bytes;
- else
- channels[i].buf_index = bytes - bytes % channels[i].byte_count
- + channels[i].byte_count;
- bytes = channels[i].buf_index + channels[i].byte_count;
- i++;
- }
- return bytes;
-}
-
-int update_sysfs_num(const char *filepath, int val, bool verify)
-{
- fstream sysfile;
- sysfile.open(filepath);
- if (!sysfile.is_open())
- return -1;
- sysfile << val;
- if (verify)
- {
- int test;
- sysfile.seekp(0, ios::beg);
- sysfile >> test;
- if (test != val)
- return -1;
- }
- return 0;
-}
-
-int update_sysfs_string(const char *filepath, const char *val)
-{
- fstream sysfile;
- sysfile.open(filepath);
- if (!sysfile.is_open()) {
- ERR("File Open Error, %s", filepath);
- return -1;
- }
- sysfile << val;
- return 0;
-}
-
-int convert_bytes_to_int(int input, struct channel_parameters *info)
-{
- int retVal;
-
- if (info->big_endian)
- input = be16toh((unsigned short int) input);
- else
- input = le16toh((unsigned short int) input);
-
- input = input >> info->shift;
- if (info->is_signed)
- {
- short int val = input;
- val &= (1 << info->valid_bits) - 1;
- val = (short int)(val << (16 - info->valid_bits)) >>
- (16 - info->valid_bits);
- retVal = val;
- }
- else
- {
- unsigned short int val = input;
- val &= (1 << info->valid_bits) - 1;
- retVal = val;
- }
- return retVal;
-}
+++ /dev/null
-/*
- * sensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 IIO_COMMON_H_
-#define IIO_COMMON_H_
-
-#include <linux/ioctl.h>
-#include <fstream>
-#include <string>
-#include <common.h>
-
-#define NO_OF_ULL_BYTES 8
-#define NO_OF_SHORT_VAL 4
-#define CH0_INDEX 0
-#define CH1_INDEX 1
-
-#define GET_DIFF_BIT(val) (((unsigned short)(val) >> 7) & 0x01)
-#define GET_DIR_VAL(val) ((val) & 0x0F)
-
-#define IOCTL_IIO_EVENT_FD _IOR('i', 0x90, int)
-
-struct channel_parameters
-{
- char *prefix_str;
- float scale;
- float offset;
- unsigned int index;
- unsigned int byte_count;
- unsigned int valid_bits;
- unsigned int shift;
- unsigned long long int mask;
- unsigned int big_endian;
- unsigned int is_signed;
- unsigned int is_en;
- unsigned int buf_index;
-};
-
-typedef struct iio_event_struct
-{
- unsigned long long int event_id;
- long long int timestamp;
-} iio_event_t;
-
-typedef enum event_id_field
-{
- CH_TYPE = 4,
- MODIFIER,
- DIRECTION,
- EVENT_TYPE,
-} event_id_field_t;
-
-typedef union ull_bytes
-{
- unsigned long long num;
- short int channels[NO_OF_SHORT_VAL];
- unsigned char bytes[NO_OF_ULL_BYTES];
-} ull_bytes_t;
-
-void sort_channels_by_index(struct channel_parameters *channels, int count);
-int decode_channel_data_type(const char *device_dir, const char *ch_name, struct channel_parameters *ch_info);
-int add_channel_to_array(const char *device_dir, const char *ch_name, struct channel_parameters *channel);
-int get_channel_array_size(struct channel_parameters *channels, int num_channels);
-int update_sysfs_num(const char *filepath, int val, bool verify = false);
-int update_sysfs_string(const char *filepath, const char *val);
-int convert_bytes_to_int(int input, struct channel_parameters *info);
-
-template <typename value_t>
-bool read_node_value(std::string node_path, value_t &value)
-{
- std::ifstream handle;
- handle.open(node_path.c_str());
- if (!handle)
- {
- ERR("Failed to open handle(%s)", node_path.c_str());
- return false;
- }
- handle >> value;
- handle.close();
-
- return true;
-}
-
-#endif /* IIO_COMMON_H_ */
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_ACCEL_H__
-#define __SENSOR_ACCEL_H__
-
-//! Pre-defined events for the accelometer sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_ACCEL Accelerometer Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Accelerometer sensor.
- * @{
- */
-
-enum accelerometer_event_type {
- ACCELEROMETER_RAW_DATA_EVENT = (ACCELEROMETER_SENSOR << 16) | 0x0001,
- ACCELEROMETER_UNPROCESSED_DATA_EVENT = (ACCELEROMETER_SENSOR << 16) | 0x0002,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 _SENSOR_AUTO_ROTATION_H_
-#define _SENSOR_AUTO_ROTATION_H_
-
-//! Pre-defined events for the auto_rotation sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_AUTO_ROTATION Auto Rotation Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Auto Rotation sensor.
- * @{
- */
-
-enum auto_rotation_event_type {
- AUTO_ROTATION_CHANGE_STATE_EVENT = (AUTO_ROTATION_SENSOR << 16) | 0x0001,
-};
-
-enum auto_rotation_state {
- AUTO_ROTATION_DEGREE_UNKNOWN = 0,
- AUTO_ROTATION_DEGREE_0,
- AUTO_ROTATION_DEGREE_90,
- AUTO_ROTATION_DEGREE_180,
- AUTO_ROTATION_DEGREE_270,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_BIO_LED_RED_H__
-#define __SENSOR_BIO_LED_RED_H__
-
-//! Pre-defined events for the bio led red sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_BIO_LED_RED HRM LED RED Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the HRM LED RED sensor.
- * @{
- */
-
-enum bio_led_green_event_type {
- BIO_LED_RED_RAW_DATA_EVENT = (BIO_LED_RED_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_CONTEXT_H__
-#define __SENSOR_CONTEXT_H__
-
-//! Pre-defined events for the context sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_CONTEXT Context Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Context sensor.
- * @{
- */
-
-enum context_event_type {
- CONTEXT_REPORT_EVENT = (CONTEXT_SENSOR << 16) | 0x0001,
-};
-
-enum context_property_id {
- CONTEXT_PROPERTY_UNKNOWN = 0,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_FUSION_H__
-#define __SENSOR_FUSION_H__
-
-//! Pre-defined events for the fusion sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_FUSION Fusion Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Fusion sensor.
- * @{
- */
-enum fusion_event_type {
- FUSION_EVENT = (FUSION_SENSOR << 16) | 0x0001,
- FUSION_UNCAL_GYRO_EVENT = (FUSION_SENSOR << 16) | 0x0002,
- FUSION_CALIBRATION_NEEDED_EVENT = (FUSION_SENSOR << 16) | 0x0003,
- FUSION_ORIENTATION_ENABLED = (FUSION_SENSOR << 16) | 0x0004,
- FUSION_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0005,
- FUSION_GAMING_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0006,
- FUSION_GEOMAGNETIC_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0007,
- FUSION_TILT_ENABLED = (FUSION_SENSOR << 16) | 0x0008,
- FUSION_UNCAL_GYRO_ENABLED = (FUSION_SENSOR << 16) | 0x0009,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-
-#ifndef __SENSOR_GAMING_RV_H__
-#define __SENSOR_GAMING_RV_H__
-
-//! Pre-defined events for the gaming rotation vector sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GAMING_RV Gaming Rotation Vector Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Gaming Rotation Vector sensor.
- * @{
- */
-
-enum gaming_rv_event_type {
- GAMING_RV_RAW_DATA_EVENT = (GAMING_RV_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
-
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_GEOMAG_H__
-#define __SENSOR_GEOMAG_H__
-
-//! Pre-defined events for the geomagnetic sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GEOMAG Geomagnetic Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Geomagnatic sensor.
- * @{
- */
-
-enum geomag_event_type {
- GEOMAGNETIC_RAW_DATA_EVENT = (GEOMAGNETIC_SENSOR << 16) | 0x0001,
- GEOMAGNETIC_CALIBRATION_NEEDED_EVENT = (GEOMAGNETIC_SENSOR << 16) | 0x0002,
- GEOMAGNETIC_UNPROCESSED_DATA_EVENT = (GEOMAGNETIC_SENSOR << 16) | 0x0003,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_GEOMAGNETIC_RV_H__
-#define __SENSOR_GEOMAGNETIC_RV_H__
-
-//! Pre-defined events for the geomagnetic rotation vector sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GEOMAGNETIC_RV Geomagnetic Rotation Vector Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Geomagnetic Rotation Vector sensor.
- * @{
- */
-
-enum geomagnetic_rv_event_type {
- GEOMAGNETIC_RV_RAW_DATA_EVENT = (GEOMAGNETIC_RV_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __SENSOR_GEOMAGNETIC_RV_H__ */
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_GRAVITY_H__
-#define __SENSOR_GRAVITY_H__
-
-//! Pre-defined events for the gravity sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GRAVITY Gravity Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Gravity sensor.
- * @{
- */
-
-enum gravity_event_type {
- GRAVITY_RAW_DATA_EVENT = (GRAVITY_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_GYRO_H__
-#define __SENSOR_GYRO_H__
-
-//! Pre-defined events for the gyroscope sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_GYRO Gyro Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the gyro sensor.
- * @{
- */
-
-enum gyro_event_type {
- GYROSCOPE_RAW_DATA_EVENT = (GYROSCOPE_SENSOR << 16) | 0x0001,
- GYROSCOPE_UNPROCESSED_DATA_EVENT = (GYROSCOPE_SENSOR << 16) | 0x0002,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
#include <sensor_common.h>
/*header for each sensor type*/
-#include <sensor_accel.h>
-#include <sensor_geomag.h>
-#include <sensor_light.h>
-#include <sensor_proxi.h>
-#include <sensor_gyro.h>
-#include <sensor_pressure.h>
-#include <sensor_context.h>
-#include <sensor_auto_rotation.h>
-#include <sensor_gravity.h>
-#include <sensor_linear_accel.h>
-#include <sensor_orientation.h>
-#include <sensor_rv.h>
-#include <sensor_geomagnetic_rv.h>
-#include <sensor_gaming_rv.h>
-#include <sensor_temperature.h>
-#include <sensor_fusion.h>
-#include <sensor_tilt.h>
-#include <sensor_uncal_gyro.h>
-#include <sensor_ultraviolet.h>
-#include <sensor_bio_led_red.h>
+#include <sensor_types.h>
typedef void (*sensor_cb_t)(sensor_t sensor, unsigned int event_type, sensor_data_t *data, void *user_data);
typedef void (*sensorhub_cb_t)(sensor_t sensor, unsigned int event_type, sensorhub_data_t *data, void *user_data);
#include <sensor_common.h>
/*header for each sensor type*/
-#include <sensor_accel.h>
-#include <sensor_auto_rotation.h>
-#include <sensor_geomag.h>
-#include <sensor_light.h>
-#include <sensor_proxi.h>
-#include <sensor_gyro.h>
-#include <sensor_pressure.h>
-#include <sensor_context.h>
-#include <sensor_gravity.h>
-#include <sensor_linear_accel.h>
-#include <sensor_orientation.h>
-#include <sensor_temperature.h>
-#include <sensor_rv.h>
-#include <sensor_geomagnetic_rv.h>
-#include <sensor_gaming_rv.h>
-#include <sensor_motion.h>
-#include <sensor_deprecated.h>
-#include <sensor_fusion.h>
-#include <sensor_tilt.h>
-#include <sensor_ultraviolet.h>
-#include <sensor_uncal_gyro.h>
-#include <sensor_bio_led_red.h>
+#include <sensor_types.h>
#define MAX_KEY_LEN 30
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_LIGHT_H__
-#define __SENSOR_LIGHT_H__
-
-//! Pre-defined events for the light sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_LIGHT Light Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the light sensor.
- * @{
- */
-
-enum light_event_type {
- LIGHT_LUX_DATA_EVENT = (LIGHT_SENSOR << 16) | 0x0001,
- LIGHT_LEVEL_DATA_EVENT = (LIGHT_SENSOR << 16) | 0x0002,
- LIGHT_CHANGE_LEVEL_EVENT = (LIGHT_SENSOR << 16) | 0x0004,
-};
-
-enum light_property_id {
- LIGHT_PROPERTY_UNKNOWN = 0,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_LINEAR_ACCEL_H__
-#define __SENSOR_LINEAR_ACCEL_H__
-
-//! Pre-defined events for the linear accelerometer sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_LINEAR_ACCEL Linear Accelerometer Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Linear Accelerometer sensor.
- * @{
- */
-
-enum linear_accel_event_type {
- LINEAR_ACCEL_RAW_DATA_EVENT = (LINEAR_ACCEL_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_MOTION_H__
-#define __SENSOR_MOTION_H__
-
-//! Pre-defined events for the motion sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-enum motion_event_type {
- MOTION_ENGINE_EVENT_SNAP = (MOTION_SENSOR << 16) | 0x0001,
- MOTION_ENGINE_EVENT_SHAKE = (MOTION_SENSOR << 16) | 0x0002,
- MOTION_ENGINE_EVENT_DOUBLETAP = (MOTION_SENSOR << 16) | 0x0004,
- MOTION_ENGINE_EVENT_PANNING = (MOTION_SENSOR << 16) | 0x0008,
- MOTION_ENGINE_EVENT_TOP_TO_BOTTOM = (MOTION_SENSOR << 16) | 0x0010,
- MOTION_ENGINE_EVENT_DIRECT_CALL = (MOTION_SENSOR << 16) | 0x0020,
- MOTION_ENGINE_EVENT_TILT_TO_UNLOCK = (MOTION_SENSOR << 16) | 0x0040,
- MOTION_ENGINE_EVENT_LOCK_EXECUTE_CAMERA = (MOTION_SENSOR << 16) | 0x0080,
- MOTION_ENGINE_EVENT_SMART_ALERT = (MOTION_SENSOR << 16) | 0x0100,
- MOTION_ENGINE_EVENT_TILT = (MOTION_SENSOR << 16) | 0x0200,
- MOTION_ENGINE_EVENT_PANNING_BROWSE = (MOTION_SENSOR << 16) | 0x0400,
- MOTION_ENGINE_EVENT_NO_MOVE = (MOTION_SENSOR << 16) | 0x0800,
- MOTION_ENGINE_EVENT_SHAKE_ALWAYS_ON = (MOTION_SENSOR << 16) | 0x1000,
- MOTION_ENGINE_EVENT_SMART_RELAY = (MOTION_SENSOR << 16) | 0x2000,
-};
-
-enum motion_snap_event {
- MOTION_ENGIEN_SNAP_NONE = 0,
- MOTION_ENGIEN_NEGATIVE_SNAP_X = 1,
- MOTION_ENGIEN_POSITIVE_SNAP_X = 2,
- MOTION_ENGIEN_NEGATIVE_SNAP_Y = 3,
- MOTION_ENGIEN_POSITIVE_SNAP_Y = 4,
- MOTION_ENGIEN_NEGATIVE_SNAP_Z = 5,
- MOTION_ENGIEN_POSITIVE_SNAP_Z = 6,
- MOTION_ENGIEN_SNAP_LEFT = MOTION_ENGIEN_NEGATIVE_SNAP_X,
- MOTION_ENGIEN_SNAP_RIGHT = MOTION_ENGIEN_POSITIVE_SNAP_X,
- MOTION_ENGINE_SNAP_NONE = 0,
- MOTION_ENGINE_NEGATIVE_SNAP_X = 1,
- MOTION_ENGINE_POSITIVE_SNAP_X = 2,
- MOTION_ENGINE_NEGATIVE_SNAP_Y = 3,
- MOTION_ENGINE_POSITIVE_SNAP_Y = 4,
- MOTION_ENGINE_NEGATIVE_SNAP_Z = 5,
- MOTION_ENGINE_POSITIVE_SNAP_Z = 6,
- MOTION_ENGINE_SNAP_LEFT = MOTION_ENGINE_NEGATIVE_SNAP_X,
- MOTION_ENGINE_SNAP_RIGHT = MOTION_ENGINE_POSITIVE_SNAP_X,
-};
-
-enum motion_shake_event {
- MOTION_ENGIEN_SHAKE_NONE = 0,
- MOTION_ENGIEN_SHAKE_DETECTION = 1,
- MOTION_ENGIEN_SHAKE_CONTINUING = 2,
- MOTION_ENGIEN_SHAKE_FINISH = 3,
- MOTION_ENGINE_SHAKE_BREAK = 4,
- MOTION_ENGINE_SHAKE_NONE = 0,
- MOTION_ENGINE_SHAKE_DETECTION = 1,
- MOTION_ENGINE_SHAKE_CONTINUING = 2,
- MOTION_ENGINE_SHAKE_FINISH = 3,
-};
-
-enum motion_doubletap_event {
- MOTION_ENGIEN_DOUBLTAP_NONE = 0,
- MOTION_ENGIEN_DOUBLTAP_DETECTION = 1,
- MOTION_ENGINE_DOUBLTAP_NONE = 0,
- MOTION_ENGINE_DOUBLTAP_DETECTION = 1,
-};
-
-enum motion_top_to_bottom_event {
- MOTION_ENGIEN_TOP_TO_BOTTOM_NONE = 0,
- MOTION_ENGIEN_TOP_TO_BOTTOM_WAIT = 1,
- MOTION_ENGIEN_TOP_TO_BOTTOM_DETECTION = 2,
- MOTION_ENGINE_TOP_TO_BOTTOM_NONE = 0,
- MOTION_ENGINE_TOP_TO_BOTTOM_WAIT = 1,
- MOTION_ENGINE_TOP_TO_BOTTOM_DETECTION = 2,
-};
-
-enum motion_direct_call_event_t {
- MOTION_ENGINE_DIRECT_CALL_NONE,
- MOTION_ENGINE_DIRECT_CALL_DETECTION,
-};
-
-enum motion_smart_relay_event_t {
- MOTION_ENGINE_SMART_RELAY_NONE,
- MOTION_ENGINE_SMART_RELAY_DETECTION,
-};
-
-enum motion_tilt_to_unlock_event_t {
- MOTION_ENGINE_TILT_TO_UNLOCK_NONE,
- MOTION_ENGINE_TILT_TO_UNLOCK_DETECTION,
-};
-
-enum motion_lock_execute_camera_event_t {
- MOTION_ENGINE_LOCK_EXECUTE_CAMERA_NONE,
- MOTION_ENGINE_LOCK_EXECUTE_CAMERA_L_DETECTION,
- MOTION_ENGINE_LOCK_EXECUTE_CAMERA_R_DETECTION,
-};
-
-enum motion_smart_alert_t {
- MOTION_ENGINE_SMART_ALERT_NONE,
- MOTION_ENGINE_SMART_ALERT_DETECTION,
-};
-
-enum motion_no_move_t {
- MOTION_ENGINE_NO_MOVE_NONE,
- MOTION_ENGINE_NO_MOVE_DETECTION,
-};
-
-enum motion_property_id {
- MOTION_PROPERTY_UNKNOWN = 0,
- MOTION_PROPERTY_CHECK_ACCEL_SENSOR,
- MOTION_PROPERTY_CHECK_GYRO_SENSOR,
- MOTION_PROPERTY_CHECK_GEO_SENSOR,
- MOTION_PROPERTY_CHECK_PRIXI_SENSOR,
- MOTION_PROPERTY_CHECK_LIGHT_SENSOR,
- MOTION_PROPERTY_CHECK_BARO_SENSOR,
- MOTION_PROPERTY_LCD_TOUCH_ON,
- MOTION_PROPERTY_LCD_TOUCH_OFF,
- MOTION_PROPERTY_CHECK_GYRO_CAL_STATUS,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_ORIENTATION_H__
-#define __SENSOR_ORIENTATION_H__
-
-//! Pre-defined events for the orientation sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_ORIENTATION Orientation Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Orientation sensor.
- * @{
- */
-
-enum orientation_event_type {
- ORIENTATION_RAW_DATA_EVENT = (ORIENTATION_SENSOR << 16) | 0x0001,
- ORIENTATION_CALIBRATION_NEEDED_EVENT = (ORIENTATION_SENSOR << 16) | 0x0002,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_PRESSURE_H__
-#define __SENSOR_PRESSURE_H__
-
-//! Pre-defined events for the pressurescope sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_PRESSURE pressure Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the pressure sensor.
- * @{
- */
-
-enum pressure_event_type {
- PRESSURE_RAW_DATA_EVENT = (PRESSURE_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_PROXI_H__
-#define __SENSOR_PROXI_H__
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_PROXY Proximity Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Proxymaty sensor.
- * @{
- */
-
-enum proxi_event_type {
- PROXIMITY_CHANGE_STATE_EVENT = (PROXIMITY_SENSOR << 16) | 0x0001,
- PROXIMITY_STATE_EVENT = (PROXIMITY_SENSOR << 16) | 0x0002,
- PROXIMITY_DISTANCE_DATA_EVENT = (PROXIMITY_SENSOR << 16) | 0x0004,
-};
-
-enum proxi_change_state {
- PROXIMITY_STATE_FAR = 0,
- PROXIMITY_STATE_NEAR = 1,
-};
-
-enum proxi_property_id {
- PROXIMITY_PROPERTY_UNKNOWN = 0,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_ROTATION_VECTOR_H__
-#define __SENSOR_ROTATION_VECTOR_H__
-
-//! Pre-defined events for the rotation vector sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_RV Rotation Vector Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the Rotation Vector sensor.
- * @{
- */
-
-enum rot_event_type {
- ROTATION_VECTOR_RAW_DATA_EVENT = (ROTATION_VECTOR_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
-
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_TEMPERATURE_H__
-#define __SENSOR_TEMPERATURE_H__
-
-//! Pre-defined events for the temperature scope sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_TEMPERATURE temperature Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the temperature sensor.
- * @{
- */
-
-enum temperature_event_type {
- TEMPERATURE_RAW_DATA_EVENT = (TEMPERATURE_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_TILT_H__
-#define __SENSOR_TILT_H__
-
-//! Pre-defined events for the tilt sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_TILT tilt Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the tilt sensor.
- * @{
- */
-
-enum tilt_event_type {
- TILT_RAW_DATA_EVENT = (TILT_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
--- /dev/null
+#ifndef _SENSOR_TYPES_H_
+#define _SENSOR_TYPES_H_
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+// Accelerometer
+enum accelerometer_event_type {
+ ACCELEROMETER_RAW_DATA_EVENT = (ACCELEROMETER_SENSOR << 16) | 0x0001,
+ ACCELEROMETER_UNPROCESSED_DATA_EVENT = (ACCELEROMETER_SENSOR << 16) | 0x0002,
+};
+
+// Gyroscope
+enum gyro_event_type {
+ GYROSCOPE_RAW_DATA_EVENT = (GYROSCOPE_SENSOR << 16) | 0x0001,
+ GYROSCOPE_UNPROCESSED_DATA_EVENT = (GYROSCOPE_SENSOR << 16) | 0x0002,
+};
+
+// Geomagnetic
+enum geomag_event_type {
+ GEOMAGNETIC_RAW_DATA_EVENT = (GEOMAGNETIC_SENSOR << 16) | 0x0001,
+ GEOMAGNETIC_CALIBRATION_NEEDED_EVENT = (GEOMAGNETIC_SENSOR << 16) | 0x0002,
+ GEOMAGNETIC_UNPROCESSED_DATA_EVENT = (GEOMAGNETIC_SENSOR << 16) | 0x0003,
+};
+
+// Proximity
+enum proxi_event_type {
+ PROXIMITY_CHANGE_STATE_EVENT = (PROXIMITY_SENSOR << 16) | 0x0001,
+ PROXIMITY_STATE_EVENT = (PROXIMITY_SENSOR << 16) | 0x0002,
+ PROXIMITY_DISTANCE_DATA_EVENT = (PROXIMITY_SENSOR << 16) | 0x0004,
+};
+
+enum proxi_change_state {
+ PROXIMITY_STATE_FAR = 0,
+ PROXIMITY_STATE_NEAR = 1,
+};
+
+enum proxi_property_id {
+ PROXIMITY_PROPERTY_UNKNOWN = 0,
+};
+
+// Pressure
+enum pressure_event_type {
+ PRESSURE_RAW_DATA_EVENT = (PRESSURE_SENSOR << 16) | 0x0001,
+};
+
+// Temperature
+enum temperature_event_type {
+ TEMPERATURE_RAW_DATA_EVENT = (TEMPERATURE_SENSOR << 16) | 0x0001,
+};
+
+// Light
+enum light_event_type {
+ LIGHT_LUX_DATA_EVENT = (LIGHT_SENSOR << 16) | 0x0001,
+ LIGHT_LEVEL_DATA_EVENT = (LIGHT_SENSOR << 16) | 0x0002,
+ LIGHT_CHANGE_LEVEL_EVENT = (LIGHT_SENSOR << 16) | 0x0004,
+};
+
+enum light_property_id {
+ LIGHT_PROPERTY_UNKNOWN = 0,
+};
+
+// Rotation Vector
+enum rot_event_type {
+ ROTATION_VECTOR_RAW_DATA_EVENT = (ROTATION_VECTOR_SENSOR << 16) | 0x0001,
+};
+
+// Ultraviolet
+enum ultraviolet_event_type {
+ ULTRAVIOLET_RAW_DATA_EVENT = (ULTRAVIOLET_SENSOR << 16) | 0x0001,
+};
+
+// Auto rotation
+enum auto_rotation_event_type {
+ AUTO_ROTATION_CHANGE_STATE_EVENT = (AUTO_ROTATION_SENSOR << 16) | 0x0001,
+};
+
+enum auto_rotation_state {
+ AUTO_ROTATION_DEGREE_UNKNOWN = 0,
+ AUTO_ROTATION_DEGREE_0,
+ AUTO_ROTATION_DEGREE_90,
+ AUTO_ROTATION_DEGREE_180,
+ AUTO_ROTATION_DEGREE_270,
+};
+
+// Bio LED Red
+enum bio_led_green_event_type {
+ BIO_LED_RED_RAW_DATA_EVENT = (BIO_LED_RED_SENSOR << 16) | 0x0001,
+};
+
+// Gaming RV
+enum gaming_rv_event_type {
+ GAMING_RV_RAW_DATA_EVENT = (GAMING_RV_SENSOR << 16) | 0x0001,
+};
+
+// Context
+enum context_event_type {
+ CONTEXT_REPORT_EVENT = (CONTEXT_SENSOR << 16) | 0x0001,
+};
+
+enum context_property_id {
+ CONTEXT_PROPERTY_UNKNOWN = 0,
+};
+
+// Geomagnetic RV
+enum geomagnetic_rv_event_type {
+ GEOMAGNETIC_RV_RAW_DATA_EVENT = (GEOMAGNETIC_RV_SENSOR << 16) | 0x0001,
+};
+
+// Gravity
+enum gravity_event_type {
+ GRAVITY_RAW_DATA_EVENT = (GRAVITY_SENSOR << 16) | 0x0001,
+};
+
+// Linear Acceleration
+enum linear_accel_event_type {
+ LINEAR_ACCEL_RAW_DATA_EVENT = (LINEAR_ACCEL_SENSOR << 16) | 0x0001,
+};
+
+// Motion
+enum motion_event_type {
+ MOTION_ENGINE_EVENT_SNAP = (MOTION_SENSOR << 16) | 0x0001,
+ MOTION_ENGINE_EVENT_SHAKE = (MOTION_SENSOR << 16) | 0x0002,
+ MOTION_ENGINE_EVENT_DOUBLETAP = (MOTION_SENSOR << 16) | 0x0004,
+ MOTION_ENGINE_EVENT_PANNING = (MOTION_SENSOR << 16) | 0x0008,
+ MOTION_ENGINE_EVENT_TOP_TO_BOTTOM = (MOTION_SENSOR << 16) | 0x0010,
+ MOTION_ENGINE_EVENT_DIRECT_CALL = (MOTION_SENSOR << 16) | 0x0020,
+ MOTION_ENGINE_EVENT_TILT_TO_UNLOCK = (MOTION_SENSOR << 16) | 0x0040,
+ MOTION_ENGINE_EVENT_LOCK_EXECUTE_CAMERA = (MOTION_SENSOR << 16) | 0x0080,
+ MOTION_ENGINE_EVENT_SMART_ALERT = (MOTION_SENSOR << 16) | 0x0100,
+ MOTION_ENGINE_EVENT_TILT = (MOTION_SENSOR << 16) | 0x0200,
+ MOTION_ENGINE_EVENT_PANNING_BROWSE = (MOTION_SENSOR << 16) | 0x0400,
+ MOTION_ENGINE_EVENT_NO_MOVE = (MOTION_SENSOR << 16) | 0x0800,
+ MOTION_ENGINE_EVENT_SHAKE_ALWAYS_ON = (MOTION_SENSOR << 16) | 0x1000,
+ MOTION_ENGINE_EVENT_SMART_RELAY = (MOTION_SENSOR << 16) | 0x2000,
+};
+
+enum motion_snap_event {
+ MOTION_ENGIEN_SNAP_NONE = 0,
+ MOTION_ENGIEN_NEGATIVE_SNAP_X = 1,
+ MOTION_ENGIEN_POSITIVE_SNAP_X = 2,
+ MOTION_ENGIEN_NEGATIVE_SNAP_Y = 3,
+ MOTION_ENGIEN_POSITIVE_SNAP_Y = 4,
+ MOTION_ENGIEN_NEGATIVE_SNAP_Z = 5,
+ MOTION_ENGIEN_POSITIVE_SNAP_Z = 6,
+ MOTION_ENGIEN_SNAP_LEFT = MOTION_ENGIEN_NEGATIVE_SNAP_X,
+ MOTION_ENGIEN_SNAP_RIGHT = MOTION_ENGIEN_POSITIVE_SNAP_X,
+ MOTION_ENGINE_SNAP_NONE = 0,
+ MOTION_ENGINE_NEGATIVE_SNAP_X = 1,
+ MOTION_ENGINE_POSITIVE_SNAP_X = 2,
+ MOTION_ENGINE_NEGATIVE_SNAP_Y = 3,
+ MOTION_ENGINE_POSITIVE_SNAP_Y = 4,
+ MOTION_ENGINE_NEGATIVE_SNAP_Z = 5,
+ MOTION_ENGINE_POSITIVE_SNAP_Z = 6,
+ MOTION_ENGINE_SNAP_LEFT = MOTION_ENGINE_NEGATIVE_SNAP_X,
+ MOTION_ENGINE_SNAP_RIGHT = MOTION_ENGINE_POSITIVE_SNAP_X,
+};
+
+enum motion_shake_event {
+ MOTION_ENGIEN_SHAKE_NONE = 0,
+ MOTION_ENGIEN_SHAKE_DETECTION = 1,
+ MOTION_ENGIEN_SHAKE_CONTINUING = 2,
+ MOTION_ENGIEN_SHAKE_FINISH = 3,
+ MOTION_ENGINE_SHAKE_BREAK = 4,
+ MOTION_ENGINE_SHAKE_NONE = 0,
+ MOTION_ENGINE_SHAKE_DETECTION = 1,
+ MOTION_ENGINE_SHAKE_CONTINUING = 2,
+ MOTION_ENGINE_SHAKE_FINISH = 3,
+};
+
+enum motion_doubletap_event {
+ MOTION_ENGIEN_DOUBLTAP_NONE = 0,
+ MOTION_ENGIEN_DOUBLTAP_DETECTION = 1,
+ MOTION_ENGINE_DOUBLTAP_NONE = 0,
+ MOTION_ENGINE_DOUBLTAP_DETECTION = 1,
+};
+
+enum motion_top_to_bottom_event {
+ MOTION_ENGIEN_TOP_TO_BOTTOM_NONE = 0,
+ MOTION_ENGIEN_TOP_TO_BOTTOM_WAIT = 1,
+ MOTION_ENGIEN_TOP_TO_BOTTOM_DETECTION = 2,
+ MOTION_ENGINE_TOP_TO_BOTTOM_NONE = 0,
+ MOTION_ENGINE_TOP_TO_BOTTOM_WAIT = 1,
+ MOTION_ENGINE_TOP_TO_BOTTOM_DETECTION = 2,
+};
+
+enum motion_direct_call_event_t {
+ MOTION_ENGINE_DIRECT_CALL_NONE,
+ MOTION_ENGINE_DIRECT_CALL_DETECTION,
+};
+
+enum motion_smart_relay_event_t {
+ MOTION_ENGINE_SMART_RELAY_NONE,
+ MOTION_ENGINE_SMART_RELAY_DETECTION,
+};
+
+enum motion_tilt_to_unlock_event_t {
+ MOTION_ENGINE_TILT_TO_UNLOCK_NONE,
+ MOTION_ENGINE_TILT_TO_UNLOCK_DETECTION,
+};
+
+enum motion_lock_execute_camera_event_t {
+ MOTION_ENGINE_LOCK_EXECUTE_CAMERA_NONE,
+ MOTION_ENGINE_LOCK_EXECUTE_CAMERA_L_DETECTION,
+ MOTION_ENGINE_LOCK_EXECUTE_CAMERA_R_DETECTION,
+};
+
+enum motion_smart_alert_t {
+ MOTION_ENGINE_SMART_ALERT_NONE,
+ MOTION_ENGINE_SMART_ALERT_DETECTION,
+};
+
+enum motion_no_move_t {
+ MOTION_ENGINE_NO_MOVE_NONE,
+ MOTION_ENGINE_NO_MOVE_DETECTION,
+};
+
+enum motion_property_id {
+ MOTION_PROPERTY_UNKNOWN = 0,
+ MOTION_PROPERTY_CHECK_ACCEL_SENSOR,
+ MOTION_PROPERTY_CHECK_GYRO_SENSOR,
+ MOTION_PROPERTY_CHECK_GEO_SENSOR,
+ MOTION_PROPERTY_CHECK_PRIXI_SENSOR,
+ MOTION_PROPERTY_CHECK_LIGHT_SENSOR,
+ MOTION_PROPERTY_CHECK_BARO_SENSOR,
+ MOTION_PROPERTY_LCD_TOUCH_ON,
+ MOTION_PROPERTY_LCD_TOUCH_OFF,
+ MOTION_PROPERTY_CHECK_GYRO_CAL_STATUS,
+};
+
+// Orientation
+enum orientation_event_type {
+ ORIENTATION_RAW_DATA_EVENT = (ORIENTATION_SENSOR << 16) | 0x0001,
+ ORIENTATION_CALIBRATION_NEEDED_EVENT = (ORIENTATION_SENSOR << 16) | 0x0002,
+};
+
+// Tilt
+enum tilt_event_type {
+ TILT_RAW_DATA_EVENT = (TILT_SENSOR << 16) | 0x0001,
+};
+
+// Uncalibrated Gyroscope
+enum uncal_gyro_event_type {
+ UNCAL_GYRO_RAW_DATA_EVENT = (UNCAL_GYROSCOPE_SENSOR << 16) | 0x0001,
+};
+
+// Fusion
+enum fusion_event_type {
+ FUSION_EVENT = (FUSION_SENSOR << 16) | 0x0001,
+ FUSION_UNCAL_GYRO_EVENT = (FUSION_SENSOR << 16) | 0x0002,
+ FUSION_CALIBRATION_NEEDED_EVENT = (FUSION_SENSOR << 16) | 0x0003,
+ FUSION_ORIENTATION_ENABLED = (FUSION_SENSOR << 16) | 0x0004,
+ FUSION_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0005,
+ FUSION_GAMING_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0006,
+ FUSION_GEOMAGNETIC_ROTATION_VECTOR_ENABLED = (FUSION_SENSOR << 16) | 0x0007,
+ FUSION_TILT_ENABLED = (FUSION_SENSOR << 16) | 0x0008,
+ FUSION_UNCAL_GYRO_ENABLED = (FUSION_SENSOR << 16) | 0x0009,
+};
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _SENSOR_TYPES_H_ */
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_ULTRAVIOLET_H__
-#define __SENSOR_ULTRAVIOLET_H__
-
-//! Pre-defined events for the ultraviolet sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup SENSOR_ULTRAVIOLET Ultra Violet Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the ultraviolet sensor.
- * @{
- */
-
-enum ultraviolet_event_type {
- ULTRAVIOLET_RAW_DATA_EVENT = (ULTRAVIOLET_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file
+++ /dev/null
-/*
- * libsensord
- *
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
- *
- * 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 __SENSOR_UNCAL_GYRO_H__
-#define __SENSOR_UNCAL_GYRO_H__
-
-//! Pre-defined events for the uncal gyroscope sensor
-//! Sensor Plugin developer can add more event to their own headers
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/**
- * @defgroup UNCAL_SENSOR_GYRO Gyro Sensor
- * @ingroup SENSOR_FRAMEWORK
- *
- * These APIs are used to control the gyro sensor.
- * @{
- */
-
-enum uncal_gyro_event_type {
- UNCAL_GYRO_RAW_DATA_EVENT = (UNCAL_GYROSCOPE_SENSOR << 16) | 0x0001,
-};
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-//! End of a file