upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Main Page
Related Pages
UPM Libraries
Namespaces
Data Structures
Files
File List
Globals
src
ppd42ns
ppd42ns_data.h
1
/*
2
* Author: Jon Trulson <jtrulson@ics.com>
3
* Contributions: Rex Tsai <rex.cc.tsai@gmail.com>
4
* Abhishek Malik <abhishek.malik@intel.com>
5
* Copyright (c) 2016 Intel Corporation.
6
*
7
* Based on original C++ driver written by:
8
* Author: Zion Orent <sorent@ics.com>
9
* Copyright (c) 2014 Intel Corporation.
10
*
11
* Permission is hereby granted, free of charge, to any person obtaining
12
* a copy of this software and associated documentation files (the
13
* "Software"), to deal in the Software without restriction, including
14
* without limitation the rights to use, copy, modify, merge, publish,
15
* distribute, sublicense, and/or sell copies of the Software, and to
16
* permit persons to whom the Software is furnished to do so, subject to
17
* the following conditions:
18
*
19
* The above copyright notice and this permission notice shall be
20
* included in all copies or substantial portions of the Software.
21
*
22
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
*/
30
#pragma once
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
36
// This is a data struct used by the ppd42ns (dust sensor) driver.
37
typedef
struct
38
{
39
unsigned
int
lowPulseOccupancy;
40
double
ratio;
41
double
concentration;
42
double
ugm3;
43
int
aqi;
44
}
ppd42ns_dust_data
;
45
46
#ifdef __cplusplus
47
}
48
#endif
ppd42ns_dust_data
Definition:
ppd42ns_data.h:37
Generated on Wed Nov 21 2018 10:43:52 for upm by
1.8.11