[][src]Struct pms_7003::OutputFrame

pub struct OutputFrame {
    pub start1: u8,
    pub start2: u8,
    pub frame_length: u16,
    pub pm1_0: u16,
    pub pm2_5: u16,
    pub pm10: u16,
    pub pm1_0_atm: u16,
    pub pm2_5_atm: u16,
    pub pm10_atm: u16,
    pub beyond_0_3: u16,
    pub beyond_0_5: u16,
    pub beyond_1_0: u16,
    pub beyond_2_5: u16,
    pub beyond_5_0: u16,
    pub beyond_10_0: u16,
    pub reserved: u16,
    pub check: u16,
}

Contains data reported by the sensor

Fields

start1: u8start2: u8frame_length: u16pm1_0: u16pm2_5: u16pm10: u16pm1_0_atm: u16pm2_5_atm: u16pm10_atm: u16beyond_0_3: u16beyond_0_5: u16beyond_1_0: u16beyond_2_5: u16beyond_5_0: u16beyond_10_0: u16reserved: u16check: u16

Methods

impl OutputFrame[src]

pub fn from_buffer(buffer: &[u8; 32]) -> Result<Self, Error>[src]

Trait Implementations

impl Debug for OutputFrame[src]

impl Default for OutputFrame[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.