This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F28377D: ReadUSBPacket() whith VC

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI C/C++ Compiler

How to use this function ReadUSBPacket() in windows, how to set the parameters, what is the meaning of the return value

  • Please see the USB bulk example Visual Studio project available in C2000Ware.

    This also may be helpful.

    e2e.ti.com/.../335382

    You can also go to the definition in tiusbdll.h

    BOOL __stdcall WriteUSBPacket(TIUSB_HANDLE hHandle,
    unsigned char *pcBuffer,
    unsigned long ulSize,
    unsigned long *pulWritten);
    DWORD __stdcall ReadUSBPacket(TIUSB_HANDLE hHandle,
    unsigned char *pcBuffer,
    unsigned long ulSize,
    unsigned long *pulRead,
    unsigned long ulTimeoutMs,
    HANDLE hBreak);

    Regards,
    sal