I am working with PIC18F4550 and WinUSB protocol.
Earlier I Implemented USB CDC Class. Host end software made using VB6.0. When controller sends data MSComm1.CommEvent handles the data and print the data to a file.
In WinUSB I am not able to understand how can i generate event on data arrival in USB port.
Send a command through WinUsb_WritePipe()->Controller side starts timer0->Controller sends data in every 1 ms->Host side software should have capability to get every packet of data. Means WinUsb_ReadPipe() function will automatically call when controller sends the data. How do I implement this?
Please Help me.