I made a program that sends wIndex and wValue from the PIC to the host (Windows XP, WinUSB) in the payload. (In fact, it sends all 8 bytes of the setup packet). What I'm finding is that wIndex is being masked. I'm getting the least-significant byte, but not the most significant (the most significant byte is set to 0x00). This means that I'm losing data somewhere from Windows XP (SP 3) to the PIC, but I can't tell where. Unfortunately, I'm going through two frameworks: WinUsb and the Jan/Microchip USB libraries.
Does anybody have experience with this? Does the Jan Axelson library mask this, or Win USB? or is there something else I should be watching for. I could send you my code if you like, but it should be pretty easy to reproduce if you're set up to program PIC over USB. Thanks!
[EDIT!]
I was mistaken, it's the low byte that's masked...I think. I'm getting the most-significant byte, but not the least-significant.