ISVP-SDK  3.12.0
Ingenic Smart Video Platform SDK
Functions
Sysutils_ADC

Analog to digital conversion module. More...

Collaboration diagram for Sysutils_ADC:

Functions

int SU_ADC_Init (void)
 ADC module init. More...
 
int SU_ADC_Exit (void)
 ADC module deinit. More...
 
int SU_ADC_EnableChn (uint32_t chn_num)
 Enable an ADC channel. More...
 
int SU_ADC_DisableChn (uint32_t chn_num)
 Disable an ADC channel. More...
 
int SU_ADC_GetChnValue (uint32_t chn_num, int *value)
 Get the ADC value of the channel chn_num. More...
 

Detailed Description

Analog to digital conversion module.

Please refer to the use of Samples

Function Documentation

int SU_ADC_DisableChn ( uint32_t  chn_num)

Disable an ADC channel.

Parameters
[in]chn_numThe channel num you want do stop.
Return values
0Success
Non-0Failure,return error code.
Remarks
None
Attention
None
int SU_ADC_EnableChn ( uint32_t  chn_num)

Enable an ADC channel.

Parameters
[in]chn_numThe channel number you want to use.
Return values
0Success
Non-0Failure,retrun error code
Remarks
None
Attention
None
int SU_ADC_Exit ( void  )

ADC module deinit.

Return values
0Success
Non-0Failure,return error code
Remarks
After not using ADC,be sure to call this function.
Attention
None
int SU_ADC_GetChnValue ( uint32_t  chn_num,
int *  value 
)

Get the ADC value of the channel chn_num.

Parameters
[in]chn_numThe channel number
[out]valueADC value obtained
Return values
0Success
Non-0Failure,return error code
Remarks
None
Attention
None
int SU_ADC_Init ( void  )

ADC module init.

Return values
0Success
Non-0Failureļ¼Œreturn error code
Remarks
Before using the ADC, be sure to call this function.
Attention
None