LTE_fdd_enb_common.h 5.54 KB
Newer Older
1 2
/*******************************************************************************

3
    Copyright 2015-2016 Ben Wojtowicz
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 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 Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

*******************************************************************************

    File: LTE_fdd_enb_common.h

    Description: Contains all the common definitions for the LTE FDD eNodeB.

    Revision History
    ----------    -------------    --------------------------------------------
    02/15/2015    Ben Wojtowicz    Created file
27
    03/12/2016    Ben Wojtowicz    Added error for H-ARQ info not found.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76

*******************************************************************************/

#ifndef __LTE_FDD_ENB_COMMON_H__
#define __LTE_FDD_ENB_COMMON_H__

/*******************************************************************************
                              INCLUDES
*******************************************************************************/


/*******************************************************************************
                              DEFINES
*******************************************************************************/


/*******************************************************************************
                              FORWARD DECLARATIONS
*******************************************************************************/


/*******************************************************************************
                              TYPEDEFS
*******************************************************************************/

typedef enum{
    LTE_FDD_ENB_ERROR_NONE = 0,
    LTE_FDD_ENB_ERROR_INVALID_COMMAND,
    LTE_FDD_ENB_ERROR_INVALID_PARAM,
    LTE_FDD_ENB_ERROR_OUT_OF_BOUNDS,
    LTE_FDD_ENB_ERROR_EXCEPTION,
    LTE_FDD_ENB_ERROR_ALREADY_STARTED,
    LTE_FDD_ENB_ERROR_ALREADY_STOPPED,
    LTE_FDD_ENB_ERROR_CANT_START,
    LTE_FDD_ENB_ERROR_CANT_STOP,
    LTE_FDD_ENB_ERROR_BAD_ALLOC,
    LTE_FDD_ENB_ERROR_USER_NOT_FOUND,
    LTE_FDD_ENB_ERROR_NO_FREE_C_RNTI,
    LTE_FDD_ENB_ERROR_C_RNTI_NOT_FOUND,
    LTE_FDD_ENB_ERROR_CANT_SCHEDULE,
    LTE_FDD_ENB_ERROR_VARIABLE_NOT_DYNAMIC,
    LTE_FDD_ENB_ERROR_MASTER_CLOCK_FAIL,
    LTE_FDD_ENB_ERROR_NO_MSG_IN_QUEUE,
    LTE_FDD_ENB_ERROR_RB_NOT_SETUP,
    LTE_FDD_ENB_ERROR_RB_ALREADY_SETUP,
    LTE_FDD_ENB_ERROR_TIMER_NOT_FOUND,
    LTE_FDD_ENB_ERROR_CANT_REASSEMBLE_SDU,
    LTE_FDD_ENB_ERROR_DUPLICATE_ENTRY,
    LTE_FDD_ENB_ERROR_READ_ONLY,
77
    LTE_FDD_ENB_ERROR_HARQ_INFO_NOT_FOUND,
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
    LTE_FDD_ENB_ERROR_N_ITEMS,
}LTE_FDD_ENB_ERROR_ENUM;
static const char LTE_fdd_enb_error_text[LTE_FDD_ENB_ERROR_N_ITEMS][100] = {"none",
                                                                            "invalid command",
                                                                            "invalid parameter",
                                                                            "out of bounds",
                                                                            "exception",
                                                                            "already started",
                                                                            "already stopped",
                                                                            "cant start",
                                                                            "cant stop",
                                                                            "bad alloc",
                                                                            "user not found",
                                                                            "no free C-RNTI",
                                                                            "C-RNTI not found",
                                                                            "cant schedule",
                                                                            "variable not dynamic",
                                                                            "unable to set master clock rate",
                                                                            "no message in queue",
                                                                            "RB not setup",
                                                                            "RB already setup",
                                                                            "timer not found",
                                                                            "cant reassemble SDU",
                                                                            "duplicate entry",
102 103
                                                                            "read only",
                                                                            "HARQ info not found"};
104 105 106 107 108 109

/*******************************************************************************
                              CLASS DECLARATIONS
*******************************************************************************/

#endif /* __LTE_FDD_ENB_COMMON_H__ */