Program Listing for File temperature.h¶
↰ Return to documentation for file (cellboard/Inc/temperature.h
)
#ifndef TEMPERATURE_H
#define TEMPERATURE_H
#include "fenice_config.h"
#include "stm32f4xx_hal.h"
typedef struct temperature {
uint8_t values[TEMP_SENSOR_COUNT];
uint8_t min[2];
uint8_t max[2];
} temperature_t;
void temperature_read_sample(I2C_HandleTypeDef *hi2c[TEMP_BUS_COUNT],
uint16_t *buffer);
void temperature_get_average(
uint16_t buffer[TEMP_SENSOR_COUNT][TEMP_SAMPLE_COUNT],
uint8_t temps[TEMP_SENSOR_COUNT]);
void temperature_get_extremes(uint8_t temps[], uint8_t min[2], uint8_t max[2]);
#endif