Perhaps registers is a misnomer. In theory you can use specific reports and report values to manipulate registers in firmware.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Monday, March 05, 2012 11:09 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Sending data to the device and reading the register values
xxxxx@gmail.com wrote:
My device is a custom device is detected as a HID device and the default microsoft drivers are loaded. We have taken hclient application as the reference and used hid APIs to communicate with the device and configure the registers of my device (the device communication protocol is different ie it uses serial communication,and it is connected through USB controller IC).
our application team are using control pipe for getting the
Report,and write data using SET REPORT through control pipe and write
report using interrupt pipe
Now i want to configure my device registers from UMDF driver.How can i do this ?
If your device has registers, then it is not a HID device.
We tried calling HidD_XXX API from our driver after getting handle using Createfile, but HidD_XXX functions are not succeeding.But if we get a handle from our driver to other HID devices in the system and use HidD_xxx funtions , then these functions are working.why?
I’ll repeat what I said in the thread on this last week. The whole purpose for making a custom device act like a HID device is so you can use it without writing a driver. If you have to write a driver, then you’ve lost that benefit. Plus, if you have registers, then you are not really a HID device. In that case, if you’re going to go to the trouble of writing your own driver anyway, why limit yourself by making it HID?
Just make your device completely custom, and drive it with the very cool WinUSB APIs. Then, you can be in complete control of the transactions, and you don’t have to write any driver code at all.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer