1%module pyupm_zfm20 2%include "../upm.i" 3%include "../carrays_uint16_t.i" 4%include "../carrays_uint32_t.i" 5%include "cpointer.i" 6 7%feature("autodoc", "3"); 8 9%typemap(in) uint16_t * { 10 void *argp = 0 ; 11 int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint16Array, 0 | 0 ); 12 $1 = reinterpret_cast< uint16_t * >(argp); 13} 14 15%typemap(in) uint32_t { 16 $1 = PyInt_AsLong($input); 17} 18 19/* Send "int *" to python as intp */ 20%pointer_functions(int, intp); 21%{ 22 #include "zfm20.h" 23 speed_t int_B57600 = B57600; 24%} 25%include "zfm20.h" 26speed_t int_B57600 = B57600; 27