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.

DLPC350: 如何检查光机当前状态? 比如程序是否已连接

Part Number: DLPC350


大家好, 我有2个问题想请教各位大佬

1:为了防止dlpc350在运行时中断,如何去校验是否还在和电脑进行连接? 我想做一个线程隔一段时间就去访问以下它的连接状态,求大佬指点

2:如果重连复选usb已被占用,该如何处理?使用什么方法可以重连(在不拔掉usb的情况下)?

非常感谢你们的帮助

  • TI 提供的GUI已经有了状态查询汇报功能。

    Auto Update status

    2.  please check the USB API

    #ifndef DLPC350_USB_H
    #define DLPC350_USB_H

    #define USB_MIN_PACKET_SIZE 64
    #define USB_MAX_PACKET_SIZE 64

    #define MY_VID 0x0451
    #define MY_PID 0x6401

    int DLPC350_USB_Open(void);
    int DLPC350_USB_IsConnected();
    int DLPC350_USB_Write();
    int DLPC350_USB_Read();
    int DLPC350_USB_Close();
    int DLPC350_USB_Init();
    int DLPC350_USB_Exit();