Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 16:fbe18dbc2fb7
- Parent:
- 15:3f3560332bc1
- Child:
- 17:54a003ac9610
--- a/main.cpp Tue Jul 16 20:04:57 2013 +0000 +++ b/main.cpp Tue Jul 16 20:47:21 2013 +0000 @@ -278,10 +278,16 @@ spi_stream = spi_stream << 1; } + pc.printf("\n\nParameters sent OK\n\n\n\n"); - pc.printf("\n\n\n"); - //output the spi bit stream recevied: + //output the previous parameters: + pc.printf("Now displaying the previous parameters\n"); + pc.printf("\nPrevious phase shift for RF out1 is %d degrees\n", (spi_second_byte_r&0x07)*-7); + pc.printf("Previous attentuation for RF out1 is %.1f dB\n", (spi_second_byte_r>>4)*5.0/10.0); + pc.printf("Previous phase shift for RF out2 is %d degrees\n", (spi_first_byte_r&0x07)*-7); + pc.printf("Previous attentuation for RF out2 is %.1f dB\n", (spi_first_byte_r>>4)*5.0/10.0); + //spi bit stream for previous parameters pc.printf("\nSPI bit stream received:\n"); pc.printf("%s", bit_index); for(i=0; i<=7; i++) @@ -303,6 +309,7 @@ spi_second_byte_r = spi_second_byte_r << 1; } + pc.printf("\n\n\n"); pc.printf("%s", msg_ret);