• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 %module jsupm_pn532
2 %include "../upm.i"
3 %include "../carrays_uint8_t.i"
4 
5 // Adding this typemap because SWIG is converting uint8 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 = (uint8_t *)(argp);
11 }
12 
13 %{
14     #include "pn532.h"
15 %}
16 
17 %include "pn532.h"
18