已阅读5页,还剩71页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
MMI MTK2007 06 Agenda d end MMIArchitechureApplicationLayer应用层WGUI WarpGUI GUI GraphicalUserInterface InputEventGDI GraphicsDeviceInterface LocalDataMakeEnvironmentandProceduresGeneralintroofMoDISToolintroductionE serviceReleasedocument 释放文件 MMIArchitechure KeypadEvent TouchPanelEvent ApplicationLayer ApplicationsScreenHistory Applications IdleScreen MainMenu AudioPlayer PhoneBook Fun Games Setting AVZone VideoPlayer Messages Services Shortcuts VideoRecorder CallHistory Multimedia UserProfiles Camera Organizer Extra FileManager PIM Entertainment System Screen voidEntryScrSettingMenu void U16nStrItemList MAX SUB MENUS Storesthestringsidofsubmenusreturned U16nNumofItem Storesnoofchildreninthesubmenu U8 guiBuffer Bufferholdinghistorydata U16SettingsSubmenuImageList MAX SUB MENUS 1Screenhistorymanager EntryNewScreen SCR9000 SETTINGS NULL EntryScrSettingMenu NULL 2Getcurrentscreentoguibufferforhistorypurposes guiBuffer GetCurrGuiBuffer SCR9000 SETTINGS 3 Retrievenoofchildofmenuitemtobedisplayed nNumofItem GetNumOfChild Ext MAIN MENU SETTINGS NO SIM MENUID 4 Retrievestringidsinsequenceofgivenmenuitemtobedisplayed GetSequenceStringIds Ext MAIN MENU SETTINGS NO SIM MENUID nStrItemList GetSequenceImageIds Ext MAIN MENU SETTINGS NO SIM MENUID SettingsSubmenuImageList 5Setcurrentparentid SetParentHandler MAIN MENU SETTINGS NO SIM MENUID 6Registerhighlighthandlertobecalledinmenuscreen RegisterHighlightHandler ExecuteCurrHiliteHandler 7DisplayCategory15Screen ShowCategory15Screen STR SCR9000 SETTINGS CAPTION IMG SCR SETTING CAPTION STR GLOBAL OK IMG GLOBAL OK STR GLOBAL BACK IMG GLOBAL BACK nNumofItem nStrItemList SettingsSubmenuImageList LIST MENU 0 guiBuffer 8 Registerfunctionwithrightsoftkey SetRightSoftkeyFunction GoBackHistory KEY EVENT UP SettingApp ScreenSettingMainMenu ScreenPhoneSetup ScreenNetworkSetup ScreenDateAndTime Screen History Entrynewscreenfunction EntryNewScreen ClearAllInterruptEventHandlerAddHistory EntryFunctionScreenIDGuiBufferOldExitFunction ClearAllKeyHandler DrawscreenRegisternewkeyhandler Gobackhistoryfunction EntryFunctiondecrement Deletetopscreen delete SetRightSoftkeyFunction GoBackHistory KEY EVENT UP WGUI CategoryScreenControlsDrawMangerTouchScreen WGUI CategoryScreen voidShowCategory15Screen U16title U16title icon U16left softkey U16left softkey icon U16right softkey U16right softkey icon S32number of items U16 list of items U16 list of icons S32flags S32highlighted item U8 history buffer dm data structdm data 1 InitCategoryScreenData 2 InitDrawManagerData ExitCategoryFunction ExitCategory15Screen RedrawCategoryFunction dm redraw category screen GetCategoryHistory dm get category history GetCategoryHistorySize dm get category history size dm data s32ScrId S32 GetActiveScreenId dm data s32CatId MMI CATEGORY15 LIST ID dm data s32flags 0 dm setup data CategoryScreenList ShowCategory1Screen ShowCategory2Screen ShowCategoryXXXScreen ShowCategory15Screen constU8list menu category 4 DM BASE LAYER START DM SCR BG DM BASE CONTROL SET1 DM LIST1 constS16common coordinate set DM FULL SCREEN COORDINATE FLAG DM CONTENT COORDINATE DM CENTRE ALIGN X DM CENTER ALIGN Y MMI CATEGORY15 LIST ID U8 list menu category S16 common coordinate set NULL WGUI Controls CategorycomponentDM CIRCULAR MENU1 DM LIST1 DM ROTATE MENU1 DM INLINE FIXED LIST1 DM DYNAMIC LIST1 DM ASYNCDYNAMIC LIST1 DM MATRIX MENU1 DM SINGLELINE INPUTBOX1 DM MULTILINE INPUTBOX1 DM EMS INPUTBOX1 DM DIALER INPUT BOX1 DM TAB CONTROL DM HORIZONTAL TAB BAR DM DATE TIME DISPLAY DM TITLE1 DM STATUS BAR1 DM LSK DM RSK DM CSK DM BUTTON DM CALENDAR DM SLIDE CONTROL DM NWAY STOPWATCH DM TYPICAL STOPWATCH CategoryPrimitiveDM STRING DM IMAGE DM LINE DM RECTANGLE DM BACK FILL AREA CategorycontrolsetDM BASE CONTROL SET1 DM BASE CONTROL SET2 DM BUTTON BAR1 OthertypeDM BASE LAYER STARTDM BASE LAYER END DM NEW LAYER START DM NEW LAYER END DM ALIGNED AREA START DM ALIGNED AREA END DM SCR BG DM WALL PAPERDM POPUP BACKGROUND DM CATEGORY CONTROLLED AREA DM TITLE1DM STATUS BAR1DM BUTTON BAR1DM SCR BG DM STATUS BAR1DM BUTTON BAR1DM SCR BG WGUI DrawManager Settings CategoryScreenX DrawManager Phonebook ApplicationLayer CategoryLayer UILayer ResourcesLayer CoordinateSet ControlSet ScreenId1 ScreenId CategoryId ScreenIdCategoryId CategoryId ScreenId3 ScreenId2 control coordinate WGUI TouchScreen Drawmanagerresources CustCoordinates c CoordinateSet ControlSet ScreenIdCategoryId CategoryId control coordinate PEN DOWNPEN UPPEN MOVEPEN LONGTAPPEN REPEATSTROKE MOVESTROKE DOWNSTROKE UP TouchEventManager WGUITouchEventManager WGUIControl Component Event Point WGUI WGUITouchEventManager wgui touch screen c TouchEventManager TouchScreen c DriverEventManager touch panel c GUI ControlsMenuMenuItemButtonProgress SlideScrollbarStringFilledareaOtherTheme GUI Controls1 Background ScrollBar STYLE1 STYLE2 STYLE3 GUI Controls2 GUI Controls3 Statusbar0 Titlebar Informationbar Virtualkeyboard Buttonbar Scrollingtext Popupdescription Leftsoftkey Arrowindication Statusbar2 SubLCD Statusbar1 Rightsoftkey Shortcut GUI String stFontAttributemy font 0 bold 0 italic 0 underline 2 size 100 color 2 type 0 oblique 0 smallCaps S32line height 30 Setattributegui set text color UI COLOR RED gui set text border color UI COLOR GREEN gui set font GUI Filledarea colorcolors 0 0 0 100 0 255 255 100 0 255 0 100 bytepts 50 50 gradient colorgc colors pts 3 UI filled areaf NULL flag get image IMG GLOBAL SAVE bitmap GUI Theme InputEvent MessageKeypadTouchPanelMenuEvent TouchPanelHandlers KeypadHandlers ProtocolEventHandlers InterruptEventHandlers CircularQueue MenuHandlers MenuEvent ExternalQueue RemoteInput BT Internet LocalInput TouchPanelInput KeypadInput Camera KeypadEvent TouchPanelEvent OtherModule RR MED Wap L4 Input Message OtherTask Priority Interruptentryevent Protocolevent Interruptpostevent Input Keypad KeyPadInput Input TouchPanel TouchPanelInput Input MenuEvent GDI LCD LayerLayerlist BltCoordinate ClipGraphicPixel lineRectImageStaticImageAnimation GDI Layerlist Blt Layerlist Position 0 0Size 176 220Sourcekey FALSEOpacity FALSE Position 18 50Size 140 100Sourcekey FALSEOpacity 128 0 255 Position 20 70Size 200 40Sourcekey 0 0 255 Opacity FALSE LCD Screen gdi layer blt ext gdi handlehandle0 gdi handlehandle1 gdi handlehandle2 gdi handlehandle3 GDI Coordinate Clip Imageposition 2020 Clip 30 30 130 60 Textposition 1070 Clip 20 50 120 80 Layer Screen GDI Pixel line colorc 255 0 0 100 U32line color DRV RGB TO HW 255 0 0 U8bits 10 1 1 1 1 0 0 0 1 0 0 for x1 20 x1 160 x1 3 gui putpixel x1 10 c gui draw vertical line 20 160 160 c gui draw horizontal line 20 160 20 c gui line 20 20 160 160 c gui wline 160 22 20 160 c 5 gdi draw line 30 100 80 160 line color gdi draw line 20 110 90 150 line color gdi draw line style 80 60 120 60 line color 10 bits gdi draw line style 120 60 120 100 line color 10 bits GDI Rect gdi colorrect color DRV RGB TO HW 255 0 0 gdi colorframe color DRV RGB TO HW 0 255 0 gdi colorshadow color DRV RGB TO HW 0 0 255 gdi colorrect color start DRV RGB TO HW 0 255 255 gdi colorrect color end DRV RGB TO HW 255 0 255 gdi draw rect 10 10 160 30 frame color gdi draw solid rect 10 35 160 55 rect color gdi draw greyscale rect 10 60 160 80 20 gdi draw frame rect 10 85 160 105 rect color frame color 3 gdi draw round rect 10 110 160 130 rect color frame color 2 gdi draw button rect 10 135 160 155 rect color frame color 3 4 TRUE gdi draw shadow rect 10 160 160 180 rect color frame color 2 shadow color 4 gdi draw gradient rect 10 190 160 210 rect color start rect color end frame color 3 0 GDI Image static U16image id MY IMAGE ID UI image typeimage ptr UI image type GetImage image id UI string typeimage name L C my image c S32offset x 10 offset y 10 resized width 120 resized height 150 S32n frames 0 single frame 0 start frame 2 S32width 0 height 0 U16image type GDI IMAGE TYPE INVALID gdi handleani handle NULL gdi image draw offset x offset y image ptr gdi image draw id offset x offset y image id gdi image draw file offset x offset y image name gdi image draw resized offset x offset y resized width resized height image ptr gdi image draw resized id offset x offset y resized width resized height image id gdi image draw resized file offset x offset y resized width resized height image name gdi image draw animation single frame offset x offset y image ptr single frame gdi image draw animation single frame id offset x offset y image id single frame gdi image get frame count image ptr GDI Image animation U16image id MY IMAGE ID UI image typeimage ptr UI image type GetImage image id UI string typeimage name L C my image c S32offset x 10 offset y 10 resized width 120 resized height 150 S32n frames 0 single frame 0 start frame 2 S32width 0 height 0 U16image type GDI IMAGE TYPE INVALID gdi handleani handle NULL gdi image draw animation offset x offset y image ptr LocalData ResourceFATNVRAM ImageStep1 putimagesinthefolderassignedtoappStep2 addimageIDtoENUMassociatedwithappStep3 usingmacroADD APPLICATION IMAGE2Step4 usingimageIDdirectlyasparameterUsingAPP BASEtoguaranteetheuniquenessofimageIDStringsStep1 addstringtoref list txtStep2 addstringIDtoENUMassociatedwithappStep3 usingmacroADD APPLICATION STRING2Step4 S8 my string GetString MY STR ID UsingAPP BASEtoguaranteetheuniquenessofstringID MenusParentmenuUniquemenuitemIDHilitefunctionandLSKhandlerAssociatedwithscreenFontsAudioThemesSkinLayoutAudioplayerCalculatorFMRadioTOOLS MCT MCU tools AudioResGen Resource 1 2 Resource 2 2 FAT custom system project FS Config c FS MAX DRIVES 3 Thenubmerofdriveinfilesystem 1 3 FS DevicegFS DeviceList DeviceListConfiguration FS DEVICE FDISK 1 FS DEVICE NOR FLASH NVRAM 4 Defineattributes5 Definecategory6 Addfileprefix7 Addfileverno NVRAM EF PHB SETTINGS LID NVRAM PHB SETTINGS SIZE NVRAM PHB SETTINGS TOTAL NVRAM PHB SETTINGS DEFAULT NVRAM ATTR AVERAGE NVRAM CATEGORY USER NVRAM CATEGORY SHADOW MP0i VER NVRAM EF PHB SETTINGS LID PhonebookSettings 0 NVRAM RESERVED VALUE 1 DefineLID NVRAM EF PHB SETTINGS LID NVRAM EF PHB CALLER GROUPS LID 2 DefineSIZEandTOTAL defineNVRAM PHB SETTINGS SIZE20 defineNVRAM PHB SETTINGS TOTAL1 3 Definedefaultvaluestatickal uint8constNVRAM PHB SETTINGS DEFAULT NVRAM PHB SETTINGS SIZE 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Sample S16pError U8viewField NVRAM PHB SETTINGS SIZE ReadRecord NVRAM EF PHB SETTINGS LID 1 viewField NVRAM PHB SETTINGS SIZE MakeEnvironmentRequirements OsWindows2000 XP WinME TherecommendedOSisWindows2000withSP2orlater CompilerADSv1 2 Therecommendedbuildversionisbuild842orabove PerlinterpretorActivePerl TherecommendedversionisActivePerl5 6 1 FilearchitectureandDirectories Followingdirectoriesarecloselyrelatedtomakeprocess build Generatedobjects libraries executablebinaryandlogfileslocatedhere Thedirectorywillbecreatedautomatically make makefilesandeachcomponentmodule soptionfilesarelocatedhere tools utilitiesandtools Fast DL directoryforthegeneratedCMMfilesusedonTrace32debugtool tst generateddatabaseusedfortraceandothertoolsaregeneratedandlocatedhere verno sourcefiletorecordversioninformation 2020 3 18 39 可编辑 Filesareusedduringthemakeprocess Whilecompilingsoftware followingfilesareusedduringthemakeprocess mcu Make bat mainbatchfileusedtoparsinguser sinputparameters mcu M WIN2K bat anothermainbatchfilecalledbyMake batforcomputerwithOStypeWindows2000orabove mcu make GSM2 mak Mainmake buildscriptwhichexecutesactionsincludingclean scan link andcallscomp maktocompile generatelibraries mcu make Option mak CommonoptionsusedforCompiler Linker Librariantools systemandplatform mcu make Comp mak Commonoptionsusedforgeneratingcomponentmodulesobjectsorlibraries mcu make CUSTOMER PROJECT mak Compileoptionsforspecificproject mcu make Verno CUSTOMER bld Versioninfoofplatform hardwareandsoftware mcu custom system PRJ scatXXX txt Scatter loadingfileforspecificproject mcu make ModuleName ModuleName def ModuleName inc ModuleName lis ModuleName pth Containseachcomponentmodule scompileoptions listofsource headerfilesandincludepath BuildScript UsageofMake 1 2 make custom customer project action modules custom mtk project nameproject l1s Layer1stand alone gsm GSMonly gprs GPRSonly basic BasicFramework action new clean scan codegen compile link default update scan compile link remake compile link label build clean retrieve scan compile link clean clean get retrieve codegen codegen modules componentmodulename nucleus l1 OPTIONAL BreakdownofMakeACTION new cleanall cmmgen codegen asngen Goto update Deletelog dependencyinfo bin lis sym elf DeletedatabaseusedforTST Deleteobjectsandlibraries Ifcmmfilesnotexisted generate mcu CUSTOMER SUB BOARD VER PROJECT PLATFORM CHIP VER nocode cmm mcu Fast DL CUSTOMER SUB BOARD VER PROJECT PLATFORM CHIP VER nocode cmm GenerateASNcodectemplatefiles GeneratemessagedatabaseandbaseinformationusedforFactoryorTracetools Meta ATE Catcher new BreakdownofMakeACTION update cleanlog codegen gencustominfo genverno Goto remake Delete bin Startlogging info log GeneratemessagedatabaseandbaseinformationusedforTSTandTrace GenerateS W H Wversionnumberandinformationofbuiltdate Copyprojectspecificfilestocommondirectoriesforfurthercompilation GenerateMMIresourcesbyexecutingResGenerator HW bat resgen update BreakdownofMakeACTION remake cleanlog Generatelibraries GenerateBIN Delete bin elf lis sym htmGeneratenecessarylibs GenerateBINfile CheckdependenciesonlyifentryACTION remake remake Delete bin Startlogging info log MoDISOverview MobileDevelopmentIntegratedSystemMoDISisadevelopment supportedsimulator whichacceleratesthesoftwaredevelopmentprocessonanas realenvironmentSystemRequirementCPU 1 5GHzorfasterRAM 512MBormoreNote press Enter keytopoweronReference GuidetoMoDIS User Manual 06A pdf Overview Figure1 BlockDiagramofPCSimulator SubLCD Sidekeys LCD Debugwindow kal printf FeatureList 1 Multi taskingLaunchesnewtasksonMoDISthesamewayasinthetargetenvironmentFileSystemSimulationSimulatesafilesystemandadaptsrequiredinterfacesOSProvidesaneasywaytosimulateLISR HISRmechanismonMoDISDriverAbilityUARTsimulationSIM USIMLCDInterfacesImageCodec JPEG GIF PNG Bluetooth FeatureList 2 NetworkAbilitySocketinterfaceObigoWAP MMS OMAPoC w oaudiofunction OMAIMPS Email Add InToolsSkinLayoutprovidestheabilitycustomizeskinfordifferentLCDsize GDIInformationMonitorprovidesaninterfacefordevelopertoinvestigatecontentofeachGDIlayer DirectInputprovidesanothereditordialogforinputtingthetextdirectly PCKeyboardCustomizationprovideswayfortheusertocustomizethekeymappingbetweenPCandMoDIS MajorFile FolderStructure 1 MoDISrelatedfilesarelocatedatmcu MoDIS Figure3 bootupofPCSimulator Commandlinecompileresult VCworkspaceofeachmodule MajorFile FolderStructure 2 Majorfolders MajorFile FolderStructure 3 Majorfiles RequiredconditionforbuildModis ThesefileandfoldersmustexistinModisfolder CompilingMoDIS 1 ByCommandLine CompilingMoDIS 2 ByMicrosoftVisualC Figure4 Prepareforusingphonebook Snapshot GDIInformationMonitor GDIInformationMonitorprovidesadebuginterfaceforUIdeveloperstoinspectframeofeachlayer Figure4 Prepareforusingphonebook UARTSimulator UARTSimulatorbindsonvirtualCOMportandallowsotherapplicationlikeHyperTerminaltoconnecttoMoDIS Figure4 Prepareforusingphonebook Outline IntroductionofCatchertoolBasicoperationofcatcherCatcherdebugusageATCommandtoolbarIntroductionofMetatool BriefintroductionofCatcher CatcherisaPC sidetoolforMTKGSM GPRSProductsThemainpurposeofCatcherisforloggingprimitivesanddebuginformation EngineerscanuseCatchertoanalyzethebehaviorofmobilephones N B Beforeusingcatcher pleaseremembertosetTSTUARTPorttoUART1 Operationofcatcher 1 3 Step1 SetdatabaseStep2 Setloggingmode Operationofcatcher 2 3 Step3 ConfigureRS232 Operationofcatcher 3 3 Step4 StartconnectStep5 Selectthecorrectfilter DefaultFilter Catchertoolhasadefaultfilterlist Operatorcanselectthedefaultfilteritemaccordingtowhatmessagestheywanttocache CatcherLog Catcherwillcachethemessagerelatedtothefiltersuserhaveset Cacheassert 1 3 Usercancachetheassertprocedurebycatcher Assert现象分两类 PRODUCTION RELEASE True时手机黑屏 并重启PRODUCTION RELEASE False时手机屏幕上打印出Assert的信息 文件名和行数 Cacheassert 2 3 Cacheassert 3 3 对于手机在开机阶段即进入Assert 无法进入Idle界面的情况 无法采用开机进入EngineerMode设置TSTUART的方式 为此 我们需要将代码中的默认值改为TSTUART1 方法如下图 ATCommandToolbar TheATCommandtoolbarallowstheusertosendATcommandstotheprotocolstack TheATcommandmayonlybesentwhencatcherison lineandconnectedtoatargetmobilephone Outline IntroductionofCatchertoolIntroductionofMetatoolBriefintroductionofMetaMetaLabintroductionMetafactoryintroduction BriefintroductionofMETA 1 2 METAapplicationisco
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 浣溪沙翻译课件
- 海鲜水产品介绍课件
- 航线展示课件
- 呼吸冥想课程介绍课件
- 化学类课件教学课件
- 护心理健康课件
- 2026年人卫护理三基题库(含答案)
- 2026年大学生知识安全竞赛题库及答案
- 2026年临床试验gcp考试题库带答案
- 2026年煤矿安全生产培训题库(含答案)
- 2026年上海市安全员B证(项目负责人)试题及解析附答案
- 2026年“优~质服务基层行”能力评价标准解读
- 《隧道施工与管理》全套教学课件
- T/ZACM 001-2025脑卒中后吞咽障碍耳穴压豆技术
- EPC项目图纸会审与深化方案
- 2026吸入制剂技术突破与呼吸系统药物开发报告
- DB32-T 5434-2026 太湖流域农业面源污染负荷评估规范
- 2026新教材 统编版九年级语文上册第四单元阅读综合实践【考点精讲版】教学课件
- 初中数学九年级上册圆的基本概念知识清单
- 2026年内江市科级干部任职资格考试题库附答案
- 【2026】年苏科版(新教材)小学信息技术六年级下册(全册)教学设计、教学计划及进度表(附目录p118)
评论
0/150
提交评论