node26.html
来自「用C++编写的GPRS协议栈源代码」· HTML 代码 · 共 61 行
HTML
61 行
<!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 Down Slot</TITLE><META NAME="description" CONTENT="End of a Down 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="tex2html386" HREF="node27.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://cbl.leeds.ac.uk/nikos/figs/next_motif.gif"></A> <A NAME="tex2html384" 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="tex2html378" HREF="node25.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="tex2html387" HREF="node27.html">End of a Up </A><B>Up:</B> <A NAME="tex2html385" HREF="node22.html">Psuedocode for Packet Processing </A><B> Previous:</B> <A NAME="tex2html379" HREF="node25.html">Accepting a packet from </A><BR> <P><H2><A NAME="SECTION00134000000000000000">End of a Down Slot</A></H2><P><PRE><TT> <B>Comment:</B> xxxxxxxxxxxxB<>Method:</B> downslotHandler(Event *e)<P><B>Comment:</B> It is the BS' turn to transmit. See if it has anypacket<P> scheduled to be transmitted in this slot. All frequencies needed to bechecked.<P><B>Action:</B> Restart downslot timer to clock the next slot.<P> Start the Upslot Timer if this downslot 3 in the first TDMA frame.<P> Compare node_address with the BS_address<P> If node is a BS<P> Check <TT>txQ[freq][downslot]</TT> for all frequencies<P> If <TT>txQ[freq][downslot]</TT> !=NULL (see Note)<P> Check if the packet has been marked as waiting<P> If not, then pass packet to tx_onto_PHY()<P> Else do nothing<P> Increment downslot counter. Take care of wrap around.<P></TT></PRE><P>Note: <TT>txQ[freq_][downslot_]</TT> stores a pointer to the packet to betransmitted by the BS in downslot in <TT>downslot_</TT> on frequency<TT>freq_</TT>.<P><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 + -
显示快捷键?