X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdipp%2Fftdi.hpp;h=4e3511d37c023430e8a340cc2d24ab5134c357b3;hp=dc035cc92bce45c62ab41602b11f42853299a545;hb=fb56d9cf14f34dda2d7b154f16a0c08ad8b639f9;hpb=06358114cd5be4e72058048fa9b82f8fc060ca26 diff --git a/ftdipp/ftdi.hpp b/ftdipp/ftdi.hpp index dc035cc..4e3511d 100644 --- a/ftdipp/ftdi.hpp +++ b/ftdipp/ftdi.hpp @@ -100,7 +100,7 @@ public: /* I/O */ int read(unsigned char *buf, int size); - int write(unsigned char *buf, int size); + int write(const unsigned char *buf, int size); int set_read_chunk_size(unsigned int chunksize); int set_write_chunk_size(unsigned int chunksize); int read_chunk_size(); @@ -108,7 +108,7 @@ public: /* Async IO TODO: should wrap? - int writeAsync(unsigned char *buf, int size); + int writeAsync(const unsigned char *buf, int size); void asyncComplete(int wait_for_more); */