Changes between Version 10 and Version 11 of OFDM/MIMO/Docs/AutoResponse
- Timestamp:
- Aug 29, 2009, 3:26:16 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OFDM/MIMO/Docs/AutoResponse
v10 v11 74 74 * {{{pktBuf_tx_ACK}}}: is the index (in [1,30]) of a PHY packet buffer used for transmitting ACKs 75 75 * {{{pktBuf_rx}}}: is the index (in [1,30]) of the PHY packet buffer where received packets are written 76 * {{{templatePkt}}}: a struct of type {{{Macframe}}} (see [source:/PlatformSupport/WARPMAC/warpmac.h]) 76 77 77 78 === Automatic ACKs === … … 95 96 //Create a template ACK packet 96 97 templatePkt.header.fullRate = pktFullRate; 97 templatePkt.header.codeRate = pktCodeRate;98 98 templatePkt.header.length = 0; 99 templatePkt.header.srcAddr = (unsigned short)(NODEID_TO_ADDR(myID));99 templatePkt.header.srcAddr = MY_ADDR; 100 100 templatePkt.header.pktType = ACKPACKET; 101 101 … … 125 125 #!C 126 126 //Configure match unit 0 to search for packets whose relay address matches this node's address 127 // Looks for 2 bytes starting at index PKTHEADER_INDX_RELA YADDR with value MY_ADDR127 // Looks for 2 bytes starting at index PKTHEADER_INDX_RELADDR with value MY_ADDR 128 128 mimo_ofdmTxRx_setMatch0( PHY_AUTORESPONSE_MATCH_CONFIG(PKTHEADER_INDX_RELADDR, 2, MY_ADDR) ); 129 129 … … 136 136 PHY_HEADERTRANSLATE_SET(pktBuf_rx, (PKTHEADER_INDX_SRCADDR+1), pktBuf_rx, (PKTHEADER_INDX_RELADDR+1)); 137 137 138 //Configure actor 0 to transit the received packet using the header translator 139 // after 5µs when the PHY receives a good data packet using this node as a relay 138 //Configure actor 0 to transit the received packet using the header translator after 5µs when the PHY receives a good data packet using this node as a relay 140 139 mimo_ofdmTxRx_setAction0( 141 140 PHY_AUTORESPONSE_TXACTION_CONFIG(pktBuf_rx, PHY_AUTORESPONSE_ACT_TRANS_HDR, 20,