openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
Collaboration diagram for INA220 Registers:

Macros

#define INA220_CONFIG   0x00
 INA220 Configuration register (Read/write)
 
#define INA220_SHUNT_VOLTAGE   0x01
 INA220 Shunt Voltage register (Read only)
 
#define INA220_BUS_VOLTAGE   0x02
 INA220 Bus Voltage register (Read only)
 
#define INA220_POWER   0x03
 INA220 Power register (Read only)
 
#define INA220_CURRENT   0x04
 INA220 Current register (Read only)
 
#define INA220_CALIBRATION   0x05
 INA220 Calibration register (Read/write)
 

Detailed Description

Macro Definition Documentation

◆ INA220_BUS_VOLTAGE

#define INA220_BUS_VOLTAGE   0x02

#include <modules/sensors/ina220.h>

INA220 Bus Voltage register (Read only)

Bus Voltage measurement data

◆ INA220_CALIBRATION

#define INA220_CALIBRATION   0x05

#include <modules/sensors/ina220.h>

INA220 Calibration register (Read/write)

Sets full-scale range and LSB of current and power measurements. Overall system calibration

Note
Default value = 0x0000

◆ INA220_CONFIG

#define INA220_CONFIG   0x00

#include <modules/sensors/ina220.h>

INA220 Configuration register (Read/write)

All-register reset, settings for bus voltage range, PGA gain, ADC resolution/averaging

Note
Default value = 0x399F

◆ INA220_CURRENT

#define INA220_CURRENT   0x04

#include <modules/sensors/ina220.h>

INA220 Current register (Read only)

Contains the value of the current flowing through the shunt resistor.

Note
The Current register default to 0 because the Calibration register defaults to 0, yielding a zero current value until the Calibration register is programmed.

◆ INA220_POWER

#define INA220_POWER   0x03

#include <modules/sensors/ina220.h>

INA220 Power register (Read only)

Power measurement data

Note
The Power register default to 0 because the Calibration register defaults to 0, yielding a zero current value until the Calibration register is programmed.

◆ INA220_SHUNT_VOLTAGE

#define INA220_SHUNT_VOLTAGE   0x01

#include <modules/sensors/ina220.h>

INA220 Shunt Voltage register (Read only)

Shunt voltage measurement data