162306a36Sopenharmony_ciWhat: /sys/bus/iio/devices/triggerX/trigger_now 262306a36Sopenharmony_ciKernelVersion: 2.6.38 362306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci This file is provided by the iio-trig-sysfs stand-alone trigger 662306a36Sopenharmony_ci driver. Writing this file with any value triggers an event 762306a36Sopenharmony_ci driven driver, associated with this trigger, to capture data 862306a36Sopenharmony_ci into an in kernel buffer. This approach can be valuable during 962306a36Sopenharmony_ci automated testing or in situations, where other trigger methods 1062306a36Sopenharmony_ci are not applicable. For example no RTC or spare GPIOs. 1162306a36Sopenharmony_ci X is the IIO index of the trigger. 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciWhat: /sys/bus/iio/devices/triggerX/name 1462306a36Sopenharmony_ciKernelVersion: 2.6.39 1562306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 1662306a36Sopenharmony_ciDescription: 1762306a36Sopenharmony_ci The name attribute holds a description string for the current 1862306a36Sopenharmony_ci trigger. In order to associate the trigger with an IIO device 1962306a36Sopenharmony_ci one should write this name string to 2062306a36Sopenharmony_ci /sys/bus/iio/devices/iio:deviceY/trigger/current_trigger. 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciWhat: /sys/bus/iio/devices/iio_sysfs_trigger/add_trigger 2362306a36Sopenharmony_ciKernelVersion: 2.6.39 2462306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 2562306a36Sopenharmony_ciDescription: 2662306a36Sopenharmony_ci This attribute is provided by the iio-trig-sysfs stand-alone 2762306a36Sopenharmony_ci driver and it is used to activate the creation of a new trigger. 2862306a36Sopenharmony_ci In order to achieve this, one should write a positive integer 2962306a36Sopenharmony_ci into the associated file, which will serve as the id of the 3062306a36Sopenharmony_ci trigger. If the trigger with the specified id is already present 3162306a36Sopenharmony_ci in the system, an invalid argument message will be returned. 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ciWhat: /sys/bus/iio/devices/iio_sysfs_trigger/remove_trigger 3462306a36Sopenharmony_ciKernelVersion: 2.6.39 3562306a36Sopenharmony_ciContact: linux-iio@vger.kernel.org 3662306a36Sopenharmony_ciDescription: 3762306a36Sopenharmony_ci This attribute is used to unregister and delete a previously 3862306a36Sopenharmony_ci created trigger from the list of available triggers. In order to 3962306a36Sopenharmony_ci achieve this, one should write a positive integer into the 4062306a36Sopenharmony_ci associated file, representing the id of the trigger that needs 4162306a36Sopenharmony_ci to be removed. If the trigger can't be found, an invalid 4262306a36Sopenharmony_ci argument message will be returned to the user. 43