Parallel Port Access
Hey all,
I am currentally making a program which will access my computers parallel port (I made a simple device to attach to it). So far I have had great success with the program, I am power up the device, power down the device and make it power up and down in sequence. But I have run into some problems: 1) In linux, I use ioperm and outb to access and control the device. I have searched all over the net but I cant find any reference to ioperm and outb's equilivants in FreeBSD and Windows. Anyone got any ideas on where I should start looking? 2) Currentally the device only has 2 states, on and off. Is there any way I can access on certain pins and power them up but leave the rest off? Thanks, I know they are probally very noobish questions, BorgKiller |
I would consider getting a copy of this book:
Linux Device Drivers, 3rd Edition, O'Reilly Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman It is *the* book on Linux device drivers programming ... and the authors happen to go into considerable detail on accessing the parallel port (as example "real-world hardware"). I'm frankly not familiar with "ioperm" and friends, and I don't know what their limitations are on Linux, or whether or not they're portable to any OS besides Linux. I'd definitely consider porting your Linux "ioperm" code into a device driver. And although the code itself wouldn't be portable, the basic structure and design of your Linux device driver would be directly applicable to either/both of FreeBSD and/or Windows. IMHO .. PSM |
All times are GMT -5. The time now is 08:23 AM. |