This driver was written using an Adafruit PN532 board: http://www.adafruit.com/products/364 It is based heavily on their arduino code, with significant modifications. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Zion Orent <zorent@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
18 lines
395 B
OpenEdge ABL
18 lines
395 B
OpenEdge ABL
%module jsupm_pn532
|
|
%include "../upm.i"
|
|
%include "../carrays_uint8_t.i"
|
|
|
|
// Adding this typemap because SWIG is converting uint8 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 = (uint8_t *)(argp);
|
|
}
|
|
|
|
%{
|
|
#include "pn532.h"
|
|
%}
|
|
|
|
%include "pn532.h"
|