LCOV - code coverage report
Current view: top level - zephyr/bluetooth/mesh - health_faults.h Hit Total Coverage
Test: new.info Lines: 3 53 5.7 %
Date: 2024-12-22 00:14:23

          Line data    Source code
       1           1 : /** @file
       2             :  * @brief Health faults
       3             :  */
       4             : 
       5             : /*
       6             :  * Copyright (c) 2019 Nordic Semiconductor ASA
       7             :  *
       8             :  * SPDX-License-Identifier: Apache-2.0
       9             :  */
      10             : #ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_FAULTS_H__
      11             : #define ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_FAULTS_H__
      12             : 
      13             : /**
      14             :  * @brief List of specification defined Health fault values.
      15             :  * @defgroup bt_mesh_health_faults Health faults
      16             :  * @ingroup bt_mesh
      17             :  * @{
      18             :  */
      19             : 
      20             : /** No fault has occurred. */
      21           1 : #define BT_MESH_HEALTH_FAULT_NO_FAULT                           0x00
      22             : 
      23           0 : #define BT_MESH_HEALTH_FAULT_BATTERY_LOW_WARNING                0x01
      24           0 : #define BT_MESH_HEALTH_FAULT_BATTERY_LOW_ERROR                  0x02
      25           0 : #define BT_MESH_HEALTH_FAULT_SUPPLY_VOLTAGE_TOO_LOW_WARNING     0x03
      26           0 : #define BT_MESH_HEALTH_FAULT_SUPPLY_VOLTAGE_TOO_LOW_ERROR       0x04
      27           0 : #define BT_MESH_HEALTH_FAULT_SUPPLY_VOLTAGE_TOO_HIGH_WARNING    0x05
      28           0 : #define BT_MESH_HEALTH_FAULT_SUPPLY_VOLTAGE_TOO_HIGH_ERROR      0x06
      29           0 : #define BT_MESH_HEALTH_FAULT_POWER_SUPPLY_INTERRUPTED_WARNING   0x07
      30           0 : #define BT_MESH_HEALTH_FAULT_POWER_SUPPLY_INTERRUPTED_ERROR     0x08
      31           0 : #define BT_MESH_HEALTH_FAULT_NO_LOAD_WARNING                    0x09
      32           0 : #define BT_MESH_HEALTH_FAULT_NO_LOAD_ERROR                      0x0A
      33           0 : #define BT_MESH_HEALTH_FAULT_OVERLOAD_WARNING                   0x0B
      34           0 : #define BT_MESH_HEALTH_FAULT_OVERLOAD_ERROR                     0x0C
      35           0 : #define BT_MESH_HEALTH_FAULT_OVERHEAT_WARNING                   0x0D
      36           0 : #define BT_MESH_HEALTH_FAULT_OVERHEAT_ERROR                     0x0E
      37           0 : #define BT_MESH_HEALTH_FAULT_CONDENSATION_WARNING               0x0F
      38           0 : #define BT_MESH_HEALTH_FAULT_CONDENSATION_ERROR                 0x10
      39           0 : #define BT_MESH_HEALTH_FAULT_VIBRATION_WARNING                  0x11
      40           0 : #define BT_MESH_HEALTH_FAULT_VIBRATION_ERROR                    0x12
      41           0 : #define BT_MESH_HEALTH_FAULT_CONFIGURATION_WARNING              0x13
      42           0 : #define BT_MESH_HEALTH_FAULT_CONFIGURATION_ERROR                0x14
      43           0 : #define BT_MESH_HEALTH_FAULT_ELEMENT_NOT_CALIBRATED_WARNING     0x15
      44           0 : #define BT_MESH_HEALTH_FAULT_ELEMENT_NOT_CALIBRATED_ERROR       0x16
      45           0 : #define BT_MESH_HEALTH_FAULT_MEMORY_WARNING                     0x17
      46           0 : #define BT_MESH_HEALTH_FAULT_MEMORY_ERROR                       0x18
      47           0 : #define BT_MESH_HEALTH_FAULT_SELF_TEST_WARNING                  0x19
      48           0 : #define BT_MESH_HEALTH_FAULT_SELF_TEST_ERROR                    0x1A
      49           0 : #define BT_MESH_HEALTH_FAULT_INPUT_TOO_LOW_WARNING              0x1B
      50           0 : #define BT_MESH_HEALTH_FAULT_INPUT_TOO_LOW_ERROR                0x1C
      51           0 : #define BT_MESH_HEALTH_FAULT_INPUT_TOO_HIGH_WARNING             0x1D
      52           0 : #define BT_MESH_HEALTH_FAULT_INPUT_TOO_HIGH_ERROR               0x1E
      53           0 : #define BT_MESH_HEALTH_FAULT_INPUT_NO_CHANGE_WARNING            0x1F
      54           0 : #define BT_MESH_HEALTH_FAULT_INPUT_NO_CHANGE_ERROR              0x20
      55           0 : #define BT_MESH_HEALTH_FAULT_ACTUATOR_BLOCKED_WARNING           0x21
      56           0 : #define BT_MESH_HEALTH_FAULT_ACTUATOR_BLOCKED_ERROR             0x22
      57           0 : #define BT_MESH_HEALTH_FAULT_HOUSING_OPENED_WARNING             0x23
      58           0 : #define BT_MESH_HEALTH_FAULT_HOUSING_OPENED_ERROR               0x24
      59           0 : #define BT_MESH_HEALTH_FAULT_TAMPER_WARNING                     0x25
      60           0 : #define BT_MESH_HEALTH_FAULT_TAMPER_ERROR                       0x26
      61           0 : #define BT_MESH_HEALTH_FAULT_DEVICE_MOVED_WARNING               0x27
      62           0 : #define BT_MESH_HEALTH_FAULT_DEVICE_MOVED_ERROR                 0x28
      63           0 : #define BT_MESH_HEALTH_FAULT_DEVICE_DROPPED_WARNING             0x29
      64           0 : #define BT_MESH_HEALTH_FAULT_DEVICE_DROPPED_ERROR               0x2A
      65           0 : #define BT_MESH_HEALTH_FAULT_OVERFLOW_WARNING                   0x2B
      66           0 : #define BT_MESH_HEALTH_FAULT_OVERFLOW_ERROR                     0x2C
      67           0 : #define BT_MESH_HEALTH_FAULT_EMPTY_WARNING                      0x2D
      68           0 : #define BT_MESH_HEALTH_FAULT_EMPTY_ERROR                        0x2E
      69           0 : #define BT_MESH_HEALTH_FAULT_INTERNAL_BUS_WARNING               0x2F
      70           0 : #define BT_MESH_HEALTH_FAULT_INTERNAL_BUS_ERROR                 0x30
      71           0 : #define BT_MESH_HEALTH_FAULT_MECHANISM_JAMMED_WARNING           0x31
      72           0 : #define BT_MESH_HEALTH_FAULT_MECHANISM_JAMMED_ERROR             0x32
      73             : 
      74             : /**
      75             :  * Start of the vendor specific fault values.
      76             :  *
      77             :  * All values below this are reserved for the Bluetooth Specification.
      78             :  */
      79           1 : #define BT_MESH_HEALTH_FAULT_VENDOR_SPECIFIC_START              0x80
      80             : 
      81             : /**
      82             :  * @}
      83             :  */
      84             : 
      85             : #endif /* ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_FAULTS_H__ */

Generated by: LCOV version 1.14