node27.html
来自「用C++编写的GPRS协议栈源代码」· HTML 代码 · 共 54 行
HTML
54 行
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><!--Converted with LaTeX2HTML 96.1 (Feb 5, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><HTML><HEAD><TITLE>End of a Up Slot</TITLE><META NAME="description" CONTENT="End of a Up Slot"><META NAME="keywords" CONTENT="gprs"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><LINK REL=STYLESHEET HREF="gprs.css"></HEAD><BODY LANG="EN"> <A NAME="tex2html396" HREF="node28.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://cbl.leeds.ac.uk/nikos/figs/next_motif.gif"></A> <A NAME="tex2html394" HREF="node22.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://cbl.leeds.ac.uk/nikos/figs/up_motif.gif"></A> <A NAME="tex2html388" HREF="node26.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://cbl.leeds.ac.uk/nikos/figs/previous_motif.gif"></A> <BR><B> Next:</B> <A NAME="tex2html397" HREF="node28.html">Packet to be transmitted </A><B>Up:</B> <A NAME="tex2html395" HREF="node22.html">Psuedocode for Packet Processing </A><B> Previous:</B> <A NAME="tex2html389" HREF="node26.html">End of a Down </A><BR> <P><H2><A NAME="SECTION00135000000000000000">End of a Up Slot</A></H2><P><PRE><TT> <B>Comment:</B> xxxxxxxxxxxxB<>Method:</B> upslotHandler(Event *e)<P><B>Comment:</B> An MS can transmit a packet if it has one scheduledfor transmission.<P><B>Action:</B> Restart upslot timer to clock the next slot<P> Compare node_address with the BS_address<P> If node is an MS<P> Check if it has a packet to transmit in <TT>pktTx[up_slot_]</TT><P> if <TT>pktTx[up_slot_]</TT> is not NULL<P> Start slot release timer, if IFQ is empty<P> Switch the radio ON<P> Pass the packet in <TT>pktTx[up_slot_]</TT> to <TT>tx_onto_PHY ()</TT><P> Free <TT>pktTx[up_slot_] </TT><P> Else do nothing<P> Increment upslot counter. Take care of wrap around.<P></TT></PRE><BR> <HR><P><ADDRESS><I>Richa Jain (96D07007) <BR>Tue Jul 24 22:29:53 IST 2001</I></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?