Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/bus/iio/devices/triggerX/master_mode_available
0002 KernelVersion:  4.11
0003 Contact:        benjamin.gaignard@st.com
0004 Description:
0005                 Reading returns the list possible master modes which are:
0006 
0007 
0008                 - "reset"
0009                                 The UG bit from the TIMx_EGR register is
0010                                 used as trigger output (TRGO).
0011                 - "enable"
0012                                 The Counter Enable signal CNT_EN is used
0013                                 as trigger output.
0014                 - "update"
0015                                 The update event is selected as trigger output.
0016                                 For instance a master timer can then be used
0017                                 as a prescaler for a slave timer.
0018                 - "compare_pulse"
0019                                 The trigger output send a positive pulse
0020                                 when the CC1IF flag is to be set.
0021                 - "OC1REF"
0022                                 OC1REF signal is used as trigger output.
0023                 - "OC2REF"
0024                                 OC2REF signal is used as trigger output.
0025                 - "OC3REF"
0026                                 OC3REF signal is used as trigger output.
0027                 - "OC4REF"
0028                                 OC4REF signal is used as trigger output.
0029 
0030                 Additional modes (on TRGO2 only):
0031 
0032                 - "OC5REF"
0033                                 OC5REF signal is used as trigger output.
0034                 - "OC6REF"
0035                                 OC6REF signal is used as trigger output.
0036                 - "compare_pulse_OC4REF":
0037                                 OC4REF rising or falling edges generate pulses.
0038                 - "compare_pulse_OC6REF":
0039                                 OC6REF rising or falling edges generate pulses.
0040                 - "compare_pulse_OC4REF_r_or_OC6REF_r":
0041                                 OC4REF or OC6REF rising edges generate pulses.
0042                 - "compare_pulse_OC4REF_r_or_OC6REF_f":
0043                                 OC4REF rising or OC6REF falling edges generate
0044                                 pulses.
0045                 - "compare_pulse_OC5REF_r_or_OC6REF_r":
0046                                 OC5REF or OC6REF rising edges generate pulses.
0047                 - "compare_pulse_OC5REF_r_or_OC6REF_f":
0048                                 OC5REF rising or OC6REF falling edges generate
0049                                 pulses.
0050 
0051                 ::
0052 
0053                   +-----------+   +-------------+            +---------+
0054                   | Prescaler +-> | Counter     |        +-> | Master  | TRGO(2)
0055                   +-----------+   +--+--------+-+        |-> | Control +-->
0056                                      |        |          ||  +---------+
0057                                   +--v--------+-+ OCxREF ||  +---------+
0058                                   | Chx compare +----------> | Output  | ChX
0059                                   +-----------+-+         |  | Control +-->
0060                                         .     |           |  +---------+
0061                                         .     |           |    .
0062                                   +-----------v-+ OC6REF  |    .
0063                                   | Ch6 compare +---------+>
0064                                   +-------------+
0065 
0066                 Example with: "compare_pulse_OC4REF_r_or_OC6REF_r"::
0067 
0068                                   X
0069                                 X   X
0070                               X .   . X
0071                             X   .   .   X
0072                           X     .   .     X
0073                   count X .     .   .     . X
0074                           .     .   .     .
0075                           .     .   .     .
0076                           +---------------+
0077                   OC4REF  |     .   .     |
0078                         +-+     .   .     +-+
0079                           .     +---+     .
0080                   OC6REF  .     |   |     .
0081                         +-------+   +-------+
0082                           +-+   +-+
0083                   TRGO2   | |   | |
0084                         +-+ +---+ +---------+
0085 
0086 What:           /sys/bus/iio/devices/triggerX/master_mode
0087 KernelVersion:  4.11
0088 Contact:        benjamin.gaignard@st.com
0089 Description:
0090                 Reading returns the current master modes.
0091                 Writing set the master mode
0092 
0093 What:           /sys/bus/iio/devices/iio:deviceX/in_count0_preset
0094 KernelVersion:  4.12
0095 Contact:        benjamin.gaignard@st.com
0096 Description:
0097                 Reading returns the current preset value.
0098                 Writing sets the preset value.
0099                 When counting up the counter starts from 0 and fires an
0100                 event when reach preset value.
0101                 When counting down the counter start from preset value
0102                 and fire event when reach 0.
0103 
0104 What:           /sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available
0105 KernelVersion:  4.12
0106 Contact:        benjamin.gaignard@st.com
0107 Description:
0108                 Reading returns the list possible enable modes.
0109 
0110 What:           /sys/bus/iio/devices/iio:deviceX/in_count0_enable_mode
0111 KernelVersion:  4.12
0112 Contact:        benjamin.gaignard@st.com
0113 Description:
0114                 Configure the device counter enable modes, in all case
0115                 counting direction is set by in_count0_count_direction
0116                 attribute and the counter is clocked by the internal clock.
0117 
0118                 always:
0119                         Counter is always ON.
0120 
0121                 gated:
0122                         Counting is enabled when connected trigger signal
0123                         level is high else counting is disabled.
0124 
0125                 triggered:
0126                         Counting is enabled on rising edge of the connected
0127                         trigger, and remains enabled for the duration of this
0128                         selected mode.
0129 
0130 What:           /sys/bus/iio/devices/iio:deviceX/in_count_trigger_mode_available
0131 KernelVersion:  4.13
0132 Contact:        benjamin.gaignard@st.com
0133 Description:
0134                 Reading returns the list possible trigger modes.
0135 
0136 What:           /sys/bus/iio/devices/iio:deviceX/in_count0_trigger_mode
0137 KernelVersion:  4.13
0138 Contact:        benjamin.gaignard@st.com
0139 Description:
0140                 Configure the device counter trigger mode
0141                 counting direction is set by in_count0_count_direction
0142                 attribute and the counter is clocked by the connected trigger
0143                 rising edges.