#include <aqi_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, 50}, {51, 100}, {101, 150}, {151, 200}, {201, 300}, {301, 500}} |
| |
| int | pm2_5_calculation_grid_ [AMOUNT_OF_LEVELS][2] |
| |
| int | pm10_0_calculation_grid_ [AMOUNT_OF_LEVELS][2] |
| |
Definition at line 9 of file aqi_calculator.h.
◆ calculate_index_()
| int esphome::hm3301::AQICalculator::calculate_index_ |
( |
uint16_t | value, |
|
|
int | array[AMOUNT_OF_LEVELS][2] ) |
|
inlineprotected |
◆ get_aqi()
| uint16_t esphome::hm3301::AQICalculator::get_aqi |
( |
uint16_t | pm2_5_value, |
|
|
uint16_t | pm10_0_value ) |
|
inlineoverridevirtual |
◆ get_grid_index_()
| int esphome::hm3301::AQICalculator::get_grid_index_ |
( |
uint16_t | value, |
|
|
int | array[AMOUNT_OF_LEVELS][2] ) |
|
inlineprotected |
◆ AMOUNT_OF_LEVELS
| const int esphome::hm3301::AQICalculator::AMOUNT_OF_LEVELS = 6 |
|
staticprotected |
◆ index_grid_
| int esphome::hm3301::AQICalculator::index_grid_[AMOUNT_OF_LEVELS][2] = {{0, 50}, {51, 100}, {101, 150}, {151, 200}, {201, 300}, {301, 500}} |
|
protected |
◆ pm10_0_calculation_grid_
| int esphome::hm3301::AQICalculator::pm10_0_calculation_grid_[AMOUNT_OF_LEVELS][2] |
|
protected |
Initial value:= {{0, 54}, {55, 154}, {155, 254},
{255, 354}, {355, 424}, {425, INT_MAX}}
Definition at line 26 of file aqi_calculator.h.
◆ pm2_5_calculation_grid_
| int esphome::hm3301::AQICalculator::pm2_5_calculation_grid_[AMOUNT_OF_LEVELS][2] |
|
protected |
Initial value:= {{0, 9}, {10, 35}, {36, 55},
{56, 125}, {126, 225}, {226, INT_MAX}}
Definition at line 23 of file aqi_calculator.h.
The documentation for this class was generated from the following file: