mirror of
https://github.com/xiaozhou233/RiverWaterQualityMonitoring.git
synced 2026-12-05 13:05:53 +08:00
20 lines
292 B
C
20 lines
292 B
C
/*
|
|
* adc_utils.h
|
|
*
|
|
* Created on: 2026年7月1日
|
|
* Author: xiaozhou233
|
|
*/
|
|
|
|
#ifndef ADC_UTILS_H
|
|
#define ADC_UTILS_H
|
|
|
|
#include "main.h"
|
|
|
|
// Read ADC value
|
|
uint16_t ADC_Read(ADC_HandleTypeDef *hadc);
|
|
|
|
// Convert ADC value to millivolts
|
|
uint32_t ADC_ToMilliVolt(uint16_t adc);
|
|
|
|
#endif
|