Re: Driver for keypad.
- From: "Dean Ramsier" <ramsiernospam@xxxxxxxxxx>
- Date: Mon, 13 Feb 2006 13:10:59 -0500
You can do it right in your application (no driver necessary) if you want.
Just map in the registers you are interested in via MmMapIoSpace(), and
access them from your application. What you do with the data that comes
back is up to you. This approach assumes the keys are dedicated to your
application.
Another option is to write a simple driver that also maps in the gpio pins,
and determines the vk code (key identifier) that corresponds to the gpio
input. You can send that information back to the system via the SetEvent()
API. In that case, gwes will send the key to whatever application is in
focus.
You can also write a full blown keyboard driver using the keybd mdd/pdd
model.
--
Dean Ramsier - eMVP
BSQUARE Corporation
"prgmr" <nimish.h@xxxxxxxxx> wrote in message
news:1139848243.712278.41890@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All,
I am new to Windows CE. I have installed Windows CE 5.0 Platform
Builder 5.0. One of the drivers I have to develop is a simple keyboard
driver.
The keypad pins are connected to directly to GPIO's and I need to poll
these pins at regular intervals and detect a valid keypress and then
pass the info to the application.
My plan was to access the peripheral registers directly from the
application i.e. a monolithic type driver. Can I do this in Windows CE?
And if yes how must it be done? Any help will be very much appreciated.
Thanks for your reply.
BR's
.
- Follow-Ups:
- Re: Driver for keypad.
- From: Tom Gensel \(eMVP\)
- Re: Driver for keypad.
- References:
- Driver for keypad.
- From: prgmr
- Driver for keypad.
- Prev by Date: Re: Touch Screen Calibration
- Next by Date: Re: After executing MDCreateThread data abort occurs
- Previous by thread: Driver for keypad.
- Next by thread: Re: Driver for keypad.
- Index(es):
Relevant Pages
|