2 * @copyright Copyright (c) 2017-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef INC_INPUT_HAL_INTERNAL_H_
18 #define INC_INPUT_HAL_INTERNAL_H_
21 * Touch panel operation function info
25 * \~english Make touch panel start work.
29 * \~english Get touch panel device horizontal resolution.
31 int (* get_reso_h)(int *);
33 * \~english Get touch panel device vertical resolution.
35 int (* get_reso_v)(int *);
37 * \~english Get whether X axis is inversion.
39 int (* get_reverse_axis_x)(bool *);
41 * \~english Get whether Y axis is inversion.
43 int (* get_reverse_axis_y)(bool *);
45 * \~english Config touch panel.
47 int (* config)(const char *, int, int);
49 * \~english Get touch panel device name.
51 int (* get_touch_devicename)(char*, size_t);
53 * \~english Get touch panel key device name.
55 int (* get_key_devicename)(char*, size_t);
57 * \~english Execute touch panel self test.
59 int (* selftest)(int, void *);
61 * \~english Get touch panel config status.
63 int (* get_config_status)(int *);
65 * \~english Set whether the driver sends touch panel data or not.
67 int (* set_touch_lock)(int);
69 * \~english Request touch panel touch suspend.
71 int (* set_touch_suspend)(void);
73 * \~english Set touch panel sensitivity level.
75 int (* set_sensitivity_level)(int);
77 * \~english Get touch panel sensitivity level.
79 int (* get_sensitivity_level)(int *);
81 * \~english Notify radio scan frequency.
83 int (* notify_radio_scan_frequency)(struct RadioInfoTouch *);
90 int ConfigTouch(const char *path , int resolution_h, int resolution_v);
93 * Get touch panel device name
95 int GetPanelNameTouch(char* name, size_t buf_length);
98 * Get touch panel key device name
100 int GetKeyNameTouch(char* name, size_t buf_length);
103 * Get touch panel config status
105 int GetConfigStatusTouch(int *status);
107 #endif // INC_INPUT_HAL_INTERNAL_H_