Re: Driver for keypad.



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



.



Relevant Pages

  • Re: Communication with PCIe device; reading/writing hw registers
    ... Mapping the registers is one of the worst security holes one can do in any ... while it is possible to do in Windows I suspect you will get little help ... Windows Filesystem and Driver Consulting ... user space and kernel space? ...
    (microsoft.public.development.device.drivers)
  • Re: network printer redirection in TS 2003
    ... Assuming you have a TS compatible driver or can map to ... version that ships with Windows XP if you make the ... Printers That Use Ports That Do Not Begin With COM, ...
    (microsoft.public.windows.terminal_services)
  • Re: Catch process termination in display driver
    ... I would design the system so that the display driver has one mapped view, ... The user mode process would then map read-only the frame buffer. ... my driver is being disabled (i.e. some usermode program detacthing it from ... DrvDisableSurface and DrvDisablePDEV to be invoked, ...
    (microsoft.public.development.device.drivers)
  • Serial ports are unavailable to the driver in the VM (VMware)
    ... I am debugging a driver that has some problems with standby/hiberation ... debugging messages to the serial port using a direct registers access ... registers seem to become unavailable to the driver after Windows boots ... boot-start) but stops to send them when Windows entered GUI mode. ...
    (microsoft.public.development.device.drivers)
  • Re: PAE question about memory access
    ... be more of a change than just to the driver. ... the I/O Manager returns the number of map ... >registers it allocated. ... The devices perform bus master DMA to/from the allocated buffers. ...
    (microsoft.public.development.device.drivers)