FreeCalypso > hg > fc-rfcal-tools
view 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 |
line wrap: on
line source
/* * This module contains the common code for * fc-rfcal-gmagic and fc-rfcal-rxband. */ #include <stdio.h> #include <stdlib.h> #include <rvinterf/l1tm.h> #include <rvinterf/exitcodes.h> #include "rxcaldefs.h" l1tm_setup_for_rxcal() { do_rxpw(RX_AGC_ENA_FLAG, 0); do_rxpw(RX_AGC_GAIN, RXCAL_AGC_DB); do_rfpw(AFC_ENA_FLAG, 0); do_scw(LOOPS, RXCAL_LOOP_COUNT); do_scw(AUTO_RESULT_LOOPS, RXCAL_LOOP_COUNT); do_scw(AUTO_RESET_LOOPS, RXCAL_LOOP_COUNT); do_scw(STAT_TYPE, ACCUMULATED_RX_STATS); do_scw(STAT_BITMASK, DSP_PM); return(0); }