📄 csl_venccompositesetup.c
字号:
/** @file csl_vencCompositeSetup.c
*
* @brief File for functional layer of CSL API @a CSL_vencCompositeSetup()
*
* Description
* - The @a CSL_vencCompositeSetup() 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_vencCompositeSetup, ".text:csl_section:venc");
/** @brief Configures the VENC using the values passed in through the
* setup structure.
*/
CSL_Status CSL_vencCompositeSetup(
/** 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_VencCompositeConfig *setup
)
{
CSL_Status status = CSL_SOK;
/* Composite mode specific settings */
hVenc->regs->CVBS = (hVenc->regs->CVBS & 0xFFFF8FC0)
|(CSL_FMK(VENC_CVBS_YCDLY, setup->ycdly)
|CSL_FMK(VENC_CVBS_CVLVL, setup->cvlvl)
|CSL_FMK(VENC_CVBS_CSTUP, setup->cstup)
|CSL_FMK(VENC_CVBS_CBLS, setup->cbls)
|CSL_FMK(VENC_CVBS_CRCUT, setup->crcut)
|CSL_FMK(VENC_CVBS_CBBLD, setup->cbbld)
|CSL_FMK(VENC_CVBS_CSBLD, setup->csbld));
hVenc->regs->ETMG0 = (hVenc->regs->ETMG0 & 0xFFFFF000)
|(CSL_FMK(VENC_ETMG0_CEPW, setup->cepw)
|CSL_FMK(VENC_ETMG0_CFSW, setup->cfsw)
|CSL_FMK(VENC_ETMG0_CLSW, setup->clsw));
hVenc->regs->ETMG1 = (hVenc->regs->ETMG1 & 0xFFFF0000)
|(CSL_FMK(VENC_ETMG1_CBSE, setup->cbse)
|CSL_FMK(VENC_ETMG1_CBST, setup->cbst)
|CSL_FMK(VENC_ETMG1_CFPW, setup->cfpw)
|CSL_FMK(VENC_ETMG1_CLBI, setup->clbi));
return status;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -