Fixed override methods in MAC test

master
Xavier Arteaga 4 years ago committed by Andre Puschmann
parent 4b8cd7ce92
commit 008ef3c10c

@ -130,7 +130,7 @@ public:
// phy_interface_mac_lte // phy_interface_mac_lte
void configure_prach_params(){}; void configure_prach_params(){};
void prach_send(uint32_t preamble_idx, int allowed_subframe, float target_power_dbm, float ta_base_sec) void prach_send(uint32_t preamble_idx, int allowed_subframe, float target_power_dbm, float ta_base_sec) override
{ {
prach_delay_cnt = 0; prach_delay_cnt = 0;
last_preamble_idx = preamble_idx; last_preamble_idx = preamble_idx;
@ -140,7 +140,7 @@ public:
log_h->info("PRACH will be transmitted at tti=%d, preamble_idx=%d\n", prach_tti, preamble_idx); log_h->info("PRACH will be transmitted at tti=%d, preamble_idx=%d\n", prach_tti, preamble_idx);
} }
prach_info_t prach_get_info() prach_info_t prach_get_info() override
{ {
prach_info_t info = {}; prach_info_t info = {};
if (prach_info_tx) { if (prach_info_tx) {
@ -155,25 +155,25 @@ public:
return info; return info;
}; };
void sr_send(){}; void sr_send() override{};
int sr_last_tx_tti() { return 0; }; int sr_last_tx_tti() override { return 0; };
void set_mch_period_stop(uint32_t stop){}; void set_mch_period_stop(uint32_t stop) override{};
// phy_interface_mac_common // phy_interface_mac_common
void set_crnti(uint16_t rnti) { last_crnti = rnti; } void set_crnti(uint16_t rnti) override { last_crnti = rnti; }
void set_timeadv_rar(uint32_t ta_cmd) { rar_time_adv = ta_cmd; } void set_timeadv_rar(uint32_t ta_cmd) override { rar_time_adv = ta_cmd; }
void set_timeadv(uint32_t ta_cmd){}; void set_timeadv(uint32_t ta_cmd) override{};
void set_activation_deactivation_scell(uint32_t cmd, uint32_t tti) override { scell_cmd = cmd; }; void set_activation_deactivation_scell(uint32_t cmd, uint32_t tti) override { scell_cmd = cmd; };
void set_rar_grant(uint8_t grant_payload[SRSLTE_RAR_GRANT_LEN], uint16_t rnti) void set_rar_grant(uint8_t grant_payload[SRSLTE_RAR_GRANT_LEN], uint16_t rnti) override
{ {
memcpy(rar_payload, grant_payload, SRSLTE_RAR_GRANT_LEN); memcpy(rar_payload, grant_payload, SRSLTE_RAR_GRANT_LEN);
rar_temp_rnti = rnti; rar_temp_rnti = rnti;
nof_rar_grants++; nof_rar_grants++;
} }
uint32_t get_current_tti() { return 0; } uint32_t get_current_tti() override { return 0; }
float get_phr() { return 0; }; float get_phr() override { return 0; };
float get_pathloss_db() { return 0; }; float get_pathloss_db() override { return 0; };
// getter for test execution // getter for test execution
uint32_t get_scell_cmd() { return scell_cmd; } uint32_t get_scell_cmd() { return scell_cmd; }

Loading…
Cancel
Save