DL Resource allocation for msg4
[o-du/l2.git] / src / 5gnrmac / lwr_mac_upr_inf.h
index 98327a8..1fbbd57 100644 (file)
 #include "cm_lte.x"        /* common tokens */
 #include "tfu.x"
 
+/* events */
+#define EVENT_RACH_IND_TO_MAC 0
+#define EVENT_CRC_IND_TO_MAC  1
+#define EVENT_RX_DATA_IND_TO_MAC 2
+#define EVENT_STOP_IND_TO_MAC 3
+
 typedef S16 (*packSlotIndMsg)(Pst *pst, SlotIndInfo *slotInd);
 S16 packLcSlotInd (Pst *pst, SlotIndInfo *slotInd);
 S16 packLwlcSlotInd (Pst *pst, SlotIndInfo *slotInd);
@@ -54,6 +60,18 @@ typedef uint16_t (*packRachIndMsg)(Pst *pst, RachInd *rachInd);
 uint16_t packRachInd(Pst *pst, RachInd *rachInd);
 uint16_t fapiMacRachInd(Pst *pst, RachInd *rachInd);
 
+typedef uint16_t (*packCrcIndMsg)(Pst *pst, CrcInd *crcInd);
+uint16_t packCrcInd(Pst *pst, CrcInd *crcInd);
+uint16_t fapiMacCrcInd(Pst *pst, CrcInd *crcInd);
+
+
+typedef uint16_t (*packRxDataIndMsg)(Pst *pst, RxDataInd *rxDataInd);
+uint16_t packRxDataInd(Pst *pst, RxDataInd *rxDataInd);
+uint16_t fapiMacRxDataInd(Pst *pst, RxDataInd *rxDataInd);
+
+typedef uint16_t (*packStopIndMsg)(Pst *pst);
+uint16_t packStopInd(Pst *pst);
+uint16_t fapiMacStopInd(Pst *pst);
 #endif
 /**********************************************************************
          End of file