📄 dvb_msg.h
字号:
/**************************************************************************
(C)Copyright Cheertek Inc. 2002-2004,
D700, all right reserved.
Product : STB Firmware
****************************************************************************/
#ifndef __DVB_MSG_H
#define __DVB_MSG_H
/*! \file
* This module provides message output API.
*
*/
#include "dvb_type.h"
#ifdef MSG_RO_EXAMPLE
#include "ct_sys.h"
#include "ct_flash.h"
#endif //#ifdef MSG_RO_EXAMPLE
//These mask can determine DVB_Msg() to print message or not.
//Customer can add their own mask.
//The maximum number of mask is 32 and the maximum value is 0x80000000.
#define MSG_4_AV 0x00000001
#define MSG_4_DB 0x00000002
#define MSG_4_NIM 0x00000004
#define MSG_4_E2P 0x00000008
#define MSG_4_IIC 0x00000010
#define MSG_4_TUNER 0x00000020
#define MSG_4_OSD 0x00000040
#define MSG_4_SCAN 0x00000080
#define MSG_4_GENERAL 0x00000100
#define MSG_4_AP 0x00000200
#define MSG_4_EIT_DB 0x00000400
#define MSG_4_EVENT_LOCK 0x00000800
#define MSG_4_FP 0x00001000
#define MSG_4_TELETEXT 0x00002000
#define MSG_4_SUBTITLE 0x00004000
#define MSG_4_FLASH 0x00008000
#define MSG_4_FILTER 0x00010000
#define MSG_4_SYS 0x00020000
#define MSG_4_Xmodem 0x00040000
#define MSG_4_UPD 0x00080000
#define MSG_4_AVIO 0x00100000
#define MSG_4_CX 0x00200000
#define MSG_4_ALL 0xFFFFFFFF
/*
#define MSG_4_CUSTOMER_DEFINE_1 0x00000800
#define MSG_4_CUSTOMER_DEFINE_2 0x00001000
.
.
.
.
#define MSG_4_CUSTOMER_DEFINE_N 0x80000000
*/
#define __FFLL__ __FILE__,(int)__LINE__
void DVB_Msg(u32 u32Mask, char *format, ...);
/*! \fn void DVB_Msg(u32 u32Mask, char *format, ...)
\brief Print message depend on u32MsgMsk. It's usage is like printf
\param u32 u32Mask, using this variable to decide printing message or not.
\param Other parameters, the same as printf
*/
void DVB_MsgSetMask(u32 u32Mask);
/*! \fn void DVB_MsgSetMask(u32 u32Mask)
\brief set print mask, determine what DVB_Msg can print.
\param u32 u32Mask(input), set the mask that you want to print
*/
void DVB_MsgClrMask(u32 u32Mask);
/*! \fn void DVB_MsgClrMask(u32 u32Mask)
\brief clear print mask
\param u32 u32Mask(input), clear the mask that you don't want to print
*/
void DVB_MsgSetDisplayMessage(bool8 b8Enable);
/*! \fn void DVB_MsgSetDisplayMessage(bool8 b8Enable)
\brief Enable or disable message displaying in UART.
\param bool8 b8Enable(input), TRUE: enable message, FALSE: disable message
*/
bool8 DVB_MsgGetDisplayMessageState(void);
/*! \fn bool8 DVB_MsgGetDisplayMessageState(void);
\brief Get the state of message displaying
\return TRUE: enable message, FALSE: disable message
*/
#ifdef MSG_RO_EXAMPLE
bool8 DVB_MsgCodeUnzip(u8* pu8SrcPtr, u8* pu8DstPtr);
/*!\fn bool8 DVB_MsgCodeUnzip(u8* pu8SrcPtr, u8* pu8DstPtr)
\brief message unzip function.
\param pu8SrcPtr (u8*) : Source address
\param pu8DstPtr (u8*) : Target address
\return TRUE: unzipping successful, FALSE: uzipping failed
*/
#endif //#ifdef MSG_RO_EXAMPLE
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -