📄 csl_vencanalogvideoextsetup.c
字号:
/** @file csl_vencAnalogVideoExtSetup.c
*
* @brief File for functional layer of CSL API @a CSL_vencAnalogVideoExtSetup()
*
* Description
* - The @a CSL_vencAnalogVideoExtSetup() function definition & it's associated
* functions
*
* Modification 1
* - Modified on: 10/4/2004
* - Reason: created the sources
*
* @date 4th October, 2004
* @author Santosh Narayanan.
*/
#include <csl_venc.h>
#pragma CODE_SECTION (CSL_vencAnalogVideoExtSetup, ".text:csl_section:venc");
/** @brief Configures the VENC using the values passed in through the
* setup structure.
*/
CSL_Status CSL_vencAnalogVideoExtSetup(
/** Pointer to the object that holds reference to the
* instance of VENC requested after the call
*/
CSL_VencHandle hVenc,
/** Pointer to setup structure which contains the
* information to program VENC to a useful state
*/
CSL_VencAnalogVideoExtConfig *setup
)
{
CSL_Status status = CSL_SOK;
/* Analog Video mode specific settings */
hVenc->regs->ATR0 = CSL_FMK(VENC_ATR0_ATR0, setup->atr0);
hVenc->regs->ATR1 = CSL_FMK(VENC_ATR1_ATR1, setup->atr1);
hVenc->regs->ATR2 = CSL_FMK(VENC_ATR2_ATR2, setup->atr2);
hVenc->regs->YCOLVL = (CSL_FMK(VENC_YCOLVL_YLVL, setup->ylvl)
|CSL_FMK(VENC_YCOLVL_CLVL, setup->clvl));
hVenc->regs->SCPROG = CSL_FMK(VENC_SCPROG_SCSD, setup->scsd);
hVenc->regs->CAPCTL = (CSL_FMK(VENC_CAPCTL_CADF, setup->cadf)
|CSL_FMK(VENC_CAPCTL_CADF, setup->capf));
hVenc->regs->CAPDO = (CSL_FMK(VENC_CAPDO_CADO0, setup->cado0)
|CSL_FMK(VENC_CAPDO_CADO1, setup->cado1));
hVenc->regs->CAPDE = (CSL_FMK(VENC_CAPDE_CADE0, setup->cade0)
|CSL_FMK(VENC_CAPDE_CADE1, setup->cade1));
return status;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -