LCOV - code coverage report
Current view: top level - zephyr/drivers/sensor - mhz19b.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 G-Technologies Sdn. Bhd.
       3              :  *
       4              :  * SPDX-License-Identifier: Apache-2.0
       5              :  */
       6              : 
       7              : /**
       8              :  * @file
       9              :  * @brief Header file for extended sensor API of MH-Z19B sensor
      10              :  * @ingroup mhz19b_interface
      11              :  */
      12              : 
      13              : #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_MHZ19B_H_
      14              : #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_MHZ19B_H_
      15              : 
      16              : /**
      17              :  * @defgroup mhz19b_interface MH-Z19B
      18              :  * @ingroup sensor_interface_ext
      19              :  * @brief Winsen MH-Z19B CO<sub>2</sub> sensor
      20              :  * @{
      21              :  */
      22              : 
      23              : #ifdef __cplusplus
      24              : extern "C" {
      25              : #endif
      26              : 
      27              : #include <zephyr/drivers/sensor.h>
      28              : 
      29              : /**
      30              :  * @brief Custom sensor attributes for MH-Z19B
      31              :  */
      32            1 : enum sensor_attribute_mhz19b {
      33              :         /**
      34              :          * Automatic Baseline Correction Self Calibration Function.
      35              :          *
      36              :          * - sensor_value.val1 == 0: Disabled
      37              :          * - sensor_value.val1 == 1: Enabled
      38              :          */
      39              :         SENSOR_ATTR_MHZ19B_ABC = SENSOR_ATTR_PRIV_START,
      40              : };
      41              : 
      42              : #ifdef __cplusplus
      43              : }
      44              : #endif
      45              : 
      46              : /**
      47              :  * @}
      48              :  */
      49              : 
      50              : #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_MHZ19B_H_ */
        

Generated by: LCOV version 2.0-1