1. Download our Official Android App: Forums for Android!

Apps USB driver using AdbWriteEndpointSync question !!!!

Discussion in 'Android Development' started by jdrs, Jun 22, 2011.

  1. jdrs

    jdrs Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jun 22, 2011

    Jun 22, 2011
    1
    0
    5
    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.
     

    Advertisement

  2. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,972
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,972
    3,603
    513
    Android App Developer
    NY
    Welcome to AF!

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

Share This Page

Loading...