Just for the sake of testing you don’t have to write a driver. There is no
difference between a driver and a process from the point of view of what
actual work they can do. A driver just exposes a common interface so that
others can also access the device (eg. by /dev/myboard/adc0 for first ADC
that clients can fopen() and fread() and /dev/myboad/dac0 for DAC and so
All functionality of card can be written in your simple helloworld program
without any issues. When you’re done testing/debugging, just write glue code
to convert it to a driver (aka. resource manager).
To read/write ports, see docs of in*() (eg. in8, out8, in16, out16)
To hook ISRs see doc of InterruptAttach and InterruptAttachEvent (use
latter preferred for testing).
“lloyd” <email@example.com> wrote in message
Quick question about how to implement a driver for NI PCI-MIO-16E-1
multifunctional i/o card. Where do I go and tweak/edit files in the
resource manager? Is it in
r/include/sys or hw???
This driver is written and I just need to test to see if it recognize the
card first and then if the i/o port is working or not. Please let me know
what and where things are in QNX 6.2 to utilize this driver. Thanks in