123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- #ifndef __MW_LOGO_H__
- #define __MW_LOGO_H__
- #include <types.h>
- #define NONE "\033[m"
- #define RED "\033[0;41;32m" //error
- #define LIGHT_RED "\033[1;41m"
- #define GREEN "\033[0;42;33m" //ci send
- #define LIGHT_GREEN "\033[1;42m"
- #define BLUE "\033[0;44;35m" //ci notify
- #define LIGHT_BLUE "\033[1;44m"
- #define DARY_GRAY "\033[1;40m"
- #define CYAN "\033[0;46m" //info
- #define LIGHT_CYAN "\033[1;46m"
- #define PURPLE "\033[0;45m" //test
- #define LIGHT_PURPLE "\033[1;45m"
- #define BROWN "\033[0;43m"
- #define YELLOW "\033[1;43m" //warning
- #define LIGHT_GRAY "\033[0;47m"
- #define WHITE "\033[1;47m"
- enum Logo_align_t {
- Logo_Origin_Align =0, /*!< picture aligned the original point*/
- Logo_Center_Align =1, /*!< picture aligned the Center*/
- //We don't support Logo_Center_Align , jim.hsu 2012/07/04
- };
- enum Logo_Status_t {
- Logo_Start_Up= 1,/*!< the logo is for start up.*/
- Logo_Start_Up_AlignOrigin,/*!< the logo is for start up align original.*/
- Logo_Pic_Show,/*!< the showing logo only.*/
- Logo_Change_Pic_Show,/*!< changing the showing logo*/
- Logo_BG_Show,/*!< showing the background*/
- Logo_Change_BG_Show,/*!<change the background*/
- Logo_UI_Pic_Show/*!< the UI use only*/
- };
- #ifdef CONFIG_SUPPORT_PANNEL_PHOTO_TEST
- typedef struct
- {
- INT32 PhotoStart;
- INT32 PhotoRealSize;
- char *PhotoName;
- }t_PhotoInfo;
- #endif
- #define BG_Pic_Show(x) LOGO_PIC_Show(Logo_BG_Show,(UINT32)x,0)
- #define BG_Pic_Close() LOGO_PIC_CLOSE()
- int LOGO_PIC_CLOSE();
- int LOGO_PIC_Show(enum Logo_Status_t,UINT32 params,UINT32 param2);
- Boolean Mid_LOGO_PIC_IsShowLOGO(void);
- #ifdef CONFIG_SUPPORT_PANNEL_PHOTO_TEST
- typedef enum _Phototype
- {
- PhotoCmdtype_FromFlash,
- PhotoCmdtype_FromOther,
- PhotoCmdtype_MAX,
- }PhotoCmdtype_e;
- //INT32 Mid_PannelPhoto_ParseCmd(INT8 *Cmd);
- PhotoCmdtype_e Mid_PannelPhoto_CheckCmdType(INT8 *Cmd);
- Boolean Mid_PannelPhoto_IsPhotoPlayAnable(void);
- /*for flash photo begin*/
- PhotoCmdtype_e Mid_PannelPhoto_SendCmd(char *Cmd, int CmdLen);
- INT8* Mid_PannelPhoto_ReceiveCmd(void);
- INT32 Mid_PannelPhoto_ShowFlashPhoto(INT8 * Cmd);
- void Mid_PannelPhoto_ResetCmd(void);
- INT32 Mid_PannelPhoto_ClosePhoto(void);
- /*for flash photo begin*/
- INT32 Mid_PannelPhoto_ShowOther(INT8 * Cmd);
- #endif
- /******************************************************************************/
- /**
- * \fn int LOGO_Init(void)
- *
- * \brief init ShowLogo instance
- *
- * Create Queue...Semaphore for MultiTasking calling Support (Return Fail if Module Already Inited)
- *
- * \param void
- *
- * \return \e MW_LOGO_SUCCESS if successful
- * \e MW_LOGO_CREATE_SEMAPHORE_FAIL if successful
- * \e MW_LOGO_ALREADY_INITIALIZED ShowLogo has been initialized.
- ******************************************************************************/
- #endif
|