All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] (no subject)
@ 2011-07-16 10:11 Wong Sheng Chao
  2011-07-21  9:36 ` [Xenomai-help] Analogy Differential Mode Wong Sheng Chao
  0 siblings, 1 reply; 5+ messages in thread
From: Wong Sheng Chao @ 2011-07-16 10:11 UTC (permalink / raw)
  To: xenomai

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!




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-01 21:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-16 10:11 [Xenomai-help] (no subject) Wong Sheng Chao
2011-07-21  9:36 ` [Xenomai-help] Analogy Differential Mode Wong Sheng Chao
2011-07-21 21:54   ` Alexis Berlemont
2011-07-26  9:17     ` wong
2011-08-01 21:56       ` Alexis Berlemont

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.