Telnet function in new ciUE library to retrieve OAI UE sync state

- created new telnet library ciUE
- using X-macro defined NR_UE_L2_STATE string array to get UE sync state
- add telnet CI to nrUE container
This commit is contained in:
Guido Casati
2024-04-12 15:53:43 +02:00
parent 6793cb300a
commit cfaa182f57
7 changed files with 117 additions and 2 deletions
+7
View File
@@ -300,6 +300,13 @@ void configure_initial_pucch(PUCCH_sched_t *pucch, int res_ind);
void nr_ue_reset_sync_state(NR_UE_MAC_INST_t *mac);
void nr_ue_send_synch_request(NR_UE_MAC_INST_t *mac, module_id_t module_id, int cc_id, int cell_id);
/**
* @brief Get UE sync state
* @param mod_id UE ID
* @return UE sync state
*/
NR_UE_L2_STATE_t nr_ue_get_sync_state(module_id_t mod_id);
void init_RA(NR_UE_MAC_INST_t *mac,
NR_PRACH_RESOURCES_t *prach_resources,
NR_RACH_ConfigCommon_t *nr_rach_ConfigCommon,
+6
View File
@@ -112,6 +112,12 @@ void nr_ue_reset_sync_state(NR_UE_MAC_INST_t *mac)
mac->ra.ra_state = nrRA_UE_IDLE;
}
NR_UE_L2_STATE_t nr_ue_get_sync_state(module_id_t mod_id)
{
NR_UE_MAC_INST_t *mac = get_mac_inst(mod_id);
return mac->state;
}
NR_UE_MAC_INST_t *nr_l2_init_ue(int nb_inst)
{
//init mac here