Home | History | Annotate | Download | only in wt5001
      1 %module pyupm_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 = reinterpret_cast< 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 = reinterpret_cast< uint16_t * >(argp);
     16 }
     17 
     18 %feature("autodoc", "3");
     19 
     20 %{
     21     #include "wt5001.h"
     22     speed_t int_B9600 = B9600;
     23 %}
     24 %include "wt5001.h"
     25 speed_t int_B9600 = B9600;
     26