Changes between Version 6 and Version 7 of OFDM/MIMO/Docs/AutoResponse
- Timestamp:
- Aug 29, 2009, 2:25:52 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OFDM/MIMO/Docs/AutoResponse
v6 v7 7 7 8 8 === Actors === 9 The actors are configured to trigger a transmission when a received packet meets programmed conditions, including any combination of match unit outputs. 9 The actors are configured to trigger a transmission when a received packet meets programmed conditions, including any combination of match unit outputs. 10 10 11 11 '''Important:''' user code must guarantee that the conditions applied to each actor are mutually exclusive. No more than one actor should be triggered by a single packet reception. This requirement is '''not''' enforced in hardware. Results will be unpredictable if multiple actors are triggered at once. Unused actors should be disabled. … … 15 15 16 16 == Configuring the Auto Response System == 17 C macros are provided in [s rc:/PlatformSupport/warpmac/warpphy.h warphphy.h] to help configure the match units, actors and header translator.17 C macros are provided in [source:/PlatformSupport/warpmac/warpphy.h warphphy.h] to help configure the match units, actors and header translator. 18 18 19 Match unit configuration: 19 '''Match unit configuration:''' 20 20 21 * PHY_AUTORESPONSE_MATCH_CONFIG(''addr'', ''len'', ''val''): Configure the match unit to check whether ''len'' header bytes starting at ''addr'' match value ''val'' 21 22 22 Actor condition requirements: 23 '''Actor condition requirements:''' 24 23 25 * PHY_AUTORESPONSE_REQ_GOODHDR: Packet currently being received is decoded without header errors 24 26 * PHY_AUTORESPONSE_REQ_BADPKT: Packet currently being received has errors in payload but not header 25 27 * PHY_AUTORESPONSE_REQ_GOODPKT: Packet currently being received is decoded without errors in header and payload 26 * PHY_AUTORESPONSE_REQ_FLAGA 27 * PHY_AUTORESPONSE_REQ_FLAGB: Flag Ais set (set during previous reception)28 * PHY_AUTORESPONSE_REQ_FLAGA: Flag A is set (set during previous reception) 29 * PHY_AUTORESPONSE_REQ_FLAGB: Flag B is set (set during previous reception) 28 30 * PHY_AUTORESPONSE_REQ_MATCH0: Match unit 0 conditions are met by the current packet header 29 * PHY_AUTORESPONSE_REQ_MATCH1: Match unit 1 conditions are met by the current packet header 31 * PHY_AUTORESPONSE_REQ_MATCH1: Match unit 1 conditions are met by the current packet header 30 32 * PHY_AUTORESPONSE_REQ_MATCH2: Match unit 2 conditions are met by the current packet header 31 33 * PHY_AUTORESPONSE_REQ_MATCH3: Match unit 3 conditions are met by the current packet header … … 33 35 * PHY_AUTORESPONSE_REQ_MATCH5: Match unit 5 conditions are met by the current packet header 34 36 35 Actor options: 37 '''Actor options:''' 38 36 39 * PHY_AUTORESPONSE_ACT_TRANS_HDR: Use the header translator for the auto-triggered transmission 37 40 38 Header translator: 39 * PHY_HEADERTRANSLATE_SET(''actionBuf'', ''txByteNum'', ''srcBuf'', ''srcByteNum''): Configure the translator to send the byte at index ''srcByteNum'' from the packet buffer ''srcBuf'' as byte number ''txByteNum'' for packets transmitted from the packet buffer ''actionBuf'' 41 '''Header translator:''' 40 42 41 Actor configuration: 42 * PHY_AUTORESPONSE_TXACTION_CONFIG(''pktBuf'', ''translateHdr'', ''delay'', ''conditions''): Configure the actor to automatically transmit 43 * PHY_HEADERTRANSLATE_SET(''actionBuf'', ''txByteNum'', ''srcBuf'', ''srcByteNum''): Configure the translator to send the byte at index ''srcByteNum'' from the packet buffer ''srcBuf'' as byte number ''txByteNum'' for packets automatically transmitted from packet buffer ''actionBuf'' 44 45 '''Actor configuration:''' 46 47 * PHY_AUTORESPONSE_TXACTION_CONFIG(''pktBuf'', ''translateHdr'', ''delay'', ''conditions''): Configure the actor to automatically transmit: 43 48 * ''pktBuf'': index (in ![1,31]) of the packet buffer from which to automatically transmit the packet 44 * ''translateHdr'': enable the header translator when this actor triggers a transmission ('''PHY_AUTORESPONSE_ACT_TRANS_HDR''': use the translator; '''0''': disable the translator)49 * ''translateHdr'': enable the header translator when this actor triggers a transmission 'PHY_AUTORESPONSE_ACT_TRANS_HDR: use the translator; 0: disable the translator) 45 50 * ''delay'': number of 0.25µs increments to delay the automatic transmission. The time starts when the final byte of the incoming packet is decoded, even if the actor doesn't depend on the payload error status 46 51 * ''conditions'': bitwise OR'd combination of actor condition flags; every condition must be met by a given reception to trigger the actor. … … 49 54 50 55 == Sample Code == 51 52 56 {{{ 53 57 #!C