Commit 60dda8b7 authored by ndomingues's avatar ndomingues

Refactor enum nr_ra_type_t and make it common for both gNB and UE

parent eeac9a1f
...@@ -614,5 +614,10 @@ typedef struct NR_tda_info { ...@@ -614,5 +614,10 @@ typedef struct NR_tda_info {
long k2; long k2;
} NR_tda_info_t; } NR_tda_info_t;
typedef enum {
RA_4_STEP = 0,
RA_2_STEP = 1,
} nr_ra_type_t;
#endif /*__LAYER2_MAC_H__ */ #endif /*__LAYER2_MAC_H__ */
...@@ -186,11 +186,6 @@ typedef enum { ...@@ -186,11 +186,6 @@ typedef enum {
RE_ESTABLISHMENT RE_ESTABLISHMENT
} NR_UE_MAC_reset_cause_t; } NR_UE_MAC_reset_cause_t;
typedef enum {
RA_2STEP = 0,
RA_4STEP
} nr_ra_type_e;
typedef struct { typedef struct {
// after multiplexing buffer remain for each lcid // after multiplexing buffer remain for each lcid
int32_t LCID_buffer_remain; int32_t LCID_buffer_remain;
...@@ -286,7 +281,7 @@ typedef struct { ...@@ -286,7 +281,7 @@ typedef struct {
/// ///
uint8_t RA_SCALING_FACTOR_BI; uint8_t RA_SCALING_FACTOR_BI;
/// Indicating whether it is 2-step or 4-step RA /// Indicating whether it is 2-step or 4-step RA
nr_ra_type_e RA_TYPE; nr_ra_type_t RA_TYPE;
/// UE configured maximum output power /// UE configured maximum output power
int RA_PCMAX; int RA_PCMAX;
} NR_PRACH_RESOURCES_t; } NR_PRACH_RESOURCES_t;
...@@ -299,6 +294,8 @@ typedef struct { ...@@ -299,6 +294,8 @@ typedef struct {
nrRA_UE_state_t ra_state; nrRA_UE_state_t ra_state;
/// RA contention type /// RA contention type
uint8_t cfra; uint8_t cfra;
/// RA type
nr_ra_type_t ra_type;
/// RA rx frame offset: compensate RA rx offset introduced by OAI gNB. /// RA rx frame offset: compensate RA rx offset introduced by OAI gNB.
uint8_t RA_offset; uint8_t RA_offset;
/// RA-rnti /// RA-rnti
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment