mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
C
61 lines
1.4 KiB
C
4 years ago
|
/**
|
||
8 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
8 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
8 years ago
|
*
|
||
4 years ago
|
* By using this file, you agree to the terms and conditions set
|
||
|
* forth in the LICENSE file which can be found at the top level of
|
||
|
* the distribution.
|
||
8 years ago
|
*
|
||
|
*/
|
||
|
|
||
7 years ago
|
#ifndef SRSENB_COMMON_ENB_H
|
||
|
#define SRSENB_COMMON_ENB_H
|
||
8 years ago
|
|
||
|
/*******************************************************************************
|
||
|
INCLUDES
|
||
|
*******************************************************************************/
|
||
|
|
||
4 years ago
|
#include <memory>
|
||
8 years ago
|
#include <stdint.h>
|
||
|
|
||
|
namespace srsenb {
|
||
|
|
||
|
#define SRSENB_RRC_MAX_N_PLMN_IDENTITIES 6
|
||
|
|
||
5 years ago
|
#define SRSENB_N_SRB 3
|
||
|
#define SRSENB_N_DRB 8
|
||
8 years ago
|
#define SRSENB_N_RADIO_BEARERS 11
|
||
4 years ago
|
#define SRSENB_MAX_UES 64
|
||
8 years ago
|
|
||
5 years ago
|
enum rb_id_t {
|
||
8 years ago
|
RB_ID_SRB0 = 0,
|
||
|
RB_ID_SRB1,
|
||
|
RB_ID_SRB2,
|
||
|
RB_ID_DRB1,
|
||
|
RB_ID_DRB2,
|
||
|
RB_ID_DRB3,
|
||
|
RB_ID_DRB4,
|
||
|
RB_ID_DRB5,
|
||
|
RB_ID_DRB6,
|
||
|
RB_ID_DRB7,
|
||
|
RB_ID_DRB8,
|
||
|
RB_ID_N_ITEMS,
|
||
5 years ago
|
};
|
||
5 years ago
|
inline const char* to_string(rb_id_t rb_id)
|
||
|
{
|
||
|
const static char* names[] = {"SRB0", "SRB1", "SRB2", "DRB1", "DRB2", "DRB3", "DRB4", "DRB5", "DRB6", "DRB7", "DRB8"};
|
||
|
return (rb_id < RB_ID_N_ITEMS) ? names[rb_id] : "invalid bearer id";
|
||
|
}
|
||
8 years ago
|
|
||
8 years ago
|
// Cat 3 UE - Max number of DL-SCH transport block bits received within a TTI
|
||
|
// 3GPP 36.306 Table 4.1.1
|
||
5 years ago
|
#define SRSENB_MAX_BUFFER_SIZE_BITS 102048
|
||
8 years ago
|
#define SRSENB_MAX_BUFFER_SIZE_BYTES 12756
|
||
5 years ago
|
#define SRSENB_BUFFER_HEADER_OFFSET 1024
|
||
5 years ago
|
|
||
8 years ago
|
} // namespace srsenb
|
||
|
|
||
7 years ago
|
#endif // SRSENB_COMMON_ENB_H
|