⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _csl_prevwbcoefsel.c

📁 TI达芬奇dm644x各硬件模块测试代码
💻 C
字号:
/** @file _csl_prevWbCoefSel.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_prevWbCoefSel()
 *
 *  Description
 *    - The @a CSL_prevWbCoefSel() function definition & it's associated
 *      functions
 *
 *  @date 18th October, 2004
 *  @author Vignesh LA.
 */

#include <csl_prev_aux.h>

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

/** @brief Selects White balance coefficient values based in the selection matrix 
 *	passed.
 */
CSL_Status  CSL_prevWbCoefSel(
    /** Pointer to the object that holds reference to the
     *  instance of PREV requested after the call 
	 */
    CSL_PrevHandle                         hPrev,
    /** Coefficient selection matrix
	 */
    Uint8 								   coefMatrix[4][4]
	){

    hPrev->regs->WBSEL = CSL_FMK(PREV_WBSEL_3_3,coefMatrix[3][3])|
                      CSL_FMK(PREV_WBSEL_3_2,coefMatrix[3][2])|	
                      CSL_FMK(PREV_WBSEL_3_1,coefMatrix[3][1])|
                      CSL_FMK(PREV_WBSEL_3_0,coefMatrix[3][0])|
                      CSL_FMK(PREV_WBSEL_2_3,coefMatrix[2][3])|
                      CSL_FMK(PREV_WBSEL_2_2,coefMatrix[2][2])|
                      CSL_FMK(PREV_WBSEL_2_1,coefMatrix[2][1])|
                      CSL_FMK(PREV_WBSEL_2_0,coefMatrix[2][0])|
                      CSL_FMK(PREV_WBSEL_1_3,coefMatrix[1][3])|
                      CSL_FMK(PREV_WBSEL_1_2,coefMatrix[1][2])|
                      CSL_FMK(PREV_WBSEL_1_1,coefMatrix[1][1])|
                      CSL_FMK(PREV_WBSEL_1_0,coefMatrix[1][0])|
                      CSL_FMK(PREV_WBSEL_0_3,coefMatrix[0][3])|
                      CSL_FMK(PREV_WBSEL_0_2,coefMatrix[0][2])|
                      CSL_FMK(PREV_WBSEL_0_1,coefMatrix[0][1])|
                      CSL_FMK(PREV_WBSEL_0_0,coefMatrix[0][0]);

    return (CSL_SOK);
}

⌨️ 快捷键说明

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