• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 %module pyupm_pn532
2 %include "../upm.i"
3 %include "../carrays_uint8_t.i"
4 
5 // Adding this typemap because SWIG is converting uint8, uint16, and uint32 into a short by default
6 // This forces SWIG to convert it correctly
7 %typemap(in) uint8_t * {
8   void *argp = 0 ;
9   int res = SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_uint8Array, 0 |  0 );
10   $1 = reinterpret_cast< uint8_t * >(argp);
11 }
12 
13 %feature("autodoc", "3");
14 
15 #ifdef DOXYGEN
16 %include "pn532_doc.i"
17 #endif
18 
19 %include "pn532.h"
20 %{
21     #include "pn532.h"
22 %}
23