/**
* @file HW_ADC_ATY.h
*
* @param Project DEVICE_GENERAL_ATY_LIB
*
* @author ATY
*
* @copyright
* - Copyright 2017 - 2023 MZ-ATY
* - This code follows:
* - MZ-ATY Various Contents Joint Statement -
*
* https://mengze.top/MZ-ATY_VCJS
* - CC 4.0 BY-NC-SA -
*
* https://creativecommons.org/licenses/by-nc-sa/4.0/
* - Your use will be deemed to have accepted the terms of this statement.
*
* @brief Familiar functions of uart for STC51
*
* @version
* - 1_01_221231 > ATY
* -# Preliminary version, first Release
********************************************************************************
*/
#ifndef __HW_ADC_ATY_H
#define __HW_ADC_ATY_H
#include "INCLUDE_ATY.h"
/******************************* For user *************************************/
/******************************************************************************/
void ADC_Init(void);
float ADC_GetVref(void);
#if defined(__STC51_ATY)
uint16_t ADC_Get(uint8_t channel);
#elif defined(__STM32_HAL_ATY)
uint16_t ADC_Get(ADC_HandleTypeDef* channel);
#endif /* PLATFORM */
#endif /* __HW_ADC_ATY_H */
/******************************** End Of File *********************************/