_csl_prevdrkfail.c

来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 36 行

C
36
字号
/** @file _csl_prevDrkFail.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_prevDrkFail()
 *
 *  Description
 *    - The @a CSL_prevDrkFail() function definition & it's associated
 *      functions
 *
 *  @date 18th October, 2004
 *  @author Vignesh LA.
 */

#include <csl_prev_aux.h>

#pragma CODE_SECTION (CSL_prevDrkFail, ".text:csl_section:prev");

/** @brief Queries the darkframe fail status of the preview module
 *	
 */
CSL_Status  CSL_prevDrkFail(
    /** Pointer to the object that holds reference to the
     *  instance of PREV requested after the call 
	 */
    CSL_PrevHandle                         hPrev,
    /** Returns the response
	 */
    Uint8 								   *response
	){

	if(*response = CSL_FEXT(hPrev->regs->PCR, PREV_PCR_DRK_FAIL))
		CSL_FINS(hPrev->regs->PCR, PREV_PCR_DRK_FAIL, CSL_PREV_DRK_FRAME_FAIL);

    return (CSL_SOK);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?