|
30 | 30 |
|
31 | 31 |
|
32 | 32 | /**
|
33 |
| - * IIO_MOD_EVENT_CODE() - create event identifier for modified channels |
| 33 | + * IIO_MOD_EVENT_CODE() - create event identifier for modified (non |
| 34 | + * differential) channels |
34 | 35 | * @chan_type: Type of the channel. Should be one of enum iio_chan_type.
|
35 | 36 | * @number: Channel number.
|
36 | 37 | * @modifier: Modifier for the channel. Should be one of enum iio_modifier.
|
|
43 | 44 | IIO_EVENT_CODE(chan_type, 0, modifier, direction, type, number, 0, 0)
|
44 | 45 |
|
45 | 46 | /**
|
46 |
| - * IIO_UNMOD_EVENT_CODE() - create event identifier for unmodified channels |
| 47 | + * IIO_UNMOD_EVENT_CODE() - create event identifier for unmodified (non |
| 48 | + * differential) channels |
47 | 49 | * @chan_type: Type of the channel. Should be one of enum iio_chan_type.
|
48 | 50 | * @number: Channel number.
|
49 | 51 | * @type: Type of the event. Should be one of enum iio_event_type.
|
|
53 | 55 | #define IIO_UNMOD_EVENT_CODE(chan_type, number, type, direction) \
|
54 | 56 | IIO_EVENT_CODE(chan_type, 0, 0, direction, type, number, 0, 0)
|
55 | 57 |
|
| 58 | +/** |
| 59 | + * IIO_DIFF_EVENT_CODE() - create event identifier for differential channels |
| 60 | + * @chan_type: Type of the channel. Should be one of enum iio_chan_type. |
| 61 | + * @chan1: First channel number for differential channels. |
| 62 | + * @chan2: Second channel number for differential channels. |
| 63 | + * @type: Type of the event. Should be one of enum iio_event_type. |
| 64 | + * @direction: Direction of the event. One of enum iio_event_direction. |
| 65 | + */ |
| 66 | + |
| 67 | +#define IIO_DIFF_EVENT_CODE(chan_type, chan1, chan2, type, direction) \ |
| 68 | + IIO_EVENT_CODE(chan_type, 1, 0, direction, type, 0, chan1, chan2) |
| 69 | + |
56 | 70 | #endif
|
0 commit comments