Skip to contentSkip to conversation

change device attributes dynamically

DISCUSSION crzy 2 participants 4 messages Oct 8, 2013 – Oct 9, 2013 IIO

lore
Share & tools
lore

crzy

author
#0 lore raw

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

#1 lore raw
Quoted 5 lines · crzy

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

author
#2 lore raw
In reply to crzy
Quoted 2 lines · crzy

I want to change device attributes at /sys/iio..... for AD-FMCOMMS1-

EBZ.When

Quoted 6 lines

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

#3 lore raw
Quoted 13 lines · crzy
Quoted 2 lines · crzy

I want to change device attributes at /sys/iio..... for AD-FMCOMMS1-

EBZ.When

Quoted 6 lines

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

Quoted 3 lines

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