Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DMBasicGUI DMSupport
QSPIBitmap.h
00001 #ifndef QSPIBITMAP_H 00002 #define QSPIBITMAP_H 00003 00004 #include "mbed.h" 00005 #include "DMBoard.h" 00006 00007 #include "GuiLib.h" 00008 #include "GuiDisplay.h" 00009 00010 #include "QSPIFileSystem.h" 00011 00012 class QSPIBitmap 00013 { 00014 public: 00015 QSPIBitmap(); 00016 00017 QSPIBitmap(char* bitmapName); 00018 00019 ~QSPIBitmap(); 00020 00021 void ShowAt(GuiConst_INT16S X, GuiConst_INT16S Y, GuiConst_INT32S transparentColour); 00022 void ShowAreaAt(GuiConst_INT16S X, GuiConst_INT16S Y, GuiConst_INT16S AX1, GuiConst_INT16S AY1, GuiConst_INT16S AX2, GuiConst_INT16S AY2, GuiConst_INT32S transparentColour); 00023 00024 bool BitmapLoaded(void) { return bitmapLoaded; } 00025 00026 private: 00027 char name[200]; 00028 00029 int size; 00030 int debugVar1; 00031 00032 GuiConst_INT8U* data; 00033 // GuiConst_INT8U data[10000]; 00034 00035 bool ReadBitmapSizeFile(void); 00036 bool ReadBitmapDataFile(void); 00037 bool GetBitmapFromQSPIDrive(void); 00038 bool bitmapLoaded; 00039 }; 00040 00041 00042 class QSPIBitmaps 00043 { 00044 public: 00045 QSPIBitmaps(); 00046 00047 void SetupArray(void); 00048 00049 void ClearArray(void); 00050 00051 void DisplayAllHomePageBitmaps(void); 00052 00053 void DisplayColumnComponentBitmap(void); 00054 void DisplayDetectorComponentBitmap(void); 00055 void DisplayInjectorComponentBitmap(void); 00056 void DisplayGasComponentBitmap(void); 00057 00058 void DisplayBootScreenBitmap(void); 00059 void DisplayBlankBackgroundBitmap(void); 00060 00061 void DisplayUpArrowBitmap(GuiConst_INT16S X, GuiConst_INT16S Y); 00062 void DisplayDownArrowBitmap(GuiConst_INT16S X, GuiConst_INT16S Y); 00063 00064 bool AllBitmapsLoaded(void); 00065 00066 private: 00067 bool arraySetUp; 00068 00069 enum QSPIBitmapIndices { HOME_COLUMN_BITMAP = 0, 00070 HOME_DETECTOR_BITMAP = 1, 00071 HOME_INJECTOR_BITMAP = 2, 00072 HOME_GAS_BITMAP = 3, 00073 COMPONENT_COLUMN_BITMAP = 4, 00074 COMPONENT_DETECTOR_BITMAP = 5, 00075 COMPONENT_INJECTOR_BITMAP = 6, 00076 COMPONENT_GAS_BITMAP = 7, 00077 BOOT_SCREEN_BITMAP = 8, 00078 BLANK_BACKGROUND_BITMAP = 9, 00079 UP_ARROW_BITMAP = 10, 00080 DOWN_ARROW_BITMAP = 11, 00081 QSPIBITMAP_COUNT = 12 }; // 'QSPIBITMAP_COUNT' must always be last - it tells the class how large its array should be 00082 00083 QSPIBitmap* qspibmArray[QSPIBITMAP_COUNT]; 00084 00085 void DisplayBitmapAtIfLoaded(int bitmapIndex, GuiConst_INT16S X, GuiConst_INT16S Y, GuiConst_INT32S transparentColour); 00086 }; 00087 00088 #endif //QSPIBITMAP_H
Generated on Tue Jul 19 2022 00:31:07 by
1.7.2