2 * emulator-plugin-accel-filter
4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
7 * SooYoung Ha <yoosah.ha@samsnung.com>
8 * Sungmin Ha <sungmin82.ha@samsung.com>
10 * This library is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU Lesser General Public License as published by the
12 * Free Software Foundation; either version 2.1 of the License, or (at your option)
15 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this library; if not, write to the Free Software Foundation, Inc., 51
22 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 class accel_sim_filter : public cfilter_module {
29 virtual ~accel_sim_filter();
31 const char *name(void);
35 bool update_name(char *name);
36 bool update_version(int ver);
37 bool update_id(int id);
39 bool add_input(csensor_module *module);
40 cfilter_module *create_new(void);
41 void destroy(cfilter_module *module);
43 bool is_data_ready(bool wait = false);
44 long value(const char *port);
51 int get_sensor_type(void);
53 long polling_interval(void);
54 bool update_polling_interval(unsigned long val);
56 int get_property(unsigned int property_level , void *property_data);
57 int get_struct_value(unsigned int struct_type , void *struct_values);
59 int check_hw_node(void);
62 csensor_module *m_sensor;
71 unsigned long long m_fired_time;
72 unsigned long m_polling_interval;