Line data Source code
1 0 : /*
2 : * Copyright 2025 Nova Dynamics LLC
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_INA2XX_H_
8 : #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_INA2XX_H_
9 :
10 : #include <zephyr/drivers/sensor.h>
11 :
12 : #ifdef __cplusplus
13 : extern "C" {
14 : #endif
15 :
16 : /**
17 : * @brief INA2XX extra sensor channels.
18 : */
19 1 : enum sensor_channel_ina2xx {
20 : /** Accumulated energy, in Joules **/
21 : SENSOR_CHAN_INA2XX_ENERGY = SENSOR_CHAN_PRIV_START,
22 :
23 : /** Accumulated charge, in Coulombs **/
24 : SENSOR_CHAN_INA2XX_CHARGE,
25 : };
26 :
27 0 : enum sensor_attribute_ina2xx {
28 : /** ADC configuration **/
29 : SENSOR_ATTR_ADC_CONFIGURATION = SENSOR_ATTR_PRIV_START,
30 : };
31 :
32 : #ifdef __cplusplus
33 : }
34 : #endif
35 :
36 : #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_INA2XX_H_ */
|