mirror of
https://github.com/xiaozhou233/RiverWaterQualityMonitoring.git
synced 2026-12-05 13:05:53 +08:00
32 lines
340 B
C
32 lines
340 B
C
/*
|
|
* ph.h
|
|
*
|
|
* Created on: 2026年7月3日
|
|
* Author: xiaozhou233
|
|
*/
|
|
|
|
#ifndef PH_H
|
|
#define PH_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct
|
|
{
|
|
float voltage;
|
|
float mv;
|
|
float ph;
|
|
} PH_Data_t;
|
|
|
|
void PH_Init(void);
|
|
void PH_Calc(uint16_t adc, PH_Data_t *out);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|