csl_lcdconvaux.h

来自「dsp在音频处理中的运用」· C头文件 代码 · 共 706 行 · 第 1/2 页

H
706
字号
)
{
	CSL_FINST (hLcdconv->regs->CTRL, LCDCONV_CTRL_CLKEN, DISABLE);
}

/** ============================================================================
 *   @n@b CSL_lcdconvSetRLookUpTbl
 *
 *   @b Description
 *   @n Configures the Red look up table of the LCD data conversion module
 *
 *   @b Arguments
 *   @verbatim
        hHandle                     Handle to the LCD data conversion module 
                                    instance
        
        CSL_LcdconvRBLookUpTbl      Value to be configured
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  The look up table for red is configured with the passed values.  
 *
 *   @b  Modifies
 *   @n  LCD data conversion module Red look up table
 *
 *   @b  Example
 *   @verbatim
        CSL_LcdconvHandle     	hLcdconv;
        CSL_LcdconvRBLookUpTbl	RLookUpTbl;
        ...
        memset (RLookUpTbl.lcdconvRBLookUpTbl, 0x3f, SIZEOF_R_LOOK_UP_TABLE);
        CSL_lcdconvSetRLookUpTbl (hLcdconv, &RLookUpTbl);
        ...
     @endverbatim
 * ===========================================================================
 */

static inline
void CSL_lcdconvSetRLookUpTbl (
	CSL_LcdconvHandle   		hLcdconv,
	CSL_LcdconvRBLookUpTbl*		RLookUpTbl
)
{
	Uint8	index;
	
	/* set the LCD data conversion module R Look up table register file */
    for (index = 0; index < SIZE_OF_R_LOOKUPTBL; index++) {
    	CSL_FINS (hLcdconv->regs->R_LOOKUPTBL [index], 
    					LCDCONV_R_LOOKUPTBL_VALUES,
    					RLookUpTbl->lcdconvRBLookUpTbl [index]);
    }
}

/** ============================================================================
 *   @n@b CSL_lcdconvSetBLookUpTbl
 *
 *   @b Description
 *   @n Configures the Blue look up table of the LCD data conversion module
 *
 *   @b Arguments
 *   @verbatim
        hHandle                     Handle to the LCD data conversion module 
                                    instance
        
        CSL_LcdconvRBLookUpTbl      Value to be configured
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  The look up table for blue is configured with the passed values.  
 *
 *   @b  Modifies
 *   @n  LCD data conversion module blue look up table
 *
 *   @b  Example
 *   @verbatim
        CSL_LcdconvHandle     	hLcdconv;
        CSL_LcdconvRBLookUpTbl	BLookUpTbl;
        ...
        memset (BLookUpTbl.lcdconvRBLookUpTbl, 0x3f, SIZEOF_B_LOOK_UP_TABLE);
        CSL_lcdconvSetBLookUpTbl (hLcdconv, &BLookUpTbl);
        ...
     @endverbatim
 * ===========================================================================
 */

static inline
void CSL_lcdconvSetBLookUpTbl (
	CSL_LcdconvHandle   		hLcdconv,
	CSL_LcdconvRBLookUpTbl*		BLookUpTbl
)
{
	Uint8	index;
	
	/* set the LCD data conversion module B Look up table register file */
    for (index = 0; index < SIZE_OF_B_LOOKUPTBL; index++) {
    	CSL_FINS (hLcdconv->regs->B_LOOKUPTBL [index], 
    					LCDCONV_B_LOOKUPTBL_VALUES,
    					BLookUpTbl->lcdconvRBLookUpTbl [index]);
    }
}

/** ============================================================================
 *   @n@b CSL_lcdconvSetGLookUpTbl
 *
 *   @b Description
 *   @n Configures the Green look up table of the LCD data conversion module
 *
 *   @b Arguments
 *   @verbatim
        hHandle                     Handle to the LCD data conversion module 
                                    instance
        
        CSL_LcdconvGLookUpTbl       Value to be configured
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  The look up table for green is configured with the passed values.  
 *
 *   @b  Modifies
 *   @n  LCD data conversion module green look up table
 *
 *   @b  Example
 *   @verbatim
        CSL_LcdconvHandle     	hLcdconv;
        CSL_LcdconvGLookUpTbl	GLookUpTbl;
        ...
        memset (GLookUpTbl.lcdconvGLookUpTbl, 0x3f, SIZEOF_G_LOOK_UP_TABLE);
        CSL_lcdconvSetGLookUpTbl (hLcdconv, &GLookUpTbl);
        ...
     @endverbatim
 * ===========================================================================
 */

static inline
void CSL_lcdconvSetGLookUpTbl (
	CSL_LcdconvHandle   		hLcdconv,
	CSL_LcdconvGLookUpTbl*		GLookUpTbl
)
{
	Uint8	index;
	
	/* set the LCD data conversion module G Look up table register file */
    for (index = 0; index < SIZE_OF_G_LOOKUPTBL; index++) {
    	CSL_FINS (hLcdconv->regs->G_LOOKUPTBL [index], 
    					LCDCONV_G_LOOKUPTBL_VALUES,
    					GLookUpTbl->lcdconvGLookUpTbl [index]);
    }
}

/** ============================================================================
 *   @n@b CSL_lcdconvSetRLUTByIndex
 *
 *   @b Description
 *   @n Configures the Red look up table entry of the LCD data conversion module
 *		at the passed index.
 *
 *   @b Arguments
 *   @verbatim
        hHandle                     Handle to the LCD data conversion module 
                                    instance
        
        CSL_LcdconvLookUpTblEntry*  Pointer to the structure holding the value 
                                    and the pointer to be configured.
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  The red look up table entry at the passed index is configured with 
 * 		 the passed value.  
 *
 *   @b  Modifies
 *   @n  LCD data conversion module Red look up table
 *
 *   @b  Example
 *   @verbatim
        CSL_LcdconvHandle     		hLcdconv;
        CSL_LcdconvLookUpTblEntry	RLookUpTblEntry;
        ...
        RLookUpTblEntry.lcdconvLookUpTblIndex   = 1;
        RLookUpTblEntry.lcdconvLookUpTblVal     = 0x3f;
        
        CSL_lcdconvSetRLUTByIndex (hLcdconv, &RLookUpTblEntry);
        ...
     @endverbatim
 * ===========================================================================
 */

static inline
void CSL_lcdconvSetRLUTByIndex (
	CSL_LcdconvHandle   		hLcdconv,
	CSL_LcdconvLookUpTblEntry*	RLookUpTblEntry
)
{
	/* 
	 * set the LCD data conversion module R Look up table register at the 
	 * index passed 
	 */
   	CSL_FINS (
   		hLcdconv->regs->R_LOOKUPTBL [RLookUpTblEntry->lcdconvLookUpTblIndex], 
    	LCDCONV_R_LOOKUPTBL_VALUES,
    	RLookUpTblEntry->lcdconvLookUpTblVal);
}

/** ============================================================================
 *   @n@b CSL_lcdconvSetBLUTByIndex
 *
 *   @b Description
 *   @n Configures the Blue look up table entry of the LCD data conversion module
 *		at the passed index.
 *
 *   @b Arguments
 *   @verbatim
        hHandle                     Handle to the LCD data conversion module 
                                    instance
        
        CSL_LcdconvLookUpTblEntry*  Pointer to the structure holding the value 
                                    and the pointer to be configured.
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  The blue look up table entry at the passed index is configured with 
 * 		 the passed value.  
 *
 *   @b  Modifies
 *   @n  LCD data conversion module Blue look up table
 *
 *   @b  Example
 *   @verbatim
        CSL_LcdconvHandle     		hLcdconv;
        CSL_LcdconvLookUpTblEntry	BLookUpTblEntry;
        ...
        BLookUpTblEntry.lcdconvLookUpTblIndex   = 1;
        BLookUpTblEntry.lcdconvLookUpTblVal     = 0x3f;
        
        CSL_lcdconvSetBLUTByIndex (hLcdconv, &BLookUpTblEntry);
        ...
     @endverbatim
 * ===========================================================================
 */

static inline
void CSL_lcdconvSetBLUTByIndex (
	CSL_LcdconvHandle   		hLcdconv,
	CSL_LcdconvLookUpTblEntry*	BLookUpTblEntry
)
{
	/* 
	 * set the LCD data conversion module B Look up table register at the 
	 * index passed 
	 */
	CSL_FINS (
		hLcdconv->regs->B_LOOKUPTBL [BLookUpTblEntry->lcdconvLookUpTblIndex], 
 		LCDCONV_B_LOOKUPTBL_VALUES,
   		BLookUpTblEntry->lcdconvLookUpTblVal);
}

/** ============================================================================
 *   @n@b CSL_lcdconvSetGLUTByIndex
 *
 *   @b Description
 *   @n Configures the Green look up table entry of the LCD data conversion module
 *		at the passed index.
 *
 *   @b Arguments
 *   @verbatim
        hHandle                     Handle to the LCD data conversion module 
                                    instance
        
        CSL_LcdconvLookUpTblEntry*  Pointer to the structure holding the value 
                                    and the pointer to be configured.
     @endverbatim
 *
 *   <b> Return Value </b> 
 *       None 
 *
 *
 *   <b> Pre Condition </b>
 *   @n  None
 *
 *   <b> Post Condition </b>
 *   @n  The green look up table entry at the passed index is configured with 
 * 		 the passed value.  
 *
 *   @b  Modifies
 *   @n  LCD data conversion module Green look up table
 *
 *   @b  Example
 *   @verbatim
        CSL_LcdconvHandle     		hLcdconv;
        CSL_LcdconvLookUpTblEntry	GLookUpTblEntry;
        ...
        GLookUpTblEntry.lcdconvLookUpTblIndex   = 1;
        GLookUpTblEntry.lcdconvLookUpTblVal     = 0x3f;
        
        CSL_lcdconvSetGLUTByIndex (hLcdconv, &GLookUpTblEntry);
        ...
     @endverbatim
 * ===========================================================================
 */

static inline
void CSL_lcdconvSetGLUTByIndex (
	CSL_LcdconvHandle   		hLcdconv,
	CSL_LcdconvLookUpTblEntry*	GLookUpTblEntry
)
{
	/* 
	 * set the LCD data conversion module G Look up table register at the 
	 * index passed 
	 */
   	CSL_FINS (
   		hLcdconv->regs->G_LOOKUPTBL [GLookUpTblEntry->lcdconvLookUpTblIndex], 
    	LCDCONV_G_LOOKUPTBL_VALUES,
    	GLookUpTblEntry->lcdconvLookUpTblVal);
}

#ifdef __cplusplus
}
#endif

#endif /* _CSL_LCDCONVAUX_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?