mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
java: solved unclean Java bindings for: htu21d, ozw
Signed-off-by: Bogdan Ichim <bogdan.ichim@rinftech.com> Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
This commit is contained in:
parent
8779700d82
commit
27c6ac1d31
@ -1,5 +1,13 @@
|
|||||||
%module javaupm_htu21d
|
%module javaupm_htu21d
|
||||||
%include "../upm.i"
|
%include "../upm.i"
|
||||||
|
%include "typemaps.i"
|
||||||
|
|
||||||
|
%apply float *OUTPUT {float *fHum};
|
||||||
|
%apply float *OUTPUT {float *fHumTemp};
|
||||||
|
%apply float *OUTPUT {float *fDewPt};
|
||||||
|
%inline %{
|
||||||
|
extern int getHumidityData(float* fHum, float* fHumTemp, float* fDewPt);
|
||||||
|
%}
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "htu21d.hpp"
|
#include "htu21d.hpp"
|
||||||
@ -16,4 +24,4 @@
|
|||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
@ -5,6 +5,12 @@
|
|||||||
%include "arrays_java.i";
|
%include "arrays_java.i";
|
||||||
%include "../java_buffer.i"
|
%include "../java_buffer.i"
|
||||||
|
|
||||||
|
%apply unsigned char *OUTPUT { uint8_t *val };
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
extern void setValueAsBytes(int nodeId, int index, uint8_t *val, uint8_t len);
|
||||||
|
%}
|
||||||
|
|
||||||
%include "ozw.hpp"
|
%include "ozw.hpp"
|
||||||
%{
|
%{
|
||||||
#include "ozw.hpp"
|
#include "ozw.hpp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user