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>
This commit is contained in:
committed by
John Van Drasek
parent
e0e9405634
commit
12c290de70
13
src/mma7660/jsupm_mma7660.i
Normal file
13
src/mma7660/jsupm_mma7660.i
Normal file
@@ -0,0 +1,13 @@
|
||||
%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"
|
||||
Reference in New Issue
Block a user