Text menu driven ANSI/VT100 console test utility for LoRa transceivers

radio chip selection

Radio chip driver is not included, allowing choice of radio device.
If you're using SX1272 or SX1276, then import sx127x driver into your program.
if you're using SX1261 or SX1262, then import sx126x driver into your program.
if you're using SX1280, then import sx1280 driver into your program.
if you're using LR1110, then import LR1110 driver into your program.
If you're using NAmote72 or Murata discovery, then you must import only sx127x driver.
If you're using Type1SJ select target DISCO_L072CZ_LRWAN1 and import sx126x driver into your program.

This is VT100 text-based menu driven test program for SX12xx transceiver devices.
Serial console is divided into horizontally into top half and bottom half.
The bottom half serves as scrolling area to log activity.
The top half serves as menu, to configure the radio.
For all devices, the serial console operates at 115200 8N1, and requires terminal with ANSI-VT100 capability, such as putty/teraterm/minicom etc.
Use program only with keyboard up/down/left/right keys. Enter to change an item, or number for value item. Some items are single bit, requiring only enter key to toggle. Others with fixed choices give a drop-down menu.

Revision:
4:fa31fdf4ec8d
Parent:
2:ea9245bb1c53
Child:
7:ea73b63b9eb1
--- a/radio.h	Thu Nov 01 13:02:38 2018 -0700
+++ b/radio.h	Sun Nov 25 15:34:40 2018 -0800
@@ -5,6 +5,7 @@
 #include "sx127x_fsk.h"
 #endif /* SX127x_H */
 
+#define PA_OFF_DBM      -127
 
 typedef enum {
     _READ_,
@@ -171,6 +172,9 @@
 
         static void test(void);
 
+        static unsigned read_register(unsigned);
+        static void write_register(unsigned, unsigned);
+
     private:
         static const RadioEvents_t* RadioEvents;