|
|
|
@ -48,8 +48,7 @@ void srslte_channel_hst_update_srate(srslte_channel_hst_t* q, uint32_t srate)
|
|
|
|
|
void srslte_channel_hst_execute(
|
|
|
|
|
srslte_channel_hst_t* q, cf_t* in, cf_t* out, uint32_t len, const srslte_timestamp_t* ts)
|
|
|
|
|
{
|
|
|
|
|
if (q) {
|
|
|
|
|
if (q->srate_hz) {
|
|
|
|
|
if (q && q->srate_hz) {
|
|
|
|
|
// Convert period from seconds to samples
|
|
|
|
|
uint64_t period_nsamples = (uint64_t)roundf(q->period_s * q->srate_hz);
|
|
|
|
|
|
|
|
|
@ -78,7 +77,6 @@ void srslte_channel_hst_execute(
|
|
|
|
|
// Apply doppler shift, assume the doppler does not vary in a sub-frame
|
|
|
|
|
srslte_vec_apply_cfo(in, -q->fs_hz / q->srate_hz, out, len);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void srslte_channel_hst_free(srslte_channel_hst_t* q)
|
|
|
|
|