mirror of
https://github.com/eclipse/upm.git
synced 2025-03-23 17:00:03 +03:00

This was tested on the Grove I2C 3-axis digital accelerometer. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Zion Orent <zorent@ics.com> Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com>
14 lines
251 B
OpenEdge ABL
14 lines
251 B
OpenEdge ABL
%module jsupm_mma7660
|
|
%include "../upm.i"
|
|
%include "cpointer.i"
|
|
|
|
/* Send "int *" and "float *" to JavaScript as intp and floatp */
|
|
%pointer_functions(int, intp);
|
|
%pointer_functions(float, floatp);
|
|
|
|
%{
|
|
#include "mma7660.h"
|
|
%}
|
|
|
|
%include "mma7660.h"
|