source: ResearchApps/MAC/Debug_PseudoMACs/AFDF_CHAR/afdf_char.h

Last change on this file was 1599, checked in by murphpo, 14 years ago

code from v15.22 design, reflecting latest PHY tweaks (longer Rx latency for decimating filters, CFO correction factors, etc.

File size: 1.4 KB
Line 
1/*! \file afdf_char.h
2 \brief Top-level "MAC" for testing PHY performance
3 
4 @version 15.22
5 @author Patrick Murphy
6 
7 Doesn't actually implement a MAC, and traffic only flows one direction. This is used for characterizing the PHY.
8*/
9
10#define RXPHYDUMP_INCLUDE_EVMPERSC      0x1
11#define RXPHYDUMP_INCLUDE_EVMPERSYM     0x2
12#define RXPHYDUMP_INCLUDE_CHANESTAA     0x4
13#define RXPHYDUMP_INCLUDE_CHANESTBA     0x8
14
15#define RXPHYDUMP_SIZE_EVMPERSC         256 //(4*64)
16#define RXPHYDUMP_SIZE_CHANEST          256 //(4*64)
17
18//EVMPERSYM should be 4*256 bytes; the PHY has storage for 256 OFDM symbol's worth of EVM
19// It's set to 128 here so EVMPERSYM+EVMPERSC+CHANESTAA+CHANESTBA can all fit in one MTU
20//#define RXPHYDUMP_SIZE_EVMPERSYM      (4*256)
21#define RXPHYDUMP_SIZE_EVMPERSYM        512 //(4*128)
22
23int phyRx_goodHeader_callback(Macframe* packet);
24void phyRx_badHeader_callback();
25void dataFromNetworkLayer_callback(Xuint32 length, char* payload);
26void uartRecv_callback(unsigned char uartByte);
27void mgmtFromNetworkLayer_callback(Xuint32 length, char* payload);
28
29void processPHYControl(warpnetPHYctrl* phyCtrlStruct);
30void processControl(warpnetControl* controlStruct);
31void processCommand(warpnetCommand* commandStruct);
32void Send_RxPHYdump(int sendEVMperSC, int sendEVMperSym, int sendChanEstAA, int sendChanEstBA, unsigned char pktType, unsigned short seqNum);
33void setupNodeBehaviors();
34void setDACinterp(unsigned int mode, unsigned int radios);
35
36int main();
Note: See TracBrowser for help on using the repository browser.