linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: crzy <chskr1016@gmail.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: change device attributes dynamically
Date: Tue, 08 Oct 2013 15:53:56 +0200	[thread overview]
Message-ID: <52540E74.3050101@metafoo.de> (raw)
In-Reply-To: <loom.20131008T094235-776@post.gmane.org>

On 10/08/2013 09:46 AM, crzy wrote:
> I want to change device attributes at /sys/iio..... for AD-FMCOMMS1-EBZ.When 
> will the driver detects the value is changed?will the driver dynamically 
> detects them ?
> i want to change values dynamically like
> echo 500000000 > out_altvoltage1_DAC_CLK_frequency

Hi,

Yes you can change the attributes dynamically. The driver will update the
registers as soon as you write the new value. But in case of the FMCOMMS1
board you should modify the sampling frequency of the DAC by writing to the
"out_altvoltage_1A_sampling_frequency" attribute of the "cf-ad9122-core-lpc"
device.

- Lars


  reply	other threads:[~2013-10-08 13:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-08  7:46 change device attributes dynamically crzy
2013-10-08 13:53 ` Lars-Peter Clausen [this message]
2013-10-09  3:56 ` crzy
2013-10-09  6:39   ` Lars-Peter Clausen

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=52540E74.3050101@metafoo.de \
    --to=lars@metafoo.de \
    --cc=chskr1016@gmail.com \
    --cc=linux-iio@vger.kernel.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 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).