LCOV - code coverage report
Current view: top level - zephyr/input - cy8cmbr3xxx.h Coverage Total Hit
Test: new.info Lines: 100.0 % 5 5
Test Date: 2025-09-05 16:43:28

            Line data    Source code
       1            1 : /*
       2              :  * Copyright (c) 2025 Basalte bv
       3              :  * SPDX-License-Identifier: Apache-2.0
       4              :  */
       5              : 
       6              : /**
       7              :  * @file
       8              :  * @brief Header file for CY8CMBR3xxx input driver.
       9              :  * @ingroup cy8cmbr3xxx_interface
      10              :  */
      11              : 
      12              : #ifndef ZEPHYR_INCLUDE_INPUT_CY8CMBR3XXX_H_
      13              : #define ZEPHYR_INCLUDE_INPUT_CY8CMBR3XXX_H_
      14              : 
      15              : /**
      16              :  * @defgroup cy8cmbr3xxx_interface CY8CMBR3xxx
      17              :  * @ingroup input_interface_ext
      18              :  * @brief CY8CMBR3xxx capacitive touch sensor
      19              :  * @{
      20              :  */
      21              : 
      22              : #include <zephyr/types.h>
      23              : 
      24              : /**
      25              :  * @brief Size of the EZ-Click configuration data
      26              :  */
      27            1 : #define CY8CMBR3XXX_EZ_CLICK_CONFIG_SIZE 128
      28              : 
      29              : #ifdef __cplusplus
      30              : extern "C" {
      31              : #endif /* __cplusplus */
      32              : 
      33              : /**
      34              :  * @brief Configuration data for the CY8CMBR3xxx device
      35              :  */
      36            1 : struct cy8cmbr3xxx_config_data {
      37              :         /** EZ-Click configuration data */
      38            1 :         uint8_t data[CY8CMBR3XXX_EZ_CLICK_CONFIG_SIZE];
      39              : };
      40              : 
      41              : /**
      42              :  * @brief Configure the CY8CMBR3xxx device with an EZ-Click generated configuration.
      43              :  *
      44              :  * @param dev Pointer to the input device instance
      45              :  * @param config_data Pointer to the configuration data for the device
      46              :  *
      47              :  * @retval 0 if successful
      48              :  * @retval <0 if failed
      49              :  */
      50            1 : int cy8cmbr3xxx_configure(const struct device *dev,
      51              :                           const struct cy8cmbr3xxx_config_data *config_data);
      52              : 
      53              : #ifdef __cplusplus
      54              : }
      55              : #endif /* __cplusplus */
      56              : 
      57              : /** @} */
      58              : 
      59              : #endif /* ZEPHYR_INCLUDE_INPUT_CY8CMBR3XXX_H_ */
        

Generated by: LCOV version 2.0-1