Connectivity
Dependencies: fsl_phy_mcr20a fsl_smac mbed-rtos mbed
Fork of mcr20_connectivity_test_FRDMk64f by
Source/ConnectivityMenus.c
- Committer:
- andreikovacs
- Date:
- 2015-07-16
- Revision:
- 0:4eb2240dbd22
- Child:
- 8:c37e57032093
File content as of revision 0:4eb2240dbd22:
/*! * Copyright (c) 2015, Freescale Semiconductor, Inc. * All rights reserved. * * \file ConnectivityMenus.c * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of conditions and the following disclaimer. * * o Redistributions in binary form must reproduce the above copyright notice, this * list of conditions and the following disclaimer in the documentation and/or * other materials provided with the distribution. * * o Neither the name of Freescale Semiconductor, Inc. nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "ConnectivityMenus.h" /************************************************************************************ ************************************************************************************* * Public memory declarations ************************************************************************************* ************************************************************************************/ char * const cu8FreescaleLogo[]={ "\f\r\n", "\n\r\n\r\n\r #\n", "\r ###\n", "\r ### *\n", "\r # ***\n", "\r *** #\n", "\r * ###\n", "\r ###\n", "\r * #\n", "\r ***\n", "\r *** #\n", "\r # * ###\n", "\r ### ###\n", "\r ### * # F R E E S C A L E\n", "\r # ***\n", "\r *** S E M I C O N D U C T O R\n", "\r # *\n", "\r ### 2 0 1 5\n", "\r ###\n", "\r # Connectivity Test Demo\n\n", "\r\n -Press enter to start", NULL }; /*@CMA, Conn Test. New string*/ char * const cu8MainMenu[]={ "\f\r Connectivity Test Interface short cuts\n", "\r------------------------------------------\n", "\r -Press [t] for Tx operation\n", "\r -Press [r] for Rx operation\n", "\r -Press [q] for channel up\n", "\r -Press [w] for channel down\n", "\r -Press [a] for Power up\n", "\r -Press [s] for Power down\n", "\r -Press [n] to increase the Payload\n", "\r -Press [m] to decrease the Payload\n", "\r -Press [k] to increase CCA Threshold in Carrier Sense Test\n", "\r -Press [l] to decrease CCA Threshold in Carrier Sense Test\n", "\r These keys can be used all over the application to change \n", "\r the test parameters\n", "\r ________________________________\n", "\r | |\n", "\r | Select the Test to perform |\n", "\r |________________________________|\n", "\r -Press [1] Continuous tests\n", "\r -Press [2] Packet Error Rate test\n", "\r -Press [3] Range test\n", "\r -Press [4] Carrier Sense and Transmission Control menu\n", "\r -Press [5] Radio registers edit\n", "\r -Press [p] Reset MCU\n\r\n", NULL }; /*@CMA, Conn Test. New string*/ char * const cu8ShortCutsBar[]={ "\f\r\n", "\r----------------------------------------------------\n", "\r [t] Tx [q] Ch+ [a] Pw+ [n] Pyld+ [l] CCAThr-\n", "\r [r] Rx [w] Ch- [s] Pw- [m] Pyld- [k] CCAThr+\n", "\r----------------------------------------------------\n\r", NULL }; char * const cu8ContinuousTestMenu[]={ "\r __________________________ \n", "\r| |\n", "\r| Continuous Test Menu |\n", "\r|__________________________|\n\r\n", "\r-Press [1] Idle\n", "\r-Press [2] Burst PRBS Transmission using packet mode\n", "\r-Press [3] Continuous Modulated Transmission\n", "\r-Press [4] Continuous Unmodulated Transmission\n", "\r-Press [5] Continuous Reception\n", "\r-Press [6] Continuous Energy Detect\n", "\r-Press [7] Continuous Scan\n", "\r-Press [8] Continuous Cca\n" "\r-Press [p] Previous Menu\n\r\n", "\rNow Running: ", NULL }; char * const cu8PerTxTestMenu[]={ "\r ____________________________ \n", "\r | |\n", "\r | PER Tx Test Menu |\n", "\r |____________________________|\n\r\n", "\r Choose the amount of packets to send:\n", "\r [0] - 1 Packet [1] - 25 Packets\n", "\r [2] - 100 Packets [3] - 500 Packets\n", "\r [4] - 1000 Packets [5] - 2000 Packets\n", "\r [6] - 5000 Packets [7] - 10000 Packets\n", "\r [8] - 65535 Packets\n\r\n", "\r-Press [p] Previous Menu\n\r\n", NULL }; char * const cu8PerRxTestMenu[]={ "\r ______________________ \n", "\r | |\n", "\r | PER Rx Test Menu |\n", "\r |______________________|\n\r\n", "\r -Press [space bar] to start/stop Receiving Packets\n", "\r -Press [p] Previous Menu\n\r\n", NULL }; char * const cu8RangeTxTestMenu[]={ "\r ________________________ \n", "\r | |\n", "\r | Range Tx Test Menu |\n", "\r |________________________|\n\r\n", "\r -Press [space bar] to start/stop Transmiting Packets\n", "\r -Press [p] Previous Menu\n\r\n", NULL }; char * const cu8RangeRxTestMenu[]={ "\r ________________________ \n", "\r | |\n", "\r | Range Rx Test Menu |\n", "\r |________________________|\n\r\n", "\r -Press [space bar] to start/stop Receiving Packets\n", "\r -Press [p] Previous Menu\n\r\n", NULL }; /*@CMA, Conn Test. New menu*/ char * const cu8RadioRegistersEditMenu[]={ "\r ____________________________ \n", "\r | |\n", "\r | Radio Registers Edit Menu |\n", "\r |____________________________|\n\r\n", "\r -Press [1] Write Direct Registers\n", "\r -Press [2] Read Direct Registers\n", "\r -Press [3] Write Indirect Registers\n", "\r -Press [4] Read Indirect Registers\n", "\r -Press [5] Dump All Registers\n", "\r -Press [p] Previous Menu\n\r\n", NULL }; char * const cu8RadioCSTCSelectMenu[]={ "\r ___________________________________________________________ \n", "\r | |\n", "\r | Radio Carrier Sense and Transmission Control Select Menu |\n", "\r |___________________________________________________________|\n\r\n", "\r -Press [1] Carrier Sense Test with un-modulation input signal\n", "\r -Press [2] Transmission Control Test\n", "\r -Press [p] Previous Menu\n\r\n", NULL }; char * const cu8CsTcTestMenu[]={ "\r ____________________________ \n", "\r | |\n", "\r | Tr Ctrl Test Menu |\n", "\r |____________________________|\n\r\n", "\r Choose the amount of packets to send:\n", "\r [0] - 1 Packet [1] - 25 Packets\n", "\r [2] - 100 Packets [3] - 500 Packets\n", "\r [4] - 1000 Packets [5] - 2000 Packets\n", "\r [6] - 5000 Packets [7] - 10000 Packets\n", "\r [8] - 65535 Packets\n\r\n", "\r-Press [p] Previous Menu\n\r\n", NULL }; char * const cu8SelectTags[] ={ " Channel select ", " Power select ", " Test Tx select ", " Test Rx select ", "Trim coarse tune", " Trim fine tune " }; char * const cu8TxTestTags[] ={ " PER Tx ", " Range Tx ", " Cont. Idle ", " Cont. PRBS9 ", "Cont. Modulated ", "Cont. Unmodulatd" }; char * const cu8RxTestTags[] ={ " PER Rx ", " Range Rx ", "Cont. Reception ", " Cont. Scan ", "Cont.Energy Det." }; char * const cu8TxModTestTags[] ={ "0's\r\n", "1's\r\n", "\b\b\b\b\b PN9\r\n" }; char * const cu8ContinuousTestTags[] ={ "Idle mode", "Continuous Tx Modulated - All ", "Continuous Tx Unmodulated", "Continuous PRBS9" }; /************************************************************************************ ************************************************************************************* * Private prototypes ************************************************************************************* ************************************************************************************/ /************************************************************************************ ************************************************************************************* * Private memory declarations ************************************************************************************* ************************************************************************************/ /************************************************************************************ ************************************************************************************* * Interface functions ************************************************************************************* ************************************************************************************/ /************************************************************************************ ************************************************************************************* * private functions ************************************************************************************* ************************************************************************************/