C# Class ElectricityMeter.Calculators.ElectricityCalculator

Inheritance: IElectricityCalculator, IAnalogReader
Afficher le fichier Open project: HouseOfTheFuture/IoT-Device

Méthodes publiques

Méthode Description
AnalogRead ( uint pin ) : int
ElectricityCalculator ( bool isArm ) : System
GetSupplyVoltage ( ) : long
calcIrms ( uint numberOfSamples ) : double
calcVI ( uint crossings, uint timeout ) : void
current ( uint _inPinI, double _ICAL ) : void
currentTX ( uint _channel, double _ICAL ) : void
readVcc ( ) : long
serialprint ( ) : void
voltage ( uint _inPinV, double _VCAL, double _PHASECAL ) : void
voltageTX ( double _VCAL, double _PHASECAL ) : void

Private Methods

Méthode Description
ADCBits ( bool isArm ) : int
ADCCounts ( bool isArm ) : int

Method Details

AnalogRead() public méthode

public AnalogRead ( uint pin ) : int
pin uint
Résultat int

ElectricityCalculator() public méthode

public ElectricityCalculator ( bool isArm ) : System
isArm bool
Résultat System

GetSupplyVoltage() public méthode

public GetSupplyVoltage ( ) : long
Résultat long

calcIrms() public méthode

public calcIrms ( uint numberOfSamples ) : double
numberOfSamples uint
Résultat double

calcVI() public méthode

public calcVI ( uint crossings, uint timeout ) : void
crossings uint
timeout uint
Résultat void

current() public méthode

public current ( uint _inPinI, double _ICAL ) : void
_inPinI uint
_ICAL double
Résultat void

currentTX() public méthode

public currentTX ( uint _channel, double _ICAL ) : void
_channel uint
_ICAL double
Résultat void

readVcc() public méthode

public readVcc ( ) : long
Résultat long

serialprint() public méthode

public serialprint ( ) : void
Résultat void

voltage() public méthode

public voltage ( uint _inPinV, double _VCAL, double _PHASECAL ) : void
_inPinV uint
_VCAL double
_PHASECAL double
Résultat void

voltageTX() public méthode

public voltageTX ( double _VCAL, double _PHASECAL ) : void
_VCAL double
_PHASECAL double
Résultat void