linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DAC switch between current and voltage mode
@ 2015-08-20  9:57 Sean Nyekjær
  2015-08-24  6:44 ` Sean Nyekjær
  0 siblings, 1 reply; 4+ messages in thread
From: Sean Nyekjær @ 2015-08-20  9:57 UTC (permalink / raw)
  To: linux-iio@vger.kernel.org

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

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

* Re: DAC switch between current and voltage mode
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Sean Nyekjær @ 2015-08-24  6:44 UTC (permalink / raw)
  To: linux-iio@vger.kernel.org, lars, jic23

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?

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


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

* Re: DAC switch between current and voltage mode
  2015-08-24  6:44 ` Sean Nyekjær
@ 2015-08-24 18:44   ` Lars-Peter Clausen
  2015-08-27 18:33     ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Lars-Peter Clausen @ 2015-08-24 18:44 UTC (permalink / raw)
  To: Sean Nyekjær, linux-iio@vger.kernel.org, jic23

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
> 


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

* Re: DAC switch between current and voltage mode
  2015-08-24 18:44   ` Lars-Peter Clausen
@ 2015-08-27 18:33     ` Jonathan Cameron
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2015-08-27 18:33 UTC (permalink / raw)
  To: Lars-Peter Clausen, Sean Nyekjær, linux-iio@vger.kernel.org,
	jic23

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
> 


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

end of thread, other threads:[~2015-08-27 18:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).