1 %module jsupm_mic 2 %include "../upm.i" 3 %include "../carrays_uint16_t.i" 4 5 %typemap(in) uint16_t * { 6 void *argp = 0 ; 7 int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint16Array, 0 | 0 ); 8 $1 = (uint16_t *)(argp); 9 } 10 11 %{ 12 #include "mic.h" 13 %} 14 15 %include "mic.h" 16