[JIRA ID: ODUHIGH-232]: RB config for MAC and SCH
[o-du/l2.git] / src / 5gnrsch / sch.h
index 2169519..3621fee 100644 (file)
@@ -127,14 +127,22 @@ typedef struct bsrInfo
 
 typedef struct schLcCtxt
 {
+   uint8_t lcId;     // logical Channel ID
    uint8_t lcp;      // logical Channel Prioritization
    SchLcState lcState;
    uint16_t bo;
 }SchDlLcCtxt;
 
+typedef struct schDlCb
+{
+   uint8_t       numDlLc;
+   SchDlLcCtxt   dlLcCtxt[MAX_NUM_LC];
+}SchDlCb;
+
 typedef struct schUlLcCtxt
 {
-   SchLcState lcState;
+   SchLcState  lcState;
+   uint8_t lcId;       
    uint8_t priority;
    uint8_t lcGroup;
    uint8_t schReqId;
@@ -142,6 +150,12 @@ typedef struct schUlLcCtxt
    uint8_t bsd;        // bucketSizeDuration
 }SchUlLcCtxt;
 
+typedef struct schUlCb
+{
+   uint8_t     numUlLc;
+   SchUlLcCtxt ulLcCtxt[MAX_NUM_LC];
+}SchUlCb;
+
 /**
  * @brief
  * UE control block
@@ -155,10 +169,8 @@ typedef struct schUeCb
    SchCellCb  *cellCb;
    bool       srRcvd;
    BsrInfo    bsrInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
-   uint8_t       numUlLc;
-   SchUlLcCtxt   ulLcCtxt[MAX_NUM_LC];
-   uint8_t       numDlLc;
-   SchDlLcCtxt   dlLcCtxt[MAX_NUM_LC];
+   SchUlCb    ulInfo;
+   SchDlCb    dlInfo;
 }SchUeCb;
 
 /**