twl_mcu/ADC.h
2024-12-17 04:24:29 -05:00

32 lines
448 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __ADC_H__
#define __ADC_H__
#include "jhl_defs.h"
void ADC_Init();
void ADC_Start();
void ADC_Stop();
void callbk_int_ad();
void set_batt_th();
void tsk_adc();
// tsk_adc̈ê˜A
u16 getVBatt();
u8 set_reg_power_info();
void chk_extension();
void chk_obs_pmic_batt_low();
void chk_irq0_batt();
void tsk_adc_calib();
enum BATT_TYPE{
BATT_CO = 0x00,
BATT_PSS = 0x70,
BATT_IS = 0x30
};
#endif