??? 01/29/06 17:40 Read: times |
#108647 - SET_DESCRIPTOR Responding to: ???'s previous message |
when right side of Control Out Handler happens? It doesn't occur on enumeration. :-) The "right side of Control Out Handler" handles the data stage of Control OUT transfer. Please remember the Standard device request category. "Control IN and Control OUT transfer" http://www.8052.com/forum/read.phtml?id=108436 In the Control OUT transfers, only SET_DESCRIPTOR has data stage. And SET_DESCRIPTOR is never used on enumeration. When you implement HID, this part may be used for SET_REPORT request to receive Feature report. In right side of Control In Handler when remaining bytes isn't zero Flowchart says that write control in buffer with data size of EP0Packet Size while you said me before write control in buffer With data size of remaining bytes in message '#108113 - VALIDATE_BUFFER' ??? I think I didn't mention like that in "VALIDATE_BUFFER". http://www.8052.com/forum/read.phtml?id=108113 If you take my comment so, my explanation may be insufficient. Anyway, device must not return a packet whose payload size is more than the size defined in the device descriptor. Please see "declared in bMaxPacketSize" http://www.8052.com/forum/read.phtml?id=108055 Tsuneo |