FreeCalypso > hg > fc-rfcal-tools
comparison cmu200/vcxocal.c @ 39:34c6fbe38daa
fc-cmu200d: implemented RF1/RF2 port selection
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 27 May 2017 02:17:00 +0000 |
parents | aeffe53e110d |
children |
comparison
equal
deleted
inserted
replaced
38:8877634feba5 | 39:34c6fbe38daa |
---|---|
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <string.h> | 7 #include <string.h> |
8 #include <strings.h> | 8 #include <strings.h> |
9 #include "mode.h" | 9 #include "mode.h" |
10 #include "band.h" | 10 #include "band.h" |
11 | |
12 extern int cmu200_rf_port; | |
11 | 13 |
12 extern char *client_cmd_fields[]; | 14 extern char *client_cmd_fields[]; |
13 extern int client_cmd_nfields; | 15 extern int client_cmd_nfields; |
14 | 16 |
15 extern int current_mode; | 17 extern int current_mode; |
39 send_socket_response("-Invalid ARFCN\n"); | 41 send_socket_response("-Invalid ARFCN\n"); |
40 return(0); | 42 return(0); |
41 } | 43 } |
42 sprintf(cmdstr, "*SEC %d\n", current_band->secaddr); | 44 sprintf(cmdstr, "*SEC %d\n", current_band->secaddr); |
43 send_scpi_cmd(cmdstr); | 45 send_scpi_cmd(cmdstr); |
46 sprintf(cmdstr, "INP RF%d\n", cmu200_rf_port); | |
47 send_scpi_cmd(cmdstr); | |
44 sprintf(cmdstr, "RFAN:CHAN %uCH\n", arfcn); | 48 sprintf(cmdstr, "RFAN:CHAN %uCH\n", arfcn); |
45 send_scpi_cmd(cmdstr); | 49 send_scpi_cmd(cmdstr); |
46 send_scpi_cmd("RFAN:TSEQ GSM5\n"); | 50 send_scpi_cmd("RFAN:TSEQ GSM5\n"); |
47 current_mode = OP_MODE_VCXO_CAL; | 51 current_mode = OP_MODE_VCXO_CAL; |
48 send_socket_response("+OK\n"); | 52 send_socket_response("+OK\n"); |