📄 _csl_ccdcsetvdint.c
字号:
/** @file _csl_ccdcSetVdInt.c
*
* @brief File for functional layer of CSL API @a CSL_ccdcSetVdInt()
*
* Description
* - The @a CSL_ccdcSetVdInt() function definition & it's associated
* functions
*
* @date 4th May, 2005
* @author Jesse Villarreal.
*/
#include <csl_ccdc_aux.h>
#pragma CODE_SECTION (CSL_ccdcSetVdInt, ".text:csl_section:ccdc");
/** @brief Sets the VD interrupt timing
*
*/
CSL_Status CSL_ccdcSetVdInt(
/** Pointer to the object that holds reference to the
* instance of CCDC requested after the call
*/
CSL_CcdcHandle hCcdc,
/** Pointer to structure holding the data
*/
CSL_CcdcVdIntTiming *data
){
CSL_CcdcRegsOvly ccdcRegs = hCcdc->regs;
if(data == NULL) return (CSL_ESYS_INVPARAMS);
if(data->vdIntId == CSL_CCDC_VDINT0)
CSL_FINS(ccdcRegs->VDINT,CCDC_VDINT_VDINT0,(data->numLines-1));
else if (data->vdIntId == CSL_CCDC_VDINT1)
CSL_FINS(ccdcRegs->VDINT,CCDC_VDINT_VDINT1,(data->numLines-1));
else
return (CSL_ESYS_INVPARAMS);
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -