📄 csl_vencepsonlcdsetup.c
字号:
/** @file csl_vencEpsonLcdSetup.c
*
* @brief File for functional layer of CSL API @a CSL_vencEpsonLcdSetup()
*
* Description
* - The @a CSL_vencEpsonLcdSetup() 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_vencEpsonLcdSetup, ".text:csl_section:venc");
/** @brief Configures the VENC using the values passed in through the
* setup structure.
*/
CSL_Status CSL_vencEpsonLcdSetup(
/** 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_VencEpsonLcdConfig *setup
)
{
CSL_Status status = CSL_SOK;
/* Digital Video mode Epson LCD specific settings */
hVenc->regs->EPSON_LCDCTL = (CSL_FMK(VENC_EPSON_LCDCTL_YSCLS, setup->yscls)
|CSL_FMK(VENC_EPSON_LCDCTL_XINHS, setup->xinhs)
|CSL_FMK(VENC_EPSON_LCDCTL_XINHL, setup->xinhl)
|CSL_FMK(VENC_EPSON_LCDCTL_SYSFID, setup->sysfid)
|CSL_FMK(VENC_EPSON_LCDCTL_SYSSE, setup->sysse)
|CSL_FMK(VENC_EPSON_LCDCTL_GCPS, setup->gcps));
return status;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -