Changes for SR, BSR and MSG5 Handling
[o-du/l2.git] / src / cm / common_def.h
index d09a285..f5591a4 100644 (file)
@@ -15,6 +15,9 @@
 #   limitations under the License.                                             #
 ################################################################################
 *******************************************************************************/
+#ifndef __COMMON_DEF_H__
+#define __COMMON_DEF_H__
+
 #include <stdio.h>
 #include <ctype.h>
 #include <stdlib.h>
    _cellIdx = _cellId - 1;                \
 }
 
+#define SET_BITS_MSB(_startBit, _numBits, _byte) \
+{                                                \
+   _byte = (~((0xFF) >> _numBits));              \
+       _byte >>= _startBit;                          \
+}
+
+#define SET_BITS_LSB(_startBit, _numBits, _byte) \
+{                                                \
+   _byte = (~((0xFF) << _numBits));              \
+       _byte <<= _startBit;                          \
+}
+
+
 typedef struct slotIndInfo
 {
    uint16_t cellId;
@@ -95,6 +111,9 @@ typedef struct PlmnIdentity
    uint8_t mnc[3];
 }Plmn;
 
+void schAllocFreqDomRscType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain);
+
+#endif
 /**********************************************************************
   End of file
 ***********************************************************************/