📄 _csl_prevsetyc.c
字号:
/** @file _csl_prevSetYC.c
*
* @brief File for functional layer of CSL API @a CSL_prevSetYC()
*
* Description
* - The @a CSL_prevSetYC() function definition & it's associated
* functions
*
* @date 18th October, 2004
* @author Vignesh LA.
*/
#include <csl_prev_aux.h>
#pragma CODE_SECTION (CSL_prevSetYC, ".text:csl_section:prev");
/** @brief Configures the YC using the values passed.
*
*/
CSL_Status CSL_prevSetYC(
/** Pointer to the object that holds reference to the
* instance of PREV requested after the call
*/
CSL_PrevHandle hPrev,
/** Pointet to the object that holds reference to the
* structure holding Y and C values
*/
CSL_PrevYCData *data
){
if(data == NULL) return (CSL_ESYS_INVPARAMS);
hPrev->regs->SETUP_YC = CSL_FMK(PREV_SETUP_YC_MAXY, data->maxY)|
CSL_FMK(PREV_SETUP_YC_MINY, data->minY)|
CSL_FMK(PREV_SETUP_YC_MAXC, data->maxC)|
CSL_FMK(PREV_SETUP_YC_MINC, data->minC);
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -