aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2010-12-14 11:04:00 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-16 15:23:03 -0500
commitf8ce33bbd57a0c9c302ebb273fd963c5efb1a264 (patch)
tree1289cb6f670ab95582090e2825b2f190c2308bd4
parentfcbdbed01633bac6271708d86d569e06ed3e4c34 (diff)
Staging: IIO: Direct digital synthesis abi documentation
Changes since RFC/v1: IIO: Apply list review feedback: Apply list review feedback: Restructure documentation according to list feedback. Rename attributes to fit IIO convention used in other drivers. Fix typos. Provide ddsX_out_enable as opposed to ddsX_out_disable Changes since v2: IIO: sysfs-bus-iio-dds: Apply more list review feedback Fix mixture of X and [n] notation for indices. Fix some wording in the descriptions. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/iio/Documentation/sysfs-bus-iio-dds93
1 files changed, 93 insertions, 0 deletions
diff --git a/drivers/staging/iio/Documentation/sysfs-bus-iio-dds b/drivers/staging/iio/Documentation/sysfs-bus-iio-dds
new file mode 100644
index 00000000000..ffdd5478a35
--- /dev/null
+++ b/drivers/staging/iio/Documentation/sysfs-bus-iio-dds
@@ -0,0 +1,93 @@
1
2What: /sys/bus/iio/devices/.../ddsX_freqY
3KernelVersion: 2.6.37
4Contact: linux-iio@vger.kernel.org
5Description:
6 Stores frequency into tuning word Y.
7 There will be more than one ddsX_freqY file, which allows for
8 pin controlled FSK Frequency Shift Keying
9 (ddsX_pincontrol_freq_en is active) or the user can control
10 the desired active tuning word by writing Y to the
11 ddsX_freqsymbol file.
12
13What: /sys/bus/iio/devices/.../ddsX_freqY_scale
14KernelVersion: 2.6.37
15Contact: linux-iio@vger.kernel.org
16Description:
17 Scale to be applied to ddsX_freqY in order to obtain the
18 desired value in Hz. If shared across all frequency registers
19 Y is not present. It is also possible X is not present if
20 shared across all channels.
21
22What: /sys/bus/iio/devices/.../ddsX_freqsymbol
23KernelVersion: 2.6.37
24Contact: linux-iio@vger.kernel.org
25Description:
26 Specifies the active output frequency tuning word. The value
27 corresponds to the Y in ddsX_freqY. To exit this mode the user
28 can write ddsX_pincontrol_freq_en or ddsX_out_enable file.
29
30What: /sys/bus/iio/devices/.../ddsX_phaseY
31KernelVersion: 2.6.37
32Contact: linux-iio@vger.kernel.org
33Description:
34 Stores phase into Y.
35 There will be more than one ddsX_phaseY file, which allows for
36 pin controlled PSK Phase Shift Keying
37 (ddsX_pincontrol_phase_en is active) or the user can
38 control the desired phase Y which is added to the phase
39 accumulator output by writing Y to the en_phase file.
40
41What: /sys/bus/iio/devices/.../ddsX_phaseY_scale
42KernelVersion: 2.6.37
43Contact: linux-iio@vger.kernel.org
44Description:
45 Scale to be applied to ddsX_phaseY in order to obtain the
46 desired value in rad. If shared across all phase registers
47 Y is not present. It is also possible X is not present if
48 shared across all channels.
49
50What: /sys/bus/iio/devices/.../ddsX_phasesymbol
51KernelVersion: 2.6.37
52Contact: linux-iio@vger.kernel.org
53Description:
54 Specifies the active phase Y which is added to the phase
55 accumulator output. The value corresponds to the Y in
56 ddsX_phaseY. To exit this mode the user can write
57 ddsX_pincontrol_phase_en or disable file.
58
59What: /sys/bus/iio/devices/.../ddsX_pincontrol_en
60What: /sys/bus/iio/devices/.../ddsX_pincontrol_freq_en
61What: /sys/bus/iio/devices/.../ddsX_pincontrol_phase_en
62KernelVersion: 2.6.37
63Contact: linux-iio@vger.kernel.org
64Description:
65 ddsX_pincontrol_en: Both, the active frequency and phase is
66 controlled by the respective phase and frequency control inputs.
67 In case the device in question allows to independent controls,
68 then there are dedicated files (ddsX_pincontrol_freq_en,
69 ddsX_pincontrol_phase_en).
70
71What: /sys/bus/iio/devices/.../ddsX_out_enable
72What: /sys/bus/iio/devices/.../ddsX_outY_enable
73KernelVersion: 2.6.37
74Contact: linux-iio@vger.kernel.org
75Description:
76 ddsX_outY_enable controls signal generation on output Y of
77 channel X. Y may be suppressed if all channels are
78 controlled together.
79
80What: /sys/bus/iio/devices/.../ddsX_outY_wavetype
81KernelVersion: 2.6.37
82Contact: linux-iio@vger.kernel.org
83Description:
84 Specifies the output waveform.
85 (sine, triangle, ramp, square, ...)
86 For a list of available output waveform options read
87 available_output_modes.
88
89What: /sys/bus/iio/devices/.../ddsX_outY_wavetype_available
90KernelVersion: 2.6.37
91Contact: linux-iio@vger.kernel.org
92Description:
93 Lists all available output waveform options.