📄 _csl_vfocgetaccumval.c
字号:
/** @file _csl_vfocGetAccumVal.c
*
* @brief File for functional layer of CSL API @a CSL_vfocGetAccumVal()
*
* Description
* - The @a CSL_vfocGetAccumVal() function definition & it's associated
* functions
*
* @date 31st May, 2005
* @author Jesse Villarreal
*/
#include <csl_vfoc_aux.h>
#pragma CODE_SECTION (CSL_vfocGetAccumVal, ".text:csl_section:vfoc");
/** @brief Gets the accumulator values
*
*/
CSL_Status CSL_vfocGetAccumVal(
/** Pointer to the object that holds reference to the
* instance of VFOC requested after the call
*/
CSL_VfocHandle hVfoc,
/** Gets the accumulator values
*/
CSL_VfocWinAccVal *response
){
CSL_VfocRegsOvly vfocRegs = hVfoc->regs;
CSL_Status status=CSL_SOK;
if(response == NULL) return (CSL_ESYS_INVPARAMS);
response->rlow = CSL_FEXT(vfocRegs->WACCUM[response->winNum].ACCL_R,VFOC_ACCL_R_ACCL_R);
response->rhigh = CSL_FEXT(vfocRegs->WACCUM[response->winNum].ACCU_R,VFOC_ACCU_R_ACCU_R);
response->glow = CSL_FEXT(vfocRegs->WACCUM[response->winNum].ACCL_G,VFOC_ACCL_G_ACCL_G);
response->ghigh = CSL_FEXT(vfocRegs->WACCUM[response->winNum].ACCU_G,VFOC_ACCU_G_ACCU_G);
response->blow = CSL_FEXT(vfocRegs->WACCUM[response->winNum].ACCL_B,VFOC_ACCL_B_ACCL_B);
response->bhigh = CSL_FEXT(vfocRegs->WACCUM[response->winNum].ACCU_B,VFOC_ACCU_B_ACCU_B);
return status;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -