| 7 | |
| 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. |
| 10 | |
| 11 | === Header Translator === |
| 12 | The header translator is used to construct the header of an automatically transmitted packet using data from the header of the received packet which triggered the transmission. |
| 13 | |
| 14 | == Sample Code == |
| 15 | C macros are provided in [src:/PlatformSupport/warpmac/warpphy.h warphphy.h] to help configure the match units, actors and header translator. |
| 16 | |
| 17 | Actor condition requirements: |
| 18 | * PHY_AUTORESPONSE_REQ_GOODHDR: Packet currently being received is decoded without header errors |
| 19 | * PHY_AUTORESPONSE_REQ_BADPKT: Packet currently being received has errors in payload but not header |
| 20 | * PHY_AUTORESPONSE_REQ_GOODPKT: Packet currently being received is decoded without errors in header and payload |
| 21 | * PHY_AUTORESPONSE_REQ_FLAGA : Flag A is set (set during previous reception) |
| 22 | * PHY_AUTORESPONSE_REQ_FLAGB: Flag A is set (set during previous reception) |
| 23 | * PHY_AUTORESPONSE_REQ_MATCH0: Match unit 0 conditions are met by the current packet header |
| 24 | * PHY_AUTORESPONSE_REQ_MATCH1: Match unit 1 conditions are met by the current packet header |
| 25 | * PHY_AUTORESPONSE_REQ_MATCH2: Match unit 2 conditions are met by the current packet header |
| 26 | * PHY_AUTORESPONSE_REQ_MATCH3: Match unit 3 conditions are met by the current packet header |
| 27 | * PHY_AUTORESPONSE_REQ_MATCH4: Match unit 4 conditions are met by the current packet header |
| 28 | * PHY_AUTORESPONSE_REQ_MATCH5: Match unit 5 conditions are met by the current packet header |
| 29 | |
| 30 | Actor options: |
| 31 | * PHY_AUTORESPONSE_ACT_TRANS_HDR: Use the header translator for the auto-triggered transmission |
| 32 | |
| 33 | Actor actions: |
| 34 | * PHY_AUTORESPONSE_ACTID_DISABLED: Disable the actor; this is the default action |
| 35 | * PHY_AUTORESPONSE_ACTID_SETFLAGA: Assert Flag A |
| 36 | * PHY_AUTORESPONSE_ACTID_SETFLAGB: Assert Flag B |
| 37 | * PHY_AUTORESPONSE_ACTID_TXPKTBUF(pktBuf): Automatically transmit the packet from buffer ''pktBuf'' |
| 38 | |