2 * Copyright (c) 2016-2017 Samsung Electronics Co., Ltd.
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 __PERIPHERAL_GDBUS_GPIO_H__
18 #define __PERIPHERAL_GDBUS_GPIO_H__
20 void gpio_proxy_init(void);
21 void gpio_proxy_deinit(void);
23 int peripheral_gdbus_gpio_open(peripheral_gpio_h gpio);
24 int peripheral_gdbus_gpio_close(peripheral_gpio_h gpio);
25 int peripheral_gdbus_gpio_set_direction(peripheral_gpio_h gpio, peripheral_gpio_direction_e direction);
26 int peripheral_gdbus_gpio_set_edge_mode(peripheral_gpio_h gpio, peripheral_gpio_edge_e edge);
27 int peripheral_gdbus_gpio_set_interrupted_cb(peripheral_gpio_h gpio, peripheral_gpio_interrupted_cb callback, void *user_data);
28 int peripheral_gdbus_gpio_unset_interrupted_cb(peripheral_gpio_h gpio);
29 int peripheral_gdbus_gpio_read(peripheral_gpio_h gpio, int *value);
30 int peripheral_gdbus_gpio_write(peripheral_gpio_h gpio, int value);
32 #endif /* __PERIPHERAL_GDBUS_GPIO_H__ */