#include <PMserial.h>
Inherited by PMS7003.
◆ anonymous enum
Enumerator |
---|
serModeHardware | |
serModeSoftware | |
serModeManual | |
◆ STATUS
Enumerator |
---|
OK | |
ERROR_TIMEOUT | |
ERROR_PMS_TYPE | |
ERROR_MSG_UNKNOWN | |
ERROR_MSG_HEADER | |
ERROR_MSG_BODY | |
ERROR_MSG_START | |
ERROR_MSG_LENGTH | |
ERROR_MSG_CKSUM | |
◆ SerialPM() [1/5]
SerialPM::SerialPM |
( |
PMS | sensor | ) |
|
|
inline |
◆ SerialPM() [2/5]
SerialPM::SerialPM |
( |
PMS | sensor, |
|
|
HardwareSerial & | serial ) |
|
inline |
◆ SerialPM() [3/5]
SerialPM::SerialPM |
( |
PMS | sensor, |
|
|
uint8_t | rx, |
|
|
uint8_t | tx ) |
|
inline |
◆ SerialPM() [4/5]
SerialPM::SerialPM |
( |
PMS | sensor, |
|
|
Stream & | serial ) |
|
inline |
◆ SerialPM() [5/5]
SerialPM::SerialPM |
( |
PMS | sensor, |
|
|
uint8_t | rx, |
|
|
uint8_t | tx ) |
|
inline |
◆ buff2word()
uint16_t SerialPM::buff2word |
( |
uint8_t | n | ) |
|
|
inlineprotected |
◆ bytes_read()
uint16_t SerialPM::bytes_read |
( |
| ) |
|
|
inline |
◆ checkBuffer()
bool SerialPM::checkBuffer |
( |
size_t | bufferLen | ) |
|
|
protected |
◆ decodeBuffer()
void SerialPM::decodeBuffer |
( |
bool | tsi_mode, |
|
|
bool | truncated_num ) |
|
protected |
◆ get_rhum_offset()
float SerialPM::get_rhum_offset |
( |
| ) |
|
|
inline |
◆ get_temp_offset()
float SerialPM::get_temp_offset |
( |
| ) |
|
|
inline |
◆ getSerialPort()
Stream * SerialPM::getSerialPort |
( |
| ) |
|
|
inline |
◆ has_formaldehyde()
bool SerialPM::has_formaldehyde |
( |
| ) |
|
|
inline |
◆ has_number_concentration()
bool SerialPM::has_number_concentration |
( |
| ) |
|
|
inline |
◆ has_particulate_matter()
bool SerialPM::has_particulate_matter |
( |
| ) |
|
|
inline |
◆ has_temperature_humidity()
bool SerialPM::has_temperature_humidity |
( |
| ) |
|
|
inline |
◆ init()
◆ operator bool()
SerialPM::operator bool |
( |
| ) |
|
|
inline |
◆ print_buffer()
void SerialPM::print_buffer |
( |
Stream & | term, |
|
|
const char * | fmt ) |
|
inline |
◆ read()
SerialPM::STATUS SerialPM::read |
( |
bool | tsi_mode = false, |
|
|
bool | truncated_num = false ) |
◆ set_rhum_offset()
void SerialPM::set_rhum_offset |
( |
float | offset | ) |
|
|
inline |
◆ set_temp_offset()
void SerialPM::set_temp_offset |
( |
float | offset | ) |
|
|
inline |
◆ setSerialPort()
void SerialPM::setSerialPort |
( |
Stream * | serial | ) |
|
|
inline |
◆ sleep()
◆ trigRead()
◆ waited_ms()
uint16_t SerialPM::waited_ms |
( |
| ) |
|
|
inline |
◆ wake()
◆ [union]
◆ [union]
◆ buffer
◆ BUFFER_LEN
const uint8_t SerialPM::BUFFER_LEN = 40 |
|
staticprotected |
◆ data
uint16_t SerialPM::data[9] |
◆ extra
◆ hcho
◆ []
enum { ... } SerialPM::hwSerial |
◆ max_wait_ms
const uint16_t SerialPM::max_wait_ms = 1000 |
|
staticprotected |
◆ n0p3
◆ n0p5
◆ n10p0
◆ n1p0
◆ n2p5
◆ n5p0
◆ nbytes
◆ nc
◆ pm
◆ pm01
◆ pm10
◆ pm25
◆ pms
◆ rhum
◆ rhum_offset
float SerialPM::rhum_offset = 0.0 |
|
protected |
◆ rx
◆ status
◆ temp
◆ temp_offset
float SerialPM::temp_offset = 0.0 |
|
protected |
◆ tx
◆ uart
◆ wait_ms
uint16_t SerialPM::wait_ms |
|
protected |
The documentation for this class was generated from the following files: