upm  0.1.8
Sensor/Actuator repository for libmraa (v0.4.5)
 All Data Structures Files Functions Variables Macros Pages
Public Member Functions | Static Public Attributes
ECS1030 Class Reference

Public Member Functions

 ECS1030 (uint8_t pinNumber)
 
 ~ECS1030 ()
 
double getCurrency_A ()
 
double getPower_A ()
 
double getCurrency_B ()
 
double getPower_B ()
 
std::string name ()
 

Static Public Attributes

static const uint8_t DELAY_MS = 20000 / NUMBER_OF_SAMPLES
 
static const uint8_t VOLT_M = 5.1 / 1023
 
static const uint8_t R_LOAD = 2000.0 / CURRENT_RATIO
 

Constructor & Destructor Documentation

ECS1030 ( uint8_t  pinNumber)

Instanciates a ECS1030 (current sensor) object

Parameters
pinNumbernumber of the data pin
~ECS1030 ( )

ECS1030 object destructor, basicaly it close the GPIO.

Member Function Documentation

double getCurrency_A ( )

Return currency data for the sampled period

Here is the caller graph for this function:

double getPower_A ( )

Return power data for the sampled period

Here is the call graph for this function:

double getCurrency_B ( )

Return currency data for the sampled period

Here is the caller graph for this function:

double getPower_B ( )

Return power data for the sampled period

Here is the call graph for this function:

std::string name ( )
inline

Return name of the component


The documentation for this class was generated from the following files: