added preamble length field to prach

This commit is contained in:
Ismael Gomez 2017-03-14 11:00:33 +01:00
parent 3d73e780af
commit 59aea904ea
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ typedef struct SRSLTE_API {
uint32_t N_cs; // Cyclic shift size
uint32_t N_seq; // Preamble length
float T_seq; // Preamble length in seconds
float T_tot; // Total sequence length in seconds
uint32_t N_cp; // Cyclic prefix length
// Generated tables

View File

@ -461,6 +461,7 @@ int srslte_prach_init(srslte_prach_t *p,
p->N_seq = prach_Tseq[p->f]*p->N_ifft_ul/2048;
p->N_cp = prach_Tcp[p->f]*p->N_ifft_ul/2048;
p->T_seq = prach_Tseq[p->f]*SRSLTE_LTE_TS;
p->T_tot = (prach_Tseq[p->f]+prach_Tcp[p->f])*SRSLTE_LTE_TS;
ret = SRSLTE_SUCCESS;
} else {