SP8EBC-ParaTNC/include/wx_handler.h

40 wiersze
966 B
C
Czysty Zwykły widok Historia

2019-01-26 17:02:19 +00:00
/*
* wx_handler.h
*
* Created on: 26.01.2019
* Author: mateusz
*/
#ifndef WX_HANDLER_H_
#define WX_HANDLER_H_
#include <stdint.h>
2021-04-05 19:48:23 +00:00
#include "config_data.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,
2020-06-11 18:36:36 +00:00
WX_PWR_UNDER_RESET,
WX_PWR_DISABLED
}wx_pwr_state_t;
2021-04-05 19:48:23 +00:00
void wx_get_all_measurements(const config_data_wx_sources_t * const config_sources, const config_data_mode_t * const config_mode, const config_data_umb_t * const config_umb);
void wx_get_dallas_temperature(void);
void wx_get_bme280_temperature_pressure_humidity(void);
void wx_get_ms5611_temperature(void);
void wx_get_ms5611_pressure(void);
void wx_pool_anemometer(void);
void wx_pwr_init(void);
void wx_pwr_periodic_handle(void);
2020-06-11 18:36:36 +00:00
void wx_pwr_disable_12v_sw(void);
void wx_pwr_disable_5v_isol(void);
void wx_pwr_enable_12v_sw(void);
void wx_pwr_enable_5v_isol(void);
2019-01-26 17:02:19 +00:00
#endif /* WX_HANDLER_H_ */