LCOV - code coverage report
Current view: top level - zephyr/drivers/sensor - lis2dh.h Coverage Total Hit
Test: new.info Lines: 100.0 % 3 3
Test Date: 2025-09-25 19:22:35

            Line data    Source code
       1            1 : /*
       2              :  * Copyright The Zephyr Project Contributors
       3              :  *
       4              :  * SPDX-License-Identifier: Apache-2.0
       5              :  */
       6              : 
       7              : /**
       8              :  * @file
       9              :  * @brief Header file for extended sensor API of LIS2DH sensor
      10              :  * @ingroup lis2dh_interface
      11              :  */
      12              : 
      13              : #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_LIS2DH_H_
      14              : #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_LIS2DH_H_
      15              : 
      16              : /**
      17              :  * @defgroup lis2dh_interface LIS2DH
      18              :  * @ingroup sensor_interface_ext
      19              :  * @brief ST Microelectronics LIS2DH 3-axis accelerometer
      20              :  * @{
      21              :  */
      22              : 
      23              : #include <zephyr/drivers/sensor.h>
      24              : 
      25              : /**
      26              :  * Possible values for @ref SENSOR_ATTR_LIS2DH_SELF_TEST custom attribute.
      27              :  */
      28            1 : enum lis2dh_self_test {
      29              :         LIS2DH_SELF_TEST_DISABLE = 0,  /**< Self-test disabled */
      30              :         LIS2DH_SELF_TEST_POSITIVE = 1, /**< Simulates a positive-direction acceleration */
      31              :         LIS2DH_SELF_TEST_NEGATIVE = 2, /**< Simulates a negative-direction acceleration */
      32              : };
      33              : 
      34              : /**
      35              :  * @brief Custom sensor attributes for LIS2DH
      36              :  */
      37            1 : enum sensor_attribute_lis2dh {
      38              :         /**
      39              :          * Sets the self-test mode.
      40              :          *
      41              :          * Applies an electrostatic force to the sensor to simulate acceleration without
      42              :          * actually moving the device.
      43              :          *
      44              :          * Use a value from @ref lis2dh_self_test, passed in the sensor_value.val1 field.
      45              :          */
      46              :         SENSOR_ATTR_LIS2DH_SELF_TEST = SENSOR_ATTR_PRIV_START,
      47              : };
      48              : 
      49              : /**
      50              :  * @}
      51              :  */
      52              : 
      53              : #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_LIS2DH_H_ */
        

Generated by: LCOV version 2.0-1