upm/src/mma7660/jsupm_mma7660.i
Jon Trulson 12c290de70 mma7660: Initial implementation
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>
2015-02-24 17:58:45 -08:00

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"