ISVP-SDK  3.12.0
Ingenic Smart Video Platform SDK
su_adc.h
Go to the documentation of this file.
1 /*
2  * SU ADC header file.
3  *
4  * Copyright (C) 2015 Ingenic Semiconductor Co.,Ltd
5  */
6 
7 #ifndef __SU_ADC_H__
8 #define __SU_ADC_H__
9 
10 #ifdef __cplusplus
11 #if __cplusplus
12 extern "C"
13 {
14 #endif
15 #endif /* __cplusplus */
16 
43 int SU_ADC_Init(void);
44 
57 int SU_ADC_Exit(void);
58 
73 int SU_ADC_EnableChn(uint32_t chn_num);
74 
89 int SU_ADC_DisableChn(uint32_t chn_num);
90 
107 int SU_ADC_GetChnValue(uint32_t chn_num, int *value);
108 
109 #ifdef __cplusplus
110 #if __cplusplus
111 }
112 #endif
113 #endif /* __cplusplus */
114 
119 #endif /* __SU_ADC_H__ */
int SU_ADC_Exit(void)
ADC module deinit.
int SU_ADC_Init(void)
ADC module init.
int SU_ADC_DisableChn(uint32_t chn_num)
Disable an ADC channel.
int SU_ADC_EnableChn(uint32_t chn_num)
Enable an ADC channel.
int SU_ADC_GetChnValue(uint32_t chn_num, int *value)
Get the ADC value of the channel chn_num.