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.

PROCESSOR-SDK-AM64X: Tiny USB internal Handshake with the Host e.g LabView GUI

Part Number: PROCESSOR-SDK-AM64X


Tool/software:

I am using Tiny USB to communicate with my GUI based on LabView. I want to know is there any internal handshake tiny USB does with the host. If yes does it set any flag or any API/function I can use to check the status of this internal handshake. 

  • Hi Faizan,

    Thanks for your query.

    Can you please explain a little bit, which handshake are you looking for? What is the requirement?

    . If yes does it set any flag or any API/function I can use to check the status of this internal handshake. 

    Do you want to check whether the tiny usb stack has been initialized or not?

    You can use the tusb_inited() API to check that stack initialization has been done or not.

    Regards,

    Tushar

  • Hi Tushar, 

    Thanks for your reply.

    The requirement is when I connect the tiny USB stack to the LabView GUI , I want to do a Handshake with the GUI to confirm that the system is ready for communication. I want to know is there any internal handshake which tiny USB stack and LabView VISA does automatically. For example, are there any flags got set like DTR and RTS when we start the communication?


  • Hi Faizan,

    For example, are there any flags got set like DTR and RTS when we start the communication?

    You can use the tud_mounted() API to check if the device is mounted and configured.

    You can also use tud_ready() API to check if the device is ready to communicate.

    Regards,

    Tushar