| eRPC API Reference Rev. 1.8.1 NXP Semiconductors

- Main Page
- API Reference
- Classes
- Files

- File List
- File Members

erpc_sysgpio.h
1 /*
2 * Copyright 2020 NXP
3 * All rights reserved.
4 *
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9 #ifndef _ERPC_SYSGPIO_H_
10 #define _ERPC_SYSGPIO_H_
11
12 #if __cplusplus
13 extern "C" {
14 #endif
15
16 #define ERPC_SYSGPIO_STATUS_SUCCESS 0
17
18 int gpio_export(int gpio);
19 int gpio_direction(int gpio, int direction);
20 int gpio_set_edge(int gpio, char *edge);
21 int gpio_read(int gpio);
22
23 int gpio_open(int gpio);
24 int gpio_close(int fd);
25 int gpio_poll(int fd, int timeout);
26
27 #if __cplusplus
28 }
29 #endif
30
31 #endif /* _ERPC_SYSGPIO_H_ */