| 45 | '''Examples'''[[BR]] |
| 46 | The following are examples of valid antenna configurations. Notice that in every example, the Tx and Rx PHY modes (SISO, Alamouti or multiplexing) match. This is important and '''must''' be enforced in code (the PHY will accept invalid configurations with unpredictable results). |
| 47 | {{{ |
| 48 | #!C |
| 49 | //SISO mode, Tx and Rx on antenna A (this is the default in the OFDM reference design) |
| 50 | warpphy_setAntennaMode(TX_ANTMODE_SISO_ANTA, RX_ANTMODE_SISO_ANTA); |
| 51 | |
| 52 | //SISO mode, Tx and Rx on antenna B |
| 53 | warpphy_setAntennaMode(TX_ANTMODE_SISO_ANTB, RX_ANTMODE_SISO_ANTB); |
| 54 | |
| 55 | //SISO mode, Tx on antenna A, Rx on both antennas using selection diversity |
| 56 | warpphy_setAntennaMode(TX_ANTMODE_SISO_ANTA, RX_ANTMODE_SISO_SELDIV); |
| 57 | |
| 58 | //Alamouti mode, Tx from both antennas, Rx on antenna A |
| 59 | warpphy_setAntennaMode(TX_ANTMODE_ALAMOUTI_2ANT, RX_ANTMODE_ALAMOUTI_ANTA); |
| 60 | |
| 61 | //Multiplexing mode, Tx and Rx with both antennas |
| 62 | warpphy_setAntennaMode(TX_ANTMODE_MULTPLX, RX_ANTMODE_MULTPLX); |
| 63 | }}} |