Hi Jan,
Thanks for the reply. Yes I did look at the firefly sample but no luck as it is written specific for a Microsoft optic mouse with the purpose to turn on/off the led in the mouse. It seems difficult to change and use with a HID example running on a CY3684 board from Cypress...
Instead I looked at this
http://code.msdn.microsoft.com/windowshardware/kmdffx2-e785110a This sample is based on the CY3681 board from Cypress, but it has become obsolete, so instead I have the board CY3684 which Cypress claims is compatible. My idea is therefor to load a USB bulk example on the board and change the kmdffx2 sample kernel driver for that purpose (seems easier than to change above filter driver). Also this sample contains some vendor commands to set a 7 segment display and a led bar (which I can user later, after my latency tests). These vendor commands are just not for above CY3684 board but for this
http://www.osronline.com/hardware/OSRFX2_32.pdf which is some kind of a learning kit. But it is based on the CY3681...Confused, me too.....
Well back to the kmdffx2 sample and bulk transfer. I can load a bulk loop back sample on the CY3684 board that should work with the kmdffx2 sample as far, as I can see. Looking into the kmdffx2 in the file bulkrwr.c I think OsrFxEvtIoRead() function is called when the bulk device has sent data to the host, and I think, I then from this function can call OsrFxEvtIoWrite() (longer down in same file) directly and perform the loopback I need to do for the kernel driver latency test. I will do the measurement on the CY3684 board by flipping an I/O pin high when a USB package is sent to host, and flip it back low when I receive the USB package reply. Then use a oscilloscope to measure the high width of the I/O pin should give me the latency. This is step 1, there are more to the story later....
I don't know, if you know about above kmdffx2 sample, but if you do, maybe you or someone else can tell me if it is a viable way to go, or if there is an easier road.
Best Regards,
Kim