1*93fbe91bSBenjamin GaignardWhat: /sys/bus/iio/devices/triggerX/master_mode_available 2*93fbe91bSBenjamin GaignardKernelVersion: 4.11 3*93fbe91bSBenjamin GaignardContact: benjamin.gaignard@st.com 4*93fbe91bSBenjamin GaignardDescription: 5*93fbe91bSBenjamin Gaignard Reading returns the list possible master modes which are: 6*93fbe91bSBenjamin Gaignard - "reset" : The UG bit from the TIMx_EGR register is used as trigger output (TRGO). 7*93fbe91bSBenjamin Gaignard - "enable" : The Counter Enable signal CNT_EN is used as trigger output. 8*93fbe91bSBenjamin Gaignard - "update" : The update event is selected as trigger output. 9*93fbe91bSBenjamin Gaignard For instance a master timer can then be used as a prescaler for a slave timer. 10*93fbe91bSBenjamin Gaignard - "compare_pulse" : The trigger output send a positive pulse when the CC1IF flag is to be set. 11*93fbe91bSBenjamin Gaignard - "OC1REF" : OC1REF signal is used as trigger output. 12*93fbe91bSBenjamin Gaignard - "OC2REF" : OC2REF signal is used as trigger output. 13*93fbe91bSBenjamin Gaignard - "OC3REF" : OC3REF signal is used as trigger output. 14*93fbe91bSBenjamin Gaignard - "OC4REF" : OC4REF signal is used as trigger output. 15*93fbe91bSBenjamin Gaignard 16*93fbe91bSBenjamin GaignardWhat: /sys/bus/iio/devices/triggerX/master_mode 17*93fbe91bSBenjamin GaignardKernelVersion: 4.11 18*93fbe91bSBenjamin GaignardContact: benjamin.gaignard@st.com 19*93fbe91bSBenjamin GaignardDescription: 20*93fbe91bSBenjamin Gaignard Reading returns the current master modes. 21*93fbe91bSBenjamin Gaignard Writing set the master mode 22*93fbe91bSBenjamin Gaignard 23*93fbe91bSBenjamin GaignardWhat: /sys/bus/iio/devices/triggerX/sampling_frequency 24*93fbe91bSBenjamin GaignardKernelVersion: 4.11 25*93fbe91bSBenjamin GaignardContact: benjamin.gaignard@st.com 26*93fbe91bSBenjamin GaignardDescription: 27*93fbe91bSBenjamin Gaignard Reading returns the current sampling frequency. 28*93fbe91bSBenjamin Gaignard Writing an value different of 0 set and start sampling. 29*93fbe91bSBenjamin Gaignard Writing 0 stop sampling. 30