comparison cmu200/mode.c @ 3:b552e8d86474

fc-cmu200d: started implementing operation modes
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 May 2017 07:01:53 +0000
parents
children 8877634feba5
comparison
equal deleted inserted replaced
2:e2db512abbee 3:b552e8d86474
1 /*
2 * In this module we are going to implement the logic for switching
3 * the CMU200 into different modes as needed for signal generation,
4 * frequency measurement etc.
5 */
6
7 #include "mode.h"
8
9 int current_mode;
10
11 cmu200_session_begin()
12 {
13 current_mode = OP_MODE_UNDEF;
14 }
15
16 stop_signal_gen()
17 {
18 if (current_mode == OP_MODE_SIGNAL_GEN)
19 send_scpi_cmd("ABORT:RFG\n");
20 }