History

iio: core: add thermocouple_type standard attribute

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.

Andrea Merello committed 6 years ago

Commit ddfb97d1 parent 8cb34032 files · +2 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/iio/types.h+1−0
@@ -58,6 +58,7 @@ enum iio_chan_info_enum { · 57 unmodified lines
58 IIO_CHAN_INFO_DEBOUNCE_TIME,58 IIO_CHAN_INFO_DEBOUNCE_TIME,
59 IIO_CHAN_INFO_CALIBEMISSIVITY,59 IIO_CHAN_INFO_CALIBEMISSIVITY,
60 IIO_CHAN_INFO_OVERSAMPLING_RATIO,60 IIO_CHAN_INFO_OVERSAMPLING_RATIO,
61 IIO_CHAN_INFO_THERMOCOUPLE_TYPE,
61};62};
62 63
63#endif /* _IIO_TYPES_H_ */64#endif /* _IIO_TYPES_H_ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t