Loading...
Searching...
No Matches
ina2xx_defines.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Eistec AB
3 * SPDX-FileCopyrightText: 2019 Otto-von-Guericke-Universität Magdeburg
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
20
21#ifdef __cplusplus
22 extern "C" {
23#endif
24
38
43#define INA2XX_VBUS_CNVR (0x2)
44#define INA2XX_VBUS_OVF (0x1)
46
51#define INA2XX_RESET (0x8000)
52#define INA2XX_DEFCONFIG (0x399f)
54
55#ifdef __cplusplus
56}
57#endif
58
ina2xx_reg
INA2XX register addresses.
@ INA2XX_REG_CURRENT
Current register (read only)
@ INA2XX_REG_SHUNT_VOLTAGE
Shunt voltage register (read only)
@ INA2XX_REG_CONFIGURATION
Configuration register (read/write)
@ INA2XX_REG_BUS_VOLTAGE
Bus voltage register (read only)
@ INA2XX_REG_POWER
Power register (read only)
@ INA2XX_REG_CALIBRATION
Calibration register (read/write)
enum ina2xx_reg ina2xx_reg_t
INA2XX register addresses.