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:
2:ea9245bb1c53
Parent:
1:0817a150122b
Child:
3:56fc764dee0a
--- a/radio_sx127x_private.h	Mon Aug 20 18:13:09 2018 -0700
+++ b/radio_sx127x_private.h	Wed Aug 22 09:50:32 2018 -0700
@@ -26,40 +26,40 @@
         static bool fsk_ook_bps_write(const char*);
         static const value_item_t fsk_ook_bitrate_item;
 
-        static unsigned bt_read_cb(bool);
-        static menuMode_e bt_write_cb(unsigned sidx);
+        static unsigned bt_read(bool);
+        static menuMode_e bt_write(unsigned sidx);
         static const dropdown_item_t gfsk_bt_item;
         static const dropdown_item_t ook_bt_item;
 
-        static unsigned rxbw_read_cb(bool);
-        static menuMode_e rxbw_write_cb(unsigned sidx);
+        static unsigned rxbw_read(bool);
+        static menuMode_e rxbw_write(unsigned sidx);
         static const dropdown_item_t rxbw_item;
 
-        static unsigned bw_read_cb(uint8_t regAddr);
-        static void bw_write_cb(unsigned sidx, uint8_t regAddr);
+        static unsigned bw_read(uint8_t regAddr);
+        static void bw_write(unsigned sidx, uint8_t regAddr);
 
-        static unsigned afcbw_read_cb(bool);
-        static menuMode_e afcbw_write_cb(unsigned sidx);
+        static unsigned afcbw_read(bool);
+        static menuMode_e afcbw_write(unsigned sidx);
         static const dropdown_item_t afcbw_item;
 
-        static unsigned lora_bw_read_cb(bool);
-        static menuMode_e lora_bw_write_cb(unsigned sidx);
+        static unsigned lora_bw_read(bool);
+        static menuMode_e lora_bw_write(unsigned sidx);
         static dropdown_item_t lora_bw_item;    // strings written at runtime
 
         static void lora_sf_print(void);
         static bool lora_sf_write(const char*);
         static const value_item_t lora_sf_item;
 
-        static unsigned lora_cr_read_cb(bool);
-        static menuMode_e lora_cr_write_cb(unsigned sidx);
+        static unsigned lora_cr_read(bool);
+        static menuMode_e lora_cr_write(unsigned sidx);
         static const dropdown_item_t lora_cr_item;
 
         static void lora_pblLen_print(void);
         static bool lora_pblLen_write(const char*);
         static const value_item_t lora_pblLen_item;
 
-        static unsigned lora_fixlen_read_cb(bool);
-        static menuMode_e lora_fixlen_write_cb(unsigned sidx);
+        static unsigned lora_fixlen_read(bool);
+        static menuMode_e lora_fixlen_write(unsigned sidx);
         static const dropdown_item_t lora_fixlen_item;
 
         static bool lora_crcon_read(void);
@@ -78,8 +78,8 @@
         static bool pblLen_write(const char*);
         static const value_item_t pblLen_item ;
 
-        static unsigned rxTrigger_read_cb(bool);
-        static menuMode_e rxTrigger_write_cb(unsigned sidx);
+        static unsigned rxTrigger_read(bool);
+        static menuMode_e rxTrigger_write(unsigned sidx);
         static const dropdown_item_t rxTrigger_item;
 
         static bool AgcAutoOn_read(void);
@@ -205,3 +205,6 @@
         static bool pblPol_read(void);
         static bool pblPol_push(void);
         static const toggle_item_t pblPol_item;
+
+        static void cadrx_push(void);
+        static const button_item_t lora_cadrx_item;