Hi everyone,
In the USBD example we use ENDPOINT IN 1 to comunicate (if a button is pressed) with the host the position of a mouse.
I modified this example, I don't need a button. I want that mouse position is sent to host when a token in packet is sent from the host to device.
So I want to change the condition in main: " if(m_send_flag)" with if( host sends a token in) but I can't figure out how to recognize If a token in is received.
BR