📄 _csl_reszsetslice.c
字号:
/** @file _csl_reszSetSlice.c
*
* @brief File for functional layer of CSL API @a CSL_reszSetSlice()
*
* Description
* - The @a CSL_reszSetSlice() function definition & it's associated
* functions
*
* @date 26th Aug, 2005
* @author Jesse Villarreal.
*/
#include <csl_resz_aux.h>
#pragma CODE_SECTION (CSL_reszSetSlice, ".text:csl_section:resz");
/** @brief Sets the slice information in the registers
*
*/
CSL_Status CSL_reszSetSlice(
/** Pointer to the object that holds reference to the
* instance of RESZ requested after the call
*/
CSL_ReszHandle hResz,
/** Pointer to structure holding the data
*/
CSL_ReszSliceInfo *data
){
CSL_ReszRegsOvly reszRegs = hResz->regs;
if(data == NULL) return (CSL_ESYS_INVPARAMS);
CSL_FINS(reszRegs->IN_SIZE,RESZ_IN_SIZE_HORZ,data->inWidth);
CSL_FINS(reszRegs->OUT_SIZE,RESZ_OUT_SIZE_HORZ,data->outWidth);
CSL_FINS(reszRegs->RSZ_CNT,RESZ_RSZ_CNT_HSTPH,data->stPhase);
CSL_FINS(reszRegs->IN_START,RESZ_IN_START_HORZ_ST,data->stPix);
CSL_FINS(reszRegs->SDR_INADD,RESZ_SDR_INADD_SDR_INADD,(Uint32)data->inAddr);
CSL_FINS(reszRegs->SDR_OUTADD,RESZ_SDR_OUTADD_SDR_OUTADD,(Uint32)data->outAddr);
// if(data->width%2 || // Output width must be even
// data->width>1280) // Output width must not be greater than 1280
// return (CSL_ESYS_INVPARAMS);
// else
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -