From 9cf1ce742777fbf668b1c76b66b1e124adc9c015 Mon Sep 17 00:00:00 2001 From: vijay chadachan Date: Wed, 9 Oct 2024 12:04:40 +0200 Subject: [PATCH] Add new TDD period and bitmap configuration structs definitions (nr_common.h) Co-authored-by: Guido Casati --- common/utils/nr/nr_common.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/common/utils/nr/nr_common.h b/common/utils/nr/nr_common.h index 1408f271b0..fece81ed62 100644 --- a/common/utils/nr/nr_common.h +++ b/common/utils/nr/nr_common.h @@ -122,6 +122,29 @@ typedef enum frequency_range_e { FR2 } frequency_range_t; +#define MAX_NUM_SLOTS_ALLOWED 80 // up to numerology 3 (120 KHz SCS) is supported +enum slot_type { TDD_NR_DOWNLINK_SLOT, TDD_NR_UPLINK_SLOT, TDD_NR_MIXED_SLOT }; + +typedef struct tdd_bitmap { + enum slot_type slot_type; + uint8_t num_dl_symbols; + uint8_t num_ul_symbols; +} tdd_bitmap_t; + +typedef struct tdd_period_config_s { + tdd_bitmap_t tdd_slot_bitmap[MAX_NUM_SLOTS_ALLOWED]; + uint8_t num_dl_slots; + uint8_t num_ul_slots; +} tdd_period_config_t; + +typedef struct frame_structure_s { + tdd_period_config_t period_cfg; + int8_t numb_slots_frame; + int8_t numb_slots_period; + int8_t numb_period_frame; + bool is_tdd; +} frame_structure_t; + typedef struct { /// Time shift in number of samples estimated based on DMRS-PDSCH/PUSCH int est_delay;