2019-01-26 17:02:19 +00:00
|
|
|
/*
|
|
|
|
* rte_wx.h
|
|
|
|
*
|
|
|
|
* Created on: 26.01.2019
|
|
|
|
* Author: mateusz
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "drivers/_dht22.h"
|
|
|
|
#include "drivers/dallas.h"
|
|
|
|
#include "drivers/ms5611.h"
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef RTE_WX_H_
|
|
|
|
#define RTE_WX_H_
|
|
|
|
|
2020-01-04 13:15:33 +00:00
|
|
|
#define WIND_AVERAGE_LEN 18
|
|
|
|
|
2019-01-26 17:02:19 +00:00
|
|
|
extern float rte_wx_temperature_dallas, rte_wx_temperature_dallas_valid;
|
2019-12-22 11:34:03 +00:00
|
|
|
extern float rte_wx_temperature_dalls_slew_rate;
|
2019-10-27 19:50:01 +00:00
|
|
|
extern float rte_wx_temperature_average_dallas_valid;
|
|
|
|
extern float rte_wx_temperature_min_dallas_valid, rte_wx_temperature_max_dallas_valid;
|
|
|
|
extern float rte_wx_temperature_ms, rte_wx_temperature_ms_valid;
|
2019-01-26 17:02:19 +00:00
|
|
|
extern float rte_wx_pressure, rte_wx_pressure_valid;
|
|
|
|
|
2019-12-27 21:07:24 +00:00
|
|
|
extern uint16_t rte_wx_windspeed_pulses;
|
2020-01-04 13:15:33 +00:00
|
|
|
extern uint16_t rte_wx_windspeed[WIND_AVERAGE_LEN];
|
|
|
|
extern uint8_t rte_wx_windspeed_it;
|
|
|
|
extern uint16_t rte_wx_winddirection[WIND_AVERAGE_LEN];
|
|
|
|
extern uint8_t rte_wx_winddirection_it;
|
2020-02-01 22:20:17 +00:00
|
|
|
extern uint16_t rte_wx_winddirection_last;
|
2020-01-04 13:15:33 +00:00
|
|
|
extern uint16_t rte_wx_average_windspeed;
|
|
|
|
extern uint16_t rte_wx_max_windspeed;
|
|
|
|
extern int16_t rte_wx_average_winddirection;
|
2019-12-27 21:07:24 +00:00
|
|
|
|
2019-05-05 07:48:51 +00:00
|
|
|
extern uint8_t rte_wx_tx20_excessive_slew_rate;
|
|
|
|
|
2019-01-26 17:02:19 +00:00
|
|
|
extern dht22Values rte_wx_dht, rte_wx_dht_valid;
|
|
|
|
|
2019-04-15 20:46:36 +00:00
|
|
|
extern DallasQF rte_wx_current_dallas_qf, rte_wx_error_dallas_qf;
|
2020-01-30 22:10:13 +00:00
|
|
|
extern DallasAverage_t rte_wx_dallas_average;
|
2019-01-26 17:02:19 +00:00
|
|
|
extern ms5611_qf_t rte_wx_ms5611_qf;
|
|
|
|
|
2020-01-04 13:15:33 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void rte_wx_init(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2019-01-26 17:02:19 +00:00
|
|
|
|
|
|
|
#endif /* RTE_WX_H_ */
|