LCOV - code coverage report
Current view: top level - zephyr/sensing - sensing_sensor_types.h Hit Total Coverage
Test: new.info Lines: 4 9 44.4 %
Date: 2024-12-22 00:14:23

          Line data    Source code
       1           0 : /*
       2             :  * Copyright (c) 2022-2023 Intel Corporation.
       3             :  *
       4             :  * SPDX-License-Identifier: Apache-2.0
       5             :  */
       6             : 
       7             : #ifndef ZEPHYR_INCLUDE_SENSING_SENSOR_TYPES_H_
       8             : #define ZEPHYR_INCLUDE_SENSING_SENSOR_TYPES_H_
       9             : 
      10             : /**
      11             :  * @brief Sensor Types Definition
      12             :  *
      13             :  * Sensor types definition followed HID standard.
      14             :  * https://usb.org/sites/default/files/hutrr39b_0.pdf
      15             :  *
      16             :  * TODO: will add more types
      17             :  *
      18             :  * @addtogroup sensing_sensor_types
      19             :  * @{
      20             :  */
      21             : 
      22             : /**
      23             :  * sensor category light
      24             :  */
      25           1 : #define SENSING_SENSOR_TYPE_LIGHT_AMBIENTLIGHT                  0x41
      26             : 
      27             : /**
      28             :  * sensor category motion
      29             :  */
      30             : /* Sensor type for 3D accelerometers. */
      31           1 : #define SENSING_SENSOR_TYPE_MOTION_ACCELEROMETER_3D             0x73
      32             : /* Sensor type for 3D gyrometers. */
      33           0 : #define SENSING_SENSOR_TYPE_MOTION_GYROMETER_3D                 0x76
      34             : /* Sensor type for motion detectors. */
      35           0 : #define SENSING_SENSOR_TYPE_MOTION_MOTION_DETECTOR              0x77
      36             : 
      37             : 
      38             : /**
      39             :  * sensor category other
      40             :  */
      41           1 : #define SENSING_SENSOR_TYPE_OTHER_CUSTOM                        0xE1
      42             : 
      43             : /* Sensor type for uncalibrated 3D accelerometers. */
      44           0 : #define SENSING_SENSOR_TYPE_MOTION_UNCALIB_ACCELEROMETER_3D     0x240
      45             : /* Sensor type for hinge angle sensors. */
      46           0 : #define SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE                  0x20B
      47             : 
      48             : /**
      49             :  * @brief Sensor type for all sensors.
      50             :  *
      51             :  * This macro defines the sensor type for all sensors.
      52             :  */
      53           1 : #define SENSING_SENSOR_TYPE_ALL                                 0xFFFF
      54             : 
      55             : /**
      56             :  * @}
      57             :  */
      58             : 
      59             : #endif /*ZEPHYR_INCLUDE_SENSING_SENSOR_TYPES_H_*/

Generated by: LCOV version 1.14