| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */cxx . . $ `<file>/lib/internal.h`/ |
| 2 | /* SPDX-FileCopyrightText: 2021 Bartosz Golaszewski <[email protected]> */ |
| 3 | |
| 4 | #ifndef __LIBGPIOD_GPIOD_INTERNAL_H__ |
| 5 | #define __LIBGPIOD_GPIOD_INTERNAL_H__cxx . . $ `lib/internal.h:5:9`! |
| 6 | |
| 7 | #include <gpiod.h>cxx . . $ `<file>/include/gpiod.h`/ |
| 8 | #include <stddef.h> |
| 9 | #include <stdint.h> |
| 10 | |
| 11 | #include "uapi/gpio.h"cxx . . $ `<file>/lib/uapi/gpio.h`/ |
| 12 | |
| 13 | /* For internal library use only. */ |
| 14 | |
| 15 | #define GPIOD_APIcxx . . $ `lib/internal.h:15:9`! __attribute__((visibility("default"))) |
| 16 | #define GPIOD_BITcxx . . $ `lib/internal.h:16:9`!(nr) (1UL << (nr)) |
| 17 | |
| 18 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! gpiod_check_gpiochip_devicecxx . . $ gpiod_check_gpiochip_device(e96b1cf346ae2c6).(const char *path, boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! set_errno); |
| 19 | |
| 20 | struct gpiod_chip_infocxx . . $ gpiod_chip_info# * |
| 21 | gpiod_chip_info_from_uapicxx . . $ gpiod_chip_info_from_uapi(d34692967859f3f7).(struct gpiochip_infocxx . . $ gpiochip_info# *uapi_info); |
| 22 | struct gpiod_line_infocxx . . $ gpiod_line_info# * |
| 23 | gpiod_line_info_from_uapicxx . . $ gpiod_line_info_from_uapi(273b4a357bdfb836).(struct gpio_v2_line_infocxx . . $ gpio_v2_line_info# *uapi_info); |
| 24 | void gpiod_request_config_to_uapicxx . . $ gpiod_request_config_to_uapi(a141c21c0e74b916).(struct gpiod_request_configcxx . . $ gpiod_request_config# *config, |
| 25 | struct gpio_v2_line_requestcxx . . $ gpio_v2_line_request# *uapi_req); |
| 26 | int gpiod_line_config_to_uapicxx . . $ gpiod_line_config_to_uapi(180b8730a233f01).(struct gpiod_line_configcxx . . $ gpiod_line_config# *config, |
| 27 | struct gpio_v2_line_requestcxx . . $ gpio_v2_line_request# *uapi_cfg); |
| 28 | struct gpiod_line_requestcxx . . $ gpiod_line_request# * |
| 29 | gpiod_line_request_from_uapicxx . . $ gpiod_line_request_from_uapi(aba1763f564611d6).(struct gpio_v2_line_requestcxx . . $ gpio_v2_line_request# *uapi_req, |
| 30 | const char *chip_name); |
| 31 | int gpiod_edge_event_buffer_read_fdcxx . . $ gpiod_edge_event_buffer_read_fd(968ac207299343e2).(int fd, |
| 32 | struct gpiod_edge_event_buffercxx . . $ gpiod_edge_event_buffer# *buffer, |
| 33 | size_t max_events); |
| 34 | struct gpiod_info_eventcxx . . $ gpiod_info_event# * |
| 35 | gpiod_info_event_from_uapicxx . . $ gpiod_info_event_from_uapi(9734c2416807fa82).(struct gpio_v2_line_info_changedcxx . . $ gpio_v2_line_info_changed# *uapi_evt); |
| 36 | struct gpiod_info_eventcxx . . $ gpiod_info_event# *gpiod_info_event_read_fdcxx . . $ gpiod_info_event_read_fd(8e0dbd7b7e89c9bb).(int fd); |
| 37 | |
| 38 | int gpiod_poll_fdcxx . . $ gpiod_poll_fd(bba9d6e9fb34fad7).(int fd, int64_tcxx . . $ int64_t# timeout); |
| 39 | int gpiod_set_output_valuecxx . . $ gpiod_set_output_value(eb3e60c472d1bd0b).(enum gpiod_line_valuecxx . . $ gpiod_line_value# in, |
| 40 | enum gpiod_line_valuecxx . . $ gpiod_line_value# *out); |
| 41 | int gpiod_ioctlcxx . . $ gpiod_ioctl(abf9bb955e3c4896).(int fd, unsigned long request, void *arg); |
| 42 | |
| 43 | void gpiod_line_mask_zerocxx . . $ gpiod_line_mask_zero(386f4d2be08c489b).(uint64_tcxx . . $ uint64_t# *mask); |
| 44 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! gpiod_line_mask_test_bitcxx . . $ gpiod_line_mask_test_bit(1e1585c25ba0c69a).(const uint64_tcxx . . $ uint64_t# *mask, unsigned int nr); |
| 45 | void gpiod_line_mask_set_bitcxx . . $ gpiod_line_mask_set_bit(5e61894bc0b8b7).(uint64_tcxx . . $ uint64_t# *mask, unsigned int nr); |
| 46 | void gpiod_line_mask_assign_bitcxx . . $ gpiod_line_mask_assign_bit(aece0c19fb2b7302).(uint64_tcxx . . $ uint64_t# *mask, unsigned int nr, boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! value); |
| 47 | |
| 48 | #endif /* __LIBGPIOD_GPIOD_INTERNAL_H__ */ |