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
4646 IIO_GRAVITY,
4747 IIO_POSITIONRELATIVE,
4848 IIO_PHASE,
49+ IIO_MASSCONCENTRATION,
4950 };
5051
5152 enum iio_modifier {
@@ -87,6 +88,10 @@ enum iio_modifier { · 35 unmodified lines
8788 IIO_MOD_VOC,
8889 IIO_MOD_LIGHT_UV,
8990 IIO_MOD_LIGHT_DUV,
91+ IIO_MOD_PM1,
92+ IIO_MOD_PM2P5,
93+ IIO_MOD_PM4,
94+ IIO_MOD_PM10,
9095 };
9196
9297 enum iio_event_type {