All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: "Sean Nyekjær" <sean.nyekjaer@prevas.dk>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	jic23@jic23.retrosnub.co.uk
Subject: Re: DAC switch between current and voltage mode
Date: Mon, 24 Aug 2015 20:44:57 +0200	[thread overview]
Message-ID: <55DB6629.6040603@metafoo.de> (raw)
In-Reply-To: <55DABD39.5010804@prevas.dk>

On 08/24/2015 08:44 AM, Sean Nyekjær wrote:
> Hi Lars-Peter
> 
> Sorry the write again. Is the possible with the current iio interface to
> switch a dac from voltage to current mode from userspace?
> If not, will upstream be interrested in a patch if it's possible?

Hi,

Currently this does not work. A patch to add support for this is certainly
welcome. I'm just not sure what the interface for this should look like.
Maybe register both a current and a voltage channel and only allow one of
them to be powered at a time.

- Lars


> 
> Regards
> Sean Nyekjær
> 
> On 2015-08-20 11:57, Sean Nyekjær wrote:
>> Hi all
>>
>> I'm in the process of creating a custom BSP with an ad5755 dac. It an
>> requirement to be able to switch between voltage and current mode per
>> channel from userspace.
>> Is it possible with the current iio interface?
>> Is there a feature in the pipeline where it's possible to do this switch?
>>
>> Regards
>> Sean Nyekjær--
>> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  reply	other threads:[~2015-08-24 18:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-20  9:57 DAC switch between current and voltage mode Sean Nyekjær
2015-08-24  6:44 ` Sean Nyekjær
2015-08-24 18:44   ` Lars-Peter Clausen [this message]
2015-08-27 18:33     ` Jonathan Cameron

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=55DB6629.6040603@metafoo.de \
    --to=lars@metafoo.de \
    --cc=jic23@jic23.retrosnub.co.uk \
    --cc=linux-iio@vger.kernel.org \
    --cc=sean.nyekjaer@prevas.dk \
    /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.