#include <caqi_calculator.h>
|
uint16_t | get_aqi (uint16_t pm2_5_value, uint16_t pm10_0_value) override |
|
|
int | index_grid_ [AMOUNT_OF_LEVELS][2] = {{0, 25}, {26, 50}, {51, 75}, {76, 100}, {101, 400}} |
|
int | pm2_5_calculation_grid_ [AMOUNT_OF_LEVELS][2] = {{0, 15}, {16, 30}, {31, 55}, {56, 110}, {111, 400}} |
|
int | pm10_0_calculation_grid_ [AMOUNT_OF_LEVELS][2] = {{0, 25}, {26, 50}, {51, 90}, {91, 180}, {181, 400}} |
|
Definition at line 9 of file caqi_calculator.h.
◆ calculate_index_()
int esphome::hm3301::CAQICalculator::calculate_index_ |
( |
uint16_t |
value, |
|
|
int |
array[AMOUNT_OF_LEVELS][2] |
|
) |
| |
|
inlineprotected |
◆ get_aqi()
uint16_t esphome::hm3301::CAQICalculator::get_aqi |
( |
uint16_t |
pm2_5_value, |
|
|
uint16_t |
pm10_0_value |
|
) |
| |
|
inlineoverridevirtual |
◆ get_grid_index_()
int esphome::hm3301::CAQICalculator::get_grid_index_ |
( |
uint16_t |
value, |
|
|
int |
array[AMOUNT_OF_LEVELS][2] |
|
) |
| |
|
inlineprotected |
◆ AMOUNT_OF_LEVELS
const int esphome::hm3301::CAQICalculator::AMOUNT_OF_LEVELS = 5 |
|
staticprotected |
◆ index_grid_
int esphome::hm3301::CAQICalculator::index_grid_[AMOUNT_OF_LEVELS][2] = {{0, 25}, {26, 50}, {51, 75}, {76, 100}, {101, 400}} |
|
protected |
◆ pm10_0_calculation_grid_
int esphome::hm3301::CAQICalculator::pm10_0_calculation_grid_[AMOUNT_OF_LEVELS][2] = {{0, 25}, {26, 50}, {51, 90}, {91, 180}, {181, 400}} |
|
protected |
◆ pm2_5_calculation_grid_
int esphome::hm3301::CAQICalculator::pm2_5_calculation_grid_[AMOUNT_OF_LEVELS][2] = {{0, 15}, {16, 30}, {31, 55}, {56, 110}, {111, 400}} |
|
protected |
The documentation for this class was generated from the following file: