From: "Wong Sheng Chao" <wong@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] (no subject)
Date: Sat, 16 Jul 2011 12:11:05 +0200 [thread overview]
Message-ID: <42ced071bc2bf4dbf2dc6f74746817be.squirrel@domain.hid> (raw)
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!
next reply other threads:[~2011-07-16 10:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-16 10:11 Wong Sheng Chao [this message]
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
-- strict thread matches above, loose matches on Subject: below --
2011-12-09 13:41 [Xenomai-help] (no subject) ediboscio
2011-11-04 18:09 Lyons, Brendon N
2010-08-11 15:30 Zafar Iqbal
2009-05-27 3:40 Vandana Sasidharan
2009-03-04 10:04 Chitra4 M
2009-03-04 4:45 Chitra4 M
2009-03-04 9:51 ` Gilles Chanteperdrix
2009-03-03 12:52 Reshmi Rajagopal
2009-03-03 13:38 ` Gilles Chanteperdrix
[not found] ` <OFEF55F6FC.C2A72339-ON6525756F.001530A3-6525756F.00147B0D@tcs.com>
2009-03-04 9:50 ` Gilles Chanteperdrix
2008-03-27 12:39 Paradoxxa2001
2008-03-27 13:33 ` Gilles Chanteperdrix
2008-02-13 21:45 Pedro Mendes
2008-02-14 7:36 ` Gilles Chanteperdrix
2008-02-14 13:17 ` Pedro Mendes
2008-02-14 13:57 ` Gilles Chanteperdrix
2007-09-26 7:37 sysace
2007-09-26 9:08 ` Gilles Chanteperdrix
2006-04-04 15:04 Behre, Frederik - LT
2006-04-04 16:04 ` Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42ced071bc2bf4dbf2dc6f74746817be.squirrel@domain.hid \
--to=wong@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.