Click to See Complete Forum and Search --> : outp - windows version


dogbear
June 5th, 2003, 11:23 AM
Hi folks!
I've purchased a Digital Input/Output PCI card! (thank you)
I can't seem to find anything in the Windows API that will allow me to write bits(bytes) to its base address.
How does this kind of thing work in Windows?
A function like outp is what is normally used(in Linux anyway).

Any ideas?

Thanks,
Dogbear

Andreas Masur
June 5th, 2003, 11:52 AM
The function is named '_outp()'...however, using Windows NT/2000/XP you cannot use the function directly in newer operating systems like NT, 2000 or XP. These functions need to run within the kernel mode therefore you need to go down on driver level.

As a possibility you might also take a look at this (http://www.zealsoftstudio.com/ntport/)...

KevinHall
June 6th, 2003, 07:53 PM
PCI cards require a device driver to map the card's memory into the host memory space. This is true with both Linux and Windows (and I assume just about any other OS that runs on x86 processors). The manufacturer of the card should provide a driver with documentation of how to open that driver and write to its memory.

Hope this helps!

- Kevin

Lighthill
June 9th, 2003, 05:36 PM
Hi, Windows XP makes it possible to run applications in different compatibility modes. So you can use a Win9x mode and _outp will work.