2015-02-25 09:09:40 -08:00
|
|
|
%module pyupm_hmtrp
|
|
|
|
%include "../upm.i"
|
2015-03-31 10:19:38 -04:00
|
|
|
%include "../carrays_uint8_t.i"
|
|
|
|
%include "../carrays_uint16_t.i"
|
|
|
|
%include "../carrays_uint32_t.i"
|
|
|
|
|
|
|
|
// Adding this typemap because SWIG is converting uint8, uint16, and uint32 into a short by default
|
|
|
|
// This forces SWIG to convert it correctly
|
|
|
|
%typemap(in) uint8_t * {
|
|
|
|
void *argp = 0 ;
|
|
|
|
int res = SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_uint8Array, 0 | 0 );
|
|
|
|
$1 = reinterpret_cast< uint8_t * >(argp);
|
|
|
|
}
|
|
|
|
|
|
|
|
%typemap(in) uint16_t * {
|
|
|
|
void *argp = 0 ;
|
|
|
|
int res = SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_uint16Array, 0 | 0 );
|
|
|
|
$1 = reinterpret_cast< uint16_t * >(argp);
|
|
|
|
}
|
|
|
|
|
|
|
|
%typemap(in) uint32_t * {
|
|
|
|
void *argp = 0 ;
|
|
|
|
int res = SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_uint32Array, 0 | 0 );
|
|
|
|
$1 = reinterpret_cast< uint32_t * >(argp);
|
|
|
|
}
|
2015-02-25 09:09:40 -08:00
|
|
|
|
|
|
|
%feature("autodoc", "3");
|
|
|
|
|
|
|
|
%include "hmtrp.h"
|
|
|
|
%{
|
|
|
|
#include "hmtrp.h"
|
2015-03-31 10:19:38 -04:00
|
|
|
speed_t int_B9600 = B9600;
|
2015-02-25 09:09:40 -08:00
|
|
|
%}
|
2015-03-31 10:19:38 -04:00
|
|
|
speed_t int_B9600 = B9600;
|
|
|
|
%array_class(char, charArray);
|