更新EW模块驱动

This commit is contained in:
ranchuan
2023-10-31 18:12:21 +08:00
parent 873029149d
commit a83444b3c8
17 changed files with 3483 additions and 355 deletions

View File

@@ -57,7 +57,7 @@ uint32_t GetADC2_Fast(void);
uint32_t GetADC1_Fast(void);
uint32_t GetADC2_Value(uint32_t channel);
#define ADC_GetCurADC(chnnel) GetADC2_Value(channel)
#define ADC_GetCurADC(channel) GetADC2_Value(channel)
void GetADC1_Value(uint32_t channel,uint16_t* buf,uint16_t len);
float Get_Temperature(void);
@@ -94,4 +94,11 @@ uint16_t GetADC_Fast(ADC_TypeDef* adc_periph);
void AD_SampleResistor(uint16_t* channels_re);
/*测量电容电压*/
uint16_t AD_SampleCap(uint16_t delay);
/*
@brief 获取总线电流上升时间
@param0 采样判线AD值
@param1 采样超时 单位0.01ms
@rtv 等待时间
*/
uint16_t AD_GetBusCurUp(uint16_t ad_line ,uint16_t time_out);
#endif