All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Janzen <pcj@xenomai.sez.to>
To: Manu S Madhav <manusmad@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Troubleshooting Analogy DIO
Date: Sat, 24 May 2014 11:59:38 -0700	[thread overview]
Message-ID: <oq8uprt339.fsf@merlin.sez.to> (raw)
In-Reply-To: <CAJX3k=V+ns3H49G+5HuoMjv6+16yeRLXzr=D6dryyQiuVoQ_dA@mail.gmail.com> (Manu S. Madhav's message of "Fri, 23 May 2014 17:43:51 -0400")

Manu S Madhav <manusmad@gmail.com> writes:

> Using Analogy, and with a bit of reading, I was able to get analog input
> and output up and running without too much trouble, but digital I/O is
> completely evading me. I am just trying to turn on all digital outputs to 1
> using synchronous instruction to the DIO subdevice (#2, in my case). Size
> of the subdevice is 4 (32 bits).

Before writing to the DIO device, you have to configure each line that
you want to be a digital output as an output, otherwise it stays a
digital input:

for (i=0; i<num_channels; i++) {
    err = a4l_config_subd(dsc, subd_DIO, A4L_INSN_CONFIG_DIO_OUTPUT, i);
    if (err < 0) [...]
}

-- Paul






  parent reply	other threads:[~2014-05-24 18:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-23 21:43 [Xenomai] Troubleshooting Analogy DIO Manu S Madhav
2014-05-23 22:31 ` Gilles Chanteperdrix
2014-05-24 18:59 ` Paul Janzen [this message]
2014-05-24 20:22   ` Manu S Madhav
2014-05-25  1:46     ` Paul Janzen
2014-05-27 12:56       ` Rosali Pyun
2014-05-27 14:42         ` Manu S Madhav
2014-05-27 15:03           ` Paul Janzen
2014-05-27 15:54             ` Rosali Pyun
2014-05-28 13:31               ` Manu S Madhav
2014-05-30 11:30                 ` Rosali Pyun

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=oq8uprt339.fsf@merlin.sez.to \
    --to=pcj@xenomai.sez.to \
    --cc=manusmad@gmail.com \
    --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.