I am trying to develop a driver/app that will read data from analog inputs of a NI PCI-6220 card on a QNX 6.3 machine. I have downloaded both the family dependent code (Chip objects tTIO and tMSeries) and the OS dependent code for QNX. The OS dependent code is pretty straight forward and I think I understand at least most of it, howerver, the family dependent code which contains these two classes (tTIO and tMSeries) is huge and I have been unable to find any documentation on it. Is there any documentation out there (except for the Register Level programming index, which is even worst that looking at the code) that I have missed or am I suppost to find out how this objects work just by looking at the provided examples? I mean right now I would now how to connect to the card and map it's registers to the user accessible space but I don't know what methods within tTIO and tMSeries (hell I don't even know where the name"tTIO" comes from...) should I use to configure the card and tell it, for example, to feed me 1 million samples from analog channel X. Should I just look at the examples or is there any other documentation out there that could help me?¿
Thanks a lot in advanced!
There is some additional documentation available. The bitfields and registers used in the M Series DDK chip objects are similar to the names used in the DAQ STC manual.
The DAQ STC manual goes into detail about what registers to access for each common operation. This should allow you to follow the flow of an example from the M Series DDK and look up the hardware accesses for more information.