mw_logo.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #ifndef __MW_LOGO_H__
  2. #define __MW_LOGO_H__
  3. #include <types.h>
  4. #define NONE "\033[m"
  5. #define RED "\033[0;41;32m" //error
  6. #define LIGHT_RED "\033[1;41m"
  7. #define GREEN "\033[0;42;33m" //ci send
  8. #define LIGHT_GREEN "\033[1;42m"
  9. #define BLUE "\033[0;44;35m" //ci notify
  10. #define LIGHT_BLUE "\033[1;44m"
  11. #define DARY_GRAY "\033[1;40m"
  12. #define CYAN "\033[0;46m" //info
  13. #define LIGHT_CYAN "\033[1;46m"
  14. #define PURPLE "\033[0;45m" //test
  15. #define LIGHT_PURPLE "\033[1;45m"
  16. #define BROWN "\033[0;43m"
  17. #define YELLOW "\033[1;43m" //warning
  18. #define LIGHT_GRAY "\033[0;47m"
  19. #define WHITE "\033[1;47m"
  20. enum Logo_align_t {
  21. Logo_Origin_Align =0, /*!< picture aligned the original point*/
  22. Logo_Center_Align =1, /*!< picture aligned the Center*/
  23. //We don't support Logo_Center_Align , jim.hsu 2012/07/04
  24. };
  25. enum Logo_Status_t {
  26. Logo_Start_Up= 1,/*!< the logo is for start up.*/
  27. Logo_Start_Up_AlignOrigin,/*!< the logo is for start up align original.*/
  28. Logo_Pic_Show,/*!< the showing logo only.*/
  29. Logo_Change_Pic_Show,/*!< changing the showing logo*/
  30. Logo_BG_Show,/*!< showing the background*/
  31. Logo_Change_BG_Show,/*!<change the background*/
  32. Logo_UI_Pic_Show/*!< the UI use only*/
  33. };
  34. #ifdef CONFIG_SUPPORT_PANNEL_PHOTO_TEST
  35. typedef struct
  36. {
  37. INT32 PhotoStart;
  38. INT32 PhotoRealSize;
  39. char *PhotoName;
  40. }t_PhotoInfo;
  41. #endif
  42. #define BG_Pic_Show(x) LOGO_PIC_Show(Logo_BG_Show,(UINT32)x,0)
  43. #define BG_Pic_Close() LOGO_PIC_CLOSE()
  44. int LOGO_PIC_CLOSE();
  45. int LOGO_PIC_Show(enum Logo_Status_t,UINT32 params,UINT32 param2);
  46. Boolean Mid_LOGO_PIC_IsShowLOGO(void);
  47. #ifdef CONFIG_SUPPORT_PANNEL_PHOTO_TEST
  48. typedef enum _Phototype
  49. {
  50. PhotoCmdtype_FromFlash,
  51. PhotoCmdtype_FromOther,
  52. PhotoCmdtype_MAX,
  53. }PhotoCmdtype_e;
  54. //INT32 Mid_PannelPhoto_ParseCmd(INT8 *Cmd);
  55. PhotoCmdtype_e Mid_PannelPhoto_CheckCmdType(INT8 *Cmd);
  56. Boolean Mid_PannelPhoto_IsPhotoPlayAnable(void);
  57. /*for flash photo begin*/
  58. PhotoCmdtype_e Mid_PannelPhoto_SendCmd(char *Cmd, int CmdLen);
  59. INT8* Mid_PannelPhoto_ReceiveCmd(void);
  60. INT32 Mid_PannelPhoto_ShowFlashPhoto(INT8 * Cmd);
  61. void Mid_PannelPhoto_ResetCmd(void);
  62. INT32 Mid_PannelPhoto_ClosePhoto(void);
  63. /*for flash photo begin*/
  64. INT32 Mid_PannelPhoto_ShowOther(INT8 * Cmd);
  65. #endif
  66. /******************************************************************************/
  67. /**
  68. * \fn int LOGO_Init(void)
  69. *
  70. * \brief init ShowLogo instance
  71. *
  72. * Create Queue...Semaphore for MultiTasking calling Support (Return Fail if Module Already Inited)
  73. *
  74. * \param void
  75. *
  76. * \return \e MW_LOGO_SUCCESS if successful
  77. * \e MW_LOGO_CREATE_SEMAPHORE_FAIL if successful
  78. * \e MW_LOGO_ALREADY_INITIALIZED ShowLogo has been initialized.
  79. ******************************************************************************/
  80. #endif