#include <aqi_calculator.h>
|
uint16_t | get_aqi (uint16_t pm2_5_value, uint16_t pm10_0_value) override |
|
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 = 7 |
|
staticprotected |
◆ index_grid_
Initial value:= {{0, 50}, {51, 100}, {101, 150}, {151, 200},
{201, 300}, {301, 400}, {401, 500}}
Definition at line 21 of file aqi_calculator.h.
◆ 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, 504}, {505, 604}}
Definition at line 27 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, 12}, {13, 35}, {36, 55}, {56, 150},
{151, 250}, {251, 350}, {351, 500}}
Definition at line 24 of file aqi_calculator.h.
The documentation for this class was generated from the following file: