Re: Device Driver - Direct Access to Endpoint 0

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks for the reply

It looks like UsbBuildVendorRequest can be used to define
URB_CONTROL_VENDOR_OR_CLASS_REQUEST.



But I have some specific questions about the few attributes that should be
defined in UsbBuildVendorRequest to send requests to Endpoint 0.



VOID UsbBuildVendorRequest( IN USHORT Function, IN USHORT Index,
.... );

1) Function : What should be the value of this function? Will
URB_FUNCTION_VENDOR_DEVICE work?



2) Index : Should this value be equal to 0 for accessing Endpoint 0?

MSDN says:

Specifies the device-defined identifier if the request is for an endpoint,
interface, or device-defined target. Otherwise, Index must be zero.





In the firmware, we have defined End Point 0 for the below extra
functionalities:

1. To receive the LED information. This information comes after SET report
request (=12) from host.

2. To receive the buzzer information. This information comes after SET
report request (=12) from host.



Bye,

Ashish




"Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:uleCIHkrFHA.4044@xxxxxxxxxxxxxxxxxxxxxxx
> _URB_CONTROL_VENDOR_OR_CLASS_REQUEST will do waht you want.
>
> d
>
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "Ashish Sharma" <ashish.sharma@xxxxxxxxxxxxx> wrote in message
> news:%23bOoN0irFHA.2072@xxxxxxxxxxxxxxxxxxxxxxx
> > Hi All,
> >
> > I have made a USB functional driver and it is stacked on top of "usb bus
> > driver" & "usb host controller driver".
> > It uses the services of the lower driver(s) to access descriptors and
> > activate the selected interface.
> >
> > We plan to use endpoint 0 (control type) for some function specific
WRITE
> > functionality (like beep buzzer, blink error LED)
> >
> > Is it possible for the functional driver to directly access endpoint 0?
I
> > could not find any DDK calls that can allow this access.
> >
> > Thanks
> > Ashish
> >
> >
> >
>
>


.



Relevant Pages

  • Re: Persistent stall in the Cypress FX2 FIFO
    ... Are you absolutely certain that the endpoint is STALLed? ... usually means that the endpoint has received an invalid USB request. ... the master interrupt and the individual interrupt register. ... Persistent stall in the Cypress FX2 FIFO ...
    (comp.arch.embedded)
  • Re: Iyonix USB: Bulk IN endpoints
    ... well with this sort of data on a bulk endpoint. ... I need to be able to initiate a request for a non-blocking input ... I looked at the documentation of the Simtec stack again today, ... embedded system and the number of bytes waiting to be transmitted from ...
    (comp.sys.acorn.programmer)
  • Re: Requesting for less than endpoint size in UsbBuildInterruptOrBulkTransferRequest
    ... If you KNOW that the device will send less data, you CAN request less that ... If the device sends more than your buffer size, ... the transfer fails, the endpoint is stalled. ... > client driver should issue a bulk request of at least endpoint size? ...
    (microsoft.public.development.device.drivers)
  • Re: KMDF1.5: Reading from USB interrupt endpoints
    ... If your request to the interrupt endpoint is larger than what the device is returning, and the device happens to be returning a multiple of its MaxPacketSize, then your request will not complete as it is waiting for more data from the device. ... code works, for example, inside VMWare (VMWare running XP32, Vista32 ... inside VMWare) but I tested this today on my AMD64 laptop with Vista32 ...
    (microsoft.public.development.device.drivers)