Characteristic Locus
Inheritance System.Object > Ina260
Implements System.IDisposable
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 Meadow.Foundation.Sensors.Power
Assembly Ina260.dll

Syntax

public class Ina260 : IDisposable

Constructors

Ina260(II2cBus, Ina260.Addresses)

Declaration
public Ina260(II2cBus i2cBus, Ina260.Addresses address)

Parameters

Type Name Description
II2cBus i2cBus
Ina260.Addresses address

Ina260(II2cBus, Byte)

Declaration
public Ina260(II2cBus i2cBus, byte address = 64)

Parameters

Type Name Description
II2cBus i2cBus
System.Byte address

Properties

Address

Declaration
public byte Address { get; }

Property Value

Type Description
System.Byte

Current

Reads the value of the current (in Amps) flowing through the shunt resistor

Declaration
public float Current { get; }

Property Value

Type Description
System.Single

CurrentChangeThreshold

Declaration
public float CurrentChangeThreshold { get; set; }

Property Value

Type Description
System.Single

DieID

Reads the unique die identification number

Declaration
public int DieID { get; }

Property Value

Type Description
System.Int32

IsSampling

Declaration
public bool IsSampling { get; }

Property Value

Type Description
System.Boolean

ManufacturerID

Reads the unique manufacturer identification number

Declaration
public int ManufacturerID { get; }

Property Value

Type Description
System.Int32

Power

Reads the value of the calculated power being delivered to the load

Declaration
public float Power { get; }

Property Value

Type Description
System.Single

PowerChangeThreshold

Declaration
public float PowerChangeThreshold { get; set; }

Property Value

Type Description
System.Single

Voltage

Reads bus voltage measurement (in Volts) data

Declaration
public float Voltage { get; }

Property Value

Type Description
System.Single

VoltageChangeThreshold

Declaration
public float VoltageChangeThreshold { get; set; }

Property Value

Type Description
System.Single

Methods

Dispose()

Dispose managed resources

Declaration
public void Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)

Parameters

Type Name Description
System.Boolean disposing

StartSampling(TimeSpan)

Declaration
public void StartSampling(TimeSpan samplePeriod)

Parameters

Type Name Description
System.TimeSpan samplePeriod

StopSampling()

Declaration
public void StopSampling()

Events

CurrentChanged

Declaration
public event Ina260.ValueChangedHandler CurrentChanged

Event Type

Type Description
Ina260.ValueChangedHandler

PowerChanged

Declaration
public event Ina260.ValueChangedHandler PowerChanged

Event Type

Type Description
Ina260.ValueChangedHandler

VoltageChanged

Declaration
public event Ina260.ValueChangedHandler VoltageChanged

Event Type

Type Description
Ina260.ValueChangedHandler