⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mode.html

📁 一个可作为mp3播放器固件的代码集,包括解码,播放,控制,任务管理等.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML><HEAD> <META NAME="GENERATOR" CONTENT="langdoc 1.0.1"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE> mode </TITLE> </HEAD> <BODY> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="6"> <TR> <TD ALIGN=CENTER VALIGN=MIDDLE BGCOLOR=BLUE> <H1> <FONT COLOR="#FFFFFF"> mode </FONT> </H1> </TD> </TR> </TABLE><P ALIGN=RIGHT> <I> Copyright (c) 2003</I> </P><H2> Library Usage </H2><H3> Package Description </H3><H3> Package Summary </H3><H4> Constants </H4><PRE></PRE><H4> Global Variables </H4><PRE></PRE><H4> Macros </H4><PRE></PRE><H4> Functions </H4><PRE><A HREF="#mode_exit_download">mode_exit_download</A> <A HREF="#mode_set_download">mode_set_download</A> <A HREF="#mode_set_init">mode_set_init</A> <A HREF="#mode_task">mode_task</A> <A HREF="#mode_task_init">mode_task_init</A> </PRE><H3> Files List </H3><UL><LI><B><A NAME="mode_task.c"></A> mode_task.c</B><BR></LI><UL>This file contains the  mode task and attached routines NOTES: Global Variables: - gl_key_press: bit in bdata space - gl_key:       byte in idata space - gl_cpt_tick:  byte in data space</UL><LI><B><A NAME="mode_task.h"></A> mode_task.h</B><BR></LI><UL>This file contains the mode definition</UL></UL><H3> Included Files </H3><UL><LI><B>board.h"                          / *  board definition  * / </B><BR></LI><LI><B>config.h"                         / *  system configuration  * / </B><BR></LI><LI><B>lib_mcu\clock\clock.h"            / *  clock definition  * / </B><BR></LI><LI><B>lib_mcu\mp3\mp3_drv.h"            / *  mp3 driver definition  * / </B><BR></LI><LI><B>mode_task.h"                      / *  mode task definition  * / </B><BR></LI><LI><B>modules\display\disp.h"           / *  display definition  * / </B><BR></LI><LI><B>modules\kbd\kbd_task.h"           / *  keyboard task definition  * / </B><BR></LI><LI><B>modules\mem\mem_task.h"           / *  memory task definition  * / </B><BR></LI><LI><B>modules\song\song_task.h"         / *  song task definition  * / </B><BR></LI><LI><B>modules\tool\tool_task.h"         / *  tool task definition  * / </B><BR></LI><LI><B>modules\voice\voice_task.h"       / *  voice task definition  * / </B><BR></LI></UL><H2> Constant Macros </H2><H2> Global Variables </H2><H2> Function Macros </H2><H2> Functions </H2><A NAME="mode_exit_download"></A><H3> mode_exit_download </H3><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#D6E8FF"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>void <A HREF="#mode_exit_download">mode_exit_download</A>  ( void )  </PRE></TD></TABLE><P>Switch mode task from download to song state<P><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#FFD0D0"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>*return:</PRE></TD></TABLE><H4> Note </H4><P>Called from usb task when disconnecting<HR><A NAME="mode_set_download"></A><H3> mode_set_download </H3><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#D6E8FF"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>void <A HREF="#mode_set_download">mode_set_download</A>  ( void )  </PRE></TD></TABLE><P>Set mode task in download state<P><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#FFD0D0"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>*return:</PRE></TD></TABLE><H4> Note </H4><P>Called from usb task to stop the current task and switch to download task<HR><A NAME="mode_set_init"></A><H3> mode_set_init </H3><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#D6E8FF"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>void <A HREF="#mode_set_init">mode_set_init</A>  ( void )  </PRE></TD></TABLE><P>Sets mode task in init state<P><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#FFD0D0"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>*return:</PRE></TD></TABLE><H4> Note </H4><P>Called from song, voice, mass, tool, usb tasks before stopping<HR><A NAME="mode_task"></A><H3> mode_task </H3><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#D6E8FF"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>void <A HREF="#mode_task">mode_task</A>  ( void )  </PRE></TD></TABLE><P>Mode task<P><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#FFD0D0"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>*return:</PRE></TD></TABLE><H4> Note </H4><P>STATES:MODE_BOOT     boot stateMODE_SPLASH   wait splash timeMODE_DOWNLOAD file download modeMODE_SONG     song playing modeMODE_VOICE    voice playing & recording modeMODE_TOOL     tool modeMODE_IDLE     idle mode (switch back to first task)<HR><A NAME="mode_task_init"></A><H3> mode_task_init </H3><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#D6E8FF"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>void <A HREF="#mode_task_init">mode_task_init</A>  ( void )  </PRE></TD></TABLE><P>Mode task initialization<P><TABLE BORDER="0"  WIDTH="100 %"  BGCOLOR="#FFD0D0"  CELLPADDING="6"><TR> <TD VALIGN=MIDDLE><PRE>*return:</PRE></TD></TABLE><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -