mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-31 23:24:20 +03:00 
			
		
		
		
	Added documentation to interfaces
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
This commit is contained in:
		| @@ -33,6 +33,12 @@ namespace upm | ||||
|     { | ||||
|     public: | ||||
|         virtual ~iCollision() {} | ||||
|  | ||||
|         /** | ||||
|          * Returns if there's a collision | ||||
|          *  | ||||
|          * @return collision state | ||||
|          */ | ||||
|         virtual bool isColliding() = 0; | ||||
|     }; | ||||
| } | ||||
|   | ||||
| @@ -36,6 +36,12 @@ namespace upm | ||||
|   { | ||||
|   public: | ||||
|     virtual ~iDistance() {} | ||||
|  | ||||
|     /** | ||||
|      * Get distance from sensor | ||||
|      *  | ||||
|      * @return Returns the distance | ||||
|      */ | ||||
|     virtual float getDistance() = 0; | ||||
|     /** | ||||
|       * Convert distance value from Cm(default) to one | ||||
|   | ||||
| @@ -33,6 +33,12 @@ namespace upm | ||||
|   { | ||||
|   public: | ||||
|     virtual ~iHallEffect() {} | ||||
|  | ||||
|     /** | ||||
|      * Detects magnetic field | ||||
|      *  | ||||
|      * @return True if magenet detected | ||||
|      */ | ||||
|     virtual bool magnetDetected() = 0; | ||||
|   }; | ||||
| } | ||||
|   | ||||
| @@ -33,6 +33,12 @@ namespace upm | ||||
|   { | ||||
|   public: | ||||
|     virtual ~iHumidity() {} | ||||
|  | ||||
|     /** | ||||
|      * Measures humidity around the sensor | ||||
|      *  | ||||
|      * @return Gets the humidity value | ||||
|      */ | ||||
|     virtual float getHumidity() = 0; | ||||
|   }; | ||||
| } | ||||
|   | ||||
| @@ -33,6 +33,12 @@ namespace upm | ||||
|     { | ||||
|     public: | ||||
|         virtual ~iLight() {} | ||||
|  | ||||
|         /** | ||||
|          * Get luminance | ||||
|          *  | ||||
|          * @return Luminance value | ||||
|          */ | ||||
|         virtual float getLuminance() = 0; | ||||
|     }; | ||||
| } | ||||
| @@ -33,6 +33,12 @@ namespace upm | ||||
|   { | ||||
|   public: | ||||
|     virtual ~iMoisture() {} | ||||
|  | ||||
|     /** | ||||
|      * Measures moisture | ||||
|      *  | ||||
|      * @return moisture level | ||||
|      */ | ||||
|     virtual int getMoisture() = 0; | ||||
|   }; | ||||
| } | ||||
|   | ||||
| @@ -33,6 +33,12 @@ namespace upm | ||||
|   { | ||||
|   public: | ||||
|     virtual ~iMotion() {} | ||||
|  | ||||
|     /** | ||||
|      * Detects motion | ||||
|      *  | ||||
|      * @return true if motion detected | ||||
|      */ | ||||
|     virtual bool motionDetected() = 0; | ||||
|   }; | ||||
| } | ||||
|   | ||||
| @@ -36,6 +36,12 @@ namespace upm | ||||
|   { | ||||
|   public: | ||||
|     virtual ~iPressure() {} | ||||
|  | ||||
|     /** | ||||
|      * Measures applied pressure | ||||
|      *  | ||||
|      * @return gets pressure value | ||||
|      */ | ||||
|     virtual float getPressure() = 0; | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -38,6 +38,12 @@ namespace upm | ||||
|   public: | ||||
|  | ||||
|     virtual ~iTemperature() {} | ||||
|  | ||||
|     /** | ||||
|      * Measures temperature | ||||
|      *  | ||||
|      * @return temperature value | ||||
|      */ | ||||
|     virtual float getTemperature() = 0; | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Serban Waltter
					Serban Waltter