diff --git a/README.md b/README.md index 98974a561..69954cce1 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Hardware The library currently uses Ettus Universal Hardware Driver (UHD). Thus, any hardware supported by UHD can be used. There is no sampling rate conversion, therefore the hardware should support 30.72 MHz clock in order to work correctly with LTE sampling frequencies and decode signals from live LTE base stations. We are using the B210 USRP. -*News*: We have recently added support for the bladeRF in the `devel` branch. It's still experimental so any feedback will be very appreciated. +*News*: We have recently added support for the bladeRF in the `next` branch. It's still experimental so any feedback will be very appreciated. Download & Install Instructions ================================= diff --git a/srslte/include/srslte/ue/ue_sync.h b/srslte/include/srslte/ue/ue_sync.h index e81c348d2..7900829e0 100644 --- a/srslte/include/srslte/ue/ue_sync.h +++ b/srslte/include/srslte/ue/ue_sync.h @@ -150,6 +150,9 @@ SRSLTE_API int srslte_ue_sync_zerocopy(srslte_ue_sync_t *q, SRSLTE_API void srslte_ue_sync_set_cfo(srslte_ue_sync_t *q, float cfo); +SRSLTE_API void srslte_ue_sync_cfo_i_detec_en(srslte_ue_sync_t *q, + bool enable); + SRSLTE_API void srslte_ue_sync_reset(srslte_ue_sync_t *q); SRSLTE_API void srslte_ue_sync_set_N_id_2(srslte_ue_sync_t *q, diff --git a/srslte/lib/ue/src/ue_sync.c b/srslte/lib/ue/src/ue_sync.c index 9620cdc91..3ddffcf49 100644 --- a/srslte/lib/ue/src/ue_sync.c +++ b/srslte/lib/ue/src/ue_sync.c @@ -253,6 +253,11 @@ uint32_t srslte_ue_sync_get_sfidx(srslte_ue_sync_t *q) { return q->sf_idx; } +void srslte_ue_sync_cfo_i_detec_en(srslte_ue_sync_t *q, bool enable) { + srslte_sync_cfo_i_detec_en(&q->strack, enable); + srslte_sync_cfo_i_detec_en(&q->sfind, enable); +} + float srslte_ue_sync_get_cfo(srslte_ue_sync_t *q) { return 15000 * srslte_sync_get_cfo(&q->strack); }