Lines Matching refs:trigger
5 * struct :c:type:`iio_trigger` — industrial I/O trigger device
11 * :c:func:`iio_trigger_validate_own_device` — Check if a trigger and IIO
15 on some external event (trigger) as opposed to periodically polling for data.
16 An IIO trigger can be provided by a device driver that also has an IIO device
20 a specific file in sysfs). A trigger may initiate data capture for a number of
23 IIO trigger sysfs interface
28 * :file:`/sys/bus/iio/devices/trigger{Y}/*`, this file is created once an
29 IIO trigger is registered with the IIO core and corresponds to trigger
34 * :file:`name`, trigger name that can be later used for association with a
37 specify the frequency for trigger calls.
39 * :file:`/sys/bus/iio/devices/iio:device{X}/trigger/*`, this directory is
41 trigger with our device by writing the trigger's name in the
44 IIO trigger setup
47 Let's see a simple example of how to setup a trigger to be used by a driver::
56 /* first, allocate memory for our trigger */
59 /* setup trigger operations field */
62 /* now register the trigger with the IIO core */
65 IIO trigger ops
70 Notice that a trigger has a set of operations attached:
72 * :file:`set_trigger_state`, switch the trigger on/off on demand.
74 trigger gets changed.
78 .. kernel-doc:: include/linux/iio/trigger.h
79 .. kernel-doc:: drivers/iio/industrialio-trigger.c