linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: "Lars-Peter Clausen" <lars@metafoo.de>,
	"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: Thu, 27 Aug 2015 19:33:44 +0100	[thread overview]
Message-ID: <55DF5808.9030001@kernel.org> (raw)
In-Reply-To: <55DB6629.6040603@metafoo.de>

On 24/08/15 19:44, Lars-Peter Clausen wrote:
> 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.
That's certainly my initial thought on an interface as well... The only tricky
bit is what a read back of the 'other' channels value should report.  Perhaps
return -EBUSY?

Jonathan
> 
> - 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
>>
> 
> --
> 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-27 18:33 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
2015-08-27 18:33     ` Jonathan Cameron [this message]

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=55DF5808.9030001@kernel.org \
    --to=jic23@kernel.org \
    --cc=jic23@jic23.retrosnub.co.uk \
    --cc=lars@metafoo.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).