/*
 * wx_handler.h
 *
 *  Created on: 26.01.2019
 *      Author: mateusz
 */

#ifndef WX_HANDLER_H_
#define WX_HANDLER_H_

#include <stdint.h>

extern uint32_t wx_last_good_temperature_time;
extern uint32_t wx_last_good_wind_time;

typedef enum wx_pwr_state_t {
	WX_PWR_OFF,
	WX_PWR_ON,
	WX_PWR_UNDER_RESET
}wx_pwr_state_t;

void wx_get_all_measurements(void);
void wx_pool_dht22(void);
void wx_pool_analog_anemometer(void);
void wx_pwr_init(void);
void wx_pwr_periodic_handle(void);

#endif /* WX_HANDLER_H_ */
