sysfs-bus-iio-timer-stm32 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. What: /sys/bus/iio/devices/triggerX/master_mode_available
  2. KernelVersion: 4.11
  3. Contact: benjamin.gaignard@st.com
  4. Description:
  5. Reading returns the list possible master modes which are:
  6. - "reset" : The UG bit from the TIMx_EGR register is
  7. used as trigger output (TRGO).
  8. - "enable" : The Counter Enable signal CNT_EN is used
  9. as trigger output.
  10. - "update" : The update event is selected as trigger output.
  11. For instance a master timer can then be used
  12. as a prescaler for a slave timer.
  13. - "compare_pulse" : The trigger output send a positive pulse
  14. when the CC1IF flag is to be set.
  15. - "OC1REF" : OC1REF signal is used as trigger output.
  16. - "OC2REF" : OC2REF signal is used as trigger output.
  17. - "OC3REF" : OC3REF signal is used as trigger output.
  18. - "OC4REF" : OC4REF signal is used as trigger output.
  19. What: /sys/bus/iio/devices/triggerX/master_mode
  20. KernelVersion: 4.11
  21. Contact: benjamin.gaignard@st.com
  22. Description:
  23. Reading returns the current master modes.
  24. Writing set the master mode
  25. What: /sys/bus/iio/devices/triggerX/sampling_frequency
  26. KernelVersion: 4.11
  27. Contact: benjamin.gaignard@st.com
  28. Description:
  29. Reading returns the current sampling frequency.
  30. Writing an value different of 0 set and start sampling.
  31. Writing 0 stop sampling.
  32. What: /sys/bus/iio/devices/iio:deviceX/in_count0_preset
  33. KernelVersion: 4.12
  34. Contact: benjamin.gaignard@st.com
  35. Description:
  36. Reading returns the current preset value.
  37. Writing sets the preset value.
  38. When counting up the counter starts from 0 and fires an
  39. event when reach preset value.
  40. When counting down the counter start from preset value
  41. and fire event when reach 0.
  42. What: /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
  43. KernelVersion: 4.12
  44. Contact: benjamin.gaignard@st.com
  45. Description:
  46. Reading returns the list possible quadrature modes.
  47. What: /sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
  48. KernelVersion: 4.12
  49. Contact: benjamin.gaignard@st.com
  50. Description:
  51. Configure the device counter quadrature modes:
  52. channel_A:
  53. Encoder A input servers as the count input and B as
  54. the UP/DOWN direction control input.
  55. channel_B:
  56. Encoder B input serves as the count input and A as
  57. the UP/DOWN direction control input.
  58. quadrature:
  59. Encoder A and B inputs are mixed to get direction
  60. and count with a scale of 0.25.
  61. What: /sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available
  62. KernelVersion: 4.12
  63. Contact: benjamin.gaignard@st.com
  64. Description:
  65. Reading returns the list possible enable modes.
  66. What: /sys/bus/iio/devices/iio:deviceX/in_count0_enable_mode
  67. KernelVersion: 4.12
  68. Contact: benjamin.gaignard@st.com
  69. Description:
  70. Configure the device counter enable modes, in all case
  71. counting direction is set by in_count0_count_direction
  72. attribute and the counter is clocked by the internal clock.
  73. always:
  74. Counter is always ON.
  75. gated:
  76. Counting is enabled when connected trigger signal
  77. level is high else counting is disabled.
  78. triggered:
  79. Counting is enabled on rising edge of the connected
  80. trigger, and remains enabled for the duration of this
  81. selected mode.