]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - drivers/staging/iio/trigger/iio-trig-bfin-timer.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-eoan-kernel.git] / drivers / staging / iio / trigger / iio-trig-bfin-timer.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __IIO_BFIN_TIMER_TRIGGER_H__
3 #define __IIO_BFIN_TIMER_TRIGGER_H__
4
5 /**
6 * struct iio_bfin_timer_trigger_pdata - timer trigger platform data
7 * @output_enable: Enable external trigger pulse generation.
8 * @active_low: Whether the trigger pulse is active low.
9 * @duty_ns: Length of the trigger pulse in nanoseconds.
10 *
11 * This struct is used to configure the output pulse generation of the blackfin
12 * timer trigger. If output_enable is set to true an external trigger signal
13 * will generated on the pin corresponding to the timer. This is useful for
14 * converters which needs an external signal to start conversion. active_low and
15 * duty_ns are used to configure the type of the trigger pulse. If output_enable
16 * is set to false no external trigger pulse will be generated and active_low
17 * and duty_ns are ignored.
18 **/
19 struct iio_bfin_timer_trigger_pdata {
20 bool output_enable;
21 bool active_low;
22 unsigned int duty_ns;
23 };
24
25 #endif