Lines Matching refs:trigger
5 * struct iio_trigger — industrial I/O trigger device
9 * :c:func:`iio_trigger_validate_own_device` — Check if a trigger and IIO
13 on some external event (trigger) as opposed to periodically polling for data.
14 An IIO trigger can be provided by a device driver that also has an IIO device
18 a specific file in sysfs). A trigger may initiate data capture for a number of
21 IIO trigger sysfs interface
26 * :file:`/sys/bus/iio/devices/trigger{Y}/*`, this file is created once an
27 IIO trigger is registered with the IIO core and corresponds to trigger
32 * :file:`name`, trigger name that can be later used for association with a
35 specify the frequency for trigger calls.
37 * :file:`/sys/bus/iio/devices/iio:device{X}/trigger/*`, this directory is
39 trigger with our device by writing the trigger's name in the
42 IIO trigger setup
45 Let's see a simple example of how to setup a trigger to be used by a driver::
54 /* first, allocate memory for our trigger */
57 /* setup trigger operations field */
60 /* now register the trigger with the IIO core */
63 IIO trigger ops
68 Notice that a trigger has a set of operations attached:
70 * :file:`set_trigger_state`, switch the trigger on/off on demand.
72 trigger gets changed.
76 .. kernel-doc:: include/linux/iio/trigger.h
77 .. kernel-doc:: drivers/iio/industrialio-trigger.c