📄 _csl_prevsethmed.c
字号:
/** @file _csl_prevSetHMed.c
*
* @brief File for functional layer of CSL API @a CSL_prevSetHMed()
*
* Description
* - The @a CSL_prevSetHMed() function definition & it's associated
* functions
*
* @date 18th October, 2004
* @author Vignesh LA.
*/
#include <csl_prev_aux.h>
#pragma CODE_SECTION (CSL_prevSetHMed, ".text:csl_section:prev");
/** @brief Configures the PREV using the values passed in through the
* Mode structure.
*/
CSL_Status CSL_prevSetHMed(
/** Pointer to the object that holds reference to the
* instance of PREV requested after the call
*/
CSL_PrevHandle hPrev,
/** Pointer to Horizontal median filter data used to set it up.
*/
CSL_PrevHMedData *data
){
CSL_PrevRegsOvly prevRegs = hPrev->regs;
if(data == NULL) return (CSL_ESYS_INVPARAMS);
prevRegs->HMED = CSL_FMK(PREV_HMED_ODDDIST, data->oddDistHMed) |
CSL_FMK(PREV_HMED_EVENDIST, data->evenDistHMed) |
CSL_FMK(PREV_HMED_THRESHOLD, data->thresHMed);
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -