* change device attributes dynamically
@ 2013-10-08 7:46 crzy
2013-10-08 13:53 ` Lars-Peter Clausen
2013-10-09 3:56 ` crzy
0 siblings, 2 replies; 4+ messages in thread
From: crzy @ 2013-10-08 7:46 UTC (permalink / raw)
To: linux-iio
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: change device attributes dynamically
2013-10-08 7:46 change device attributes dynamically crzy
@ 2013-10-08 13:53 ` Lars-Peter Clausen
2013-10-09 3:56 ` crzy
1 sibling, 0 replies; 4+ messages in thread
From: Lars-Peter Clausen @ 2013-10-08 13:53 UTC (permalink / raw)
To: crzy; +Cc: linux-iio
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: change device attributes dynamically
2013-10-08 7:46 change device attributes dynamically crzy
2013-10-08 13:53 ` Lars-Peter Clausen
@ 2013-10-09 3:56 ` crzy
2013-10-09 6:39 ` Lars-Peter Clausen
1 sibling, 1 reply; 4+ messages in thread
From: crzy @ 2013-10-09 3:56 UTC (permalink / raw)
To: linux-iio
crzy <chskr1016@...> writes:
>
> 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
>
>
when will the device reads register value? i mean when will device changes
its clk frequency?
Plz tell me how this process takes place
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: change device attributes dynamically
2013-10-09 3:56 ` crzy
@ 2013-10-09 6:39 ` Lars-Peter Clausen
0 siblings, 0 replies; 4+ messages in thread
From: Lars-Peter Clausen @ 2013-10-09 6:39 UTC (permalink / raw)
To: crzy; +Cc: linux-iio
On 10/09/2013 05:56 AM, crzy wrote:
> crzy <chskr1016@...> writes:
>
>>
>> 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
>>
>>
>
>
> when will the device reads register value? i mean when will device changes
> its clk frequency?
> Plz tell me how this process takes place
Hi,
The device's registers are updates as soon as you write to the sysfs file.
- Lars
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-09 6:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08 7:46 change device attributes dynamically crzy
2013-10-08 13:53 ` Lars-Peter Clausen
2013-10-09 3:56 ` crzy
2013-10-09 6:39 ` Lars-Peter Clausen
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).