Added sweep normal,precise,fast

SI443_RBW_update
erikkaashoek 4 years ago
parent 1b2d921652
commit 63d1ca5a71

@ -380,6 +380,18 @@ VNA_SHELL_FUNCTION(cmd_resume)
resume_sweep(); resume_sweep();
} }
VNA_SHELL_FUNCTION(cmd_repeat)
{
(void)argc;
(void)argv;
uint16_t c = 0;
if (argc == 1) {
c = my_atoi(argv[0]);
set_repeat(c);
} else
set_repeat(1);
}
VNA_SHELL_FUNCTION(cmd_reset) VNA_SHELL_FUNCTION(cmd_reset)
{ {
(void)argc; (void)argc;
@ -1394,10 +1406,11 @@ VNA_SHELL_FUNCTION(cmd_sweep)
return; return;
} }
// Parse sweep {go|abort} // Parse sweep {go|abort}
static const char sweep_cmd2[] = "go|abort"; static const char sweep_cmd2[] = "normal|precise|fast|noise|go|abort";
int type2 = get_str_index(argv[0], sweep_cmd2); int type2 = get_str_index(argv[0], sweep_cmd2);
if (type2==0) { setting.sweep = true; return;} if (type2 >=0 && type2 <= 3) { set_step_delay(type2);return;}
if (type2==1) { setting.sweep = false; return;} if (type2==4) { setting.sweep = true; return;}
if (type2==5) { setting.sweep = false; return;}
// Parse sweep {start(Hz)} [stop(Hz)] // Parse sweep {start(Hz)} [stop(Hz)]
set_sweep_frequency(ST_START, value0); set_sweep_frequency(ST_START, value0);
if (value1) if (value1)
@ -1954,6 +1967,7 @@ static const VNAShellCommand commands[] =
{"touchtest" , cmd_touchtest , CMD_WAIT_MUTEX}, {"touchtest" , cmd_touchtest , CMD_WAIT_MUTEX},
{"pause" , cmd_pause , CMD_WAIT_MUTEX | CMD_RUN_IN_LOAD}, {"pause" , cmd_pause , CMD_WAIT_MUTEX | CMD_RUN_IN_LOAD},
{"resume" , cmd_resume , CMD_WAIT_MUTEX | CMD_RUN_IN_LOAD}, {"resume" , cmd_resume , CMD_WAIT_MUTEX | CMD_RUN_IN_LOAD},
{"repeat" , cmd_repeat , CMD_RUN_IN_LOAD},
{"status" , cmd_status , CMD_RUN_IN_LOAD}, {"status" , cmd_status , CMD_RUN_IN_LOAD},
{"caloutput" , cmd_caloutput , CMD_RUN_IN_LOAD}, {"caloutput" , cmd_caloutput , CMD_RUN_IN_LOAD},
{"save" , cmd_save , CMD_RUN_IN_LOAD}, {"save" , cmd_save , CMD_RUN_IN_LOAD},

@ -656,14 +656,15 @@
/* /*
// Set properties: RF_MODEM_RSSI_MUTE_1_1 // Set properties: RF_MODEM_RSSI_MUTE_1_1
// Number of properties: 1 // Number of properties: 2
// Group ID: 0x20 // Group ID: 0x20
// Start ID: 0x57 // Start ID: 0x57
// Default values: 0x00, // Default values: 0x00, 0x00
// Descriptions: // Descriptions:
// MODEM_RSSI_MUTE - Configures muting of the RSSI to avoid false RSSI interrupts. // MODEM_RSSI_MUTE - Configures muting of the RSSI to avoid false RSSI interrupts.
// MODEM_FAST_RSSI_DELAY - Configures the delay after RX to capture the RSSI.
*/ */
#define RF_MODEM_RSSI_MUTE_1_1 0x11, 0x20, 0x01, 0x57, 0x00 #define RF_MODEM_RSSI_MUTE_1_1 0x11, 0x20, 0x02, 0x57, 0x00, 0x00
/* /*
// Set properties: RF_MODEM_DSA_CTRL1_5_1 // Set properties: RF_MODEM_DSA_CTRL1_5_1

Loading…
Cancel
Save

Powered by TurnKey Linux.