1 | function result = warplab_reset4x4Node(nodeHandle) |
---|
2 | |
---|
3 | % Use this function to reset a node that is programmed with the |
---|
4 | % warplab_mimo_4x4_v03.bit bitstream. |
---|
5 | warplab_defines |
---|
6 | |
---|
7 | packetNum = 1; |
---|
8 | |
---|
9 | % Set parameters to default values |
---|
10 | warplab_writeRegister(nodeHandle,CAPT_OFFSET,0); |
---|
11 | warplab_writeRegister(nodeHandle,TX_LENGTH,2^14-1); |
---|
12 | |
---|
13 | |
---|
14 | % Set all Tx buffers in node to Tx disabled mode |
---|
15 | warplab_sendCmd(nodeHandle, [RADIO1TXBUFF_TXDIS, RADIO2TXBUFF_TXDIS, RADIO3TXBUFF_TXDIS, RADIO4TXBUFF_TXDIS], packetNum); |
---|
16 | |
---|
17 | % Disable the transmitter radios |
---|
18 | warplab_sendCmd(nodeHandle, [RADIO1_TXDIS, RADIO2_TXDIS, RADIO3_TXDIS, RADIO4_TXDIS], packetNum); |
---|
19 | |
---|
20 | % Let the receiver know that system is ready for a new capture |
---|
21 | warplab_sendCmd(nodeHandle, RX_DONEREADING, packetNum); |
---|
22 | |
---|
23 | % Set all Rx buffers in node to Rx disabled mode |
---|
24 | warplab_sendCmd(nodeHandle, [RADIO1RXBUFF_RXDIS, RADIO2RXBUFF_RXDIS, RADIO3RXBUFF_RXDIS, RADIO4RXBUFF_RXDIS], packetNum); |
---|
25 | |
---|
26 | % Disable the receiver radios |
---|
27 | warplab_sendCmd(nodeHandle, [RADIO1_RXDIS, RADIO2_RXDIS, RADIO3_RXDIS, RADIO4_RXDIS], packetNum); |
---|