2021-05-14 10:50:46 +00:00
|
|
|
/* tbf_fsm.c
|
|
|
|
*
|
2022-11-17 18:55:08 +00:00
|
|
|
* Copyright (C) 2021-2022 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
|
2021-05-14 10:50:46 +00:00
|
|
|
* Author: Pau Espin Pedrol <pespin@sysmocom.de>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
2022-11-17 18:55:08 +00:00
|
|
|
#include <osmocom/core/utils.h>
|
2021-05-14 10:50:46 +00:00
|
|
|
|
|
|
|
#include <tbf_fsm.h>
|
2022-10-28 16:47:44 +00:00
|
|
|
|
2022-11-17 18:55:08 +00:00
|
|
|
/* Note: This file contains shared code for UL/DL TBF FSM. See tbf_dl_fsm.c and
|
|
|
|
* tbf_ul_fsm.c for the actual implementations of the FSM */
|
2021-05-14 10:50:46 +00:00
|
|
|
|
|
|
|
const struct value_string tbf_fsm_event_names[] = {
|
2021-07-22 17:20:50 +00:00
|
|
|
{ TBF_EV_ASSIGN_ADD_CCCH, "ASSIGN_ADD_CCCH" },
|
|
|
|
{ TBF_EV_ASSIGN_ADD_PACCH, "ASSIGN_ADD_PACCH" },
|
2021-07-22 17:56:37 +00:00
|
|
|
{ TBF_EV_ASSIGN_ACK_PACCH, "ASSIGN_ACK_PACCH" },
|
|
|
|
{ TBF_EV_ASSIGN_READY_CCCH, "ASSIGN_READY_CCCH" },
|
2021-07-29 14:44:11 +00:00
|
|
|
{ TBF_EV_ASSIGN_PCUIF_CNF, "ASSIGN_PCUIF_CNF" },
|
2022-10-28 16:47:44 +00:00
|
|
|
{ TBF_EV_FIRST_UL_DATA_RECVD, "FIRST_UL_DATA_RECVD" },
|
2022-10-28 17:06:45 +00:00
|
|
|
{ TBF_EV_CONTENTION_RESOLUTION_MS_SUCCESS, "CONTENTION_RESOLUTION_MS_SUCCESS" },
|
2021-07-29 14:44:11 +00:00
|
|
|
{ TBF_EV_DL_ACKNACK_MISS, "DL_ACKNACK_MISS" },
|
2021-07-23 16:27:57 +00:00
|
|
|
{ TBF_EV_LAST_DL_DATA_SENT, "LAST_DL_DATA_SENT" },
|
|
|
|
{ TBF_EV_LAST_UL_DATA_RECVD, "LAST_UL_DATA_RECVD" },
|
2021-07-26 10:33:39 +00:00
|
|
|
{ TBF_EV_FINAL_ACK_RECVD, "FINAL_ACK_RECVD" },
|
2021-10-11 17:18:13 +00:00
|
|
|
{ TBF_EV_FINAL_UL_ACK_CONFIRMED, "FINAL_UL_ACK_CONFIRMED" },
|
2021-07-26 13:54:39 +00:00
|
|
|
{ TBF_EV_MAX_N3101 , "MAX_N3101" },
|
|
|
|
{ TBF_EV_MAX_N3103 , "MAX_N3103" },
|
|
|
|
{ TBF_EV_MAX_N3105 , "MAX_N3105" },
|
2021-05-14 10:50:46 +00:00
|
|
|
{ 0, NULL }
|
|
|
|
};
|