move MAC structs shared between multiple RATs out RAT specific interface
This commit is contained in:
parent
704b8c3dc4
commit
583aa2d180
|
@ -309,20 +309,10 @@ public:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Interface RRC -> MAC shared between different RATs */
|
||||||
/* Interface RRC -> MAC */
|
class mac_interface_rrc_common
|
||||||
class mac_interface_rrc
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
LIBLTE_RRC_MAC_MAIN_CONFIG_STRUCT main;
|
|
||||||
LIBLTE_RRC_RACH_CONFIG_COMMON_STRUCT rach;
|
|
||||||
LIBLTE_RRC_SCHEDULING_REQUEST_CONFIG_STRUCT sr;
|
|
||||||
uint32_t prach_config_index;
|
|
||||||
} mac_cfg_t;
|
|
||||||
|
|
||||||
|
|
||||||
// Class to handle UE specific RNTIs between RRC and MAC
|
// Class to handle UE specific RNTIs between RRC and MAC
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint16_t crnti;
|
uint16_t crnti;
|
||||||
|
@ -332,6 +322,25 @@ public:
|
||||||
uint64_t contention_id;
|
uint64_t contention_id;
|
||||||
} ue_rnti_t;
|
} ue_rnti_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint32_t max_harq_msg3_tx;
|
||||||
|
uint32_t max_harq_tx;
|
||||||
|
} ul_harq_params_t;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Interface RRC -> MAC */
|
||||||
|
class mac_interface_rrc : public mac_interface_rrc_common
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
LIBLTE_RRC_MAC_MAIN_CONFIG_STRUCT main;
|
||||||
|
LIBLTE_RRC_RACH_CONFIG_COMMON_STRUCT rach;
|
||||||
|
LIBLTE_RRC_SCHEDULING_REQUEST_CONFIG_STRUCT sr;
|
||||||
|
ul_harq_params_t ul_harq_params;
|
||||||
|
uint32_t prach_config_index;
|
||||||
|
} mac_cfg_t;
|
||||||
|
|
||||||
/* Instructs the MAC to start receiving BCCH */
|
/* Instructs the MAC to start receiving BCCH */
|
||||||
virtual void bcch_start_rx() = 0;
|
virtual void bcch_start_rx() = 0;
|
||||||
virtual void bcch_stop_rx() = 0;
|
virtual void bcch_stop_rx() = 0;
|
||||||
|
|
Loading…
Reference in New Issue