/*
 * temperature.c
 *
 *  Created on: Aug 4, 2025
 *      Author: herli
 */

#include "temperature.h"

float Temp = 0.0;
float PSG_Voltage = 14.5;
//audi 13.5
//ford 14.5

uint16_t dma_buffer[2 * DMA_BUFFER_SIZE];
uint32_t temp_avg;

void process_buffer_Temp(uint16_t *buffer){
	uint32_t temp_sum = 0;
	for (int i = 0; i < DMA_SAMPLES_TEMP; ++i) {
	    temp_sum += buffer[0];
	    buffer += 1;
	}
	temp_avg = temp_sum / DMA_SAMPLES_TEMP;
}
