Home | History | Annotate | Download | only in wt5001
      1 %module jsupm_wt5001
      2 %include "../upm.i"
      3 %include "../carrays_uint8_t.i"
      4 %include "../carrays_uint16_t.i"
      5 
      6 %typemap(in) uint8_t * {
      7   void *argp = 0 ;
      8   int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint8Array, 0 |  0 );
      9   $1 = (uint8_t *)(argp);
     10 }
     11 
     12 %typemap(in) uint16_t * {
     13   void *argp = 0 ;
     14   int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint16Array, 0 |  0 );
     15   $1 = (uint16_t *)(argp);
     16 }
     17 
     18 
     19 %{
     20     #include "wt5001.h"
     21     speed_t int_B9600 = B9600;
     22 %}
     23 
     24 %include "wt5001.h"
     25 speed_t int_B9600 = B9600;
     26