History

iio: add IIO_MASSCONCENTRATION channel type

Measuring particulate matter in ug / m3 (micro-grams per cubic meter) is de facto standard. Existing air quality sensors usually follow this convention and are capable of returning measurements using this unit. IIO currently does not offer suitable channel type for this type of measurements hence this patch adds this. In addition, extra modifiers are introduced used for distinguishing between fine pm1, pm2p5 and coarse pm4, pm10 particle measurements, i.e IIO_MOD_PM1, IIO_MOD_PM25 and IIO_MOD_PM4, IIO_MOD_PM10. pmX consists of particles with aerodynamic diameter less or equal to X micrometers.

Tomasz Duszynski committed 7 years ago

Commit 17abc9e1 parent f1b753a4 files · +36 −1Browse files

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

Unified · Split

include/uapi/linux/iio/types.h+5−0
@@ -46,6 +46,7 @@ enum iio_chan_type { · 45 unmodified lines
46 IIO_GRAVITY,46 IIO_GRAVITY,
47 IIO_POSITIONRELATIVE,47 IIO_POSITIONRELATIVE,
48 IIO_PHASE,48 IIO_PHASE,
49 IIO_MASSCONCENTRATION,
49};50};
50 51
51enum iio_modifier {52enum iio_modifier {
@@ -87,6 +88,10 @@ enum iio_modifier { · 35 unmodified lines
87 IIO_MOD_VOC,88 IIO_MOD_VOC,
88 IIO_MOD_LIGHT_UV,89 IIO_MOD_LIGHT_UV,
89 IIO_MOD_LIGHT_DUV,90 IIO_MOD_LIGHT_DUV,
91 IIO_MOD_PM1,
92 IIO_MOD_PM2P5,
93 IIO_MOD_PM4,
94 IIO_MOD_PM10,
90};95};
91 96
92enum iio_event_type {97enum iio_event_type {