I was wondering if it is any way of passing the CT-API interface some
serial port parameters, such as baudrate, parity, number of stop bits and
byte size. 
 
The ctapi.h interface does not allow passing none of these parameters, and
the serial.h does not allow passing the number of stop bits. 
 
I'm implementing the CT-API for Towitoko readers. There are two readers
(Chipdrive and KartenZwerg) that use the same protocol, but distinct IO
port initialization parameters, so I think the IO port parameters could be
written in a config file or somethig like that, better than hardcoded in
the shared library code. 
 
I also think the IO_Write function in serial.c could accept as parameter
the number of bytes to send to the serial port and the do a
write(port,buffer,size) better than writing bytes one by one. I don't know
if there is any problem in changing this on my seiral.c file. 
 
Thanks,
Carlos.

***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to