mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
bmpx8x: library implements new iTemperature interface
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
ef92026253
commit
934d571964
@ -4,7 +4,7 @@ upm_mixed_module_init (NAME bmpx8x
|
|||||||
C_SRC bmpx8x.c
|
C_SRC bmpx8x.c
|
||||||
CPP_HDR bmpx8x.hpp
|
CPP_HDR bmpx8x.hpp
|
||||||
CPP_SRC bmpx8x.cxx
|
CPP_SRC bmpx8x.cxx
|
||||||
IFACE_HDR iPressure.hpp
|
IFACE_HDR iPressure.hpp iTemperature.hpp
|
||||||
FTI_SRC bmpx8x_fti.c
|
FTI_SRC bmpx8x_fti.c
|
||||||
CPP_WRAPS_C
|
CPP_WRAPS_C
|
||||||
REQUIRES mraa utilities-c)
|
REQUIRES mraa utilities-c)
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
#include "mraa/initio.hpp"
|
#include "mraa/initio.hpp"
|
||||||
#include <interfaces/iPressure.hpp>
|
#include <interfaces/iPressure.hpp>
|
||||||
|
#include <interfaces/iTemperature.hpp>
|
||||||
|
|
||||||
namespace upm {
|
namespace upm {
|
||||||
|
|
||||||
@ -68,7 +69,7 @@ namespace upm {
|
|||||||
* @snippet bmpx8x.cxx Interesting
|
* @snippet bmpx8x.cxx Interesting
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BMPX8X : virtual public iPressure {
|
class BMPX8X : virtual public iPressure, virtual public iTemperature {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Instantiates a BMPX8X object
|
* Instantiates a BMPX8X object
|
||||||
@ -147,7 +148,7 @@ namespace upm {
|
|||||||
*
|
*
|
||||||
* @returns The temperature in Celsius.
|
* @returns The temperature in Celsius.
|
||||||
*/
|
*/
|
||||||
float getTemperature();
|
virtual float getTemperature();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Using the supplied altitude in meters, compute the pressure
|
* Using the supplied altitude in meters, compute the pressure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user