📄 message_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="Message_Handler";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ======== START OF CLASS DATA ======== -->
<H2>
Module Message_Handler</H2>
<HR>
<P>
Message_Handler.asm Jan Ornter DATE: 11-9-2005 VER.: 1.0 This class handles the incoming messages<BR><BR> The function MESSAGE_HANDLER will be called, everytime the rx line goes high. After it is called, the REC_EVENTS will be disabled. To ensure that the function is been called at the right time, the rx line should still be high, if not the function will end without trying to receive more bits. When this is not the case, LF.Receive8 will be called, to receive the command from the base station. The received byte will be interpreted as a command and the command specific code will be executeted. For a more detailed description of the function, see the flow chart below or refer to the source code. At last the REC_EVENT will be enabled and the subroutine ends.
<P>
<P>
<B> Basestation first hand shake:</B><p style="position:relative;" id="Message_Handler_time_0_p"><IMG SRC="Message_Handler_time_0.jpg" NAME="Message_Handler_time_0" BORDER="0"></p><SCRIPT type="text/javascript">window.setInterval("Message_Handler_time_0_res()",100);var Message_Handler_time_0_init = document.Message_Handler_time_0.width ;function Message_Handler_time_0_res(){try{if(Message_Handler_time_0_init > parent.classFrame.innerWidth-45) document.Message_Handler_time_0.width=parent.classFrame.innerWidth-45;else{ document.Message_Handler_time_0.width=Message_Handler_time_0_init; document.getElementById("Message_Handler_time_0_p").style.left= ((parent.classFrame.innerWidth-document.Message_Handler_time_0.width-45) / 2) + "px"; document.getElementById("Message_Handler_time_0_p").style.width= document.Message_Handler_time_0.width + "px";}}catch(Exception){}}</SCRIPT><B> Transponder first hand shake:</B><p style="position:relative;" id="Message_Handler_time_1_p"><IMG SRC="Message_Handler_time_1.jpg" NAME="Message_Handler_time_1" BORDER="0"></p><SCRIPT type="text/javascript">window.setInterval("Message_Handler_time_1_res()",100);var Message_Handler_time_1_init = document.Message_Handler_time_1.width ;function Message_Handler_time_1_res(){try{if(Message_Handler_time_1_init > parent.classFrame.innerWidth-45) document.Message_Handler_time_1.width=parent.classFrame.innerWidth-45;else{ document.Message_Handler_time_1.width=Message_Handler_time_1_init; document.getElementById("Message_Handler_time_1_p").style.left= ((parent.classFrame.innerWidth-document.Message_Handler_time_1.width-45) / 2) + "px"; document.getElementById("Message_Handler_time_1_p").style.width= document.Message_Handler_time_1.width + "px";}}catch(Exception){}}</SCRIPT><B> Basestation second hand shake:</B><p style="position:relative;" id="Message_Handler_time_2_p"><IMG SRC="Message_Handler_time_2.jpg" NAME="Message_Handler_time_2" BORDER="0"></p><SCRIPT type="text/javascript">window.setInterval("Message_Handler_time_2_res()",100);var Message_Handler_time_2_init = document.Message_Handler_time_2.width ;function Message_Handler_time_2_res(){try{if(Message_Handler_time_2_init > parent.classFrame.innerWidth-45) document.Message_Handler_time_2.width=parent.classFrame.innerWidth-45;else{ document.Message_Handler_time_2.width=Message_Handler_time_2_init; document.getElementById("Message_Handler_time_2_p").style.left= ((parent.classFrame.innerWidth-document.Message_Handler_time_2.width-45) / 2) + "px"; document.getElementById("Message_Handler_time_2_p").style.width= document.Message_Handler_time_2.width + "px";}}catch(Exception){}}</SCRIPT><B> Transponder second hand shake:</B><p style="position:relative;" id="Message_Handler_time_3_p"><IMG SRC="Message_Handler_time_3.jpg" NAME="Message_Handler_time_3" BORDER="0"></p><SCRIPT type="text/javascript">window.setInterval("Message_Handler_time_3_res()",100);var Message_Handler_time_3_init = document.Message_Handler_time_3.width ;function Message_Handler_time_3_res(){try{if(Message_Handler_time_3_init > parent.classFrame.innerWidth-45) document.Message_Handler_time_3.width=parent.classFrame.innerWidth-45;else{ document.Message_Handler_time_3.width=Message_Handler_time_3_init; document.getElementById("Message_Handler_time_3_p").style.left= ((parent.classFrame.innerWidth-document.Message_Handler_time_3.width-45) / 2) + "px"; document.getElementById("Message_Handler_time_3_p").style.width= document.Message_Handler_time_3.width + "px";}}catch(Exception){}}</SCRIPT><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="Message_Handler.html#MESSAGE_HANDLER">MESSAGE_HANDLER</A></B>()</CODE>
<BR>
This function is called by the main routine, whenever an incoming LF-Message is detected.</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="MESSAGE_HANDLER"></A><H3>
MESSAGE_HANDLER</H3>
<PRE>
<B>MESSAGE_HANDLER</B>()</PRE>
<P>
<DL>
<DD> This function is called by the main routine, whenever an incoming LF-Message is detected. iT is responsible for receiving, interpreting and if necassary answering the message.
<P>
<P>
<DD><DL>
<DT><B>Used SFRs:</B><DD>OPTION_REG INTCON Delay.Returned EECON1 EEADR, EEDATA, TMR0 PORTC , _w_x_50u</DD></DL>
</DD>
<DD><DL>
<DT><B>Calls subroutines:</B><PRE> LF.Receive8 EEPROM.Write EEPROM.Read LF.Send8 LF.Send_Clamp_One AFE.SendCMDClampON SPI.Write Delay.WaitFor AFE.SendCMDClampOFF SPI.Write LF.Send_Clamp_Zero AFE.SendCMDClampON SPI.Write Delay.WaitFor AFE.SendCMDClampOFF SPI.Write RF.Send_Header Delay.start Delay.wait RF.Send_Data Delay.start Delay.wait LF.ReadBuffer AFE.Receive8 RF.SendBuffer Delay.wait_w_x_50u _w_x_50u
</PRE>
</DD></DL>
<DD><DL>
<DT><B>Stacklevel:</B><DD>4</DD></DL>
</DD>
</DL>
<HR>
<!-- ========= END OF CLASS DATA ========= -->
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -