Update interface documentation

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Serban Waltter 2018-07-19 19:45:54 +03:00 committed by Mihai Tudor Panu
parent 57c0c8c235
commit bfdd2c37c0
7 changed files with 13 additions and 7 deletions

View File

@ -40,7 +40,7 @@ namespace upm
/**
* Get distance from sensor
*
* @return Returns the distance
* @return Returns the distance in cm
*/
virtual float getDistance() = 0;
/**

View File

@ -33,6 +33,12 @@ namespace upm
{
public:
virtual ~iDistanceInterrupter() {}
/**
* Determines if objected is detected
*
* @return True if the sensor has detected an object
*/
virtual bool objectDetected() = 0;
};
}

View File

@ -37,7 +37,7 @@ namespace upm
/**
* Retrieve the computed heart rate
*
* @return Computed heart rate
* @return Computed heart rate in BPM (beats per minute)
*/
virtual int getHeartRate() = 0;
};

View File

@ -37,7 +37,7 @@ namespace upm
/**
* Measures humidity around the sensor
*
* @return Gets the humidity value
* @return Gets the relativ humidity value (%)
*/
virtual float getHumidity() = 0;
};

View File

@ -37,7 +37,7 @@ namespace upm
/**
* Get luminance
*
* @return Luminance value
* @return Luminance value in lux
*/
virtual float getLuminance() = 0;
};

View File

@ -42,7 +42,7 @@ namespace upm
/**
* Measures temperature
*
* @return temperature value
* @return temperature value in degrees Celsius
*/
virtual float getTemperature() = 0;

View File

@ -92,9 +92,9 @@ namespace upm {
int inches();
/**
* Gets the distance to the object in inches
* Gets the distance to the object in cm
*
* @return Distance to the object in inches
* @return Distance to the object in cm
*/
virtual float getDistance();