Skip to content

Commit eaa4f6d

Browse files
AlaiaLcodebot
authored andcommitted
fapi: using the slot PDU constants for UL_TTI.request, SRS.indication and UCI.indication
1 parent a03d904 commit eaa4f6d

File tree

2 files changed

+14
-23
lines changed

2 files changed

+14
-23
lines changed

include/srsran/fapi/messages.h

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -781,14 +781,12 @@ struct ul_tti_request_message : public base_message {
781781

782782
/// Maximum number of supported UL PDU types in this release.
783783
static constexpr unsigned MAX_NUM_UL_TYPES = 6;
784-
/// Maximum number of supported UL PDUs in this message.
785-
static constexpr unsigned MAX_NUM_UL_PDUS = 128;
786-
787-
uint16_t sfn;
788-
uint16_t slot;
789-
std::array<uint16_t, MAX_NUM_UL_TYPES> num_pdus_of_each_type;
790-
uint16_t num_groups;
791-
static_vector<ul_tti_request_pdu, MAX_NUM_UL_PDUS> pdus;
784+
785+
uint16_t sfn;
786+
uint16_t slot;
787+
std::array<uint16_t, MAX_NUM_UL_TYPES> num_pdus_of_each_type;
788+
uint16_t num_groups;
789+
static_vector<ul_tti_request_pdu, MAX_UL_PDUS_PER_SLOT> pdus;
792790
//: TODO: groups array
793791
};
794792

@@ -1036,13 +1034,9 @@ struct uci_indication_pdu {
10361034

10371035
/// UCI indication message.
10381036
struct uci_indication_message : public base_message {
1039-
/// Maximum number of supported UCI PDUs in this message.
1040-
//: TODO: shared with ul_dci_request_message
1041-
static constexpr unsigned MAX_NUM_UCI_PDUS = 128;
1042-
1043-
uint16_t sfn;
1044-
uint16_t slot;
1045-
static_vector<uci_indication_pdu, MAX_NUM_UCI_PDUS> pdus;
1037+
uint16_t sfn;
1038+
uint16_t slot;
1039+
static_vector<uci_indication_pdu, MAX_UCI_PDUS_PER_UCI_IND> pdus;
10461040
};
10471041

10481042
/// Encodes the PRGs.
@@ -1132,13 +1126,10 @@ struct srs_indication_pdu {
11321126

11331127
/// SRS indication message.
11341128
struct srs_indication_message : public base_message {
1135-
/// Maximum number of supported SRS PDUs in this message.
1136-
static constexpr unsigned MAX_NUM_SRS_PDUS = 32;
1137-
1138-
uint16_t sfn;
1139-
uint16_t slot;
1140-
uint16_t control_length;
1141-
static_vector<srs_indication_pdu, MAX_NUM_SRS_PDUS> pdus;
1129+
uint16_t sfn;
1130+
uint16_t slot;
1131+
uint16_t control_length;
1132+
static_vector<srs_indication_pdu, MAX_SRS_PDUS_PER_SRS_IND> pdus;
11421133
};
11431134

11441135
/// RACH indication pdu preamble.

include/srsran/scheduler/scheduler_slot_handler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ struct ul_sched_result {
569569
/// PUCCH grants allocated in the current slot.
570570
static_vector<pucch_info, MAX_PUCCH_PDUS_PER_SLOT> pucchs;
571571
/// SRS grants allocated in the current slot.
572-
static_vector<srs_info, MAX_PUCCH_PDUS_PER_SLOT> srss;
572+
static_vector<srs_info, MAX_SRS_PDUS_PER_SLOT> srss;
573573
};
574574

575575
/// Scheduler decision made for DL and UL in a given slot.

0 commit comments

Comments
 (0)