18c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/triggerX/trigger_now 28c2ecf20Sopenharmony_ciKernelVersion: 2.6.38 38c2ecf20Sopenharmony_ciContact: linux-iio@vger.kernel.org 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci This file is provided by the iio-trig-sysfs stand-alone trigger 68c2ecf20Sopenharmony_ci driver. Writing this file with any value triggers an event 78c2ecf20Sopenharmony_ci driven driver, associated with this trigger, to capture data 88c2ecf20Sopenharmony_ci into an in kernel buffer. This approach can be valuable during 98c2ecf20Sopenharmony_ci automated testing or in situations, where other trigger methods 108c2ecf20Sopenharmony_ci are not applicable. For example no RTC or spare GPIOs. 118c2ecf20Sopenharmony_ci X is the IIO index of the trigger. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/triggerX/name 148c2ecf20Sopenharmony_ciKernelVersion: 2.6.39 158c2ecf20Sopenharmony_ciContact: linux-iio@vger.kernel.org 168c2ecf20Sopenharmony_ciDescription: 178c2ecf20Sopenharmony_ci The name attribute holds a description string for the current 188c2ecf20Sopenharmony_ci trigger. In order to associate the trigger with an IIO device 198c2ecf20Sopenharmony_ci one should write this name string to 208c2ecf20Sopenharmony_ci /sys/bus/iio/devices/iio:deviceY/trigger/current_trigger. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/iio_sysfs_trigger/add_trigger 238c2ecf20Sopenharmony_ciKernelVersion: 2.6.39 248c2ecf20Sopenharmony_ciContact: linux-iio@vger.kernel.org 258c2ecf20Sopenharmony_ciDescription: 268c2ecf20Sopenharmony_ci This attribute is provided by the iio-trig-sysfs stand-alone 278c2ecf20Sopenharmony_ci driver and it is used to activate the creation of a new trigger. 288c2ecf20Sopenharmony_ci In order to achieve this, one should write a positive integer 298c2ecf20Sopenharmony_ci into the associated file, which will serve as the id of the 308c2ecf20Sopenharmony_ci trigger. If the trigger with the specified id is already present 318c2ecf20Sopenharmony_ci in the system, an invalid argument message will be returned. 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/iio_sysfs_trigger/remove_trigger 348c2ecf20Sopenharmony_ciKernelVersion: 2.6.39 358c2ecf20Sopenharmony_ciContact: linux-iio@vger.kernel.org 368c2ecf20Sopenharmony_ciDescription: 378c2ecf20Sopenharmony_ci This attribute is used to unregister and delete a previously 388c2ecf20Sopenharmony_ci created trigger from the list of available triggers. In order to 398c2ecf20Sopenharmony_ci achieve this, one should write a positive integer into the 408c2ecf20Sopenharmony_ci associated file, representing the id of the trigger that needs 418c2ecf20Sopenharmony_ci to be removed. If the trigger can't be found, an invalid 428c2ecf20Sopenharmony_ci argument message will be returned to the user. 43