We have a couple of thermocouple IIO drivers, supporting several chips. Some of them support only one specific thermocouple type (e.g. "K", "J"), one of them can be configured to work with several different thermocouple types. In certain applications thermocouples could be externally connected to the chip by the user. This patch introduces a new IIO standard attribute to report the supported thermocouple type and, where applicable, to allow it to be dynamically set using sysfs.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -58,6 +58,7 @@ enum iio_chan_info_enum { · 57 unmodified lines | ||
| 58 | 58 | IIO_CHAN_INFO_DEBOUNCE_TIME, |
| 59 | 59 | IIO_CHAN_INFO_CALIBEMISSIVITY, |
| 60 | 60 | IIO_CHAN_INFO_OVERSAMPLING_RATIO, |
| 61 | + IIO_CHAN_INFO_THERMOCOUPLE_TYPE, | |
| 61 | 62 | }; |
| 62 | 63 | |
| 63 | 64 | #endif /* _IIO_TYPES_H_ */ |