Stefan Andritoiu
fcb36276b7
wt5001: Added functions that throw exceptions when failing to read from sensors. Added java exception handling, and modified examples.
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-11-24 14:36:04 -08:00
Mihai Tudor Panu
bfe548ac45
upm.i: mraa type mapping needs to be done for all languages
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-09-17 17:28:06 -07:00
Petre Eftime
2cab79b4c2
java: Changed size_t and unsigned int to int in array declarations. Renamed buf to buffer where necesarry. Moved most Java array typemaps to java_buffer.i. Fixed some String buffers.
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Conflicts:
src/upm.i
2015-09-15 17:01:39 -07:00
Mihai Tudor Panu
4985cf4b00
java: leave mraa_result_t typemap in upm.i for non-java bindings
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-09-04 13:52:25 -07:00
Petre
4f30959a43
java: fix Java return types in ADXL355
...
Signed-off-by: Petre <petre.p.eftime@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-09-04 13:50:04 -07:00
Stefan Andritoiu
3e59323abb
java: solved SWIGTYPE_* issues
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-09-04 13:48:41 -07:00
Stefan Andritoiu
8b9267c253
java: eliminated SWIGTYPE_p_mraa_result_t
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-09-04 13:48:19 -07:00
Andrei Vasiliu
a81b1836a3
java: eliminated SWIGTYPE_speed_t and corrected typo
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-09-04 13:47:38 -07:00
Jon Trulson
84f795e453
upm: add facility for exception handling in upm
...
We add a new src/upm_exception.i interface file for SWIG to catch
common exceptions and propagate them through SWIG.
src/upm.i is modified to include this interface file, so all UPM
drivers have it.
In theory, this should be language agnostic - if the target language
supports exceptions, then it should just work.
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-08-13 14:52:01 -07:00
Zion Orent
73be07df74
upm: new upm.i JS interface file with code to call v8 garbage collector
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-02-19 17:22:07 -08:00
Brendan Le Foll
9f66c10b26
upm.i: add stdint.i to add uinstd typemaps
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-26 19:20:10 +01:00
Brendan Le Foll
2822d63c9c
upm.i: add top level interface file which includes std_string.i
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-25 14:16:28 +01:00