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.

38 lines
1.1 KiB
C

/**
*
* \section COPYRIGHT
*
* Copyright 2013-2021 Software Radio Systems Limited
*
* 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.
*
*/
#ifndef SRSRAN_SCHED_CONFIG_H
#define SRSRAN_SCHED_CONFIG_H
#include <cstdint>
namespace srsenb {
/**
* Structure used in UE logical channel configuration
*/
struct logical_channel_cfg_t {
enum direction_t { IDLE = 0, UL, DL, BOTH } direction = IDLE;
int priority = 1; // channel priority (1 is highest)
uint32_t bsd = 1000; // msec
uint32_t pbr = -1; // prioritised bit rate
int group = 0; // logical channel group
bool is_active() const { return direction != IDLE; }
bool is_dl() const { return direction == DL or direction == BOTH; }
bool is_ul() const { return direction == UL or direction == BOTH; }
};
} // namespace srsenb
#endif // SRSRAN_SCHED_CONFIG_H