libftdi Archives

Subject: Re: libftdi - Python SWIG & unsigned char *

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 13 Apr 2011 11:54:49 +0200
On Monday, 7. March 2011 19:36:57 Chris Zeh wrote:
> I tried adding the following and recompiling:
> pointer_functions(unsigned char *, ucharp);
> 
> However, Python still gave me a Type error. I was only able to get the
> ftdi_read_pin function working when I added and used the following:
> pointer_functions(char *, charp);
> 
> Perhaps the following line in the ftdi.i file "%typemap(in) unsigned
> char* = char*;" is what requires the use of char* instead of uchar* of
> this?

Does anyone here has some knowledge about SWIG / python and can comment?

@Chris: Please post your modification as a patch.

Thanks,
Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread