pub fields for data

This commit is contained in:
Robin Appelman 2020-08-16 14:26:47 +02:00
commit 53064a4e47
2 changed files with 13 additions and 13 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "pms700x" name = "pms700x"
version = "0.1.0" version = "0.1.1"
authors = ["Robin Appelman <robin@icewind.nl>"] authors = ["Robin Appelman <robin@icewind.nl>"]
edition = "2018" edition = "2018"
exclude = ["*.pdf"] exclude = ["*.pdf"]

View file

@ -35,29 +35,29 @@ const MAX_RESPONSE_SIZE: usize = 32;
#[derive(Debug, Default)] #[derive(Debug, Default)]
pub struct SensorData { pub struct SensorData {
/// PM1.0 concentration in µg/m³, corrected for standard atmosphere /// PM1.0 concentration in µg/m³, corrected for standard atmosphere
pm10: u16, pub pm10: u16,
/// PM25 concentration in µg/m³, corrected for standard atmosphere /// PM25 concentration in µg/m³, corrected for standard atmosphere
pm25: u16, pub pm25: u16,
/// PM10 concentration in µg/m³, corrected for standard atmosphere /// PM10 concentration in µg/m³, corrected for standard atmosphere
pm100: u16, pub pm100: u16,
/// PM1.0 concentration in µg/m³, in current atmosphere /// PM1.0 concentration in µg/m³, in current atmosphere
pm10_atmos: u16, pub pm10_atmos: u16,
/// PM25 concentration in µg/m³, in current atmosphere /// PM25 concentration in µg/m³, in current atmosphere
pm25_atmos: u16, pub pm25_atmos: u16,
/// PM10 concentration in µg/m³, in current atmosphere /// PM10 concentration in µg/m³, in current atmosphere
pm100_atmos: u16, pub pm100_atmos: u16,
/// Number of >0.3µm particles per 0.1L /// Number of >0.3µm particles per 0.1L
pm03_count: u16, pub pm03_count: u16,
/// Number of >0.5µm particles per 0.1L /// Number of >0.5µm particles per 0.1L
pm05_count: u16, pub pm05_count: u16,
/// Number of >1.0µm particles per 0.1L /// Number of >1.0µm particles per 0.1L
pm10_count: u16, pub pm10_count: u16,
/// Number of >2.5µm particles per 0.1L /// Number of >2.5µm particles per 0.1L
pm25_count: u16, pub pm25_count: u16,
/// Number of >5.0µm particles per 0.1L /// Number of >5.0µm particles per 0.1L
pm50_count: u16, pub pm50_count: u16,
/// Number of >10.0µm particles per 0.1L /// Number of >10.0µm particles per 0.1L
pm100_count: u16, pub pm100_count: u16,
} }
impl SensorData { impl SensorData {