MakeBlock Drive Updated
Updated library for MakeBlock Ranger
Loading...
Searching...
No Matches
MePm25Sensor.h File Reference

Header for for MePm25Sensor.cpp module. More...

#include <stdint.h>
#include <stdbool.h>
#include <Arduino.h>
#include "MeConfig.h"
#include "MeSerial.h"
#include "MePort.h"
Include dependency graph for MePm25Sensor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PM25DATASTRUCT
 
union  PM25DATAUINO
 
class  MePm25Sensor
 Driver for Me PM2.5 sensor device. More...
 

Macros

#define START_SYSEX1   0x32
 
#define START_SYSEX2   0x3d
 
#define LENGTH   28
 

Detailed Description

Header for for MePm25Sensor.cpp module.

Author
MakeBlock
Version
V1.0.0
Date
2016/12/12
Copyright
This software is Copyright (C), 2012-2016, MakeBlock. Use is subject to license
conditions. The main licensing options available are GPL V2 or Commercial:
Open Source Licensing GPL V2
This is the appropriate option if you want to share the source code of your
application with everyone you distribute it to, and you also want to give them
the right to share who uses it. If you wish to use this software under Open
Source Licensing, you must contribute all your source code to the open source
community in accordance with the GPL Version 2 when your application is
distributed. See http://www.gnu.org/copyleft/gpl.html
Description
This file is a drive for Smart Servo device, The Smart Servo inherited the MeSerial class from SoftwareSerial.
Method List:
  1. uint16_t MePm25Sensor::readPm1_0Concentration(void);
  2. uint16_t MePm25Sensor::readPm2_5Concentration(void);
  3. uint16_t MePm25Sensor::readPm10Concentration(void);
  4. uint16_t MePm25Sensor::read0_3NumIn100ml(void);
  5. uint16_t MePm25Sensor::read0_5NumIn100ml(void);
  6. uint16_t MePm25Sensor::read1_0NumIn100ml(void);
  7. uint16_t MePm25Sensor::read2_5NumIn100ml(void);
  8. uint16_t MePm25Sensor::read5_0NumIn100ml(void);
  9. uint16_t MePm25Sensor::read10NumIn100ml(void);
  10. uint16_t MePm25Sensor::setOuputCompatibility(void);
  11. uint16_t MePm25Sensor::turnOnFanLaser(void);
  12. uint16_t MePm25Sensor::turnOffFanLaser(void);
  13. uint16_t MePm25Sensor::OutputIntimeOn(void);
  14. uint16_t MePm25Sensor::OutputIntimeOff(void);
  15. uint16_t MePm25Sensor::setOutputIntimePeriod(uint16_t settime);
  16. uint16_t MePm25Sensor::askForData(void);
  17. uint16_t MePm25Sensor::coreSelfTest(void);
  18. uint16_t MePm25Sensor::setCoreSelfTestTime(uint8_t settime);
  19. uint16_t MePm25Sensor::setCoreEfficient(uint8_t efficent);
  20. uint16_t MePm25Sensor::rxloop(void);
  21. uint16_t MePm25Sensor::returnlen(void);
  22. uint16_t MePm25Sensor::returnchecksum(void);
History:
`<Author>`         `<Time>`        `<Version>`        `<Descr>`
Zzipeng          2016/12/13     1.0.0            Build the new.