Line data Source code
1 1 : /*
2 : * Copyright (c) 2025 Renesas Electronics Corporation
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : /**
8 : * @file
9 : * @brief Header file for Renesas RA CTSU input driver.
10 : * @ingroup renesas_ra_ctsu_interface
11 : */
12 :
13 : #ifndef ZEPHYR_INCLUDE_ZEPHYR_INPUT_INPUT_RENESAS_RA_CTSU_H_
14 : #define ZEPHYR_INCLUDE_ZEPHYR_INPUT_INPUT_RENESAS_RA_CTSU_H_
15 :
16 : /**
17 : * @defgroup renesas_ra_ctsu_interface Renesas RA CTSU
18 : * @ingroup input_interface_ext
19 : * @brief Renesas RA Capacitive Touch Sensor Unit
20 : * @{
21 : */
22 :
23 : #include <rm_touch.h>
24 :
25 : #ifdef __cplusplus
26 : extern "C" {
27 : #endif
28 :
29 : /**
30 : * @brief Configuration data for the Renesas RA CTSU device
31 : */
32 1 : struct renesas_ra_ctsu_touch_cfg {
33 : /** FSP Touch instance */
34 1 : struct st_touch_instance touch_instance;
35 : };
36 :
37 : /**
38 : * @brief Configure CTSU group device with a Renesas QE for Capacitive Touch Workflow generated
39 : * configuration
40 : *
41 : * @param dev Pointer to the input device instance
42 : * @param cfg Pointer to the configuration data for the device
43 : *
44 : * @retval 0 on success
45 : * @retval -ENOSYS in case INPUT_RENESAS_RA_QE_TOUCH_CFG was not enabled
46 : * @retval -errno on failure
47 : */
48 1 : __syscall int renesas_ra_ctsu_group_configure(const struct device *dev,
49 : const struct renesas_ra_ctsu_touch_cfg *cfg);
50 :
51 : #ifdef __cplusplus
52 : }
53 : #endif
54 :
55 : #include <zephyr/syscalls/input_renesas_ra_ctsu.h>
56 :
57 : /** @} */
58 :
59 : #endif /* ZEPHYR_INCLUDE_ZEPHYR_INPUT_INPUT_RENESAS_RA_CTSU_H_ */
|