Show / Hide Table of Contents

Class INA219

Provides functionality for INA219 current measurement ICs

Inheritance
System.Object
INA219
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Elatec.FCT.Client.Hardware
Assembly: ElatecFCT.dll
Syntax
public class INA219

Constructors

View Source

INA219(Byte, II2c)

Initializes a new instance of the ElatecFCT.Hardware.INA219 using an i2c adress and i2c interface

Declaration
public INA219(byte i2cAdress, II2c interfaceI2C)
Parameters
Type Name Description
System.Byte i2cAdress
II2c interfaceI2C

Methods

View Source

GetCurrent()

Get current in mA

Declaration
public double GetCurrent()
Returns
Type Description
System.Double
View Source

GetCurrent(Int16, Int32)

Get average current. Note: each conversion takes 69 ms in INA219 average mode

Declaration
public double GetCurrent(short noOfValues, int waitMS)
Parameters
Type Name Description
System.Int16 noOfValues
System.Int32 waitMS
Returns
Type Description
System.Double
View Source

Init()

Init the INA219

Declaration
public void Init()
  • View Source
In This Article
Back to top Generated by DocFX