aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/sensor.h
blob: 802656b5669197e33b35d32ad865490273f44e65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <stdint.h>

/** Get current temperature measurement */
uint8_t ws_sensor_temperature();
/** Get current humidity measurement */
uint8_t ws_sensor_humidity();
/** Get current atmospheric pressure measurement */
uint8_t ws_sensor_atmospheric_pressure();

/**
 * Put measurements from every sensor into a `ws_s_backlog_record`, and commit
 * that struct to the database
 */
void ws_sensor_read();

/** FreeRTOS task that runs `ws_sensor_read` every minute */
void ws_sensor_read_task();