📄 csl_osdgethwstatus.c
字号:
/** @file csl_osdGetHwStatus.c
*
* @brief File for functional layer of CSL API @a CSL_osdGetHwStatus()
*
* Description
* - The @a CSL_osdGetHwStatus() function definition & it's associated
* functions
*
* Modification 1
* - Modified on: 1/10/2004
* - Reason: created the sources
*
* @date 7th Oct, 2004
* @author Sandeep Tiwari.
*/
#include <csl_osd.h>
#include <_csl_osd_aux.h>
#pragma CODE_SECTION (CSL_osdGetHwStatus,".text:csl_section:osd")
/** @brief Gets the status of the different operations.
*/
CSL_Status CSL_osdGetHwStatus(
/** Pointer to the object that holds reference to the
* instance of OSD requested after the call
*/
CSL_OsdHandle hOsd,
/** The query to this API which indicates the status
* to be returned
*/
CSL_OsdHwStatusQuery query,
/** Placeholder to return the status. @a void* casted */
void *response
)
{
CSL_Status status=CSL_SOK;
switch(query){
/** Get OSD window data address */
case CSL_OSD_QUERY_WIN_ADDR:
_CSL_osdGetWinAddr(hOsd, (CSL_GetWinAddr *) response);
break;
/** Get OSD video window 0, ping pong buffer address */
case CSL_OSD_QUERY_PINGPONG_BUFFER_ADDR:
*(Uint32 *)response = CSL_FEXT(hOsd->regs->PPVWIN0ADR,OSD_PPVWIN0ADR_PPVWIN0ADR);
break;
/** Get the busy status of the CLUT */
case CSL_OSD_QUERY_CLUT_BUSY:
*(Uint16*)response = CSL_FEXT(hOsd->regs->MISCCTL, OSD_MISCCTL_CPBSY);
break;
default:
status = CSL_ESYS_INVQUERY;
break;
}
return status;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -