LCOV - code coverage report
Current view: top level - zephyr/drivers/sensor - sgp40.h Coverage Total Hit
Test: new.info Lines: 100.0 % 2 2
Test Date: 2025-09-05 22:20:39

            Line data    Source code
       1            1 : /*
       2              :  * Copyright (c) 2021, Leonard Pollak
       3              :  *
       4              :  * SPDX-License-Identifier: Apache-2.0
       5              :  */
       6              : 
       7              : /**
       8              :  * @file
       9              :  * @brief Header file for extended sensor API of SGP40 sensor
      10              :  * @ingroup sgp40_interface
      11              :  *
      12              :  * This exposes two attributes for the SGP40 which can be used for
      13              :  * setting the on-chip Temperature and Humidity compensation parameters.
      14              :  */
      15              : 
      16              : #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_SGP40_H_
      17              : #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_SGP40_H_
      18              : 
      19              : /**
      20              :  * @defgroup sgp40_interface SGP40
      21              :  * @ingroup sensor_interface_ext
      22              :  * @brief Sensirion SGP40 gas sensor
      23              :  * @{
      24              :  */
      25              : 
      26              : #ifdef __cplusplus
      27              : extern "C" {
      28              : #endif
      29              : 
      30              : /**
      31              :  * @brief Custom sensor attributes for SGP40
      32              :  */
      33            1 : enum sensor_attribute_sgp40 {
      34              :         /**
      35              :          * Temperature in degC (only the integer part is used).
      36              :          */
      37              :         SENSOR_ATTR_SGP40_TEMPERATURE = SENSOR_ATTR_PRIV_START,
      38              :         /**
      39              :          * Relative Humidity in % (only the integer part is used).
      40              :          */
      41              :         SENSOR_ATTR_SGP40_HUMIDITY
      42              : };
      43              : 
      44              : #ifdef __cplusplus
      45              : }
      46              : #endif
      47              : 
      48              : /**
      49              :  * @}
      50              :  */
      51              : 
      52              : #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_SGP40_H_ */
        

Generated by: LCOV version 2.0-1