annotate autocal/rxcommon.c @ 45:98abe6bd2042

autocal: scw implemented for Rx cal
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 May 2017 05:48:04 +0000
parents 5018fd8eecce
children 751f8d9efed0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
44
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * This module contains the common code for
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 * fc-rfcal-gmagic and fc-rfcal-rxband.
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 #include <stdio.h>
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 #include <stdlib.h>
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 #include <rvinterf/l1tm.h>
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 #include <rvinterf/exitcodes.h>
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 #include "rxcaldefs.h"
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 l1tm_setup_for_rxcal()
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 {
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 do_rxpw(RX_AGC_ENA_FLAG, 0);
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 do_rxpw(RX_AGC_GAIN, RXCAL_AGC_DB);
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 do_rfpw(AFC_ENA_FLAG, 0);
45
98abe6bd2042 autocal: scw implemented for Rx cal
Mychaela Falconia <falcon@freecalypso.org>
parents: 44
diff changeset
17 do_scw(LOOPS, RXCAL_LOOP_COUNT);
98abe6bd2042 autocal: scw implemented for Rx cal
Mychaela Falconia <falcon@freecalypso.org>
parents: 44
diff changeset
18 do_scw(AUTO_RESULT_LOOPS, RXCAL_LOOP_COUNT);
98abe6bd2042 autocal: scw implemented for Rx cal
Mychaela Falconia <falcon@freecalypso.org>
parents: 44
diff changeset
19 do_scw(AUTO_RESET_LOOPS, RXCAL_LOOP_COUNT);
98abe6bd2042 autocal: scw implemented for Rx cal
Mychaela Falconia <falcon@freecalypso.org>
parents: 44
diff changeset
20 do_scw(STAT_TYPE, ACCUMULATED_RX_STATS);
98abe6bd2042 autocal: scw implemented for Rx cal
Mychaela Falconia <falcon@freecalypso.org>
parents: 44
diff changeset
21 do_scw(STAT_BITMASK, DSP_PM);
44
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 return(0);
5018fd8eecce autocal: started Rx cal core code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 }