Applied aesthetical changes

master
Xavier Arteaga 4 years ago committed by Xavier Arteaga
parent d9780e1f13
commit f3c0360842

@ -86,7 +86,8 @@ extern "C" {
#define SRSLTE_PDCCH_MAX_RE ((SRSLTE_NRE - 3U) * (1U << (SRSLTE_SEARCH_SPACE_NOF_AGGREGATION_LEVELS_NR - 1U)) * 6U) #define SRSLTE_PDCCH_MAX_RE ((SRSLTE_NRE - 3U) * (1U << (SRSLTE_SEARCH_SPACE_NOF_AGGREGATION_LEVELS_NR - 1U)) * 6U)
/** /**
* @brief defines the maximum number of candidates for a given Aggregation level * @brief defines the maximum number of candidates for a given search-space and aggregation level according to TS 38.331
* SearchSpace sequence
*/ */
#define SRSLTE_SEARCH_SPACE_MAX_NOF_CANDIDATES_NR 8 #define SRSLTE_SEARCH_SPACE_MAX_NOF_CANDIDATES_NR 8
@ -94,7 +95,7 @@ extern "C" {
* @brief defines the maximum number of monitored PDCCH candidates per slot and per serving cell according to TS 38.213 * @brief defines the maximum number of monitored PDCCH candidates per slot and per serving cell according to TS 38.213
* Table 10.1-2 * Table 10.1-2
*/ */
#define SRSLTE_MAX_NOF_CANDIDATES_NR 44 #define SRSLTE_MAX_NOF_CANDIDATES_SLOT_NR 44
/** /**
* @brief defines the maximum number of resource elements per PRB * @brief defines the maximum number of resource elements per PRB

@ -122,7 +122,7 @@ SRSLTE_API int srslte_ra_ul_dci_to_grant_nr(const srslte_carrier_nr_t* carrie
srslte_sch_grant_nr_t* pusch_grant); srslte_sch_grant_nr_t* pusch_grant);
/** /**
* @brief Setups the Uplink Control Information configuration for a PUSCH transmission * @brief Set up the Uplink Control Information configuration for a PUSCH transmission
* *
* @remark Implement procedure described in TS 38.213 9.3 UCI reporting in physical uplink shared channel * @remark Implement procedure described in TS 38.213 9.3 UCI reporting in physical uplink shared channel
* *

@ -131,7 +131,7 @@ typedef struct SRSLTE_API {
srslte_dmrs_pdcch_ce_t* pdcch_ce; srslte_dmrs_pdcch_ce_t* pdcch_ce;
/// Store Blind-search information from all possible candidate locations for debug purposes /// Store Blind-search information from all possible candidate locations for debug purposes
srslte_ue_dl_nr_pdcch_info_t pdcch_info[SRSLTE_MAX_NOF_CANDIDATES_NR]; srslte_ue_dl_nr_pdcch_info_t pdcch_info[SRSLTE_MAX_NOF_CANDIDATES_SLOT_NR];
uint32_t pdcch_info_count; uint32_t pdcch_info_count;
/// Temporally stores Found DCI messages from all SS /// Temporally stores Found DCI messages from all SS

@ -212,11 +212,11 @@ static int ue_dl_nr_find_dci_ncce(srslte_ue_dl_nr_t* q,
{ {
// Select debug information // Select debug information
srslte_ue_dl_nr_pdcch_info_t* pdcch_info = NULL; srslte_ue_dl_nr_pdcch_info_t* pdcch_info = NULL;
if (q->pdcch_info_count < SRSLTE_MAX_NOF_CANDIDATES_NR) { if (q->pdcch_info_count < SRSLTE_MAX_NOF_CANDIDATES_SLOT_NR) {
pdcch_info = &q->pdcch_info[q->pdcch_info_count]; pdcch_info = &q->pdcch_info[q->pdcch_info_count];
q->pdcch_info_count++; q->pdcch_info_count++;
} else { } else {
ERROR("The UE does not expect more than %d candidates in this serving cell", SRSLTE_MAX_NOF_CANDIDATES_NR); ERROR("The UE does not expect more than %d candidates in this serving cell", SRSLTE_MAX_NOF_CANDIDATES_SLOT_NR);
return SRSLTE_ERROR; return SRSLTE_ERROR;
} }
SRSLTE_MEM_ZERO(pdcch_info, srslte_ue_dl_nr_pdcch_info_t, 1); SRSLTE_MEM_ZERO(pdcch_info, srslte_ue_dl_nr_pdcch_info_t, 1);

@ -281,11 +281,13 @@ bool radio::rx_now(rf_buffer_interface& buffer, rf_timestamp_interface& rxd_time
bool ret = true; bool ret = true;
rf_buffer_t buffer_rx; rf_buffer_t buffer_rx;
// Extract decimation ratio. As the decimator may take some time to set a new ratio, deactivate the decimation and // Extract decimation ratio. As the decimation may take some time to set a new ratio, deactivate the decimation and
// keep receiving samples to avoid stalling the RX stream // keep receiving samples to avoid stalling the RX stream
uint32_t ratio = (decimator_busy) ? 0 : SRSLTE_MAX(1, decimators[0].ratio); uint32_t ratio = 1; // No decimation by default
if (decimator_busy) { if (decimator_busy) {
rx_mutex.unlock(); lock.unlock();
} else if (decimators[0].ratio > 1) {
ratio = decimators[0].ratio;
} }
// Calculate number of samples, considering the decimation ratio // Calculate number of samples, considering the decimation ratio

@ -269,7 +269,7 @@ bool cc_worker::work_dl()
bool cc_worker::work_ul() bool cc_worker::work_ul()
{ {
// Check if it is a DL slot, if not skip // Check if it is a UL slot, if not skip
if (!srslte_tdd_nr_is_ul(&phy->cfg.tdd, 0, ul_slot_cfg.idx)) { if (!srslte_tdd_nr_is_ul(&phy->cfg.tdd, 0, ul_slot_cfg.idx)) {
// No NR signal shall be transmitted // No NR signal shall be transmitted
srslte_vec_cf_zero(tx_buffer[0], ue_ul.ifft.sf_sz); srslte_vec_cf_zero(tx_buffer[0], ue_ul.ifft.sf_sz);

Loading…
Cancel
Save