1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef GPIO_SERVICE_H
10 #define GPIO_SERVICE_H
11 
12 #ifdef __cplusplus
13 #if __cplusplus
14 extern "C" {
15 #endif
16 #endif /* __cplusplus */
17 
18 enum GpioIoCmd {
19     GPIO_IO_READ = 0,
20     GPIO_IO_WRITE = 1,
21     GPIO_IO_GETDIR = 2,
22     GPIO_IO_SETDIR = 3,
23     GPIO_IO_SETIRQ = 4,
24     GPIO_IO_UNSETIRQ = 5,
25     GPIO_IO_ENABLEIRQ = 6,
26     GPIO_IO_DISABLEIRQ = 7,
27     GPIO_IO_GET_NUM_BY_NAME = 8,
28 };
29 
30 #ifdef __cplusplus
31 #if __cplusplus
32 }
33 #endif
34 #endif /* __cplusplus */
35 
36 #endif /* GPIO_SERVICE_H */
37