mirror of https://github.com/PentHertz/srsLTE.git
added preamble length field to prach
This commit is contained in:
parent
3d73e780af
commit
59aea904ea
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue