📄 button_handler.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by AsmDoc -->
<TITLE>
HTMLWriter
</TITLE>
<META NAME="keywords" CONTENT="HTMLWriter class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="Button_Handler";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ======== START OF CLASS DATA ======== -->
<H2>
Module Button_Handler</H2>
<HR>
<P>
Button_Handler.asm<BR> This class handles button events Jan Ornter DATE: 11-9-2005 VER.: 1.0 A simple sample implemantation is the following: Implement the Button_Handler function (this is the function which is been called from the main routine. Disable the REC_EVENT (setting the correct bit in IOCA to zero). As the basestation may block RF-Communication, any RF-Message should be transmitted several times. This is done by adding a counter in this handler routine and counter in the interrupt service routine of Timer0, as this is counting the IDLE time anyway. When EVENT_REG,0 is one (falling edge on RA0 occurred) then send (for example) an open door command over the RF interface. When the repeat counter has finished, clear the Button events. Enable REC_EVENT and return.
<P>
<P>
<HR>
<P>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Function Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE></CODE></FONT></TD>
<TD><CODE><B><A HREF="Button_Handler.html#Button_Handler_Init">Button_Handler_Init</A></B>()</CODE>
<BR>
Initilizes needed registers for the BUTTON_HANDLER</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE></CODE></FONT></TD>
<TD><CODE><B><A HREF="Button_Handler.html#Button_Handler">Button_Handler</A></B>()</CODE>
<BR>
This method is called by the main routine whenever a button event occurs.</TD>
</TR>
</TABLE>
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Button_Handler_Init"></A><H3>
Button_Handler_Init</H3>
<PRE>
<B>Button_Handler_Init</B>()</PRE>
<P>
<DL>
<DD> Initilizes needed registers for the BUTTON_HANDLER
<P>
<P>
</DL>
<HR>
<A NAME="Button_Handler"></A><H3>
Button_Handler</H3>
<PRE>
<B>Button_Handler</B>()</PRE>
<P>
<DL>
<DD> This method is called by the main routine whenever a button event occurs.
<P>
<P>
</DL>
<HR>
<!-- ========= END OF CLASS DATA ========= -->
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -