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(),带 VC

Guru**** 2615655 points

Other Parts Discussed in Thread: C2000WARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/695262/compiler-tms320f28377d-readusbpacket-whith-vc

器件型号:TMS320F28377D
主题中讨论的其他器件:C2000WARE

工具/软件:TI C/C++编译器

如何在 Windows 中使用此函数 ReadUSBPacket(),如何设置参数,返回值的含义是什么

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    请参阅 C2000Ware 中提供的 USB 批量示例 Visual Studio 项目。

    这可能也会有所帮助。

    e2e.ti.com/.../335382

    您还可以转到 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、
    无符号超长超时、
    手柄 hBreak);

    此致、
    SAL