upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | List of all members
Gas Class Reference

Public Member Functions

synchronized void delete ()
 
 Gas (int gasPin)
 
int getSampledWindow (long freqMS, short[] numberOfSamples)
 
int findThreshold (thresholdContext ctx, long threshold, short[] buffer)
 
int getSampledData (thresholdContext ctx)
 
int getSample ()
 
void printGraph (thresholdContext ctx, short resolution)
 

Constructor & Destructor Documentation

Gas ( int  gasPin)

Instantiates a Gas object

Parameters
gasPinPin where gas is connected

Member Function Documentation

int getSample ( )

Returns one sample from the sensor

int getSampledData ( thresholdContext  ctx)

Returns average data for the sampled window

Parameters
ctxThreshold context
void printGraph ( thresholdContext  ctx,
short  resolution 
)

Prints a running average of the threshold context

Parameters
ctxThreshold context
Inheritance diagram for Gas:
Inheritance graph
[legend]

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