Line data Source code
1 1 : /*
2 : * Copyright (c) 2024 SILA Embedded Solutions GmbH
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : /**
7 : * @file
8 : * @brief Header file for extended sensor API of BD8LB600FS sensor
9 : * @ingroup bd8lb600fs_interface
10 : */
11 :
12 : #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_BD8LB600FS_H_
13 : #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_BD8LB600FS_H_
14 :
15 : /**
16 : * @brief ROHM Semiconductor BD8LB600FS open load and over-current detection
17 : * @defgroup bd8lb600fs_interface BD8LB600FS
18 : * @ingroup sensor_interface_ext
19 : * @{
20 : */
21 :
22 : #include <zephyr/drivers/sensor.h>
23 :
24 : /**
25 : * @brief Custom sensor channels for BD8LB600FS
26 : */
27 1 : enum sensor_channel_bd8lb600fs {
28 : /**
29 : * Open load detected.
30 : * Boolean with one bit per output
31 : */
32 : SENSOR_CHAN_BD8LB600FS_OPEN_LOAD = SENSOR_ATTR_PRIV_START,
33 : /**
34 : * Over current protection or thermal shutdown.
35 : * Boolean with one bit per output
36 : */
37 : SENSOR_CHAN_BD8LB600FS_OVER_CURRENT_OR_THERMAL_SHUTDOWN,
38 : };
39 :
40 : /**
41 : * @}
42 : */
43 :
44 : #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_BD8LB600FS_H_ */
|