📄 csl_vencrgbctlsetup.c
字号:
/** @file csl_vencRgbCtlSetup.c
*
* @brief File for functional layer of CSL API @a CSL_vencRgbCtlSetup()
*
* Description
* - The @a CSL_vencRgbCtlSetup() function definition & it's associated
* functions
*
* Modification 1
* - Modified on: 10/5/2004
* - Reason: created the sources
*
* @date 5th October, 2004
* @author Santosh Narayanan.
*/
#include <csl_venc.h>
#pragma CODE_SECTION (CSL_vencRgbCtlSetup, ".text:csl_section:venc");
/** @brief Configures the VENC using the values passed in through the
* setup structure.
*/
CSL_Status CSL_vencRgbCtlSetup(
/** 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_VencRgbCtlConfig *setup
)
{
CSL_Status status = CSL_SOK;
/* RGB CTL & RGB culling pattern specific settings */
hVenc->regs->RGBCTL = (CSL_FMK(VENC_RGBCTL_RGBLAT, setup->rgblat)
|CSL_FMK(VENC_RGBCTL_IRSWP, setup->irswp)
|CSL_FMK(VENC_RGBCTL_IR9, setup->ir9)
|CSL_FMK(VENC_RGBCTL_IRONM, setup->ironm)
|CSL_FMK(VENC_RGBCTL_DFLTR, setup->dfltr)
|CSL_FMK(VENC_RGBCTL_DFLTS, setup->dflts)
|CSL_FMK(VENC_RGBCTL_RGBEF, setup->rgbef)
|CSL_FMK(VENC_RGBCTL_RGBOF, setup->rgbof));
hVenc->regs->RGBCLP = (CSL_FMK(VENC_RGBCLP_UCLIP, setup->uclip)
|CSL_FMK(VENC_RGBCLP_OFST, setup->ofst));
return status;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -