1 /* 2 * Copyright (c) 2025 Basalte bv 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6 #ifndef ZEPHYR_INCLUDE_INPUT_CY8CMBR3XXX_H_ 7 #define ZEPHYR_INCLUDE_INPUT_CY8CMBR3XXX_H_ 8 9 #include <zephyr/types.h> 10 11 #define CY8CMBR3XXX_EZ_CLICK_CONFIG_SIZE 128 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif /* __cplusplus */ 16 17 struct cy8cmbr3xxx_config_data { 18 uint8_t data[CY8CMBR3XXX_EZ_CLICK_CONFIG_SIZE]; 19 }; 20 21 /** 22 * @brief Configure the CY8CMBR3xxx device with an EZ-Click generated configuration. 23 * 24 * @param dev Pointer to the input device instance 25 * @param config_data Pointer to the configuration data for the device 26 * 27 * @retval 0 if successful 28 * @retval <0 if failed 29 */ 30 int cy8cmbr3xxx_configure(const struct device *dev, 31 const struct cy8cmbr3xxx_config_data *config_data); 32 33 #ifdef __cplusplus 34 } 35 #endif /* __cplusplus */ 36 37 #endif /* ZEPHYR_INCLUDE_INPUT_CY8CMBR3XXX_H_ */ 38