From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-043.synserver.de ([212.40.185.43]:1060 "EHLO smtp-out-030.synserver.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753908AbbHXSp2 (ORCPT ); Mon, 24 Aug 2015 14:45:28 -0400 Message-ID: <55DB6629.6040603@metafoo.de> Date: Mon, 24 Aug 2015 20:44:57 +0200 From: Lars-Peter Clausen MIME-Version: 1.0 To: =?windows-1252?Q?Sean_Nyekj=E6r?= , "linux-iio@vger.kernel.org" , jic23@jic23.retrosnub.co.uk Subject: Re: DAC switch between current and voltage mode References: <715D9F6A60DF2F458F39683D45F6609A7E22F4FC@VMPREVAS1.prevas.se> <55DABD39.5010804@prevas.dk> In-Reply-To: <55DABD39.5010804@prevas.dk> Content-Type: text/plain; charset=windows-1252 Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org 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 >