_csl_prevsetdfoffset.c
来自「ccs下对dm6446的测试程序」· C语言 代码 · 共 39 行
C
39 行
/** @file _csl_prevSetDFOffset.c
*
* @brief File for functional layer of CSL API @a CSL_prevSetDFOffset()
*
* Description
* - The @a CSL_prevSetDFOffset() function definition & it's associated
* functions
*
* @date 20th October, 2004
* @author Vignesh LA.
*/
#include <csl_prev_aux.h>
#pragma CODE_SECTION (CSL_prevSetDFOffset, ".text:csl_section:prev");
/** @brief Sets the Dark frame offset
*/
CSL_Status CSL_prevSetDFOffset(
/** Pointer to the object that holds reference to the
* instance of PREV requested after the call
*/
CSL_PrevHandle hPrev,
/** Dark frame offset
*/
Uint16 offset
){
/* Setup the configuration parameters in the Line offset for dark frame data Register */
hPrev->regs->DRKF_OFFSET = CSL_FMK(PREV_DRKF_OFFSET_OFFSET, offset);
if(offset%32)
return (CSL_ESYS_INVPARAMS);
else
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?