• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps USB driver using AdbWriteEndpointSync question !!!!

jdrs

Lurker
Hello everybody here, I am new and new in android in this forum and I have a question.

I am working with the USB driver and I am using AdbWriteEndpointSync to perform some operations. I want to address 64 bits with a 32 bits microprocessor but I would like to if this API can called like this

unsigned long long xfer = (len > 4096) ? 4096 : len;
AdbWriteEndpointSync(handle->adb_write_pipe,
(void*)data,
(unsigned long long)xfer,
&written,
time_out);

originally my code was like this:

int xfer = (len > 4096) ? 4096 : len;
AdbWriteEndpointSync(handle->adb_write_pipe,
(void*)data,
(unsigned long)xfer,
&written,
time_out);

I do not if I am going to have issues changing the data type of the bytes to be written.

Any comments let me know.
 
Welcome to AF!

I'm gonna move your thread to the developer forum and see if anyone there might have an answer for ya :)
 
Back
Top Bottom