mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
Added iGas interface
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:

committed by
Mihai Tudor Panu

parent
f28a6d2561
commit
e4f106a0c7
@ -18,6 +18,7 @@ set (module_hpp iClock.hpp
|
||||
iHallEffect.hpp
|
||||
iHeartRate.hpp
|
||||
iHumidity.hpp
|
||||
iGas.hpp
|
||||
iGyroscope.hpp
|
||||
iLight.hpp
|
||||
iLineFinder.hpp
|
||||
|
46
include/interfaces/iGas.hpp
Normal file
46
include/interfaces/iGas.hpp
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Author: Serban Waltter <serban.waltter@rinftech.com>
|
||||
* Copyright (c) 2018 Intel Corporation.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace upm
|
||||
{
|
||||
/**
|
||||
* @brief Interface for acceleration sensors
|
||||
*/
|
||||
class iGas
|
||||
{
|
||||
public:
|
||||
virtual ~iGas() {}
|
||||
|
||||
/**
|
||||
* Return gas concentration in PPM
|
||||
*
|
||||
* @return gas concentration in float
|
||||
*/
|
||||
virtual float getConcentration() = 0;
|
||||
};
|
||||
} // upm
|
@ -8,6 +8,7 @@
|
||||
#include "iEC.hpp"
|
||||
#include "iElectromagnet.hpp"
|
||||
#include "iEmg.hpp"
|
||||
#include "iGas.hpp"
|
||||
#include "iGps.hpp"
|
||||
#include "iGyroscope.hpp"
|
||||
#include "iHallEffect.hpp"
|
||||
|
@ -49,6 +49,7 @@ import java.lang.Float;
|
||||
%interface_impl (upm::iEC);
|
||||
%interface_impl (upm::iElectromagnet);
|
||||
%interface_impl (upm::iEmg);
|
||||
%interface_impl (upm::iGas);
|
||||
%interface_impl (upm::iGps);
|
||||
%interface_impl (upm::iGyroscope);
|
||||
%interface_impl (upm::iHallEffect);
|
||||
@ -79,6 +80,7 @@ import java.lang.Float;
|
||||
#include "iEC.hpp"
|
||||
#include "iElectromagnet.hpp"
|
||||
#include "iEmg.hpp"
|
||||
#include "iGas.hpp"
|
||||
#include "iGps.hpp"
|
||||
#include "iGyroscope.hpp"
|
||||
#include "iHallEffect.hpp"
|
||||
@ -108,6 +110,7 @@ import java.lang.Float;
|
||||
%include "iEC.hpp"
|
||||
%include "iElectromagnet.hpp"
|
||||
%include "iEmg.hpp"
|
||||
%include "iGas.hpp"
|
||||
%include "iGps.hpp"
|
||||
%include "iGyroscope.hpp"
|
||||
%include "iHallEffect.hpp"
|
||||
|
Reference in New Issue
Block a user