Changes between Version 80 and Version 81 of WANMAC


Ignore:
Timestamp:
Jul 24, 2006, 5:53:25 PM (18 years ago)
Author:
varunnayyar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WANMAC

    v80 v81  
    377377== Common Functions ==
    378378
    379 [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 pb_int_handler]
     379[source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@360#L1036 pb_int_handler]
    380380Interrupt handler for the pushbuttons on the WARP board. This is a low-priority interrupt because it is primarily used for debugging purposes. The five
    381381buttons on the board correspond to the switch cases for this handler.
    382382
    383 [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 dummyPktGenerator]
     383[source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@360#L804 dummyPktGenerator]
    384384This is a virtual application layer function. It simply fills up a specified queue with dummy payloads. This is essentially simulating the
    385385application layer behaviour.
    386386
    387 [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 SetTimer]
     387[source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@360#L717 SetTimer]
    388388The setTimer function allows the use of software timers for the MAC. Currently, the two types of timers for transmitting and the other for receiving.
    389389This function is called each time a Map entry is read and a specific time needs to be set for waiting or transmitting. Once the timer expires,
    390390the timer hadler function is called and the state of the machine can be changed.
    391391
    392 [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 txPhy]
     392[source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@360#L321 txPhy]
    393393This fuction hands over a PDU to the Phy layer, copies the header, payload into the memory and triggers the transmission. After
    394394having transmitted the packet, it then frees the data of that packet.
    395395
    396 [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 timer_a_int_handler]
     396[source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@360#L40 timer_a_int_handler]
    397397This is the interrupt handler for the first timer peripheral.  It checks to see which was the state it was called in and then changes values of
    398398global variables accordingly. This is mainly used to tell when the slot for receiving and transmitting ends.
    399399
    400400
    401 [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 rxPhyBad]
     401[source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@360#L64 rxPhyBad]
    402402This function is used to keep a track of the number of bad packets ( CRC Error ) Received. After receiving it simply
    403403resets the receiver.
    404404
    405405
    406 [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 PrintPacket]
     406[source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@360#L213 PrintPacket]
    407407A utility function for printing out any given pduStruct. Helpful in debugging !!
    408408
    409 [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 clearTimer]
     409[source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@360#L250 clearTimer]
    410410This function is called when u want to clear an already set timer. If an event happens before the desired end
    411411time for that event, then we can call this function to prevent the timer from going off unnecessarily.
     
    419419Base Station Hardware Initialization
    420420
    421 [source:/ResearchApps/MAC/WANMAC/Basestation/hardware.h@305#L51 InitializeHW]
     421[source:/ResearchApps/MAC/WANMAC/Basestation/hardware.h@360#L79 InitializeHW]
    422422For the Base Station, this is the main function resposnsible for initialization of the hardware and setting up the warp boards for usage.
    423423This is a well commented funtion, highlighting the various steps involved. It initializes the LEDs and the push buttons on the board.
     
    426426and receiver initialization. 
    427427
    428 [source:/ResearchApps/MAC/WANMAC/Subscriber/hardware.h@305#L51 InitializeHW]
     428[source:/ResearchApps/MAC/WANMAC/Subscriber/hardware.h@361#L79 InitializeHW]
    429429This is the same as the above function, it simply does all the things mentioned with the Subscriber Station board.
    430430