Hi all I'm using the Analogy API, a4l_sync_read to read an external voltage level from my NI card. I had gone through the insn_read.c example and managed to reproduce a simple working program of my own.
However I can't seemed to find the place to define the reference voltage. Looking through the Analogy API, specifically the Driver API - Channels and ranges. It is mentioned that the channel reference can be define through these flags in the structure a4l_chdesc_t, #define A4L_CHAN_AREF_GROUND 0x1 #define A4L_CHAN_AREF_COMMON 0x2 #define A4L_CHAN_AREF_DIFF 0x4 #define A4L_CHAN_AREF_OTHER 0x8 but how do I access this structure to define them? I can't seemed to find the function that return the address of this structure. Linux kernel: 2.6.37.3 adeos patch: 2.9-00 xenomai: 2.5.6 DAQ card: National Instruments PCI_6034E Thanks! _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
