Loading...
Searching...
No Matches
ina2xx_defines.h File Reference

Various definitions for Texas Instruments INA219/INA220 Bi-Directional CURRENT/POWER MONITOR with Two-Wire Interface. More...

Detailed Description

Various definitions for Texas Instruments INA219/INA220 Bi-Directional CURRENT/POWER MONITOR with Two-Wire Interface.

Author
Joakim NohlgÄrd joaki.nosp@m.m.no.nosp@m.hlgar.nosp@m.d@ei.nosp@m.stec..nosp@m.se
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file ina2xx_defines.h.

Go to the source code of this file.

Flags in the INA2XX Bus Voltage Register

#define INA2XX_VBUS_CNVR   (0x2)
 Unread value in power register ready.
 
#define INA2XX_VBUS_OVF   (0x1)
 Math overflow during conversion.
 

Special configuration register values

#define INA2XX_RESET   (0x8000
 Write to config reg to reset device.
 
#define INA2XX_DEFCONFIG   (0x399f
 Default config after reset.
 
enum  ina2xx_reg {
  INA2XX_REG_CONFIGURATION = 0x00 , INA2XX_REG_SHUNT_VOLTAGE = 0x01 , INA2XX_REG_BUS_VOLTAGE = 0x02 , INA2XX_REG_POWER = 0x03 ,
  INA2XX_REG_CURRENT = 0x04 , INA2XX_REG_CALIBRATION = 0x05
}
 INA2XX register addresses. More...
 
typedef enum ina2xx_reg ina2xx_reg_t
 INA2XX register addresses.
 

Macro Definition Documentation

◆ INA2XX_DEFCONFIG

#define INA2XX_DEFCONFIG   (0x399f

Default config after reset.

Definition at line 56 of file ina2xx_defines.h.

◆ INA2XX_RESET

#define INA2XX_RESET   (0x8000

Write to config reg to reset device.

Definition at line 55 of file ina2xx_defines.h.

◆ INA2XX_VBUS_CNVR

#define INA2XX_VBUS_CNVR   (0x2)

Unread value in power register ready.

Definition at line 47 of file ina2xx_defines.h.

◆ INA2XX_VBUS_OVF

#define INA2XX_VBUS_OVF   (0x1)

Math overflow during conversion.

Definition at line 48 of file ina2xx_defines.h.

Typedef Documentation

◆ ina2xx_reg_t

typedef enum ina2xx_reg ina2xx_reg_t

INA2XX register addresses.

All registers in the INA2XX are 16 bit wide and transmitted MSB first.

Enumeration Type Documentation

◆ ina2xx_reg

enum ina2xx_reg

INA2XX register addresses.

All registers in the INA2XX are 16 bit wide and transmitted MSB first.

Enumerator
INA2XX_REG_CONFIGURATION 

Configuration register (read/write)

INA2XX_REG_SHUNT_VOLTAGE 

Shunt voltage register (read only)

INA2XX_REG_BUS_VOLTAGE 

Bus voltage register (read only)

INA2XX_REG_POWER 

Power register (read only)

INA2XX_REG_CURRENT 

Current register (read only)

INA2XX_REG_CALIBRATION 

Calibration register (read/write)

Definition at line 34 of file ina2xx_defines.h.