官方对这个函数的介绍如下:
/**
* [url=home.php?mod=space&uid=247401]@brief[/url] Initializes ADC12 for single sampling mode operation. This
* initialization configures MEMCTL0 as the default memory control register for
* the conversion. If the conversion needs use a different memory control
* register the user can call [url=home.php?mod=space&uid=144993]@ref[/url] DL_ADC12_setStartAddress to specify a
* different control register.
*
* @param[in] adc12 Pointer to the register overlay for the peripheral
* @param[in] repeatMode Specifies repeat configuration. One of
* @ref DL_ADC12_REPEAT_MODE
* @param[in] sampleMode Specifies source of the sampling signal. One of
* @ref DL_ADC12_SAMPLING_SOURCE
* @param[in] trigSrc Specifies sampling trigger source. One of
* @ref DL_ADC12_TRIG_SRC
* @param[in] resolution Specifies sample conversion resolution. One of
* @ref DL_ADC12_SAMP_CONV_RES
* @param[in] dataFormat Specifies sample conversion data format. One of
* @ref DL_ADC12_SAMP_CONV_DATA_FORMAT
*
*/
初始化ADC12为单次采样模式时的操作,如果要将ADC12配置为序列采样模式,调用的函数应该是DL_ADC12_initSeqSample 。那么下面详细介绍下这个函数的每个参数以及在syscfg中对应的配置信息。
|